-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherror.txt
More file actions
272 lines (162 loc) · 13.1 KB
/
error.txt
File metadata and controls
272 lines (162 loc) · 13.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
E:\GitHub\claim-ui-vite>npm run build
> claim-ui@0.2.0 build
> tsc -b && vite build
src/components/admin/AirdropAdmin.tsx:4:28 - error TS2307: Cannot find module 'wagmi' or its corresponding type declarations.
4 import { useAccount } from 'wagmi'
~~~~~~~
src/components/admin/RewardEngineAdmin.tsx:4:28 - error TS2307: Cannot find module 'wagmi' or its corresponding type declarations.
4 import { useAccount } from 'wagmi'
~~~~~~~
src/components/admin/StakingAdmin.tsx:24:45 - error TS2307: Cannot find module 'wagmi' or its corresponding type declarations.
24 import { useAccount, useWalletClient } from 'wagmi'
~~~~~~~
src/components/admin/StakingAdmin.tsx:117:80 - error TS2538: Type 'undefined' cannot be used as an index type.
117 const stakingAddress = CONTRACT_CONFIG.address[CONTRACT_TYPES.STAKING]?.[chainId];
~~~~~~~
src/components/admin/StakingAdmin.tsx:181:80 - error TS2538: Type 'undefined' cannot be used as an index type.
181 const stakingAddress = CONTRACT_CONFIG.address[CONTRACT_TYPES.STAKING]?.[chainId];
~~~~~~~
src/components/admin/StakingAdmin.tsx:240:80 - error TS2538: Type 'undefined' cannot be used as an index type.
240 const stakingAddress = CONTRACT_CONFIG.address[CONTRACT_TYPES.STAKING]?.[chainId];
~~~~~~~
src/components/admin/StoragePoolAdmin.tsx:4:63 - error TS2307: Cannot find module 'wagmi' or its corresponding type declarations.
4 import { useAccount, useWriteContract, usePublicClient } from 'wagmi'
~~~~~~~
src/components/admin/StoragePoolAdmin.tsx:52:28 - error TS2307: Cannot find module 'wagmi' or its corresponding type declarations.
52 import { useChainId } from 'wagmi'
~~~~~~~
src/components/admin/TestnetMiningAdmin.tsx:4:28 - error TS2307: Cannot find module 'wagmi' or its corresponding type declarations.
4 import { useAccount } from 'wagmi'
~~~~~~~
src/components/admin/TestnetMiningAdmin.tsx:851:66 - error TS2345: Argument of type 'bigint | null' is not assignable to parameter of type 'BigNumberish'.
Type 'null' is not assignable to type 'BigNumberish'.
851 Total Required Tokens: {ethers.formatEther(tgeStatus.totalTokens)} FULA
~~~~~~~~~~~~~~~~~~~~~
src/components/admin/TokenAdmin.tsx:4:28 - error TS2307: Cannot find module 'wagmi' or its corresponding type declarations.
4 import { useAccount } from 'wagmi'
~~~~~~~
src/components/admin/TokenAdmin.tsx:228:53 - error TS7006: Parameter 'prev' implicitly has an 'any' type.
228 onChange={(e) => setFormData((prev) => ({ ...prev, role: e.target.value }))}
~~~~
src/components/admin/TokenAdmin.tsx:244:53 - error TS7006: Parameter 'prev' implicitly has an 'any' type.
244 onChange={(e) => setFormData((prev) => ({ ...prev, transactionLimit: e.target.value }))}
~~~~
src/components/admin/TokenAdmin.tsx:258:53 - error TS7006: Parameter 'prev' implicitly has an 'any' type.
258 onChange={(e) => setFormData((prev) => ({ ...prev, quorum: e.target.value }))}
~~~~
src/components/admin/TokenAdmin.tsx:311:41 - error TS7006: Parameter 'prev' implicitly has an 'any' type.
311 setFormData(prev => ({
~~~~
src/components/admin/TokenAdmin.tsx:360:53 - error TS7006: Parameter 'prev' implicitly has an 'any' type.
360 onChange={(e) => setFormData((prev) => ({ ...prev, whitelistAddress: e.target.value }))}
~~~~
src/components/admin/TokenAdmin.tsx:452:53 - error TS7006: Parameter 'prev' implicitly has an 'any' type.
452 onChange={(e) => setFormData((prev) => ({ ...prev, bridgeAmount: e.target.value }))}
~~~~
src/components/admin/TokenAdmin.tsx:463:53 - error TS7006: Parameter 'prev' implicitly has an 'any' type.
463 onChange={(e) => setFormData((prev) => ({ ...prev, chainId: e.target.value }))}
~~~~
src/components/admin/TokenAdmin.tsx:473:53 - error TS7006: Parameter 'prev' implicitly has an 'any' type.
473 onChange={(e) => setFormData((prev) => ({ ...prev, nonce: e.target.value }))}
~~~~
src/components/admin/TokenAdmin.tsx:515:51 - error TS7006: Parameter 'event' implicitly has an 'any' type.
515 {data.bridgeOpEvents.map((event, index) => (
~~~~~
src/components/admin/TokenAdmin.tsx:515:58 - error TS7006: Parameter 'index' implicitly has an 'any' type.
515 {data.bridgeOpEvents.map((event, index) => (
~~~~~
src/components/admin/TokenAdmin.tsx:560:53 - error TS7006: Parameter 'prev' implicitly has an 'any' type.
560 onChange={(e) => setFormData((prev) => ({ ...prev, transferTo: e.target.value }))}
~~~~
src/components/admin/TokenAdmin.tsx:571:53 - error TS7006: Parameter 'prev' implicitly has an 'any' type.
571 onChange={(e) => setFormData((prev) => ({ ...prev, transferAmount: e.target.value }))}
~~~~
src/components/admin/TokenAdmin.tsx:608:53 - error TS7006: Parameter 'prev' implicitly has an 'any' type.
608 onChange={(e) => setFormData((prev) => ({ ...prev, chainId: e.target.value }))}
~~~~
src/components/admin/TokenAdmin.tsx:618:53 - error TS7006: Parameter 'prev' implicitly has an 'any' type.
618 onChange={(e) => setFormData((prev) => ({ ...prev, nonce: e.target.value }))}
~~~~
src/components/admin/TokenAdmin.tsx:850:53 - error TS7006: Parameter 'prev' implicitly has an 'any' type.
850 onChange={(e) => setFormData((prev) => ({ ...prev, roleAddress: e.target.value }))}
~~~~
src/components/admin/TokenAdmin.tsx:862:53 - error TS7006: Parameter 'prev' implicitly has an 'any' type.
862 onChange={(e) => setFormData((prev) => ({ ...prev, role: e.target.value }))}
~~~~
src/components/admin/TokenAdmin.tsx:900:53 - error TS7006: Parameter 'prev' implicitly has an 'any' type.
900 onChange={(e) => setFormData((prev) => ({ ...prev, roleType: e.target.value }))}
~~~~
src/components/admin/TokenAdmin.tsx:947:53 - error TS7006: Parameter 'prev' implicitly has an 'any' type.
947 onChange={(e) => setFormData((prev) => ({ ...prev, cancelMethod: e.target.value }))}
~~~~
src/components/admin/TokenAdmin.tsx:961:55 - error TS7006: Parameter 'prev' implicitly has an 'any' type.
961 onChange={(e) => setFormData((prev) => ({ ...prev, cancelTxHash: e.target.value }))}
~~~~
src/components/admin/TokenAdmin.tsx:1004:55 - error TS7006: Parameter 'prev' implicitly has an 'any' type.
1004 onChange={(e) => setFormData((prev) => ({ ...prev, cancelNonce: e.target.value }))}
~~~~
src/components/admin/VestingAdmin.tsx:4:28 - error TS2307: Cannot find module 'wagmi' or its corresponding type declarations.
4 import { useAccount } from 'wagmi'
~~~~~~~
src/components/common/ConnectButton.tsx:2:83 - error TS2307: Cannot find module 'wagmi' or its corresponding type declarations.
2 import { useAccount, useConnect, useDisconnect, useChainId, useSwitchChain } from 'wagmi'
~~~~~~~
src/components/common/ConnectButton.tsx:85:32 - error TS7006: Parameter 'conn' implicitly has an 'any' type.
85 {connectors.map((conn) => (
~~~~
src/components/common/ConnectButton.tsx:166:26 - error TS7006: Parameter 'chain' implicitly has an 'any' type.
166 {chains.map((chain) => (
~~~~~
src/components/vesting/ClaimButton.tsx:7:46 - error TS2307: Cannot find module 'wagmi' or its corresponding type declarations.
7 import { useWaitForTransactionReceipt } from 'wagmi'
~~~~~~~
src/components/vesting/ClaimButton.tsx:61:48 - error TS7006: Parameter 'v' implicitly has an 'any' type.
61 const valueArray = values.split(',').map(v => v.trim());
~
src/components/vesting/VestingInfo.tsx:19:45 - error TS2307: Cannot find module 'wagmi' or its corresponding type declarations.
19 import { useReadContract, useAccount } from 'wagmi'
~~~~~~~
src/components/vesting/VestingInfo.tsx:179:32 - error TS18048: 'vestingData.substrateRewards' is possibly 'undefined'.
179 const substrateRewards = vestingData.substrateRewards.amount || BigInt(0);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/config/chains.ts:2:73 - error TS2307: Cannot find module 'wagmi/chains' or its corresponding type declarations.
2 import { mainnet, sepolia, base, baseSepolia, iotex, skaleEuropa } from 'wagmi/chains'
~~~~~~~~~~~~~~
src/contexts/ContractContext.tsx:2:74 - error TS2307: Cannot find module 'wagmi' or its corresponding type declarations.
2 import { useAccount, usePublicClient, useBalance, useWalletClient } from 'wagmi'
~~~~~~~
src/hooks/useAdminContract.ts:4:118 - error TS2307: Cannot find module 'wagmi' or its corresponding type declarations.
4 import { useReadContract, useWriteContract, useAccount, usePublicClient, useSimulateContract, useWalletClient } from 'wagmi'
~~~~~~~
src/hooks/useStoragePoolData.ts:2:33 - error TS2307: Cannot find module 'wagmi' or its corresponding type declarations.
2 import { usePublicClient } from 'wagmi'
~~~~~~~
src/hooks/useStoragePoolData.ts:5:28 - error TS2307: Cannot find module 'wagmi' or its corresponding type declarations.
5 import { useChainId } from 'wagmi'
~~~~~~~
src/hooks/useTokenBalance.ts:1:33 - error TS2307: Cannot find module 'wagmi' or its corresponding type declarations.
1 import { useReadContract } from 'wagmi'
~~~~~~~
src/hooks/useVestingContract.ts:4:80 - error TS2307: Cannot find module 'wagmi' or its corresponding type declarations.
4 import { useReadContract, useWriteContract, useAccount, usePublicClient } from 'wagmi'
~~~~~~~
src/hooks/useWalletInfo.ts:1:52 - error TS2307: Cannot find module 'wagmi' or its corresponding type declarations.
1 import { useAccount, useBalance, useChainId } from 'wagmi'
~~~~~~~
src/lib/wagmi.ts:1:36 - error TS2307: Cannot find module 'wagmi' or its corresponding type declarations.
1 import { createConfig, http } from 'wagmi'
~~~~~~~
src/lib/wagmi.ts:2:57 - error TS2307: Cannot find module 'wagmi/connectors' or its corresponding type declarations.
2 import { injected, coinbaseWallet, walletConnect } from 'wagmi/connectors'
~~~~~~~~~~~~~~~~~~
src/main.tsx:5:31 - error TS2307: Cannot find module 'wagmi' or its corresponding type declarations.
5 import { WagmiProvider } from 'wagmi'
~~~~~~~
src/pages/AdminPage.tsx:20:28 - error TS2307: Cannot find module 'wagmi' or its corresponding type declarations.
20 import { useAccount } from 'wagmi'
~~~~~~~
src/pages/HomePage.tsx:7:55 - error TS2307: Cannot find module 'wagmi' or its corresponding type declarations.
7 import { useAccount, useChainId, useWatchAsset } from 'wagmi'
~~~~~~~
Found 52 errors.
E:\GitHub\claim-ui-vite>