@gitmyabi/walletsimple 1.0.36 → 1.0.37
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 +3 -3
- package/contracts/WalletSimple_json.d.ts +730 -127
- package/contracts/WalletSimple_json.js +690 -132
- package/contracts/WalletSimple_json.ts +921 -152
- package/package.json +3 -3
|
@@ -9,114 +9,277 @@ const viem_1 = require("viem");
|
|
|
9
9
|
*/
|
|
10
10
|
exports.WalletSimple_jsonAbi = [
|
|
11
11
|
{
|
|
12
|
-
"
|
|
12
|
+
"anonymous": false,
|
|
13
13
|
"inputs": [
|
|
14
14
|
{
|
|
15
|
-
"
|
|
15
|
+
"indexed": false,
|
|
16
|
+
"internalType": "address",
|
|
17
|
+
"name": "msgSender",
|
|
16
18
|
"type": "address"
|
|
17
19
|
},
|
|
18
20
|
{
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
+
"indexed": false,
|
|
22
|
+
"internalType": "address",
|
|
23
|
+
"name": "otherSigner",
|
|
24
|
+
"type": "address"
|
|
21
25
|
},
|
|
22
26
|
{
|
|
23
|
-
"
|
|
27
|
+
"indexed": false,
|
|
28
|
+
"internalType": "bytes32",
|
|
29
|
+
"name": "operation",
|
|
30
|
+
"type": "bytes32"
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
"name": "BatchTransacted",
|
|
34
|
+
"type": "event"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"anonymous": false,
|
|
38
|
+
"inputs": [
|
|
39
|
+
{
|
|
40
|
+
"indexed": false,
|
|
41
|
+
"internalType": "address",
|
|
42
|
+
"name": "sender",
|
|
24
43
|
"type": "address"
|
|
25
44
|
},
|
|
26
45
|
{
|
|
27
|
-
"
|
|
46
|
+
"indexed": false,
|
|
47
|
+
"internalType": "address",
|
|
48
|
+
"name": "recipient",
|
|
49
|
+
"type": "address"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"indexed": false,
|
|
53
|
+
"internalType": "uint256",
|
|
54
|
+
"name": "value",
|
|
28
55
|
"type": "uint256"
|
|
56
|
+
}
|
|
57
|
+
],
|
|
58
|
+
"name": "BatchTransfer",
|
|
59
|
+
"type": "event"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"anonymous": false,
|
|
63
|
+
"inputs": [
|
|
64
|
+
{
|
|
65
|
+
"indexed": false,
|
|
66
|
+
"internalType": "address",
|
|
67
|
+
"name": "from",
|
|
68
|
+
"type": "address"
|
|
29
69
|
},
|
|
30
70
|
{
|
|
31
|
-
"
|
|
71
|
+
"indexed": false,
|
|
72
|
+
"internalType": "uint256",
|
|
73
|
+
"name": "value",
|
|
32
74
|
"type": "uint256"
|
|
33
75
|
},
|
|
34
76
|
{
|
|
35
|
-
"
|
|
77
|
+
"indexed": false,
|
|
78
|
+
"internalType": "bytes",
|
|
79
|
+
"name": "data",
|
|
36
80
|
"type": "bytes"
|
|
37
81
|
}
|
|
38
82
|
],
|
|
39
|
-
"name": "
|
|
40
|
-
"
|
|
41
|
-
"payable": false,
|
|
42
|
-
"stateMutability": "nonpayable",
|
|
43
|
-
"type": "function"
|
|
83
|
+
"name": "Deposited",
|
|
84
|
+
"type": "event"
|
|
44
85
|
},
|
|
45
86
|
{
|
|
46
|
-
"
|
|
87
|
+
"anonymous": false,
|
|
47
88
|
"inputs": [
|
|
48
89
|
{
|
|
49
|
-
"
|
|
50
|
-
"
|
|
90
|
+
"indexed": false,
|
|
91
|
+
"internalType": "address",
|
|
92
|
+
"name": "msgSender",
|
|
93
|
+
"type": "address"
|
|
51
94
|
}
|
|
52
95
|
],
|
|
53
|
-
"name": "
|
|
54
|
-
"
|
|
96
|
+
"name": "SafeModeActivated",
|
|
97
|
+
"type": "event"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"anonymous": false,
|
|
101
|
+
"inputs": [
|
|
55
102
|
{
|
|
56
|
-
"
|
|
103
|
+
"indexed": false,
|
|
104
|
+
"internalType": "address",
|
|
105
|
+
"name": "msgSender",
|
|
57
106
|
"type": "address"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"indexed": false,
|
|
110
|
+
"internalType": "address",
|
|
111
|
+
"name": "otherSigner",
|
|
112
|
+
"type": "address"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"indexed": false,
|
|
116
|
+
"internalType": "bytes32",
|
|
117
|
+
"name": "operation",
|
|
118
|
+
"type": "bytes32"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"indexed": false,
|
|
122
|
+
"internalType": "address",
|
|
123
|
+
"name": "toAddress",
|
|
124
|
+
"type": "address"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"indexed": false,
|
|
128
|
+
"internalType": "uint256",
|
|
129
|
+
"name": "value",
|
|
130
|
+
"type": "uint256"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"indexed": false,
|
|
134
|
+
"internalType": "bytes",
|
|
135
|
+
"name": "data",
|
|
136
|
+
"type": "bytes"
|
|
58
137
|
}
|
|
59
138
|
],
|
|
60
|
-
"
|
|
61
|
-
"
|
|
139
|
+
"name": "Transacted",
|
|
140
|
+
"type": "event"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"stateMutability": "payable",
|
|
144
|
+
"type": "fallback"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"inputs": [],
|
|
148
|
+
"name": "activateSafeMode",
|
|
149
|
+
"outputs": [],
|
|
150
|
+
"stateMutability": "nonpayable",
|
|
62
151
|
"type": "function"
|
|
63
152
|
},
|
|
64
153
|
{
|
|
65
|
-
"constant": false,
|
|
66
154
|
"inputs": [
|
|
67
155
|
{
|
|
156
|
+
"internalType": "address payable",
|
|
68
157
|
"name": "forwarderAddress",
|
|
69
158
|
"type": "address"
|
|
70
159
|
},
|
|
71
160
|
{
|
|
161
|
+
"internalType": "address",
|
|
72
162
|
"name": "tokenContractAddress",
|
|
73
163
|
"type": "address"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"internalType": "uint256[]",
|
|
167
|
+
"name": "tokenIds",
|
|
168
|
+
"type": "uint256[]"
|
|
74
169
|
}
|
|
75
170
|
],
|
|
76
|
-
"name": "
|
|
171
|
+
"name": "batchFlushERC1155ForwarderTokens",
|
|
77
172
|
"outputs": [],
|
|
78
|
-
"payable": false,
|
|
79
173
|
"stateMutability": "nonpayable",
|
|
80
174
|
"type": "function"
|
|
81
175
|
},
|
|
82
176
|
{
|
|
83
|
-
"constant": false,
|
|
84
177
|
"inputs": [
|
|
85
178
|
{
|
|
86
|
-
"
|
|
179
|
+
"internalType": "address payable",
|
|
180
|
+
"name": "forwarderAddress",
|
|
87
181
|
"type": "address"
|
|
88
182
|
},
|
|
89
183
|
{
|
|
90
|
-
"
|
|
184
|
+
"internalType": "address",
|
|
185
|
+
"name": "tokenContractAddress",
|
|
186
|
+
"type": "address"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"internalType": "uint256",
|
|
190
|
+
"name": "tokenId",
|
|
91
191
|
"type": "uint256"
|
|
192
|
+
}
|
|
193
|
+
],
|
|
194
|
+
"name": "flushERC1155ForwarderTokens",
|
|
195
|
+
"outputs": [],
|
|
196
|
+
"stateMutability": "nonpayable",
|
|
197
|
+
"type": "function"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"inputs": [
|
|
201
|
+
{
|
|
202
|
+
"internalType": "address payable",
|
|
203
|
+
"name": "forwarderAddress",
|
|
204
|
+
"type": "address"
|
|
92
205
|
},
|
|
93
206
|
{
|
|
94
|
-
"
|
|
95
|
-
"
|
|
207
|
+
"internalType": "address",
|
|
208
|
+
"name": "tokenContractAddress",
|
|
209
|
+
"type": "address"
|
|
96
210
|
},
|
|
97
211
|
{
|
|
98
|
-
"
|
|
212
|
+
"internalType": "uint256",
|
|
213
|
+
"name": "tokenId",
|
|
99
214
|
"type": "uint256"
|
|
215
|
+
}
|
|
216
|
+
],
|
|
217
|
+
"name": "flushERC721ForwarderTokens",
|
|
218
|
+
"outputs": [],
|
|
219
|
+
"stateMutability": "nonpayable",
|
|
220
|
+
"type": "function"
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"inputs": [
|
|
224
|
+
{
|
|
225
|
+
"internalType": "address payable",
|
|
226
|
+
"name": "forwarderAddress",
|
|
227
|
+
"type": "address"
|
|
100
228
|
},
|
|
101
229
|
{
|
|
102
|
-
"
|
|
230
|
+
"internalType": "address",
|
|
231
|
+
"name": "tokenContractAddress",
|
|
232
|
+
"type": "address"
|
|
233
|
+
}
|
|
234
|
+
],
|
|
235
|
+
"name": "flushForwarderTokens",
|
|
236
|
+
"outputs": [],
|
|
237
|
+
"stateMutability": "nonpayable",
|
|
238
|
+
"type": "function"
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"inputs": [],
|
|
242
|
+
"name": "getNextSequenceId",
|
|
243
|
+
"outputs": [
|
|
244
|
+
{
|
|
245
|
+
"internalType": "uint256",
|
|
246
|
+
"name": "",
|
|
103
247
|
"type": "uint256"
|
|
104
|
-
}
|
|
248
|
+
}
|
|
249
|
+
],
|
|
250
|
+
"stateMutability": "view",
|
|
251
|
+
"type": "function"
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"inputs": [
|
|
105
255
|
{
|
|
106
|
-
"
|
|
107
|
-
"
|
|
256
|
+
"internalType": "address[]",
|
|
257
|
+
"name": "allowedSigners",
|
|
258
|
+
"type": "address[]"
|
|
108
259
|
}
|
|
109
260
|
],
|
|
110
|
-
"name": "
|
|
261
|
+
"name": "init",
|
|
111
262
|
"outputs": [],
|
|
112
|
-
"payable": false,
|
|
113
263
|
"stateMutability": "nonpayable",
|
|
114
264
|
"type": "function"
|
|
115
265
|
},
|
|
116
266
|
{
|
|
117
|
-
"
|
|
267
|
+
"inputs": [],
|
|
268
|
+
"name": "initialized",
|
|
269
|
+
"outputs": [
|
|
270
|
+
{
|
|
271
|
+
"internalType": "bool",
|
|
272
|
+
"name": "",
|
|
273
|
+
"type": "bool"
|
|
274
|
+
}
|
|
275
|
+
],
|
|
276
|
+
"stateMutability": "view",
|
|
277
|
+
"type": "function"
|
|
278
|
+
},
|
|
279
|
+
{
|
|
118
280
|
"inputs": [
|
|
119
281
|
{
|
|
282
|
+
"internalType": "address",
|
|
120
283
|
"name": "signer",
|
|
121
284
|
"type": "address"
|
|
122
285
|
}
|
|
@@ -124,151 +287,325 @@ exports.WalletSimple_jsonAbi = [
|
|
|
124
287
|
"name": "isSigner",
|
|
125
288
|
"outputs": [
|
|
126
289
|
{
|
|
290
|
+
"internalType": "bool",
|
|
127
291
|
"name": "",
|
|
128
292
|
"type": "bool"
|
|
129
293
|
}
|
|
130
294
|
],
|
|
131
|
-
"payable": false,
|
|
132
295
|
"stateMutability": "view",
|
|
133
296
|
"type": "function"
|
|
134
297
|
},
|
|
135
298
|
{
|
|
136
|
-
"
|
|
137
|
-
|
|
138
|
-
|
|
299
|
+
"inputs": [
|
|
300
|
+
{
|
|
301
|
+
"internalType": "address",
|
|
302
|
+
"name": "_operator",
|
|
303
|
+
"type": "address"
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"internalType": "address",
|
|
307
|
+
"name": "_from",
|
|
308
|
+
"type": "address"
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"internalType": "uint256[]",
|
|
312
|
+
"name": "ids",
|
|
313
|
+
"type": "uint256[]"
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"internalType": "uint256[]",
|
|
317
|
+
"name": "values",
|
|
318
|
+
"type": "uint256[]"
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
"internalType": "bytes",
|
|
322
|
+
"name": "data",
|
|
323
|
+
"type": "bytes"
|
|
324
|
+
}
|
|
325
|
+
],
|
|
326
|
+
"name": "onERC1155BatchReceived",
|
|
139
327
|
"outputs": [
|
|
140
328
|
{
|
|
329
|
+
"internalType": "bytes4",
|
|
141
330
|
"name": "",
|
|
142
|
-
"type": "
|
|
331
|
+
"type": "bytes4"
|
|
143
332
|
}
|
|
144
333
|
],
|
|
145
|
-
"
|
|
146
|
-
"stateMutability": "view",
|
|
334
|
+
"stateMutability": "nonpayable",
|
|
147
335
|
"type": "function"
|
|
148
336
|
},
|
|
149
337
|
{
|
|
150
|
-
"
|
|
151
|
-
|
|
152
|
-
|
|
338
|
+
"inputs": [
|
|
339
|
+
{
|
|
340
|
+
"internalType": "address",
|
|
341
|
+
"name": "_operator",
|
|
342
|
+
"type": "address"
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
"internalType": "address",
|
|
346
|
+
"name": "_from",
|
|
347
|
+
"type": "address"
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
"internalType": "uint256",
|
|
351
|
+
"name": "id",
|
|
352
|
+
"type": "uint256"
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
"internalType": "uint256",
|
|
356
|
+
"name": "value",
|
|
357
|
+
"type": "uint256"
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
"internalType": "bytes",
|
|
361
|
+
"name": "data",
|
|
362
|
+
"type": "bytes"
|
|
363
|
+
}
|
|
364
|
+
],
|
|
365
|
+
"name": "onERC1155Received",
|
|
153
366
|
"outputs": [
|
|
154
367
|
{
|
|
368
|
+
"internalType": "bytes4",
|
|
155
369
|
"name": "",
|
|
370
|
+
"type": "bytes4"
|
|
371
|
+
}
|
|
372
|
+
],
|
|
373
|
+
"stateMutability": "nonpayable",
|
|
374
|
+
"type": "function"
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
"inputs": [
|
|
378
|
+
{
|
|
379
|
+
"internalType": "address",
|
|
380
|
+
"name": "_operator",
|
|
156
381
|
"type": "address"
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
"internalType": "address",
|
|
385
|
+
"name": "_from",
|
|
386
|
+
"type": "address"
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
"internalType": "uint256",
|
|
390
|
+
"name": "_tokenId",
|
|
391
|
+
"type": "uint256"
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
"internalType": "bytes",
|
|
395
|
+
"name": "_data",
|
|
396
|
+
"type": "bytes"
|
|
397
|
+
}
|
|
398
|
+
],
|
|
399
|
+
"name": "onERC721Received",
|
|
400
|
+
"outputs": [
|
|
401
|
+
{
|
|
402
|
+
"internalType": "bytes4",
|
|
403
|
+
"name": "",
|
|
404
|
+
"type": "bytes4"
|
|
157
405
|
}
|
|
158
406
|
],
|
|
159
|
-
"payable": false,
|
|
160
407
|
"stateMutability": "nonpayable",
|
|
161
408
|
"type": "function"
|
|
162
409
|
},
|
|
163
410
|
{
|
|
164
|
-
"constant": true,
|
|
165
411
|
"inputs": [],
|
|
166
412
|
"name": "safeMode",
|
|
167
413
|
"outputs": [
|
|
168
414
|
{
|
|
415
|
+
"internalType": "bool",
|
|
169
416
|
"name": "",
|
|
170
417
|
"type": "bool"
|
|
171
418
|
}
|
|
172
419
|
],
|
|
173
|
-
"payable": false,
|
|
174
420
|
"stateMutability": "view",
|
|
175
421
|
"type": "function"
|
|
176
422
|
},
|
|
177
423
|
{
|
|
178
|
-
"
|
|
179
|
-
|
|
180
|
-
|
|
424
|
+
"inputs": [
|
|
425
|
+
{
|
|
426
|
+
"internalType": "address",
|
|
427
|
+
"name": "toAddress",
|
|
428
|
+
"type": "address"
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
"internalType": "uint256",
|
|
432
|
+
"name": "value",
|
|
433
|
+
"type": "uint256"
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
"internalType": "bytes",
|
|
437
|
+
"name": "data",
|
|
438
|
+
"type": "bytes"
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
"internalType": "uint256",
|
|
442
|
+
"name": "expireTime",
|
|
443
|
+
"type": "uint256"
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
"internalType": "uint256",
|
|
447
|
+
"name": "sequenceId",
|
|
448
|
+
"type": "uint256"
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
"internalType": "bytes",
|
|
452
|
+
"name": "signature",
|
|
453
|
+
"type": "bytes"
|
|
454
|
+
}
|
|
455
|
+
],
|
|
456
|
+
"name": "sendMultiSig",
|
|
181
457
|
"outputs": [],
|
|
182
|
-
"payable": false,
|
|
183
458
|
"stateMutability": "nonpayable",
|
|
184
459
|
"type": "function"
|
|
185
460
|
},
|
|
186
461
|
{
|
|
187
462
|
"inputs": [
|
|
188
463
|
{
|
|
189
|
-
"
|
|
464
|
+
"internalType": "address[]",
|
|
465
|
+
"name": "recipients",
|
|
190
466
|
"type": "address[]"
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
"internalType": "uint256[]",
|
|
470
|
+
"name": "values",
|
|
471
|
+
"type": "uint256[]"
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
"internalType": "uint256",
|
|
475
|
+
"name": "expireTime",
|
|
476
|
+
"type": "uint256"
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
"internalType": "uint256",
|
|
480
|
+
"name": "sequenceId",
|
|
481
|
+
"type": "uint256"
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
"internalType": "bytes",
|
|
485
|
+
"name": "signature",
|
|
486
|
+
"type": "bytes"
|
|
191
487
|
}
|
|
192
488
|
],
|
|
193
|
-
"
|
|
489
|
+
"name": "sendMultiSigBatch",
|
|
490
|
+
"outputs": [],
|
|
194
491
|
"stateMutability": "nonpayable",
|
|
195
|
-
"type": "
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
"payable": true,
|
|
199
|
-
"stateMutability": "payable",
|
|
200
|
-
"type": "fallback"
|
|
492
|
+
"type": "function"
|
|
201
493
|
},
|
|
202
494
|
{
|
|
203
|
-
"anonymous": false,
|
|
204
495
|
"inputs": [
|
|
205
496
|
{
|
|
206
|
-
"
|
|
207
|
-
"name": "
|
|
497
|
+
"internalType": "address",
|
|
498
|
+
"name": "toAddress",
|
|
208
499
|
"type": "address"
|
|
209
500
|
},
|
|
210
501
|
{
|
|
211
|
-
"
|
|
502
|
+
"internalType": "uint256",
|
|
212
503
|
"name": "value",
|
|
213
504
|
"type": "uint256"
|
|
214
505
|
},
|
|
215
506
|
{
|
|
216
|
-
"
|
|
217
|
-
"name": "
|
|
507
|
+
"internalType": "address",
|
|
508
|
+
"name": "tokenContractAddress",
|
|
509
|
+
"type": "address"
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
"internalType": "uint256",
|
|
513
|
+
"name": "expireTime",
|
|
514
|
+
"type": "uint256"
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
"internalType": "uint256",
|
|
518
|
+
"name": "sequenceId",
|
|
519
|
+
"type": "uint256"
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
"internalType": "bytes",
|
|
523
|
+
"name": "signature",
|
|
218
524
|
"type": "bytes"
|
|
219
525
|
}
|
|
220
526
|
],
|
|
221
|
-
"name": "
|
|
222
|
-
"
|
|
527
|
+
"name": "sendMultiSigToken",
|
|
528
|
+
"outputs": [],
|
|
529
|
+
"stateMutability": "nonpayable",
|
|
530
|
+
"type": "function"
|
|
531
|
+
},
|
|
532
|
+
{
|
|
533
|
+
"inputs": [
|
|
534
|
+
{
|
|
535
|
+
"internalType": "address",
|
|
536
|
+
"name": "forwarderAddress",
|
|
537
|
+
"type": "address"
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
"internalType": "bool",
|
|
541
|
+
"name": "autoFlush",
|
|
542
|
+
"type": "bool"
|
|
543
|
+
}
|
|
544
|
+
],
|
|
545
|
+
"name": "setAutoFlush1155",
|
|
546
|
+
"outputs": [],
|
|
547
|
+
"stateMutability": "nonpayable",
|
|
548
|
+
"type": "function"
|
|
549
|
+
},
|
|
550
|
+
{
|
|
551
|
+
"inputs": [
|
|
552
|
+
{
|
|
553
|
+
"internalType": "address",
|
|
554
|
+
"name": "forwarderAddress",
|
|
555
|
+
"type": "address"
|
|
556
|
+
},
|
|
557
|
+
{
|
|
558
|
+
"internalType": "bool",
|
|
559
|
+
"name": "autoFlush",
|
|
560
|
+
"type": "bool"
|
|
561
|
+
}
|
|
562
|
+
],
|
|
563
|
+
"name": "setAutoFlush721",
|
|
564
|
+
"outputs": [],
|
|
565
|
+
"stateMutability": "nonpayable",
|
|
566
|
+
"type": "function"
|
|
223
567
|
},
|
|
224
568
|
{
|
|
225
|
-
"anonymous": false,
|
|
226
569
|
"inputs": [
|
|
227
570
|
{
|
|
228
|
-
"
|
|
229
|
-
"name": "
|
|
571
|
+
"internalType": "address",
|
|
572
|
+
"name": "",
|
|
230
573
|
"type": "address"
|
|
231
574
|
}
|
|
232
575
|
],
|
|
233
|
-
"name": "
|
|
234
|
-
"
|
|
576
|
+
"name": "signers",
|
|
577
|
+
"outputs": [
|
|
578
|
+
{
|
|
579
|
+
"internalType": "bool",
|
|
580
|
+
"name": "",
|
|
581
|
+
"type": "bool"
|
|
582
|
+
}
|
|
583
|
+
],
|
|
584
|
+
"stateMutability": "view",
|
|
585
|
+
"type": "function"
|
|
235
586
|
},
|
|
236
587
|
{
|
|
237
|
-
"anonymous": false,
|
|
238
588
|
"inputs": [
|
|
239
589
|
{
|
|
240
|
-
"
|
|
241
|
-
"name": "
|
|
242
|
-
"type": "
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
"type": "address"
|
|
248
|
-
},
|
|
249
|
-
{
|
|
250
|
-
"indexed": false,
|
|
251
|
-
"name": "operation",
|
|
252
|
-
"type": "bytes32"
|
|
253
|
-
},
|
|
254
|
-
{
|
|
255
|
-
"indexed": false,
|
|
256
|
-
"name": "toAddress",
|
|
257
|
-
"type": "address"
|
|
258
|
-
},
|
|
259
|
-
{
|
|
260
|
-
"indexed": false,
|
|
261
|
-
"name": "value",
|
|
262
|
-
"type": "uint256"
|
|
263
|
-
},
|
|
590
|
+
"internalType": "bytes4",
|
|
591
|
+
"name": "interfaceId",
|
|
592
|
+
"type": "bytes4"
|
|
593
|
+
}
|
|
594
|
+
],
|
|
595
|
+
"name": "supportsInterface",
|
|
596
|
+
"outputs": [
|
|
264
597
|
{
|
|
265
|
-
"
|
|
266
|
-
"name": "
|
|
267
|
-
"type": "
|
|
598
|
+
"internalType": "bool",
|
|
599
|
+
"name": "",
|
|
600
|
+
"type": "bool"
|
|
268
601
|
}
|
|
269
602
|
],
|
|
270
|
-
"
|
|
271
|
-
"type": "
|
|
603
|
+
"stateMutability": "view",
|
|
604
|
+
"type": "function"
|
|
605
|
+
},
|
|
606
|
+
{
|
|
607
|
+
"stateMutability": "payable",
|
|
608
|
+
"type": "receive"
|
|
272
609
|
}
|
|
273
610
|
];
|
|
274
611
|
/**
|
|
@@ -329,25 +666,25 @@ class WalletSimple_json {
|
|
|
329
666
|
return this.contract;
|
|
330
667
|
}
|
|
331
668
|
/**
|
|
332
|
-
*
|
|
669
|
+
* getNextSequenceId
|
|
333
670
|
* view
|
|
334
671
|
*/
|
|
335
|
-
async
|
|
336
|
-
return this.contract.read.
|
|
672
|
+
async getNextSequenceId() {
|
|
673
|
+
return this.contract.read.getNextSequenceId();
|
|
337
674
|
}
|
|
338
675
|
/**
|
|
339
|
-
*
|
|
676
|
+
* initialized
|
|
340
677
|
* view
|
|
341
678
|
*/
|
|
342
|
-
async
|
|
343
|
-
return this.contract.read.
|
|
679
|
+
async initialized() {
|
|
680
|
+
return this.contract.read.initialized();
|
|
344
681
|
}
|
|
345
682
|
/**
|
|
346
|
-
*
|
|
683
|
+
* isSigner
|
|
347
684
|
* view
|
|
348
685
|
*/
|
|
349
|
-
async
|
|
350
|
-
return this.contract.read.
|
|
686
|
+
async isSigner(signer) {
|
|
687
|
+
return this.contract.read.isSigner([signer]);
|
|
351
688
|
}
|
|
352
689
|
/**
|
|
353
690
|
* safeMode
|
|
@@ -357,15 +694,62 @@ class WalletSimple_json {
|
|
|
357
694
|
return this.contract.read.safeMode();
|
|
358
695
|
}
|
|
359
696
|
/**
|
|
360
|
-
*
|
|
697
|
+
* signers
|
|
698
|
+
* view
|
|
699
|
+
*/
|
|
700
|
+
async signers(arg0) {
|
|
701
|
+
return this.contract.read.signers([arg0]);
|
|
702
|
+
}
|
|
703
|
+
/**
|
|
704
|
+
* supportsInterface
|
|
705
|
+
* view
|
|
706
|
+
*/
|
|
707
|
+
async supportsInterface(interfaceId) {
|
|
708
|
+
return this.contract.read.supportsInterface([interfaceId]);
|
|
709
|
+
}
|
|
710
|
+
/**
|
|
711
|
+
* activateSafeMode
|
|
361
712
|
* nonpayable
|
|
362
713
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
363
714
|
*/
|
|
364
|
-
async
|
|
715
|
+
async activateSafeMode(options) {
|
|
365
716
|
if (!this.contract.write) {
|
|
366
717
|
throw new Error('Wallet client is required for write operations');
|
|
367
718
|
}
|
|
368
|
-
return this.contract.write.
|
|
719
|
+
return this.contract.write.activateSafeMode(options);
|
|
720
|
+
}
|
|
721
|
+
/**
|
|
722
|
+
* batchFlushERC1155ForwarderTokens
|
|
723
|
+
* nonpayable
|
|
724
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
725
|
+
*/
|
|
726
|
+
async batchFlushERC1155ForwarderTokens(forwarderAddress, tokenContractAddress, tokenIds, options) {
|
|
727
|
+
if (!this.contract.write) {
|
|
728
|
+
throw new Error('Wallet client is required for write operations');
|
|
729
|
+
}
|
|
730
|
+
return this.contract.write.batchFlushERC1155ForwarderTokens([forwarderAddress, tokenContractAddress, tokenIds], options);
|
|
731
|
+
}
|
|
732
|
+
/**
|
|
733
|
+
* flushERC1155ForwarderTokens
|
|
734
|
+
* nonpayable
|
|
735
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
736
|
+
*/
|
|
737
|
+
async flushERC1155ForwarderTokens(forwarderAddress, tokenContractAddress, tokenId, options) {
|
|
738
|
+
if (!this.contract.write) {
|
|
739
|
+
throw new Error('Wallet client is required for write operations');
|
|
740
|
+
}
|
|
741
|
+
return this.contract.write.flushERC1155ForwarderTokens([forwarderAddress, tokenContractAddress, tokenId], options);
|
|
742
|
+
}
|
|
743
|
+
/**
|
|
744
|
+
* flushERC721ForwarderTokens
|
|
745
|
+
* nonpayable
|
|
746
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
747
|
+
*/
|
|
748
|
+
async flushERC721ForwarderTokens(forwarderAddress, tokenContractAddress, tokenId, options) {
|
|
749
|
+
if (!this.contract.write) {
|
|
750
|
+
throw new Error('Wallet client is required for write operations');
|
|
751
|
+
}
|
|
752
|
+
return this.contract.write.flushERC721ForwarderTokens([forwarderAddress, tokenContractAddress, tokenId], options);
|
|
369
753
|
}
|
|
370
754
|
/**
|
|
371
755
|
* flushForwarderTokens
|
|
@@ -378,6 +762,50 @@ class WalletSimple_json {
|
|
|
378
762
|
}
|
|
379
763
|
return this.contract.write.flushForwarderTokens([forwarderAddress, tokenContractAddress], options);
|
|
380
764
|
}
|
|
765
|
+
/**
|
|
766
|
+
* init
|
|
767
|
+
* nonpayable
|
|
768
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
769
|
+
*/
|
|
770
|
+
async init(allowedSigners, options) {
|
|
771
|
+
if (!this.contract.write) {
|
|
772
|
+
throw new Error('Wallet client is required for write operations');
|
|
773
|
+
}
|
|
774
|
+
return this.contract.write.init([allowedSigners], options);
|
|
775
|
+
}
|
|
776
|
+
/**
|
|
777
|
+
* onERC1155BatchReceived
|
|
778
|
+
* nonpayable
|
|
779
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
780
|
+
*/
|
|
781
|
+
async onERC1155BatchReceived(_operator, _from, ids, values, data, options) {
|
|
782
|
+
if (!this.contract.write) {
|
|
783
|
+
throw new Error('Wallet client is required for write operations');
|
|
784
|
+
}
|
|
785
|
+
return this.contract.write.onERC1155BatchReceived([_operator, _from, ids, values, data], options);
|
|
786
|
+
}
|
|
787
|
+
/**
|
|
788
|
+
* onERC1155Received
|
|
789
|
+
* nonpayable
|
|
790
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
791
|
+
*/
|
|
792
|
+
async onERC1155Received(_operator, _from, id, value, data, options) {
|
|
793
|
+
if (!this.contract.write) {
|
|
794
|
+
throw new Error('Wallet client is required for write operations');
|
|
795
|
+
}
|
|
796
|
+
return this.contract.write.onERC1155Received([_operator, _from, id, value, data], options);
|
|
797
|
+
}
|
|
798
|
+
/**
|
|
799
|
+
* onERC721Received
|
|
800
|
+
* nonpayable
|
|
801
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
802
|
+
*/
|
|
803
|
+
async onERC721Received(_operator, _from, _tokenId, _data, options) {
|
|
804
|
+
if (!this.contract.write) {
|
|
805
|
+
throw new Error('Wallet client is required for write operations');
|
|
806
|
+
}
|
|
807
|
+
return this.contract.write.onERC721Received([_operator, _from, _tokenId, _data], options);
|
|
808
|
+
}
|
|
381
809
|
/**
|
|
382
810
|
* sendMultiSig
|
|
383
811
|
* nonpayable
|
|
@@ -390,26 +818,48 @@ class WalletSimple_json {
|
|
|
390
818
|
return this.contract.write.sendMultiSig([toAddress, value, data, expireTime, sequenceId, signature], options);
|
|
391
819
|
}
|
|
392
820
|
/**
|
|
393
|
-
*
|
|
821
|
+
* sendMultiSigBatch
|
|
394
822
|
* nonpayable
|
|
395
823
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
396
824
|
*/
|
|
397
|
-
async
|
|
825
|
+
async sendMultiSigBatch(recipients, values, expireTime, sequenceId, signature, options) {
|
|
398
826
|
if (!this.contract.write) {
|
|
399
827
|
throw new Error('Wallet client is required for write operations');
|
|
400
828
|
}
|
|
401
|
-
return this.contract.write.
|
|
829
|
+
return this.contract.write.sendMultiSigBatch([recipients, values, expireTime, sequenceId, signature], options);
|
|
402
830
|
}
|
|
403
831
|
/**
|
|
404
|
-
*
|
|
832
|
+
* sendMultiSigToken
|
|
405
833
|
* nonpayable
|
|
406
834
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
407
835
|
*/
|
|
408
|
-
async
|
|
836
|
+
async sendMultiSigToken(toAddress, value, tokenContractAddress, expireTime, sequenceId, signature, options) {
|
|
409
837
|
if (!this.contract.write) {
|
|
410
838
|
throw new Error('Wallet client is required for write operations');
|
|
411
839
|
}
|
|
412
|
-
return this.contract.write.
|
|
840
|
+
return this.contract.write.sendMultiSigToken([toAddress, value, tokenContractAddress, expireTime, sequenceId, signature], options);
|
|
841
|
+
}
|
|
842
|
+
/**
|
|
843
|
+
* setAutoFlush1155
|
|
844
|
+
* nonpayable
|
|
845
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
846
|
+
*/
|
|
847
|
+
async setAutoFlush1155(forwarderAddress, autoFlush, options) {
|
|
848
|
+
if (!this.contract.write) {
|
|
849
|
+
throw new Error('Wallet client is required for write operations');
|
|
850
|
+
}
|
|
851
|
+
return this.contract.write.setAutoFlush1155([forwarderAddress, autoFlush], options);
|
|
852
|
+
}
|
|
853
|
+
/**
|
|
854
|
+
* setAutoFlush721
|
|
855
|
+
* nonpayable
|
|
856
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
857
|
+
*/
|
|
858
|
+
async setAutoFlush721(forwarderAddress, autoFlush, options) {
|
|
859
|
+
if (!this.contract.write) {
|
|
860
|
+
throw new Error('Wallet client is required for write operations');
|
|
861
|
+
}
|
|
862
|
+
return this.contract.write.setAutoFlush721([forwarderAddress, autoFlush], options);
|
|
413
863
|
}
|
|
414
864
|
/**
|
|
415
865
|
* Simulate contract write operations (dry-run without sending transaction)
|
|
@@ -426,12 +876,36 @@ class WalletSimple_json {
|
|
|
426
876
|
}
|
|
427
877
|
return {
|
|
428
878
|
/**
|
|
429
|
-
* Simulate
|
|
879
|
+
* Simulate activateSafeMode
|
|
430
880
|
* Returns gas estimate and result without sending transaction
|
|
431
881
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
432
882
|
*/
|
|
433
|
-
async
|
|
434
|
-
return contract.simulate.
|
|
883
|
+
async activateSafeMode(options) {
|
|
884
|
+
return contract.simulate.activateSafeMode(options);
|
|
885
|
+
},
|
|
886
|
+
/**
|
|
887
|
+
* Simulate batchFlushERC1155ForwarderTokens
|
|
888
|
+
* Returns gas estimate and result without sending transaction
|
|
889
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
890
|
+
*/
|
|
891
|
+
async batchFlushERC1155ForwarderTokens(forwarderAddress, tokenContractAddress, tokenIds, options) {
|
|
892
|
+
return contract.simulate.batchFlushERC1155ForwarderTokens([forwarderAddress, tokenContractAddress, tokenIds], options);
|
|
893
|
+
},
|
|
894
|
+
/**
|
|
895
|
+
* Simulate flushERC1155ForwarderTokens
|
|
896
|
+
* Returns gas estimate and result without sending transaction
|
|
897
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
898
|
+
*/
|
|
899
|
+
async flushERC1155ForwarderTokens(forwarderAddress, tokenContractAddress, tokenId, options) {
|
|
900
|
+
return contract.simulate.flushERC1155ForwarderTokens([forwarderAddress, tokenContractAddress, tokenId], options);
|
|
901
|
+
},
|
|
902
|
+
/**
|
|
903
|
+
* Simulate flushERC721ForwarderTokens
|
|
904
|
+
* Returns gas estimate and result without sending transaction
|
|
905
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
906
|
+
*/
|
|
907
|
+
async flushERC721ForwarderTokens(forwarderAddress, tokenContractAddress, tokenId, options) {
|
|
908
|
+
return contract.simulate.flushERC721ForwarderTokens([forwarderAddress, tokenContractAddress, tokenId], options);
|
|
435
909
|
},
|
|
436
910
|
/**
|
|
437
911
|
* Simulate flushForwarderTokens
|
|
@@ -441,6 +915,38 @@ class WalletSimple_json {
|
|
|
441
915
|
async flushForwarderTokens(forwarderAddress, tokenContractAddress, options) {
|
|
442
916
|
return contract.simulate.flushForwarderTokens([forwarderAddress, tokenContractAddress], options);
|
|
443
917
|
},
|
|
918
|
+
/**
|
|
919
|
+
* Simulate init
|
|
920
|
+
* Returns gas estimate and result without sending transaction
|
|
921
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
922
|
+
*/
|
|
923
|
+
async init(allowedSigners, options) {
|
|
924
|
+
return contract.simulate.init([allowedSigners], options);
|
|
925
|
+
},
|
|
926
|
+
/**
|
|
927
|
+
* Simulate onERC1155BatchReceived
|
|
928
|
+
* Returns gas estimate and result without sending transaction
|
|
929
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
930
|
+
*/
|
|
931
|
+
async onERC1155BatchReceived(_operator, _from, ids, values, data, options) {
|
|
932
|
+
return contract.simulate.onERC1155BatchReceived([_operator, _from, ids, values, data], options);
|
|
933
|
+
},
|
|
934
|
+
/**
|
|
935
|
+
* Simulate onERC1155Received
|
|
936
|
+
* Returns gas estimate and result without sending transaction
|
|
937
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
938
|
+
*/
|
|
939
|
+
async onERC1155Received(_operator, _from, id, value, data, options) {
|
|
940
|
+
return contract.simulate.onERC1155Received([_operator, _from, id, value, data], options);
|
|
941
|
+
},
|
|
942
|
+
/**
|
|
943
|
+
* Simulate onERC721Received
|
|
944
|
+
* Returns gas estimate and result without sending transaction
|
|
945
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
946
|
+
*/
|
|
947
|
+
async onERC721Received(_operator, _from, _tokenId, _data, options) {
|
|
948
|
+
return contract.simulate.onERC721Received([_operator, _from, _tokenId, _data], options);
|
|
949
|
+
},
|
|
444
950
|
/**
|
|
445
951
|
* Simulate sendMultiSig
|
|
446
952
|
* Returns gas estimate and result without sending transaction
|
|
@@ -450,20 +956,36 @@ class WalletSimple_json {
|
|
|
450
956
|
return contract.simulate.sendMultiSig([toAddress, value, data, expireTime, sequenceId, signature], options);
|
|
451
957
|
},
|
|
452
958
|
/**
|
|
453
|
-
* Simulate
|
|
959
|
+
* Simulate sendMultiSigBatch
|
|
454
960
|
* Returns gas estimate and result without sending transaction
|
|
455
961
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
456
962
|
*/
|
|
457
|
-
async
|
|
458
|
-
return contract.simulate.
|
|
963
|
+
async sendMultiSigBatch(recipients, values, expireTime, sequenceId, signature, options) {
|
|
964
|
+
return contract.simulate.sendMultiSigBatch([recipients, values, expireTime, sequenceId, signature], options);
|
|
459
965
|
},
|
|
460
966
|
/**
|
|
461
|
-
* Simulate
|
|
967
|
+
* Simulate sendMultiSigToken
|
|
462
968
|
* Returns gas estimate and result without sending transaction
|
|
463
969
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
464
970
|
*/
|
|
465
|
-
async
|
|
466
|
-
return contract.simulate.
|
|
971
|
+
async sendMultiSigToken(toAddress, value, tokenContractAddress, expireTime, sequenceId, signature, options) {
|
|
972
|
+
return contract.simulate.sendMultiSigToken([toAddress, value, tokenContractAddress, expireTime, sequenceId, signature], options);
|
|
973
|
+
},
|
|
974
|
+
/**
|
|
975
|
+
* Simulate setAutoFlush1155
|
|
976
|
+
* Returns gas estimate and result without sending transaction
|
|
977
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
978
|
+
*/
|
|
979
|
+
async setAutoFlush1155(forwarderAddress, autoFlush, options) {
|
|
980
|
+
return contract.simulate.setAutoFlush1155([forwarderAddress, autoFlush], options);
|
|
981
|
+
},
|
|
982
|
+
/**
|
|
983
|
+
* Simulate setAutoFlush721
|
|
984
|
+
* Returns gas estimate and result without sending transaction
|
|
985
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
986
|
+
*/
|
|
987
|
+
async setAutoFlush721(forwarderAddress, autoFlush, options) {
|
|
988
|
+
return contract.simulate.setAutoFlush721([forwarderAddress, autoFlush], options);
|
|
467
989
|
}
|
|
468
990
|
};
|
|
469
991
|
}
|
|
@@ -481,6 +1003,42 @@ class WalletSimple_json {
|
|
|
481
1003
|
*/
|
|
482
1004
|
get watch() {
|
|
483
1005
|
return {
|
|
1006
|
+
/**
|
|
1007
|
+
* Watch BatchTransacted events
|
|
1008
|
+
* @param callback Function to call when event is emitted
|
|
1009
|
+
* @param filter Optional filter for indexed parameters
|
|
1010
|
+
* @returns Unwatch function to stop listening
|
|
1011
|
+
*/
|
|
1012
|
+
BatchTransacted: (callback) => {
|
|
1013
|
+
return this.publicClient.watchContractEvent({
|
|
1014
|
+
address: this.contractAddress,
|
|
1015
|
+
abi: exports.WalletSimple_jsonAbi,
|
|
1016
|
+
eventName: 'BatchTransacted',
|
|
1017
|
+
onLogs: (logs) => {
|
|
1018
|
+
logs.forEach((log) => {
|
|
1019
|
+
callback(log.args);
|
|
1020
|
+
});
|
|
1021
|
+
},
|
|
1022
|
+
});
|
|
1023
|
+
},
|
|
1024
|
+
/**
|
|
1025
|
+
* Watch BatchTransfer events
|
|
1026
|
+
* @param callback Function to call when event is emitted
|
|
1027
|
+
* @param filter Optional filter for indexed parameters
|
|
1028
|
+
* @returns Unwatch function to stop listening
|
|
1029
|
+
*/
|
|
1030
|
+
BatchTransfer: (callback) => {
|
|
1031
|
+
return this.publicClient.watchContractEvent({
|
|
1032
|
+
address: this.contractAddress,
|
|
1033
|
+
abi: exports.WalletSimple_jsonAbi,
|
|
1034
|
+
eventName: 'BatchTransfer',
|
|
1035
|
+
onLogs: (logs) => {
|
|
1036
|
+
logs.forEach((log) => {
|
|
1037
|
+
callback(log.args);
|
|
1038
|
+
});
|
|
1039
|
+
},
|
|
1040
|
+
});
|
|
1041
|
+
},
|
|
484
1042
|
/**
|
|
485
1043
|
* Watch Deposited events
|
|
486
1044
|
* @param callback Function to call when event is emitted
|