@toruslabs/ethereum-controllers 8.17.0 → 9.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib.cjs/Account/AccountTrackerController.js +15 -7
- package/dist/lib.cjs/AccountAbstraction/AccountAbstractionController.js +4 -6
- package/dist/lib.cjs/Eip5792/walletGetCallsStatus.js +2 -2
- package/dist/lib.cjs/Eip5792/walletSendCalls.js +8 -9
- package/dist/lib.cjs/Eip7702/eip7702Utils.js +3 -3
- package/dist/lib.cjs/Gas/GasFeeController.js +3 -2
- package/dist/lib.cjs/Keyring/KeyringController.js +69 -40
- package/dist/lib.cjs/Message/utils.js +15 -14
- package/dist/lib.cjs/Nfts/NftHandler.js +54 -12
- package/dist/lib.cjs/Nfts/NftsController.js +1 -4
- package/dist/lib.cjs/Preferences/PreferencesController.js +2 -2
- package/dist/lib.cjs/Tokens/TokenHandler.js +39 -7
- package/dist/lib.cjs/Tokens/TokensController.js +15 -7
- package/dist/lib.cjs/Transaction/TransactionController.js +17 -20
- package/dist/lib.cjs/Transaction/TransactionGasUtil.js +11 -12
- package/dist/lib.cjs/Transaction/TransactionUtils.js +44 -39
- package/dist/lib.cjs/index.js +0 -1
- package/dist/lib.cjs/types/Account/AccountTrackerController.d.ts +1 -1
- package/dist/lib.cjs/types/AccountAbstraction/AccountAbstractionController.d.ts +1 -3
- package/dist/lib.cjs/types/Keyring/KeyringController.d.ts +4 -4
- package/dist/lib.cjs/types/Nfts/NftHandler.d.ts +4 -3
- package/dist/lib.cjs/types/Nfts/NftsController.d.ts +0 -1
- package/dist/lib.cjs/types/Tokens/TokenHandler.d.ts +4 -3
- package/dist/lib.cjs/types/Tokens/TokensController.d.ts +1 -1
- package/dist/lib.cjs/types/Transaction/TransactionUtils.d.ts +11 -3
- package/dist/lib.cjs/types/utils/abis.d.ts +544 -99
- package/dist/lib.cjs/types/utils/eip5792Types.d.ts +0 -1
- package/dist/lib.cjs/types/utils/hex.d.ts +9 -0
- package/dist/lib.cjs/types/utils/interfaces.d.ts +205 -2
- package/dist/lib.cjs/types/utils/transaction.d.ts +1 -1
- package/dist/lib.cjs/types/utils/viem.d.ts +8 -0
- package/dist/lib.cjs/utils/abis.js +12 -0
- package/dist/lib.cjs/utils/conversionUtils.js +3 -4
- package/dist/lib.cjs/utils/eip5792Types.js +0 -2
- package/dist/lib.cjs/utils/helpers.js +9 -8
- package/dist/lib.cjs/utils/hex.js +23 -0
- package/dist/lib.cjs/utils/transaction.js +7 -11
- package/dist/lib.cjs/utils/viem.js +214 -0
- package/dist/lib.esm/Account/AccountTrackerController.js +15 -7
- package/dist/lib.esm/AccountAbstraction/AccountAbstractionController.js +5 -7
- package/dist/lib.esm/Eip5792/walletGetCallsStatus.js +1 -1
- package/dist/lib.esm/Eip5792/walletSendCalls.js +9 -10
- package/dist/lib.esm/Eip7702/eip7702Utils.js +1 -1
- package/dist/lib.esm/Gas/GasFeeController.js +3 -2
- package/dist/lib.esm/Keyring/KeyringController.js +68 -40
- package/dist/lib.esm/Message/utils.js +13 -12
- package/dist/lib.esm/Network/createEthereumMiddleware.js +2 -2
- package/dist/lib.esm/Nfts/NftHandler.js +54 -12
- package/dist/lib.esm/Nfts/NftsController.js +1 -4
- package/dist/lib.esm/Preferences/PreferencesController.js +1 -1
- package/dist/lib.esm/Tokens/TokenHandler.js +39 -7
- package/dist/lib.esm/Tokens/TokensController.js +15 -7
- package/dist/lib.esm/Transaction/TransactionController.js +6 -9
- package/dist/lib.esm/Transaction/TransactionGasUtil.js +11 -12
- package/dist/lib.esm/Transaction/TransactionUtils.js +30 -26
- package/dist/lib.esm/index.js +2 -2
- package/dist/lib.esm/utils/abis.js +12 -0
- package/dist/lib.esm/utils/conversionUtils.js +2 -3
- package/dist/lib.esm/utils/eip5792Types.js +1 -2
- package/dist/lib.esm/utils/helpers.js +8 -7
- package/dist/lib.esm/utils/hex.js +21 -0
- package/dist/lib.esm/utils/interfaces.js +64 -0
- package/dist/lib.esm/utils/transaction.js +7 -11
- package/dist/lib.esm/utils/viem.js +214 -0
- package/package.json +13 -18
- package/dist/ethereumControllers.umd.min.js +0 -2
- package/dist/ethereumControllers.umd.min.js.LICENSE.txt +0 -50
|
@@ -1,99 +1,544 @@
|
|
|
1
|
-
export declare const erc20Abi:
|
|
2
|
-
constant:
|
|
3
|
-
inputs:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
name
|
|
22
|
-
outputs
|
|
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
|
-
|
|
1
|
+
export declare const erc20Abi: readonly [{
|
|
2
|
+
readonly constant: true;
|
|
3
|
+
readonly inputs: readonly [];
|
|
4
|
+
readonly name: "name";
|
|
5
|
+
readonly outputs: readonly [{
|
|
6
|
+
readonly name: "";
|
|
7
|
+
readonly type: "string";
|
|
8
|
+
}];
|
|
9
|
+
readonly payable: false;
|
|
10
|
+
readonly stateMutability: "view";
|
|
11
|
+
readonly type: "function";
|
|
12
|
+
}, {
|
|
13
|
+
readonly constant: false;
|
|
14
|
+
readonly inputs: readonly [{
|
|
15
|
+
readonly name: "_spender";
|
|
16
|
+
readonly type: "address";
|
|
17
|
+
}, {
|
|
18
|
+
readonly name: "_value";
|
|
19
|
+
readonly type: "uint256";
|
|
20
|
+
}];
|
|
21
|
+
readonly name: "approve";
|
|
22
|
+
readonly outputs: readonly [{
|
|
23
|
+
readonly name: "success";
|
|
24
|
+
readonly type: "bool";
|
|
25
|
+
}];
|
|
26
|
+
readonly payable: false;
|
|
27
|
+
readonly stateMutability: "nonpayable";
|
|
28
|
+
readonly type: "function";
|
|
29
|
+
}, {
|
|
30
|
+
readonly constant: true;
|
|
31
|
+
readonly inputs: readonly [];
|
|
32
|
+
readonly name: "totalSupply";
|
|
33
|
+
readonly outputs: readonly [{
|
|
34
|
+
readonly name: "";
|
|
35
|
+
readonly type: "uint256";
|
|
36
|
+
}];
|
|
37
|
+
readonly payable: false;
|
|
38
|
+
readonly stateMutability: "view";
|
|
39
|
+
readonly type: "function";
|
|
40
|
+
}, {
|
|
41
|
+
readonly constant: false;
|
|
42
|
+
readonly inputs: readonly [{
|
|
43
|
+
readonly name: "_from";
|
|
44
|
+
readonly type: "address";
|
|
45
|
+
}, {
|
|
46
|
+
readonly name: "_to";
|
|
47
|
+
readonly type: "address";
|
|
48
|
+
}, {
|
|
49
|
+
readonly name: "_value";
|
|
50
|
+
readonly type: "uint256";
|
|
51
|
+
}];
|
|
52
|
+
readonly name: "transferFrom";
|
|
53
|
+
readonly outputs: readonly [{
|
|
54
|
+
readonly name: "success";
|
|
55
|
+
readonly type: "bool";
|
|
56
|
+
}];
|
|
57
|
+
readonly payable: false;
|
|
58
|
+
readonly stateMutability: "nonpayable";
|
|
59
|
+
readonly type: "function";
|
|
60
|
+
}, {
|
|
61
|
+
readonly constant: true;
|
|
62
|
+
readonly inputs: readonly [];
|
|
63
|
+
readonly name: "decimals";
|
|
64
|
+
readonly outputs: readonly [{
|
|
65
|
+
readonly name: "";
|
|
66
|
+
readonly type: "uint256";
|
|
67
|
+
}];
|
|
68
|
+
readonly payable: false;
|
|
69
|
+
readonly stateMutability: "view";
|
|
70
|
+
readonly type: "function";
|
|
71
|
+
}, {
|
|
72
|
+
readonly constant: true;
|
|
73
|
+
readonly inputs: readonly [{
|
|
74
|
+
readonly name: "_owner";
|
|
75
|
+
readonly type: "address";
|
|
76
|
+
}];
|
|
77
|
+
readonly name: "balanceOf";
|
|
78
|
+
readonly outputs: readonly [{
|
|
79
|
+
readonly name: "balance";
|
|
80
|
+
readonly type: "uint256";
|
|
81
|
+
}];
|
|
82
|
+
readonly payable: false;
|
|
83
|
+
readonly stateMutability: "view";
|
|
84
|
+
readonly type: "function";
|
|
85
|
+
}, {
|
|
86
|
+
readonly constant: true;
|
|
87
|
+
readonly inputs: readonly [];
|
|
88
|
+
readonly name: "symbol";
|
|
89
|
+
readonly outputs: readonly [{
|
|
90
|
+
readonly name: "";
|
|
91
|
+
readonly type: "string";
|
|
92
|
+
}];
|
|
93
|
+
readonly payable: false;
|
|
94
|
+
readonly stateMutability: "view";
|
|
95
|
+
readonly type: "function";
|
|
96
|
+
}, {
|
|
97
|
+
readonly constant: false;
|
|
98
|
+
readonly inputs: readonly [{
|
|
99
|
+
readonly name: "_to";
|
|
100
|
+
readonly type: "address";
|
|
101
|
+
}, {
|
|
102
|
+
readonly name: "_value";
|
|
103
|
+
readonly type: "uint256";
|
|
104
|
+
}];
|
|
105
|
+
readonly name: "transfer";
|
|
106
|
+
readonly outputs: readonly [{
|
|
107
|
+
readonly name: "success";
|
|
108
|
+
readonly type: "bool";
|
|
109
|
+
}];
|
|
110
|
+
readonly payable: false;
|
|
111
|
+
readonly stateMutability: "nonpayable";
|
|
112
|
+
readonly type: "function";
|
|
113
|
+
}, {
|
|
114
|
+
readonly constant: false;
|
|
115
|
+
readonly inputs: readonly [{
|
|
116
|
+
readonly name: "_spender";
|
|
117
|
+
readonly type: "address";
|
|
118
|
+
}, {
|
|
119
|
+
readonly name: "_value";
|
|
120
|
+
readonly type: "uint256";
|
|
121
|
+
}, {
|
|
122
|
+
readonly name: "_extraData";
|
|
123
|
+
readonly type: "bytes";
|
|
124
|
+
}];
|
|
125
|
+
readonly name: "approveAndCall";
|
|
126
|
+
readonly outputs: readonly [{
|
|
127
|
+
readonly name: "success";
|
|
128
|
+
readonly type: "bool";
|
|
129
|
+
}];
|
|
130
|
+
readonly payable: false;
|
|
131
|
+
readonly stateMutability: "nonpayable";
|
|
132
|
+
readonly type: "function";
|
|
133
|
+
}, {
|
|
134
|
+
readonly constant: true;
|
|
135
|
+
readonly inputs: readonly [{
|
|
136
|
+
readonly name: "_owner";
|
|
137
|
+
readonly type: "address";
|
|
138
|
+
}, {
|
|
139
|
+
readonly name: "_spender";
|
|
140
|
+
readonly type: "address";
|
|
141
|
+
}];
|
|
142
|
+
readonly name: "allowance";
|
|
143
|
+
readonly outputs: readonly [{
|
|
144
|
+
readonly name: "remaining";
|
|
145
|
+
readonly type: "uint256";
|
|
146
|
+
}];
|
|
147
|
+
readonly payable: false;
|
|
148
|
+
readonly stateMutability: "view";
|
|
149
|
+
readonly type: "function";
|
|
150
|
+
}, {
|
|
151
|
+
readonly inputs: readonly [{
|
|
152
|
+
readonly name: "_initialAmount";
|
|
153
|
+
readonly type: "uint256";
|
|
154
|
+
}, {
|
|
155
|
+
readonly name: "_tokenName";
|
|
156
|
+
readonly type: "string";
|
|
157
|
+
}, {
|
|
158
|
+
readonly name: "_decimalUnits";
|
|
159
|
+
readonly type: "uint8";
|
|
160
|
+
}, {
|
|
161
|
+
readonly name: "_tokenSymbol";
|
|
162
|
+
readonly type: "string";
|
|
163
|
+
}];
|
|
164
|
+
readonly stateMutability: "nonpayable";
|
|
165
|
+
readonly type: "constructor";
|
|
166
|
+
}, {
|
|
167
|
+
readonly payable: false;
|
|
168
|
+
readonly stateMutability: "nonpayable";
|
|
169
|
+
readonly type: "fallback";
|
|
170
|
+
}];
|
|
171
|
+
export declare const erc721Abi: readonly [{
|
|
172
|
+
readonly constant: true;
|
|
173
|
+
readonly inputs: readonly [{
|
|
174
|
+
readonly name: "interfaceID";
|
|
175
|
+
readonly type: "bytes4";
|
|
176
|
+
}];
|
|
177
|
+
readonly name: "supportsInterface";
|
|
178
|
+
readonly outputs: readonly [{
|
|
179
|
+
readonly name: "";
|
|
180
|
+
readonly type: "bool";
|
|
181
|
+
}];
|
|
182
|
+
readonly payable: false;
|
|
183
|
+
readonly stateMutability: "view";
|
|
184
|
+
readonly type: "function";
|
|
185
|
+
}, {
|
|
186
|
+
readonly constant: true;
|
|
187
|
+
readonly inputs: readonly [];
|
|
188
|
+
readonly name: "name";
|
|
189
|
+
readonly outputs: readonly [{
|
|
190
|
+
readonly name: "_name";
|
|
191
|
+
readonly type: "string";
|
|
192
|
+
}];
|
|
193
|
+
readonly payable: false;
|
|
194
|
+
readonly stateMutability: "view";
|
|
195
|
+
readonly type: "function";
|
|
196
|
+
}, {
|
|
197
|
+
readonly constant: true;
|
|
198
|
+
readonly inputs: readonly [{
|
|
199
|
+
readonly name: "_tokenId";
|
|
200
|
+
readonly type: "uint256";
|
|
201
|
+
}];
|
|
202
|
+
readonly name: "getApproved";
|
|
203
|
+
readonly outputs: readonly [{
|
|
204
|
+
readonly name: "";
|
|
205
|
+
readonly type: "address";
|
|
206
|
+
}];
|
|
207
|
+
readonly payable: false;
|
|
208
|
+
readonly stateMutability: "view";
|
|
209
|
+
readonly type: "function";
|
|
210
|
+
}, {
|
|
211
|
+
readonly constant: false;
|
|
212
|
+
readonly inputs: readonly [{
|
|
213
|
+
readonly name: "_approved";
|
|
214
|
+
readonly type: "address";
|
|
215
|
+
}, {
|
|
216
|
+
readonly name: "_tokenId";
|
|
217
|
+
readonly type: "uint256";
|
|
218
|
+
}];
|
|
219
|
+
readonly name: "approve";
|
|
220
|
+
readonly outputs: readonly [];
|
|
221
|
+
readonly payable: true;
|
|
222
|
+
readonly stateMutability: "payable";
|
|
223
|
+
readonly type: "function";
|
|
224
|
+
}, {
|
|
225
|
+
readonly constant: true;
|
|
226
|
+
readonly inputs: readonly [];
|
|
227
|
+
readonly name: "totalSupply";
|
|
228
|
+
readonly outputs: readonly [{
|
|
229
|
+
readonly name: "";
|
|
230
|
+
readonly type: "uint256";
|
|
231
|
+
}];
|
|
232
|
+
readonly payable: false;
|
|
233
|
+
readonly stateMutability: "view";
|
|
234
|
+
readonly type: "function";
|
|
235
|
+
}, {
|
|
236
|
+
readonly constant: false;
|
|
237
|
+
readonly inputs: readonly [{
|
|
238
|
+
readonly name: "_from";
|
|
239
|
+
readonly type: "address";
|
|
240
|
+
}, {
|
|
241
|
+
readonly name: "_to";
|
|
242
|
+
readonly type: "address";
|
|
243
|
+
}, {
|
|
244
|
+
readonly name: "_tokenId";
|
|
245
|
+
readonly type: "uint256";
|
|
246
|
+
}];
|
|
247
|
+
readonly name: "transferFrom";
|
|
248
|
+
readonly outputs: readonly [];
|
|
249
|
+
readonly payable: true;
|
|
250
|
+
readonly stateMutability: "payable";
|
|
251
|
+
readonly type: "function";
|
|
252
|
+
}, {
|
|
253
|
+
readonly constant: true;
|
|
254
|
+
readonly inputs: readonly [{
|
|
255
|
+
readonly name: "_owner";
|
|
256
|
+
readonly type: "address";
|
|
257
|
+
}, {
|
|
258
|
+
readonly name: "_index";
|
|
259
|
+
readonly type: "uint256";
|
|
260
|
+
}];
|
|
261
|
+
readonly name: "tokenOfOwnerByIndex";
|
|
262
|
+
readonly outputs: readonly [{
|
|
263
|
+
readonly name: "";
|
|
264
|
+
readonly type: "uint256";
|
|
265
|
+
}];
|
|
266
|
+
readonly payable: false;
|
|
267
|
+
readonly stateMutability: "view";
|
|
268
|
+
readonly type: "function";
|
|
269
|
+
}, {
|
|
270
|
+
readonly constant: false;
|
|
271
|
+
readonly inputs: readonly [{
|
|
272
|
+
readonly name: "_from";
|
|
273
|
+
readonly type: "address";
|
|
274
|
+
}, {
|
|
275
|
+
readonly name: "_to";
|
|
276
|
+
readonly type: "address";
|
|
277
|
+
}, {
|
|
278
|
+
readonly name: "_tokenId";
|
|
279
|
+
readonly type: "uint256";
|
|
280
|
+
}];
|
|
281
|
+
readonly name: "safeTransferFrom";
|
|
282
|
+
readonly outputs: readonly [];
|
|
283
|
+
readonly payable: true;
|
|
284
|
+
readonly stateMutability: "payable";
|
|
285
|
+
readonly type: "function";
|
|
286
|
+
}, {
|
|
287
|
+
readonly constant: true;
|
|
288
|
+
readonly inputs: readonly [{
|
|
289
|
+
readonly name: "_index";
|
|
290
|
+
readonly type: "uint256";
|
|
291
|
+
}];
|
|
292
|
+
readonly name: "tokenByIndex";
|
|
293
|
+
readonly outputs: readonly [{
|
|
294
|
+
readonly name: "";
|
|
295
|
+
readonly type: "uint256";
|
|
296
|
+
}];
|
|
297
|
+
readonly payable: false;
|
|
298
|
+
readonly stateMutability: "view";
|
|
299
|
+
readonly type: "function";
|
|
300
|
+
}, {
|
|
301
|
+
readonly constant: true;
|
|
302
|
+
readonly inputs: readonly [{
|
|
303
|
+
readonly name: "_tokenId";
|
|
304
|
+
readonly type: "uint256";
|
|
305
|
+
}];
|
|
306
|
+
readonly name: "ownerOf";
|
|
307
|
+
readonly outputs: readonly [{
|
|
308
|
+
readonly name: "";
|
|
309
|
+
readonly type: "address";
|
|
310
|
+
}];
|
|
311
|
+
readonly payable: false;
|
|
312
|
+
readonly stateMutability: "view";
|
|
313
|
+
readonly type: "function";
|
|
314
|
+
}, {
|
|
315
|
+
readonly constant: true;
|
|
316
|
+
readonly inputs: readonly [{
|
|
317
|
+
readonly name: "_owner";
|
|
318
|
+
readonly type: "address";
|
|
319
|
+
}];
|
|
320
|
+
readonly name: "balanceOf";
|
|
321
|
+
readonly outputs: readonly [{
|
|
322
|
+
readonly name: "";
|
|
323
|
+
readonly type: "uint256";
|
|
324
|
+
}];
|
|
325
|
+
readonly payable: false;
|
|
326
|
+
readonly stateMutability: "view";
|
|
327
|
+
readonly type: "function";
|
|
328
|
+
}, {
|
|
329
|
+
readonly constant: true;
|
|
330
|
+
readonly inputs: readonly [];
|
|
331
|
+
readonly name: "symbol";
|
|
332
|
+
readonly outputs: readonly [{
|
|
333
|
+
readonly name: "_symbol";
|
|
334
|
+
readonly type: "string";
|
|
335
|
+
}];
|
|
336
|
+
readonly payable: false;
|
|
337
|
+
readonly stateMutability: "view";
|
|
338
|
+
readonly type: "function";
|
|
339
|
+
}, {
|
|
340
|
+
readonly constant: true;
|
|
341
|
+
readonly inputs: readonly [{
|
|
342
|
+
readonly name: "_tokenId";
|
|
343
|
+
readonly type: "uint256";
|
|
344
|
+
}];
|
|
345
|
+
readonly name: "tokenURI";
|
|
346
|
+
readonly outputs: readonly [{
|
|
347
|
+
readonly name: "";
|
|
348
|
+
readonly type: "string";
|
|
349
|
+
}];
|
|
350
|
+
readonly payable: false;
|
|
351
|
+
readonly stateMutability: "view";
|
|
352
|
+
readonly type: "function";
|
|
353
|
+
}];
|
|
354
|
+
export declare const erc1155Abi: readonly [{
|
|
355
|
+
readonly inputs: readonly [{
|
|
356
|
+
readonly internalType: "address";
|
|
357
|
+
readonly name: "_owner";
|
|
358
|
+
readonly type: "address";
|
|
359
|
+
}, {
|
|
360
|
+
readonly internalType: "uint256";
|
|
361
|
+
readonly name: "_id";
|
|
362
|
+
readonly type: "uint256";
|
|
363
|
+
}];
|
|
364
|
+
readonly name: "balanceOf";
|
|
365
|
+
readonly outputs: readonly [{
|
|
366
|
+
readonly internalType: "uint256";
|
|
367
|
+
readonly name: "";
|
|
368
|
+
readonly type: "uint256";
|
|
369
|
+
}];
|
|
370
|
+
readonly stateMutability: "view";
|
|
371
|
+
readonly type: "function";
|
|
372
|
+
}, {
|
|
373
|
+
readonly inputs: readonly [{
|
|
374
|
+
readonly internalType: "address[]";
|
|
375
|
+
readonly name: "_owners";
|
|
376
|
+
readonly type: "address[]";
|
|
377
|
+
}, {
|
|
378
|
+
readonly internalType: "uint256[]";
|
|
379
|
+
readonly name: "_ids";
|
|
380
|
+
readonly type: "uint256[]";
|
|
381
|
+
}];
|
|
382
|
+
readonly name: "balanceOfBatch";
|
|
383
|
+
readonly outputs: readonly [{
|
|
384
|
+
readonly internalType: "uint256[]";
|
|
385
|
+
readonly name: "";
|
|
386
|
+
readonly type: "uint256[]";
|
|
387
|
+
}];
|
|
388
|
+
readonly stateMutability: "view";
|
|
389
|
+
readonly type: "function";
|
|
390
|
+
}, {
|
|
391
|
+
readonly inputs: readonly [{
|
|
392
|
+
readonly internalType: "address";
|
|
393
|
+
readonly name: "_owner";
|
|
394
|
+
readonly type: "address";
|
|
395
|
+
}, {
|
|
396
|
+
readonly internalType: "address";
|
|
397
|
+
readonly name: "_operator";
|
|
398
|
+
readonly type: "address";
|
|
399
|
+
}];
|
|
400
|
+
readonly name: "isApprovedForAll";
|
|
401
|
+
readonly outputs: readonly [{
|
|
402
|
+
readonly internalType: "bool";
|
|
403
|
+
readonly name: "isOperator";
|
|
404
|
+
readonly type: "bool";
|
|
405
|
+
}];
|
|
406
|
+
readonly stateMutability: "view";
|
|
407
|
+
readonly type: "function";
|
|
408
|
+
}, {
|
|
409
|
+
readonly inputs: readonly [{
|
|
410
|
+
readonly internalType: "address";
|
|
411
|
+
readonly name: "_from";
|
|
412
|
+
readonly type: "address";
|
|
413
|
+
}, {
|
|
414
|
+
readonly internalType: "address";
|
|
415
|
+
readonly name: "_to";
|
|
416
|
+
readonly type: "address";
|
|
417
|
+
}, {
|
|
418
|
+
readonly internalType: "uint256";
|
|
419
|
+
readonly name: "_id";
|
|
420
|
+
readonly type: "uint256";
|
|
421
|
+
}, {
|
|
422
|
+
readonly internalType: "uint256";
|
|
423
|
+
readonly name: "_amount";
|
|
424
|
+
readonly type: "uint256";
|
|
425
|
+
}, {
|
|
426
|
+
readonly internalType: "bytes";
|
|
427
|
+
readonly name: "_data";
|
|
428
|
+
readonly type: "bytes";
|
|
429
|
+
}];
|
|
430
|
+
readonly name: "safeTransferFrom";
|
|
431
|
+
readonly outputs: readonly [];
|
|
432
|
+
readonly stateMutability: "nonpayable";
|
|
433
|
+
readonly type: "function";
|
|
434
|
+
}, {
|
|
435
|
+
readonly inputs: readonly [{
|
|
436
|
+
readonly internalType: "address";
|
|
437
|
+
readonly name: "_operator";
|
|
438
|
+
readonly type: "address";
|
|
439
|
+
}, {
|
|
440
|
+
readonly internalType: "bool";
|
|
441
|
+
readonly name: "_approved";
|
|
442
|
+
readonly type: "bool";
|
|
443
|
+
}];
|
|
444
|
+
readonly name: "setApprovalForAll";
|
|
445
|
+
readonly outputs: readonly [];
|
|
446
|
+
readonly stateMutability: "nonpayable";
|
|
447
|
+
readonly type: "function";
|
|
448
|
+
}, {
|
|
449
|
+
readonly inputs: readonly [{
|
|
450
|
+
readonly internalType: "bytes4";
|
|
451
|
+
readonly name: "_interfaceID";
|
|
452
|
+
readonly type: "bytes4";
|
|
453
|
+
}];
|
|
454
|
+
readonly name: "supportsInterface";
|
|
455
|
+
readonly outputs: readonly [{
|
|
456
|
+
readonly internalType: "bool";
|
|
457
|
+
readonly name: "";
|
|
458
|
+
readonly type: "bool";
|
|
459
|
+
}];
|
|
460
|
+
readonly stateMutability: "pure";
|
|
461
|
+
readonly type: "function";
|
|
462
|
+
}, {
|
|
463
|
+
readonly inputs: readonly [{
|
|
464
|
+
readonly internalType: "uint256";
|
|
465
|
+
readonly name: "_id";
|
|
466
|
+
readonly type: "uint256";
|
|
467
|
+
}];
|
|
468
|
+
readonly name: "uri";
|
|
469
|
+
readonly outputs: readonly [{
|
|
470
|
+
readonly internalType: "string";
|
|
471
|
+
readonly name: "";
|
|
472
|
+
readonly type: "string";
|
|
473
|
+
}];
|
|
474
|
+
readonly stateMutability: "view";
|
|
475
|
+
readonly type: "function";
|
|
476
|
+
}];
|
|
477
|
+
export declare const singleBalanceCheckerAbi: readonly [{
|
|
478
|
+
readonly payable: true;
|
|
479
|
+
readonly stateMutability: "payable";
|
|
480
|
+
readonly type: "fallback";
|
|
481
|
+
}, {
|
|
482
|
+
readonly constant: true;
|
|
483
|
+
readonly inputs: readonly [{
|
|
484
|
+
readonly name: "user";
|
|
485
|
+
readonly type: "address";
|
|
486
|
+
}, {
|
|
487
|
+
readonly name: "token";
|
|
488
|
+
readonly type: "address";
|
|
489
|
+
}];
|
|
490
|
+
readonly name: "tokenBalance";
|
|
491
|
+
readonly outputs: readonly [{
|
|
492
|
+
readonly name: "";
|
|
493
|
+
readonly type: "uint256";
|
|
494
|
+
}];
|
|
495
|
+
readonly payable: false;
|
|
496
|
+
readonly stateMutability: "view";
|
|
497
|
+
readonly type: "function";
|
|
498
|
+
}, {
|
|
499
|
+
readonly constant: true;
|
|
500
|
+
readonly inputs: readonly [{
|
|
501
|
+
readonly name: "users";
|
|
502
|
+
readonly type: "address[]";
|
|
503
|
+
}, {
|
|
504
|
+
readonly name: "tokens";
|
|
505
|
+
readonly type: "address[]";
|
|
506
|
+
}];
|
|
507
|
+
readonly name: "balances";
|
|
508
|
+
readonly outputs: readonly [{
|
|
509
|
+
readonly name: "";
|
|
510
|
+
readonly type: "uint256[]";
|
|
511
|
+
}];
|
|
512
|
+
readonly payable: false;
|
|
513
|
+
readonly stateMutability: "view";
|
|
514
|
+
readonly type: "function";
|
|
515
|
+
}];
|
|
516
|
+
export declare const erc7821Abi: readonly [{
|
|
517
|
+
readonly type: "function";
|
|
518
|
+
readonly name: "execute";
|
|
519
|
+
readonly inputs: readonly [{
|
|
520
|
+
readonly name: "mode";
|
|
521
|
+
readonly type: "bytes32";
|
|
522
|
+
readonly internalType: "ModeCode";
|
|
523
|
+
}, {
|
|
524
|
+
readonly name: "executionData";
|
|
525
|
+
readonly type: "bytes";
|
|
526
|
+
readonly internalType: "bytes";
|
|
527
|
+
}];
|
|
528
|
+
readonly outputs: readonly [];
|
|
529
|
+
readonly stateMutability: "payable";
|
|
530
|
+
}, {
|
|
531
|
+
readonly type: "function";
|
|
532
|
+
readonly name: "supportsExecutionMode";
|
|
533
|
+
readonly inputs: readonly [{
|
|
534
|
+
readonly name: "mode";
|
|
535
|
+
readonly type: "bytes32";
|
|
536
|
+
readonly internalType: "ModeCode";
|
|
537
|
+
}];
|
|
538
|
+
readonly outputs: readonly [{
|
|
539
|
+
readonly name: "";
|
|
540
|
+
readonly type: "bool";
|
|
541
|
+
readonly internalType: "bool";
|
|
542
|
+
}];
|
|
543
|
+
readonly stateMutability: "view";
|
|
544
|
+
}];
|
|
@@ -5,7 +5,6 @@ export declare const EIP_5792_METHODS: {
|
|
|
5
5
|
readonly WALLET_GET_CALLS_STATUS: "wallet_getCallsStatus";
|
|
6
6
|
readonly WALLET_SHOW_CALLS_STATUS: "wallet_showCallsStatus";
|
|
7
7
|
};
|
|
8
|
-
export declare const SUPPORTED_EIP_5792_VERSIONS: readonly ["1.0", "2.0"];
|
|
9
8
|
/**
|
|
10
9
|
* A single call in a batch (EIP-5792)
|
|
11
10
|
*/
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Hex } from "viem";
|
|
2
|
+
/**
|
|
3
|
+
* Removes '0x' from a given `String` if present
|
|
4
|
+
*/
|
|
5
|
+
export declare const stripHexPrefix: (str: string) => string;
|
|
6
|
+
/**
|
|
7
|
+
* Adds "0x" to a given `string` if it does not already start with "0x".
|
|
8
|
+
*/
|
|
9
|
+
export declare const addHexPrefix: (str: string) => Hex;
|