@gitmyabi/walletsimple 1.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/README.md +108 -0
- package/contracts/WalletSimple_json.d.ts +1117 -0
- package/contracts/WalletSimple_json.js +1099 -0
- package/contracts/WalletSimple_json.ts +1459 -0
- package/contracts/index.d.ts +2 -0
- package/contracts/index.js +7 -0
- package/contracts/index.ts +3 -0
- package/index.d.ts +1 -0
- package/index.js +19 -0
- package/package.json +43 -0
|
@@ -0,0 +1,1117 @@
|
|
|
1
|
+
import type { Address, PublicClient, WalletClient } from 'viem';
|
|
2
|
+
/**
|
|
3
|
+
* WalletSimple_json ABI
|
|
4
|
+
*
|
|
5
|
+
* This ABI is typed using viem's type system for full type safety.
|
|
6
|
+
*/
|
|
7
|
+
export declare const WalletSimple_jsonAbi: readonly [{
|
|
8
|
+
readonly anonymous: false;
|
|
9
|
+
readonly inputs: readonly [{
|
|
10
|
+
readonly indexed: false;
|
|
11
|
+
readonly internalType: "address";
|
|
12
|
+
readonly name: "msgSender";
|
|
13
|
+
readonly type: "address";
|
|
14
|
+
}, {
|
|
15
|
+
readonly indexed: false;
|
|
16
|
+
readonly internalType: "address";
|
|
17
|
+
readonly name: "otherSigner";
|
|
18
|
+
readonly type: "address";
|
|
19
|
+
}, {
|
|
20
|
+
readonly indexed: false;
|
|
21
|
+
readonly internalType: "bytes32";
|
|
22
|
+
readonly name: "operation";
|
|
23
|
+
readonly type: "bytes32";
|
|
24
|
+
}];
|
|
25
|
+
readonly name: "BatchTransacted";
|
|
26
|
+
readonly type: "event";
|
|
27
|
+
}, {
|
|
28
|
+
readonly anonymous: false;
|
|
29
|
+
readonly inputs: readonly [{
|
|
30
|
+
readonly indexed: false;
|
|
31
|
+
readonly internalType: "address";
|
|
32
|
+
readonly name: "sender";
|
|
33
|
+
readonly type: "address";
|
|
34
|
+
}, {
|
|
35
|
+
readonly indexed: false;
|
|
36
|
+
readonly internalType: "address";
|
|
37
|
+
readonly name: "recipient";
|
|
38
|
+
readonly type: "address";
|
|
39
|
+
}, {
|
|
40
|
+
readonly indexed: false;
|
|
41
|
+
readonly internalType: "uint256";
|
|
42
|
+
readonly name: "value";
|
|
43
|
+
readonly type: "uint256";
|
|
44
|
+
}];
|
|
45
|
+
readonly name: "BatchTransfer";
|
|
46
|
+
readonly type: "event";
|
|
47
|
+
}, {
|
|
48
|
+
readonly anonymous: false;
|
|
49
|
+
readonly inputs: readonly [{
|
|
50
|
+
readonly indexed: false;
|
|
51
|
+
readonly internalType: "address";
|
|
52
|
+
readonly name: "from";
|
|
53
|
+
readonly type: "address";
|
|
54
|
+
}, {
|
|
55
|
+
readonly indexed: false;
|
|
56
|
+
readonly internalType: "uint256";
|
|
57
|
+
readonly name: "value";
|
|
58
|
+
readonly type: "uint256";
|
|
59
|
+
}, {
|
|
60
|
+
readonly indexed: false;
|
|
61
|
+
readonly internalType: "bytes";
|
|
62
|
+
readonly name: "data";
|
|
63
|
+
readonly type: "bytes";
|
|
64
|
+
}];
|
|
65
|
+
readonly name: "Deposited";
|
|
66
|
+
readonly type: "event";
|
|
67
|
+
}, {
|
|
68
|
+
readonly anonymous: false;
|
|
69
|
+
readonly inputs: readonly [{
|
|
70
|
+
readonly indexed: false;
|
|
71
|
+
readonly internalType: "address";
|
|
72
|
+
readonly name: "msgSender";
|
|
73
|
+
readonly type: "address";
|
|
74
|
+
}];
|
|
75
|
+
readonly name: "SafeModeActivated";
|
|
76
|
+
readonly type: "event";
|
|
77
|
+
}, {
|
|
78
|
+
readonly anonymous: false;
|
|
79
|
+
readonly inputs: readonly [{
|
|
80
|
+
readonly indexed: false;
|
|
81
|
+
readonly internalType: "address";
|
|
82
|
+
readonly name: "msgSender";
|
|
83
|
+
readonly type: "address";
|
|
84
|
+
}, {
|
|
85
|
+
readonly indexed: false;
|
|
86
|
+
readonly internalType: "address";
|
|
87
|
+
readonly name: "otherSigner";
|
|
88
|
+
readonly type: "address";
|
|
89
|
+
}, {
|
|
90
|
+
readonly indexed: false;
|
|
91
|
+
readonly internalType: "bytes32";
|
|
92
|
+
readonly name: "operation";
|
|
93
|
+
readonly type: "bytes32";
|
|
94
|
+
}, {
|
|
95
|
+
readonly indexed: false;
|
|
96
|
+
readonly internalType: "address";
|
|
97
|
+
readonly name: "toAddress";
|
|
98
|
+
readonly type: "address";
|
|
99
|
+
}, {
|
|
100
|
+
readonly indexed: false;
|
|
101
|
+
readonly internalType: "uint256";
|
|
102
|
+
readonly name: "value";
|
|
103
|
+
readonly type: "uint256";
|
|
104
|
+
}, {
|
|
105
|
+
readonly indexed: false;
|
|
106
|
+
readonly internalType: "bytes";
|
|
107
|
+
readonly name: "data";
|
|
108
|
+
readonly type: "bytes";
|
|
109
|
+
}];
|
|
110
|
+
readonly name: "Transacted";
|
|
111
|
+
readonly type: "event";
|
|
112
|
+
}, {
|
|
113
|
+
readonly stateMutability: "payable";
|
|
114
|
+
readonly type: "fallback";
|
|
115
|
+
}, {
|
|
116
|
+
readonly inputs: readonly [];
|
|
117
|
+
readonly name: "activateSafeMode";
|
|
118
|
+
readonly outputs: readonly [];
|
|
119
|
+
readonly stateMutability: "nonpayable";
|
|
120
|
+
readonly type: "function";
|
|
121
|
+
}, {
|
|
122
|
+
readonly inputs: readonly [{
|
|
123
|
+
readonly internalType: "address payable";
|
|
124
|
+
readonly name: "forwarderAddress";
|
|
125
|
+
readonly type: "address";
|
|
126
|
+
}, {
|
|
127
|
+
readonly internalType: "address";
|
|
128
|
+
readonly name: "tokenContractAddress";
|
|
129
|
+
readonly type: "address";
|
|
130
|
+
}, {
|
|
131
|
+
readonly internalType: "uint256[]";
|
|
132
|
+
readonly name: "tokenIds";
|
|
133
|
+
readonly type: "uint256[]";
|
|
134
|
+
}];
|
|
135
|
+
readonly name: "batchFlushERC1155ForwarderTokens";
|
|
136
|
+
readonly outputs: readonly [];
|
|
137
|
+
readonly stateMutability: "nonpayable";
|
|
138
|
+
readonly type: "function";
|
|
139
|
+
}, {
|
|
140
|
+
readonly inputs: readonly [{
|
|
141
|
+
readonly internalType: "address payable";
|
|
142
|
+
readonly name: "forwarderAddress";
|
|
143
|
+
readonly type: "address";
|
|
144
|
+
}, {
|
|
145
|
+
readonly internalType: "address";
|
|
146
|
+
readonly name: "tokenContractAddress";
|
|
147
|
+
readonly type: "address";
|
|
148
|
+
}, {
|
|
149
|
+
readonly internalType: "uint256";
|
|
150
|
+
readonly name: "tokenId";
|
|
151
|
+
readonly type: "uint256";
|
|
152
|
+
}];
|
|
153
|
+
readonly name: "flushERC1155ForwarderTokens";
|
|
154
|
+
readonly outputs: readonly [];
|
|
155
|
+
readonly stateMutability: "nonpayable";
|
|
156
|
+
readonly type: "function";
|
|
157
|
+
}, {
|
|
158
|
+
readonly inputs: readonly [{
|
|
159
|
+
readonly internalType: "address payable";
|
|
160
|
+
readonly name: "forwarderAddress";
|
|
161
|
+
readonly type: "address";
|
|
162
|
+
}, {
|
|
163
|
+
readonly internalType: "address";
|
|
164
|
+
readonly name: "tokenContractAddress";
|
|
165
|
+
readonly type: "address";
|
|
166
|
+
}, {
|
|
167
|
+
readonly internalType: "uint256";
|
|
168
|
+
readonly name: "tokenId";
|
|
169
|
+
readonly type: "uint256";
|
|
170
|
+
}];
|
|
171
|
+
readonly name: "flushERC721ForwarderTokens";
|
|
172
|
+
readonly outputs: readonly [];
|
|
173
|
+
readonly stateMutability: "nonpayable";
|
|
174
|
+
readonly type: "function";
|
|
175
|
+
}, {
|
|
176
|
+
readonly inputs: readonly [{
|
|
177
|
+
readonly internalType: "address payable";
|
|
178
|
+
readonly name: "forwarderAddress";
|
|
179
|
+
readonly type: "address";
|
|
180
|
+
}, {
|
|
181
|
+
readonly internalType: "address";
|
|
182
|
+
readonly name: "tokenContractAddress";
|
|
183
|
+
readonly type: "address";
|
|
184
|
+
}];
|
|
185
|
+
readonly name: "flushForwarderTokens";
|
|
186
|
+
readonly outputs: readonly [];
|
|
187
|
+
readonly stateMutability: "nonpayable";
|
|
188
|
+
readonly type: "function";
|
|
189
|
+
}, {
|
|
190
|
+
readonly inputs: readonly [];
|
|
191
|
+
readonly name: "getNextSequenceId";
|
|
192
|
+
readonly outputs: readonly [{
|
|
193
|
+
readonly internalType: "uint256";
|
|
194
|
+
readonly name: "";
|
|
195
|
+
readonly type: "uint256";
|
|
196
|
+
}];
|
|
197
|
+
readonly stateMutability: "view";
|
|
198
|
+
readonly type: "function";
|
|
199
|
+
}, {
|
|
200
|
+
readonly inputs: readonly [{
|
|
201
|
+
readonly internalType: "address[]";
|
|
202
|
+
readonly name: "allowedSigners";
|
|
203
|
+
readonly type: "address[]";
|
|
204
|
+
}];
|
|
205
|
+
readonly name: "init";
|
|
206
|
+
readonly outputs: readonly [];
|
|
207
|
+
readonly stateMutability: "nonpayable";
|
|
208
|
+
readonly type: "function";
|
|
209
|
+
}, {
|
|
210
|
+
readonly inputs: readonly [];
|
|
211
|
+
readonly name: "initialized";
|
|
212
|
+
readonly outputs: readonly [{
|
|
213
|
+
readonly internalType: "bool";
|
|
214
|
+
readonly name: "";
|
|
215
|
+
readonly type: "bool";
|
|
216
|
+
}];
|
|
217
|
+
readonly stateMutability: "view";
|
|
218
|
+
readonly type: "function";
|
|
219
|
+
}, {
|
|
220
|
+
readonly inputs: readonly [{
|
|
221
|
+
readonly internalType: "address";
|
|
222
|
+
readonly name: "signer";
|
|
223
|
+
readonly type: "address";
|
|
224
|
+
}];
|
|
225
|
+
readonly name: "isSigner";
|
|
226
|
+
readonly outputs: readonly [{
|
|
227
|
+
readonly internalType: "bool";
|
|
228
|
+
readonly name: "";
|
|
229
|
+
readonly type: "bool";
|
|
230
|
+
}];
|
|
231
|
+
readonly stateMutability: "view";
|
|
232
|
+
readonly type: "function";
|
|
233
|
+
}, {
|
|
234
|
+
readonly inputs: readonly [{
|
|
235
|
+
readonly internalType: "address";
|
|
236
|
+
readonly name: "_operator";
|
|
237
|
+
readonly type: "address";
|
|
238
|
+
}, {
|
|
239
|
+
readonly internalType: "address";
|
|
240
|
+
readonly name: "_from";
|
|
241
|
+
readonly type: "address";
|
|
242
|
+
}, {
|
|
243
|
+
readonly internalType: "uint256[]";
|
|
244
|
+
readonly name: "ids";
|
|
245
|
+
readonly type: "uint256[]";
|
|
246
|
+
}, {
|
|
247
|
+
readonly internalType: "uint256[]";
|
|
248
|
+
readonly name: "values";
|
|
249
|
+
readonly type: "uint256[]";
|
|
250
|
+
}, {
|
|
251
|
+
readonly internalType: "bytes";
|
|
252
|
+
readonly name: "data";
|
|
253
|
+
readonly type: "bytes";
|
|
254
|
+
}];
|
|
255
|
+
readonly name: "onERC1155BatchReceived";
|
|
256
|
+
readonly outputs: readonly [{
|
|
257
|
+
readonly internalType: "bytes4";
|
|
258
|
+
readonly name: "";
|
|
259
|
+
readonly type: "bytes4";
|
|
260
|
+
}];
|
|
261
|
+
readonly stateMutability: "nonpayable";
|
|
262
|
+
readonly type: "function";
|
|
263
|
+
}, {
|
|
264
|
+
readonly inputs: readonly [{
|
|
265
|
+
readonly internalType: "address";
|
|
266
|
+
readonly name: "_operator";
|
|
267
|
+
readonly type: "address";
|
|
268
|
+
}, {
|
|
269
|
+
readonly internalType: "address";
|
|
270
|
+
readonly name: "_from";
|
|
271
|
+
readonly type: "address";
|
|
272
|
+
}, {
|
|
273
|
+
readonly internalType: "uint256";
|
|
274
|
+
readonly name: "id";
|
|
275
|
+
readonly type: "uint256";
|
|
276
|
+
}, {
|
|
277
|
+
readonly internalType: "uint256";
|
|
278
|
+
readonly name: "value";
|
|
279
|
+
readonly type: "uint256";
|
|
280
|
+
}, {
|
|
281
|
+
readonly internalType: "bytes";
|
|
282
|
+
readonly name: "data";
|
|
283
|
+
readonly type: "bytes";
|
|
284
|
+
}];
|
|
285
|
+
readonly name: "onERC1155Received";
|
|
286
|
+
readonly outputs: readonly [{
|
|
287
|
+
readonly internalType: "bytes4";
|
|
288
|
+
readonly name: "";
|
|
289
|
+
readonly type: "bytes4";
|
|
290
|
+
}];
|
|
291
|
+
readonly stateMutability: "nonpayable";
|
|
292
|
+
readonly type: "function";
|
|
293
|
+
}, {
|
|
294
|
+
readonly inputs: readonly [{
|
|
295
|
+
readonly internalType: "address";
|
|
296
|
+
readonly name: "_operator";
|
|
297
|
+
readonly type: "address";
|
|
298
|
+
}, {
|
|
299
|
+
readonly internalType: "address";
|
|
300
|
+
readonly name: "_from";
|
|
301
|
+
readonly type: "address";
|
|
302
|
+
}, {
|
|
303
|
+
readonly internalType: "uint256";
|
|
304
|
+
readonly name: "_tokenId";
|
|
305
|
+
readonly type: "uint256";
|
|
306
|
+
}, {
|
|
307
|
+
readonly internalType: "bytes";
|
|
308
|
+
readonly name: "_data";
|
|
309
|
+
readonly type: "bytes";
|
|
310
|
+
}];
|
|
311
|
+
readonly name: "onERC721Received";
|
|
312
|
+
readonly outputs: readonly [{
|
|
313
|
+
readonly internalType: "bytes4";
|
|
314
|
+
readonly name: "";
|
|
315
|
+
readonly type: "bytes4";
|
|
316
|
+
}];
|
|
317
|
+
readonly stateMutability: "nonpayable";
|
|
318
|
+
readonly type: "function";
|
|
319
|
+
}, {
|
|
320
|
+
readonly inputs: readonly [];
|
|
321
|
+
readonly name: "safeMode";
|
|
322
|
+
readonly outputs: readonly [{
|
|
323
|
+
readonly internalType: "bool";
|
|
324
|
+
readonly name: "";
|
|
325
|
+
readonly type: "bool";
|
|
326
|
+
}];
|
|
327
|
+
readonly stateMutability: "view";
|
|
328
|
+
readonly type: "function";
|
|
329
|
+
}, {
|
|
330
|
+
readonly inputs: readonly [{
|
|
331
|
+
readonly internalType: "address";
|
|
332
|
+
readonly name: "toAddress";
|
|
333
|
+
readonly type: "address";
|
|
334
|
+
}, {
|
|
335
|
+
readonly internalType: "uint256";
|
|
336
|
+
readonly name: "value";
|
|
337
|
+
readonly type: "uint256";
|
|
338
|
+
}, {
|
|
339
|
+
readonly internalType: "bytes";
|
|
340
|
+
readonly name: "data";
|
|
341
|
+
readonly type: "bytes";
|
|
342
|
+
}, {
|
|
343
|
+
readonly internalType: "uint256";
|
|
344
|
+
readonly name: "expireTime";
|
|
345
|
+
readonly type: "uint256";
|
|
346
|
+
}, {
|
|
347
|
+
readonly internalType: "uint256";
|
|
348
|
+
readonly name: "sequenceId";
|
|
349
|
+
readonly type: "uint256";
|
|
350
|
+
}, {
|
|
351
|
+
readonly internalType: "bytes";
|
|
352
|
+
readonly name: "signature";
|
|
353
|
+
readonly type: "bytes";
|
|
354
|
+
}];
|
|
355
|
+
readonly name: "sendMultiSig";
|
|
356
|
+
readonly outputs: readonly [];
|
|
357
|
+
readonly stateMutability: "nonpayable";
|
|
358
|
+
readonly type: "function";
|
|
359
|
+
}, {
|
|
360
|
+
readonly inputs: readonly [{
|
|
361
|
+
readonly internalType: "address[]";
|
|
362
|
+
readonly name: "recipients";
|
|
363
|
+
readonly type: "address[]";
|
|
364
|
+
}, {
|
|
365
|
+
readonly internalType: "uint256[]";
|
|
366
|
+
readonly name: "values";
|
|
367
|
+
readonly type: "uint256[]";
|
|
368
|
+
}, {
|
|
369
|
+
readonly internalType: "uint256";
|
|
370
|
+
readonly name: "expireTime";
|
|
371
|
+
readonly type: "uint256";
|
|
372
|
+
}, {
|
|
373
|
+
readonly internalType: "uint256";
|
|
374
|
+
readonly name: "sequenceId";
|
|
375
|
+
readonly type: "uint256";
|
|
376
|
+
}, {
|
|
377
|
+
readonly internalType: "bytes";
|
|
378
|
+
readonly name: "signature";
|
|
379
|
+
readonly type: "bytes";
|
|
380
|
+
}];
|
|
381
|
+
readonly name: "sendMultiSigBatch";
|
|
382
|
+
readonly outputs: readonly [];
|
|
383
|
+
readonly stateMutability: "nonpayable";
|
|
384
|
+
readonly type: "function";
|
|
385
|
+
}, {
|
|
386
|
+
readonly inputs: readonly [{
|
|
387
|
+
readonly internalType: "address";
|
|
388
|
+
readonly name: "toAddress";
|
|
389
|
+
readonly type: "address";
|
|
390
|
+
}, {
|
|
391
|
+
readonly internalType: "uint256";
|
|
392
|
+
readonly name: "value";
|
|
393
|
+
readonly type: "uint256";
|
|
394
|
+
}, {
|
|
395
|
+
readonly internalType: "address";
|
|
396
|
+
readonly name: "tokenContractAddress";
|
|
397
|
+
readonly type: "address";
|
|
398
|
+
}, {
|
|
399
|
+
readonly internalType: "uint256";
|
|
400
|
+
readonly name: "expireTime";
|
|
401
|
+
readonly type: "uint256";
|
|
402
|
+
}, {
|
|
403
|
+
readonly internalType: "uint256";
|
|
404
|
+
readonly name: "sequenceId";
|
|
405
|
+
readonly type: "uint256";
|
|
406
|
+
}, {
|
|
407
|
+
readonly internalType: "bytes";
|
|
408
|
+
readonly name: "signature";
|
|
409
|
+
readonly type: "bytes";
|
|
410
|
+
}];
|
|
411
|
+
readonly name: "sendMultiSigToken";
|
|
412
|
+
readonly outputs: readonly [];
|
|
413
|
+
readonly stateMutability: "nonpayable";
|
|
414
|
+
readonly type: "function";
|
|
415
|
+
}, {
|
|
416
|
+
readonly inputs: readonly [{
|
|
417
|
+
readonly internalType: "address";
|
|
418
|
+
readonly name: "forwarderAddress";
|
|
419
|
+
readonly type: "address";
|
|
420
|
+
}, {
|
|
421
|
+
readonly internalType: "bool";
|
|
422
|
+
readonly name: "autoFlush";
|
|
423
|
+
readonly type: "bool";
|
|
424
|
+
}];
|
|
425
|
+
readonly name: "setAutoFlush1155";
|
|
426
|
+
readonly outputs: readonly [];
|
|
427
|
+
readonly stateMutability: "nonpayable";
|
|
428
|
+
readonly type: "function";
|
|
429
|
+
}, {
|
|
430
|
+
readonly inputs: readonly [{
|
|
431
|
+
readonly internalType: "address";
|
|
432
|
+
readonly name: "forwarderAddress";
|
|
433
|
+
readonly type: "address";
|
|
434
|
+
}, {
|
|
435
|
+
readonly internalType: "bool";
|
|
436
|
+
readonly name: "autoFlush";
|
|
437
|
+
readonly type: "bool";
|
|
438
|
+
}];
|
|
439
|
+
readonly name: "setAutoFlush721";
|
|
440
|
+
readonly outputs: readonly [];
|
|
441
|
+
readonly stateMutability: "nonpayable";
|
|
442
|
+
readonly type: "function";
|
|
443
|
+
}, {
|
|
444
|
+
readonly inputs: readonly [{
|
|
445
|
+
readonly internalType: "address";
|
|
446
|
+
readonly name: "";
|
|
447
|
+
readonly type: "address";
|
|
448
|
+
}];
|
|
449
|
+
readonly name: "signers";
|
|
450
|
+
readonly outputs: readonly [{
|
|
451
|
+
readonly internalType: "bool";
|
|
452
|
+
readonly name: "";
|
|
453
|
+
readonly type: "bool";
|
|
454
|
+
}];
|
|
455
|
+
readonly stateMutability: "view";
|
|
456
|
+
readonly type: "function";
|
|
457
|
+
}, {
|
|
458
|
+
readonly inputs: readonly [{
|
|
459
|
+
readonly internalType: "bytes4";
|
|
460
|
+
readonly name: "interfaceId";
|
|
461
|
+
readonly type: "bytes4";
|
|
462
|
+
}];
|
|
463
|
+
readonly name: "supportsInterface";
|
|
464
|
+
readonly outputs: readonly [{
|
|
465
|
+
readonly internalType: "bool";
|
|
466
|
+
readonly name: "";
|
|
467
|
+
readonly type: "bool";
|
|
468
|
+
}];
|
|
469
|
+
readonly stateMutability: "view";
|
|
470
|
+
readonly type: "function";
|
|
471
|
+
}, {
|
|
472
|
+
readonly stateMutability: "payable";
|
|
473
|
+
readonly type: "receive";
|
|
474
|
+
}];
|
|
475
|
+
/**
|
|
476
|
+
* Type-safe ABI for WalletSimple_json
|
|
477
|
+
*/
|
|
478
|
+
export type WalletSimple_jsonAbi = typeof WalletSimple_jsonAbi;
|
|
479
|
+
/**
|
|
480
|
+
* Contract instance type for WalletSimple_json
|
|
481
|
+
*/
|
|
482
|
+
export type WalletSimple_jsonContract = any;
|
|
483
|
+
/**
|
|
484
|
+
* WalletSimple_json Contract Class
|
|
485
|
+
*
|
|
486
|
+
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
487
|
+
*
|
|
488
|
+
* @example
|
|
489
|
+
* ```typescript
|
|
490
|
+
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
491
|
+
* import { mainnet } from 'viem/chains';
|
|
492
|
+
* import { WalletSimple_json } from 'WalletSimple_json';
|
|
493
|
+
*
|
|
494
|
+
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
495
|
+
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
496
|
+
*
|
|
497
|
+
* const contract = new WalletSimple_json('0x...', { publicClient, walletClient });
|
|
498
|
+
*
|
|
499
|
+
* // Read functions
|
|
500
|
+
* const result = await contract.balanceOf('0x...');
|
|
501
|
+
*
|
|
502
|
+
* // Write functions
|
|
503
|
+
* const hash = await contract.transfer('0x...', 1000n);
|
|
504
|
+
*
|
|
505
|
+
* // Simulate transactions (dry-run)
|
|
506
|
+
* const simulation = await contract.simulate.transfer('0x...', 1000n);
|
|
507
|
+
* console.log('Gas estimate:', simulation.request.gas);
|
|
508
|
+
*
|
|
509
|
+
* // Watch events
|
|
510
|
+
* const unwatch = contract.watch.Transfer((event) => {
|
|
511
|
+
* console.log('Transfer event:', event);
|
|
512
|
+
* });
|
|
513
|
+
* ```
|
|
514
|
+
*/
|
|
515
|
+
export declare class WalletSimple_json {
|
|
516
|
+
private contract;
|
|
517
|
+
private contractAddress;
|
|
518
|
+
private publicClient;
|
|
519
|
+
constructor(address: Address, clients: {
|
|
520
|
+
publicClient: PublicClient;
|
|
521
|
+
walletClient?: WalletClient;
|
|
522
|
+
});
|
|
523
|
+
/**
|
|
524
|
+
* Get the contract address
|
|
525
|
+
*/
|
|
526
|
+
get address(): Address;
|
|
527
|
+
/**
|
|
528
|
+
* Get the underlying viem contract instance
|
|
529
|
+
*/
|
|
530
|
+
getContract(): WalletSimple_jsonContract;
|
|
531
|
+
/**
|
|
532
|
+
* getNextSequenceId
|
|
533
|
+
* view
|
|
534
|
+
*/
|
|
535
|
+
getNextSequenceId(): Promise<bigint>;
|
|
536
|
+
/**
|
|
537
|
+
* initialized
|
|
538
|
+
* view
|
|
539
|
+
*/
|
|
540
|
+
initialized(): Promise<boolean>;
|
|
541
|
+
/**
|
|
542
|
+
* isSigner
|
|
543
|
+
* view
|
|
544
|
+
*/
|
|
545
|
+
isSigner(signer: `0x${string}`): Promise<boolean>;
|
|
546
|
+
/**
|
|
547
|
+
* safeMode
|
|
548
|
+
* view
|
|
549
|
+
*/
|
|
550
|
+
safeMode(): Promise<boolean>;
|
|
551
|
+
/**
|
|
552
|
+
* signers
|
|
553
|
+
* view
|
|
554
|
+
*/
|
|
555
|
+
signers(arg0: `0x${string}`): Promise<boolean>;
|
|
556
|
+
/**
|
|
557
|
+
* supportsInterface
|
|
558
|
+
* view
|
|
559
|
+
*/
|
|
560
|
+
supportsInterface(interfaceId: `0x${string}`): Promise<boolean>;
|
|
561
|
+
/**
|
|
562
|
+
* activateSafeMode
|
|
563
|
+
* nonpayable
|
|
564
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
565
|
+
*/
|
|
566
|
+
activateSafeMode(options?: {
|
|
567
|
+
accessList?: import('viem').AccessList;
|
|
568
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
569
|
+
chain?: import('viem').Chain | null;
|
|
570
|
+
dataSuffix?: `0x${string}`;
|
|
571
|
+
gas?: bigint;
|
|
572
|
+
gasPrice?: bigint;
|
|
573
|
+
maxFeePerGas?: bigint;
|
|
574
|
+
maxPriorityFeePerGas?: bigint;
|
|
575
|
+
nonce?: number;
|
|
576
|
+
value?: bigint;
|
|
577
|
+
}): Promise<`0x${string}`>;
|
|
578
|
+
/**
|
|
579
|
+
* batchFlushERC1155ForwarderTokens
|
|
580
|
+
* nonpayable
|
|
581
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
582
|
+
*/
|
|
583
|
+
batchFlushERC1155ForwarderTokens(forwarderAddress: `0x${string}`, tokenContractAddress: `0x${string}`, tokenIds: bigint[], options?: {
|
|
584
|
+
accessList?: import('viem').AccessList;
|
|
585
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
586
|
+
chain?: import('viem').Chain | null;
|
|
587
|
+
dataSuffix?: `0x${string}`;
|
|
588
|
+
gas?: bigint;
|
|
589
|
+
gasPrice?: bigint;
|
|
590
|
+
maxFeePerGas?: bigint;
|
|
591
|
+
maxPriorityFeePerGas?: bigint;
|
|
592
|
+
nonce?: number;
|
|
593
|
+
value?: bigint;
|
|
594
|
+
}): Promise<`0x${string}`>;
|
|
595
|
+
/**
|
|
596
|
+
* flushERC1155ForwarderTokens
|
|
597
|
+
* nonpayable
|
|
598
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
599
|
+
*/
|
|
600
|
+
flushERC1155ForwarderTokens(forwarderAddress: `0x${string}`, tokenContractAddress: `0x${string}`, tokenId: bigint, options?: {
|
|
601
|
+
accessList?: import('viem').AccessList;
|
|
602
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
603
|
+
chain?: import('viem').Chain | null;
|
|
604
|
+
dataSuffix?: `0x${string}`;
|
|
605
|
+
gas?: bigint;
|
|
606
|
+
gasPrice?: bigint;
|
|
607
|
+
maxFeePerGas?: bigint;
|
|
608
|
+
maxPriorityFeePerGas?: bigint;
|
|
609
|
+
nonce?: number;
|
|
610
|
+
value?: bigint;
|
|
611
|
+
}): Promise<`0x${string}`>;
|
|
612
|
+
/**
|
|
613
|
+
* flushERC721ForwarderTokens
|
|
614
|
+
* nonpayable
|
|
615
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
616
|
+
*/
|
|
617
|
+
flushERC721ForwarderTokens(forwarderAddress: `0x${string}`, tokenContractAddress: `0x${string}`, tokenId: bigint, options?: {
|
|
618
|
+
accessList?: import('viem').AccessList;
|
|
619
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
620
|
+
chain?: import('viem').Chain | null;
|
|
621
|
+
dataSuffix?: `0x${string}`;
|
|
622
|
+
gas?: bigint;
|
|
623
|
+
gasPrice?: bigint;
|
|
624
|
+
maxFeePerGas?: bigint;
|
|
625
|
+
maxPriorityFeePerGas?: bigint;
|
|
626
|
+
nonce?: number;
|
|
627
|
+
value?: bigint;
|
|
628
|
+
}): Promise<`0x${string}`>;
|
|
629
|
+
/**
|
|
630
|
+
* flushForwarderTokens
|
|
631
|
+
* nonpayable
|
|
632
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
633
|
+
*/
|
|
634
|
+
flushForwarderTokens(forwarderAddress: `0x${string}`, tokenContractAddress: `0x${string}`, options?: {
|
|
635
|
+
accessList?: import('viem').AccessList;
|
|
636
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
637
|
+
chain?: import('viem').Chain | null;
|
|
638
|
+
dataSuffix?: `0x${string}`;
|
|
639
|
+
gas?: bigint;
|
|
640
|
+
gasPrice?: bigint;
|
|
641
|
+
maxFeePerGas?: bigint;
|
|
642
|
+
maxPriorityFeePerGas?: bigint;
|
|
643
|
+
nonce?: number;
|
|
644
|
+
value?: bigint;
|
|
645
|
+
}): Promise<`0x${string}`>;
|
|
646
|
+
/**
|
|
647
|
+
* init
|
|
648
|
+
* nonpayable
|
|
649
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
650
|
+
*/
|
|
651
|
+
init(allowedSigners: `0x${string}`[], options?: {
|
|
652
|
+
accessList?: import('viem').AccessList;
|
|
653
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
654
|
+
chain?: import('viem').Chain | null;
|
|
655
|
+
dataSuffix?: `0x${string}`;
|
|
656
|
+
gas?: bigint;
|
|
657
|
+
gasPrice?: bigint;
|
|
658
|
+
maxFeePerGas?: bigint;
|
|
659
|
+
maxPriorityFeePerGas?: bigint;
|
|
660
|
+
nonce?: number;
|
|
661
|
+
value?: bigint;
|
|
662
|
+
}): Promise<`0x${string}`>;
|
|
663
|
+
/**
|
|
664
|
+
* onERC1155BatchReceived
|
|
665
|
+
* nonpayable
|
|
666
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
667
|
+
*/
|
|
668
|
+
onERC1155BatchReceived(_operator: `0x${string}`, _from: `0x${string}`, ids: bigint[], values: bigint[], data: `0x${string}`, options?: {
|
|
669
|
+
accessList?: import('viem').AccessList;
|
|
670
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
671
|
+
chain?: import('viem').Chain | null;
|
|
672
|
+
dataSuffix?: `0x${string}`;
|
|
673
|
+
gas?: bigint;
|
|
674
|
+
gasPrice?: bigint;
|
|
675
|
+
maxFeePerGas?: bigint;
|
|
676
|
+
maxPriorityFeePerGas?: bigint;
|
|
677
|
+
nonce?: number;
|
|
678
|
+
value?: bigint;
|
|
679
|
+
}): Promise<`0x${string}`>;
|
|
680
|
+
/**
|
|
681
|
+
* onERC1155Received
|
|
682
|
+
* nonpayable
|
|
683
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
684
|
+
*/
|
|
685
|
+
onERC1155Received(_operator: `0x${string}`, _from: `0x${string}`, id: bigint, value: bigint, data: `0x${string}`, options?: {
|
|
686
|
+
accessList?: import('viem').AccessList;
|
|
687
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
688
|
+
chain?: import('viem').Chain | null;
|
|
689
|
+
dataSuffix?: `0x${string}`;
|
|
690
|
+
gas?: bigint;
|
|
691
|
+
gasPrice?: bigint;
|
|
692
|
+
maxFeePerGas?: bigint;
|
|
693
|
+
maxPriorityFeePerGas?: bigint;
|
|
694
|
+
nonce?: number;
|
|
695
|
+
value?: bigint;
|
|
696
|
+
}): Promise<`0x${string}`>;
|
|
697
|
+
/**
|
|
698
|
+
* onERC721Received
|
|
699
|
+
* nonpayable
|
|
700
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
701
|
+
*/
|
|
702
|
+
onERC721Received(_operator: `0x${string}`, _from: `0x${string}`, _tokenId: bigint, _data: `0x${string}`, options?: {
|
|
703
|
+
accessList?: import('viem').AccessList;
|
|
704
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
705
|
+
chain?: import('viem').Chain | null;
|
|
706
|
+
dataSuffix?: `0x${string}`;
|
|
707
|
+
gas?: bigint;
|
|
708
|
+
gasPrice?: bigint;
|
|
709
|
+
maxFeePerGas?: bigint;
|
|
710
|
+
maxPriorityFeePerGas?: bigint;
|
|
711
|
+
nonce?: number;
|
|
712
|
+
value?: bigint;
|
|
713
|
+
}): Promise<`0x${string}`>;
|
|
714
|
+
/**
|
|
715
|
+
* sendMultiSig
|
|
716
|
+
* nonpayable
|
|
717
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
718
|
+
*/
|
|
719
|
+
sendMultiSig(toAddress: `0x${string}`, value: bigint, data: `0x${string}`, expireTime: bigint, sequenceId: bigint, signature: `0x${string}`, options?: {
|
|
720
|
+
accessList?: import('viem').AccessList;
|
|
721
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
722
|
+
chain?: import('viem').Chain | null;
|
|
723
|
+
dataSuffix?: `0x${string}`;
|
|
724
|
+
gas?: bigint;
|
|
725
|
+
gasPrice?: bigint;
|
|
726
|
+
maxFeePerGas?: bigint;
|
|
727
|
+
maxPriorityFeePerGas?: bigint;
|
|
728
|
+
nonce?: number;
|
|
729
|
+
value?: bigint;
|
|
730
|
+
}): Promise<`0x${string}`>;
|
|
731
|
+
/**
|
|
732
|
+
* sendMultiSigBatch
|
|
733
|
+
* nonpayable
|
|
734
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
735
|
+
*/
|
|
736
|
+
sendMultiSigBatch(recipients: `0x${string}`[], values: bigint[], expireTime: bigint, sequenceId: bigint, signature: `0x${string}`, options?: {
|
|
737
|
+
accessList?: import('viem').AccessList;
|
|
738
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
739
|
+
chain?: import('viem').Chain | null;
|
|
740
|
+
dataSuffix?: `0x${string}`;
|
|
741
|
+
gas?: bigint;
|
|
742
|
+
gasPrice?: bigint;
|
|
743
|
+
maxFeePerGas?: bigint;
|
|
744
|
+
maxPriorityFeePerGas?: bigint;
|
|
745
|
+
nonce?: number;
|
|
746
|
+
value?: bigint;
|
|
747
|
+
}): Promise<`0x${string}`>;
|
|
748
|
+
/**
|
|
749
|
+
* sendMultiSigToken
|
|
750
|
+
* nonpayable
|
|
751
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
752
|
+
*/
|
|
753
|
+
sendMultiSigToken(toAddress: `0x${string}`, value: bigint, tokenContractAddress: `0x${string}`, expireTime: bigint, sequenceId: bigint, signature: `0x${string}`, options?: {
|
|
754
|
+
accessList?: import('viem').AccessList;
|
|
755
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
756
|
+
chain?: import('viem').Chain | null;
|
|
757
|
+
dataSuffix?: `0x${string}`;
|
|
758
|
+
gas?: bigint;
|
|
759
|
+
gasPrice?: bigint;
|
|
760
|
+
maxFeePerGas?: bigint;
|
|
761
|
+
maxPriorityFeePerGas?: bigint;
|
|
762
|
+
nonce?: number;
|
|
763
|
+
value?: bigint;
|
|
764
|
+
}): Promise<`0x${string}`>;
|
|
765
|
+
/**
|
|
766
|
+
* setAutoFlush1155
|
|
767
|
+
* nonpayable
|
|
768
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
769
|
+
*/
|
|
770
|
+
setAutoFlush1155(forwarderAddress: `0x${string}`, autoFlush: boolean, options?: {
|
|
771
|
+
accessList?: import('viem').AccessList;
|
|
772
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
773
|
+
chain?: import('viem').Chain | null;
|
|
774
|
+
dataSuffix?: `0x${string}`;
|
|
775
|
+
gas?: bigint;
|
|
776
|
+
gasPrice?: bigint;
|
|
777
|
+
maxFeePerGas?: bigint;
|
|
778
|
+
maxPriorityFeePerGas?: bigint;
|
|
779
|
+
nonce?: number;
|
|
780
|
+
value?: bigint;
|
|
781
|
+
}): Promise<`0x${string}`>;
|
|
782
|
+
/**
|
|
783
|
+
* setAutoFlush721
|
|
784
|
+
* nonpayable
|
|
785
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
786
|
+
*/
|
|
787
|
+
setAutoFlush721(forwarderAddress: `0x${string}`, autoFlush: boolean, options?: {
|
|
788
|
+
accessList?: import('viem').AccessList;
|
|
789
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
790
|
+
chain?: import('viem').Chain | null;
|
|
791
|
+
dataSuffix?: `0x${string}`;
|
|
792
|
+
gas?: bigint;
|
|
793
|
+
gasPrice?: bigint;
|
|
794
|
+
maxFeePerGas?: bigint;
|
|
795
|
+
maxPriorityFeePerGas?: bigint;
|
|
796
|
+
nonce?: number;
|
|
797
|
+
value?: bigint;
|
|
798
|
+
}): Promise<`0x${string}`>;
|
|
799
|
+
/**
|
|
800
|
+
* Simulate contract write operations (dry-run without sending transaction)
|
|
801
|
+
*
|
|
802
|
+
* @example
|
|
803
|
+
* const result = await contract.simulate.transfer('0x...', 1000n);
|
|
804
|
+
* console.log('Gas estimate:', result.request.gas);
|
|
805
|
+
* console.log('Would succeed:', result.result);
|
|
806
|
+
*/
|
|
807
|
+
get simulate(): {
|
|
808
|
+
/**
|
|
809
|
+
* Simulate activateSafeMode
|
|
810
|
+
* Returns gas estimate and result without sending transaction
|
|
811
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
812
|
+
*/
|
|
813
|
+
activateSafeMode(options?: {
|
|
814
|
+
accessList?: import("viem").AccessList;
|
|
815
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
816
|
+
chain?: import("viem").Chain | null;
|
|
817
|
+
dataSuffix?: `0x${string}`;
|
|
818
|
+
gas?: bigint;
|
|
819
|
+
gasPrice?: bigint;
|
|
820
|
+
maxFeePerGas?: bigint;
|
|
821
|
+
maxPriorityFeePerGas?: bigint;
|
|
822
|
+
nonce?: number;
|
|
823
|
+
value?: bigint;
|
|
824
|
+
}): Promise<void>;
|
|
825
|
+
/**
|
|
826
|
+
* Simulate batchFlushERC1155ForwarderTokens
|
|
827
|
+
* Returns gas estimate and result without sending transaction
|
|
828
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
829
|
+
*/
|
|
830
|
+
batchFlushERC1155ForwarderTokens(forwarderAddress: `0x${string}`, tokenContractAddress: `0x${string}`, tokenIds: bigint[], options?: {
|
|
831
|
+
accessList?: import("viem").AccessList;
|
|
832
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
833
|
+
chain?: import("viem").Chain | null;
|
|
834
|
+
dataSuffix?: `0x${string}`;
|
|
835
|
+
gas?: bigint;
|
|
836
|
+
gasPrice?: bigint;
|
|
837
|
+
maxFeePerGas?: bigint;
|
|
838
|
+
maxPriorityFeePerGas?: bigint;
|
|
839
|
+
nonce?: number;
|
|
840
|
+
value?: bigint;
|
|
841
|
+
}): Promise<void>;
|
|
842
|
+
/**
|
|
843
|
+
* Simulate flushERC1155ForwarderTokens
|
|
844
|
+
* Returns gas estimate and result without sending transaction
|
|
845
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
846
|
+
*/
|
|
847
|
+
flushERC1155ForwarderTokens(forwarderAddress: `0x${string}`, tokenContractAddress: `0x${string}`, tokenId: bigint, options?: {
|
|
848
|
+
accessList?: import("viem").AccessList;
|
|
849
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
850
|
+
chain?: import("viem").Chain | null;
|
|
851
|
+
dataSuffix?: `0x${string}`;
|
|
852
|
+
gas?: bigint;
|
|
853
|
+
gasPrice?: bigint;
|
|
854
|
+
maxFeePerGas?: bigint;
|
|
855
|
+
maxPriorityFeePerGas?: bigint;
|
|
856
|
+
nonce?: number;
|
|
857
|
+
value?: bigint;
|
|
858
|
+
}): Promise<void>;
|
|
859
|
+
/**
|
|
860
|
+
* Simulate flushERC721ForwarderTokens
|
|
861
|
+
* Returns gas estimate and result without sending transaction
|
|
862
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
863
|
+
*/
|
|
864
|
+
flushERC721ForwarderTokens(forwarderAddress: `0x${string}`, tokenContractAddress: `0x${string}`, tokenId: bigint, options?: {
|
|
865
|
+
accessList?: import("viem").AccessList;
|
|
866
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
867
|
+
chain?: import("viem").Chain | null;
|
|
868
|
+
dataSuffix?: `0x${string}`;
|
|
869
|
+
gas?: bigint;
|
|
870
|
+
gasPrice?: bigint;
|
|
871
|
+
maxFeePerGas?: bigint;
|
|
872
|
+
maxPriorityFeePerGas?: bigint;
|
|
873
|
+
nonce?: number;
|
|
874
|
+
value?: bigint;
|
|
875
|
+
}): Promise<void>;
|
|
876
|
+
/**
|
|
877
|
+
* Simulate flushForwarderTokens
|
|
878
|
+
* Returns gas estimate and result without sending transaction
|
|
879
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
880
|
+
*/
|
|
881
|
+
flushForwarderTokens(forwarderAddress: `0x${string}`, tokenContractAddress: `0x${string}`, options?: {
|
|
882
|
+
accessList?: import("viem").AccessList;
|
|
883
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
884
|
+
chain?: import("viem").Chain | null;
|
|
885
|
+
dataSuffix?: `0x${string}`;
|
|
886
|
+
gas?: bigint;
|
|
887
|
+
gasPrice?: bigint;
|
|
888
|
+
maxFeePerGas?: bigint;
|
|
889
|
+
maxPriorityFeePerGas?: bigint;
|
|
890
|
+
nonce?: number;
|
|
891
|
+
value?: bigint;
|
|
892
|
+
}): Promise<void>;
|
|
893
|
+
/**
|
|
894
|
+
* Simulate init
|
|
895
|
+
* Returns gas estimate and result without sending transaction
|
|
896
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
897
|
+
*/
|
|
898
|
+
init(allowedSigners: `0x${string}`[], options?: {
|
|
899
|
+
accessList?: import("viem").AccessList;
|
|
900
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
901
|
+
chain?: import("viem").Chain | null;
|
|
902
|
+
dataSuffix?: `0x${string}`;
|
|
903
|
+
gas?: bigint;
|
|
904
|
+
gasPrice?: bigint;
|
|
905
|
+
maxFeePerGas?: bigint;
|
|
906
|
+
maxPriorityFeePerGas?: bigint;
|
|
907
|
+
nonce?: number;
|
|
908
|
+
value?: bigint;
|
|
909
|
+
}): Promise<void>;
|
|
910
|
+
/**
|
|
911
|
+
* Simulate onERC1155BatchReceived
|
|
912
|
+
* Returns gas estimate and result without sending transaction
|
|
913
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
914
|
+
*/
|
|
915
|
+
onERC1155BatchReceived(_operator: `0x${string}`, _from: `0x${string}`, ids: bigint[], values: bigint[], data: `0x${string}`, options?: {
|
|
916
|
+
accessList?: import("viem").AccessList;
|
|
917
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
918
|
+
chain?: import("viem").Chain | null;
|
|
919
|
+
dataSuffix?: `0x${string}`;
|
|
920
|
+
gas?: bigint;
|
|
921
|
+
gasPrice?: bigint;
|
|
922
|
+
maxFeePerGas?: bigint;
|
|
923
|
+
maxPriorityFeePerGas?: bigint;
|
|
924
|
+
nonce?: number;
|
|
925
|
+
value?: bigint;
|
|
926
|
+
}): Promise<`0x${string}`>;
|
|
927
|
+
/**
|
|
928
|
+
* Simulate onERC1155Received
|
|
929
|
+
* Returns gas estimate and result without sending transaction
|
|
930
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
931
|
+
*/
|
|
932
|
+
onERC1155Received(_operator: `0x${string}`, _from: `0x${string}`, id: bigint, value: bigint, data: `0x${string}`, options?: {
|
|
933
|
+
accessList?: import("viem").AccessList;
|
|
934
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
935
|
+
chain?: import("viem").Chain | null;
|
|
936
|
+
dataSuffix?: `0x${string}`;
|
|
937
|
+
gas?: bigint;
|
|
938
|
+
gasPrice?: bigint;
|
|
939
|
+
maxFeePerGas?: bigint;
|
|
940
|
+
maxPriorityFeePerGas?: bigint;
|
|
941
|
+
nonce?: number;
|
|
942
|
+
value?: bigint;
|
|
943
|
+
}): Promise<`0x${string}`>;
|
|
944
|
+
/**
|
|
945
|
+
* Simulate onERC721Received
|
|
946
|
+
* Returns gas estimate and result without sending transaction
|
|
947
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
948
|
+
*/
|
|
949
|
+
onERC721Received(_operator: `0x${string}`, _from: `0x${string}`, _tokenId: bigint, _data: `0x${string}`, options?: {
|
|
950
|
+
accessList?: import("viem").AccessList;
|
|
951
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
952
|
+
chain?: import("viem").Chain | null;
|
|
953
|
+
dataSuffix?: `0x${string}`;
|
|
954
|
+
gas?: bigint;
|
|
955
|
+
gasPrice?: bigint;
|
|
956
|
+
maxFeePerGas?: bigint;
|
|
957
|
+
maxPriorityFeePerGas?: bigint;
|
|
958
|
+
nonce?: number;
|
|
959
|
+
value?: bigint;
|
|
960
|
+
}): Promise<`0x${string}`>;
|
|
961
|
+
/**
|
|
962
|
+
* Simulate sendMultiSig
|
|
963
|
+
* Returns gas estimate and result without sending transaction
|
|
964
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
965
|
+
*/
|
|
966
|
+
sendMultiSig(toAddress: `0x${string}`, value: bigint, data: `0x${string}`, expireTime: bigint, sequenceId: bigint, signature: `0x${string}`, options?: {
|
|
967
|
+
accessList?: import("viem").AccessList;
|
|
968
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
969
|
+
chain?: import("viem").Chain | null;
|
|
970
|
+
dataSuffix?: `0x${string}`;
|
|
971
|
+
gas?: bigint;
|
|
972
|
+
gasPrice?: bigint;
|
|
973
|
+
maxFeePerGas?: bigint;
|
|
974
|
+
maxPriorityFeePerGas?: bigint;
|
|
975
|
+
nonce?: number;
|
|
976
|
+
value?: bigint;
|
|
977
|
+
}): Promise<void>;
|
|
978
|
+
/**
|
|
979
|
+
* Simulate sendMultiSigBatch
|
|
980
|
+
* Returns gas estimate and result without sending transaction
|
|
981
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
982
|
+
*/
|
|
983
|
+
sendMultiSigBatch(recipients: `0x${string}`[], values: bigint[], expireTime: bigint, sequenceId: bigint, signature: `0x${string}`, options?: {
|
|
984
|
+
accessList?: import("viem").AccessList;
|
|
985
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
986
|
+
chain?: import("viem").Chain | null;
|
|
987
|
+
dataSuffix?: `0x${string}`;
|
|
988
|
+
gas?: bigint;
|
|
989
|
+
gasPrice?: bigint;
|
|
990
|
+
maxFeePerGas?: bigint;
|
|
991
|
+
maxPriorityFeePerGas?: bigint;
|
|
992
|
+
nonce?: number;
|
|
993
|
+
value?: bigint;
|
|
994
|
+
}): Promise<void>;
|
|
995
|
+
/**
|
|
996
|
+
* Simulate sendMultiSigToken
|
|
997
|
+
* Returns gas estimate and result without sending transaction
|
|
998
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
999
|
+
*/
|
|
1000
|
+
sendMultiSigToken(toAddress: `0x${string}`, value: bigint, tokenContractAddress: `0x${string}`, expireTime: bigint, sequenceId: bigint, signature: `0x${string}`, options?: {
|
|
1001
|
+
accessList?: import("viem").AccessList;
|
|
1002
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1003
|
+
chain?: import("viem").Chain | null;
|
|
1004
|
+
dataSuffix?: `0x${string}`;
|
|
1005
|
+
gas?: bigint;
|
|
1006
|
+
gasPrice?: bigint;
|
|
1007
|
+
maxFeePerGas?: bigint;
|
|
1008
|
+
maxPriorityFeePerGas?: bigint;
|
|
1009
|
+
nonce?: number;
|
|
1010
|
+
value?: bigint;
|
|
1011
|
+
}): Promise<void>;
|
|
1012
|
+
/**
|
|
1013
|
+
* Simulate setAutoFlush1155
|
|
1014
|
+
* Returns gas estimate and result without sending transaction
|
|
1015
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1016
|
+
*/
|
|
1017
|
+
setAutoFlush1155(forwarderAddress: `0x${string}`, autoFlush: boolean, options?: {
|
|
1018
|
+
accessList?: import("viem").AccessList;
|
|
1019
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1020
|
+
chain?: import("viem").Chain | null;
|
|
1021
|
+
dataSuffix?: `0x${string}`;
|
|
1022
|
+
gas?: bigint;
|
|
1023
|
+
gasPrice?: bigint;
|
|
1024
|
+
maxFeePerGas?: bigint;
|
|
1025
|
+
maxPriorityFeePerGas?: bigint;
|
|
1026
|
+
nonce?: number;
|
|
1027
|
+
value?: bigint;
|
|
1028
|
+
}): Promise<void>;
|
|
1029
|
+
/**
|
|
1030
|
+
* Simulate setAutoFlush721
|
|
1031
|
+
* Returns gas estimate and result without sending transaction
|
|
1032
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1033
|
+
*/
|
|
1034
|
+
setAutoFlush721(forwarderAddress: `0x${string}`, autoFlush: boolean, options?: {
|
|
1035
|
+
accessList?: import("viem").AccessList;
|
|
1036
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1037
|
+
chain?: import("viem").Chain | null;
|
|
1038
|
+
dataSuffix?: `0x${string}`;
|
|
1039
|
+
gas?: bigint;
|
|
1040
|
+
gasPrice?: bigint;
|
|
1041
|
+
maxFeePerGas?: bigint;
|
|
1042
|
+
maxPriorityFeePerGas?: bigint;
|
|
1043
|
+
nonce?: number;
|
|
1044
|
+
value?: bigint;
|
|
1045
|
+
}): Promise<void>;
|
|
1046
|
+
};
|
|
1047
|
+
/**
|
|
1048
|
+
* Watch contract events
|
|
1049
|
+
*
|
|
1050
|
+
* @example
|
|
1051
|
+
* // Watch all Transfer events
|
|
1052
|
+
* const unwatch = contract.watch.Transfer((event) => {
|
|
1053
|
+
* console.log('Transfer:', event);
|
|
1054
|
+
* });
|
|
1055
|
+
*
|
|
1056
|
+
* // Stop watching
|
|
1057
|
+
* unwatch();
|
|
1058
|
+
*/
|
|
1059
|
+
get watch(): {
|
|
1060
|
+
/**
|
|
1061
|
+
* Watch BatchTransacted events
|
|
1062
|
+
* @param callback Function to call when event is emitted
|
|
1063
|
+
* @param filter Optional filter for indexed parameters
|
|
1064
|
+
* @returns Unwatch function to stop listening
|
|
1065
|
+
*/
|
|
1066
|
+
BatchTransacted: (callback: (event: {
|
|
1067
|
+
msgSender: `0x${string}`;
|
|
1068
|
+
otherSigner: `0x${string}`;
|
|
1069
|
+
operation: `0x${string}`;
|
|
1070
|
+
}) => void) => () => void;
|
|
1071
|
+
/**
|
|
1072
|
+
* Watch BatchTransfer events
|
|
1073
|
+
* @param callback Function to call when event is emitted
|
|
1074
|
+
* @param filter Optional filter for indexed parameters
|
|
1075
|
+
* @returns Unwatch function to stop listening
|
|
1076
|
+
*/
|
|
1077
|
+
BatchTransfer: (callback: (event: {
|
|
1078
|
+
sender: `0x${string}`;
|
|
1079
|
+
recipient: `0x${string}`;
|
|
1080
|
+
value: bigint;
|
|
1081
|
+
}) => void) => () => void;
|
|
1082
|
+
/**
|
|
1083
|
+
* Watch Deposited events
|
|
1084
|
+
* @param callback Function to call when event is emitted
|
|
1085
|
+
* @param filter Optional filter for indexed parameters
|
|
1086
|
+
* @returns Unwatch function to stop listening
|
|
1087
|
+
*/
|
|
1088
|
+
Deposited: (callback: (event: {
|
|
1089
|
+
from: `0x${string}`;
|
|
1090
|
+
value: bigint;
|
|
1091
|
+
data: `0x${string}`;
|
|
1092
|
+
}) => void) => () => void;
|
|
1093
|
+
/**
|
|
1094
|
+
* Watch SafeModeActivated events
|
|
1095
|
+
* @param callback Function to call when event is emitted
|
|
1096
|
+
* @param filter Optional filter for indexed parameters
|
|
1097
|
+
* @returns Unwatch function to stop listening
|
|
1098
|
+
*/
|
|
1099
|
+
SafeModeActivated: (callback: (event: {
|
|
1100
|
+
msgSender: `0x${string}`;
|
|
1101
|
+
}) => void) => () => void;
|
|
1102
|
+
/**
|
|
1103
|
+
* Watch Transacted events
|
|
1104
|
+
* @param callback Function to call when event is emitted
|
|
1105
|
+
* @param filter Optional filter for indexed parameters
|
|
1106
|
+
* @returns Unwatch function to stop listening
|
|
1107
|
+
*/
|
|
1108
|
+
Transacted: (callback: (event: {
|
|
1109
|
+
msgSender: `0x${string}`;
|
|
1110
|
+
otherSigner: `0x${string}`;
|
|
1111
|
+
operation: `0x${string}`;
|
|
1112
|
+
toAddress: `0x${string}`;
|
|
1113
|
+
value: bigint;
|
|
1114
|
+
data: `0x${string}`;
|
|
1115
|
+
}) => void) => () => void;
|
|
1116
|
+
};
|
|
1117
|
+
}
|