@gitmyabi/walletsimple 1.0.34 → 1.0.35
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 +130 -733
- package/contracts/WalletSimple_json.js +134 -692
- package/contracts/WalletSimple_json.ts +156 -925
- package/package.json +3 -3
|
@@ -8,603 +8,266 @@ import { getContract } from 'viem';
|
|
|
8
8
|
*/
|
|
9
9
|
export const WalletSimple_jsonAbi = [
|
|
10
10
|
{
|
|
11
|
-
"
|
|
11
|
+
"constant": false,
|
|
12
12
|
"inputs": [
|
|
13
13
|
{
|
|
14
|
-
"
|
|
15
|
-
"internalType": "address",
|
|
16
|
-
"name": "msgSender",
|
|
17
|
-
"type": "address"
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
"indexed": false,
|
|
21
|
-
"internalType": "address",
|
|
22
|
-
"name": "otherSigner",
|
|
14
|
+
"name": "toAddress",
|
|
23
15
|
"type": "address"
|
|
24
16
|
},
|
|
25
17
|
{
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"name": "operation",
|
|
29
|
-
"type": "bytes32"
|
|
30
|
-
}
|
|
31
|
-
],
|
|
32
|
-
"name": "BatchTransacted",
|
|
33
|
-
"type": "event"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"anonymous": false,
|
|
37
|
-
"inputs": [
|
|
38
|
-
{
|
|
39
|
-
"indexed": false,
|
|
40
|
-
"internalType": "address",
|
|
41
|
-
"name": "sender",
|
|
42
|
-
"type": "address"
|
|
18
|
+
"name": "value",
|
|
19
|
+
"type": "uint256"
|
|
43
20
|
},
|
|
44
21
|
{
|
|
45
|
-
"
|
|
46
|
-
"internalType": "address",
|
|
47
|
-
"name": "recipient",
|
|
22
|
+
"name": "tokenContractAddress",
|
|
48
23
|
"type": "address"
|
|
49
24
|
},
|
|
50
25
|
{
|
|
51
|
-
"
|
|
52
|
-
"internalType": "uint256",
|
|
53
|
-
"name": "value",
|
|
26
|
+
"name": "expireTime",
|
|
54
27
|
"type": "uint256"
|
|
55
|
-
}
|
|
56
|
-
],
|
|
57
|
-
"name": "BatchTransfer",
|
|
58
|
-
"type": "event"
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
"anonymous": false,
|
|
62
|
-
"inputs": [
|
|
63
|
-
{
|
|
64
|
-
"indexed": false,
|
|
65
|
-
"internalType": "address",
|
|
66
|
-
"name": "from",
|
|
67
|
-
"type": "address"
|
|
68
28
|
},
|
|
69
29
|
{
|
|
70
|
-
"
|
|
71
|
-
"internalType": "uint256",
|
|
72
|
-
"name": "value",
|
|
30
|
+
"name": "sequenceId",
|
|
73
31
|
"type": "uint256"
|
|
74
32
|
},
|
|
75
33
|
{
|
|
76
|
-
"
|
|
77
|
-
"internalType": "bytes",
|
|
78
|
-
"name": "data",
|
|
34
|
+
"name": "signature",
|
|
79
35
|
"type": "bytes"
|
|
80
36
|
}
|
|
81
37
|
],
|
|
82
|
-
"name": "
|
|
83
|
-
"
|
|
38
|
+
"name": "sendMultiSigToken",
|
|
39
|
+
"outputs": [],
|
|
40
|
+
"payable": false,
|
|
41
|
+
"stateMutability": "nonpayable",
|
|
42
|
+
"type": "function"
|
|
84
43
|
},
|
|
85
44
|
{
|
|
86
|
-
"
|
|
45
|
+
"constant": true,
|
|
87
46
|
"inputs": [
|
|
88
47
|
{
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"name": "msgSender",
|
|
92
|
-
"type": "address"
|
|
48
|
+
"name": "",
|
|
49
|
+
"type": "uint256"
|
|
93
50
|
}
|
|
94
51
|
],
|
|
95
|
-
"name": "
|
|
96
|
-
"
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
"anonymous": false,
|
|
100
|
-
"inputs": [
|
|
101
|
-
{
|
|
102
|
-
"indexed": false,
|
|
103
|
-
"internalType": "address",
|
|
104
|
-
"name": "msgSender",
|
|
105
|
-
"type": "address"
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
"indexed": false,
|
|
109
|
-
"internalType": "address",
|
|
110
|
-
"name": "otherSigner",
|
|
111
|
-
"type": "address"
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
"indexed": false,
|
|
115
|
-
"internalType": "bytes32",
|
|
116
|
-
"name": "operation",
|
|
117
|
-
"type": "bytes32"
|
|
118
|
-
},
|
|
52
|
+
"name": "signers",
|
|
53
|
+
"outputs": [
|
|
119
54
|
{
|
|
120
|
-
"
|
|
121
|
-
"internalType": "address",
|
|
122
|
-
"name": "toAddress",
|
|
55
|
+
"name": "",
|
|
123
56
|
"type": "address"
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
"indexed": false,
|
|
127
|
-
"internalType": "uint256",
|
|
128
|
-
"name": "value",
|
|
129
|
-
"type": "uint256"
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
"indexed": false,
|
|
133
|
-
"internalType": "bytes",
|
|
134
|
-
"name": "data",
|
|
135
|
-
"type": "bytes"
|
|
136
57
|
}
|
|
137
58
|
],
|
|
138
|
-
"
|
|
139
|
-
"
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
"stateMutability": "payable",
|
|
143
|
-
"type": "fallback"
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
"inputs": [],
|
|
147
|
-
"name": "activateSafeMode",
|
|
148
|
-
"outputs": [],
|
|
149
|
-
"stateMutability": "nonpayable",
|
|
59
|
+
"payable": false,
|
|
60
|
+
"stateMutability": "view",
|
|
150
61
|
"type": "function"
|
|
151
62
|
},
|
|
152
63
|
{
|
|
64
|
+
"constant": false,
|
|
153
65
|
"inputs": [
|
|
154
66
|
{
|
|
155
|
-
"internalType": "address payable",
|
|
156
67
|
"name": "forwarderAddress",
|
|
157
68
|
"type": "address"
|
|
158
69
|
},
|
|
159
70
|
{
|
|
160
|
-
"internalType": "address",
|
|
161
71
|
"name": "tokenContractAddress",
|
|
162
72
|
"type": "address"
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
"internalType": "uint256[]",
|
|
166
|
-
"name": "tokenIds",
|
|
167
|
-
"type": "uint256[]"
|
|
168
73
|
}
|
|
169
74
|
],
|
|
170
|
-
"name": "
|
|
75
|
+
"name": "flushForwarderTokens",
|
|
171
76
|
"outputs": [],
|
|
77
|
+
"payable": false,
|
|
172
78
|
"stateMutability": "nonpayable",
|
|
173
79
|
"type": "function"
|
|
174
80
|
},
|
|
175
81
|
{
|
|
82
|
+
"constant": false,
|
|
176
83
|
"inputs": [
|
|
177
84
|
{
|
|
178
|
-
"
|
|
179
|
-
"name": "forwarderAddress",
|
|
180
|
-
"type": "address"
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
"internalType": "address",
|
|
184
|
-
"name": "tokenContractAddress",
|
|
85
|
+
"name": "toAddress",
|
|
185
86
|
"type": "address"
|
|
186
87
|
},
|
|
187
88
|
{
|
|
188
|
-
"
|
|
189
|
-
"name": "tokenId",
|
|
89
|
+
"name": "value",
|
|
190
90
|
"type": "uint256"
|
|
191
|
-
}
|
|
192
|
-
],
|
|
193
|
-
"name": "flushERC1155ForwarderTokens",
|
|
194
|
-
"outputs": [],
|
|
195
|
-
"stateMutability": "nonpayable",
|
|
196
|
-
"type": "function"
|
|
197
|
-
},
|
|
198
|
-
{
|
|
199
|
-
"inputs": [
|
|
91
|
+
},
|
|
200
92
|
{
|
|
201
|
-
"
|
|
202
|
-
"
|
|
203
|
-
"type": "address"
|
|
93
|
+
"name": "data",
|
|
94
|
+
"type": "bytes"
|
|
204
95
|
},
|
|
205
96
|
{
|
|
206
|
-
"
|
|
207
|
-
"
|
|
208
|
-
"type": "address"
|
|
97
|
+
"name": "expireTime",
|
|
98
|
+
"type": "uint256"
|
|
209
99
|
},
|
|
210
100
|
{
|
|
211
|
-
"
|
|
212
|
-
"name": "tokenId",
|
|
101
|
+
"name": "sequenceId",
|
|
213
102
|
"type": "uint256"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"name": "signature",
|
|
106
|
+
"type": "bytes"
|
|
214
107
|
}
|
|
215
108
|
],
|
|
216
|
-
"name": "
|
|
109
|
+
"name": "sendMultiSig",
|
|
217
110
|
"outputs": [],
|
|
111
|
+
"payable": false,
|
|
218
112
|
"stateMutability": "nonpayable",
|
|
219
113
|
"type": "function"
|
|
220
114
|
},
|
|
221
115
|
{
|
|
116
|
+
"constant": true,
|
|
222
117
|
"inputs": [
|
|
223
118
|
{
|
|
224
|
-
"
|
|
225
|
-
"name": "forwarderAddress",
|
|
119
|
+
"name": "signer",
|
|
226
120
|
"type": "address"
|
|
227
|
-
}
|
|
121
|
+
}
|
|
122
|
+
],
|
|
123
|
+
"name": "isSigner",
|
|
124
|
+
"outputs": [
|
|
228
125
|
{
|
|
229
|
-
"
|
|
230
|
-
"
|
|
231
|
-
"type": "address"
|
|
126
|
+
"name": "",
|
|
127
|
+
"type": "bool"
|
|
232
128
|
}
|
|
233
129
|
],
|
|
234
|
-
"
|
|
235
|
-
"
|
|
236
|
-
"stateMutability": "nonpayable",
|
|
130
|
+
"payable": false,
|
|
131
|
+
"stateMutability": "view",
|
|
237
132
|
"type": "function"
|
|
238
133
|
},
|
|
239
134
|
{
|
|
135
|
+
"constant": true,
|
|
240
136
|
"inputs": [],
|
|
241
137
|
"name": "getNextSequenceId",
|
|
242
138
|
"outputs": [
|
|
243
139
|
{
|
|
244
|
-
"internalType": "uint256",
|
|
245
140
|
"name": "",
|
|
246
141
|
"type": "uint256"
|
|
247
142
|
}
|
|
248
143
|
],
|
|
144
|
+
"payable": false,
|
|
249
145
|
"stateMutability": "view",
|
|
250
146
|
"type": "function"
|
|
251
147
|
},
|
|
252
148
|
{
|
|
253
|
-
"
|
|
149
|
+
"constant": false,
|
|
150
|
+
"inputs": [],
|
|
151
|
+
"name": "createForwarder",
|
|
152
|
+
"outputs": [
|
|
254
153
|
{
|
|
255
|
-
"
|
|
256
|
-
"
|
|
257
|
-
"type": "address[]"
|
|
154
|
+
"name": "",
|
|
155
|
+
"type": "address"
|
|
258
156
|
}
|
|
259
157
|
],
|
|
260
|
-
"
|
|
261
|
-
"outputs": [],
|
|
158
|
+
"payable": false,
|
|
262
159
|
"stateMutability": "nonpayable",
|
|
263
160
|
"type": "function"
|
|
264
161
|
},
|
|
265
162
|
{
|
|
163
|
+
"constant": true,
|
|
266
164
|
"inputs": [],
|
|
267
|
-
"name": "
|
|
165
|
+
"name": "safeMode",
|
|
268
166
|
"outputs": [
|
|
269
167
|
{
|
|
270
|
-
"internalType": "bool",
|
|
271
168
|
"name": "",
|
|
272
169
|
"type": "bool"
|
|
273
170
|
}
|
|
274
171
|
],
|
|
172
|
+
"payable": false,
|
|
275
173
|
"stateMutability": "view",
|
|
276
174
|
"type": "function"
|
|
277
175
|
},
|
|
278
176
|
{
|
|
279
|
-
"
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
],
|
|
286
|
-
"name": "isSigner",
|
|
287
|
-
"outputs": [
|
|
288
|
-
{
|
|
289
|
-
"internalType": "bool",
|
|
290
|
-
"name": "",
|
|
291
|
-
"type": "bool"
|
|
292
|
-
}
|
|
293
|
-
],
|
|
294
|
-
"stateMutability": "view",
|
|
177
|
+
"constant": false,
|
|
178
|
+
"inputs": [],
|
|
179
|
+
"name": "activateSafeMode",
|
|
180
|
+
"outputs": [],
|
|
181
|
+
"payable": false,
|
|
182
|
+
"stateMutability": "nonpayable",
|
|
295
183
|
"type": "function"
|
|
296
184
|
},
|
|
297
185
|
{
|
|
298
186
|
"inputs": [
|
|
299
187
|
{
|
|
300
|
-
"
|
|
301
|
-
"
|
|
302
|
-
"type": "address"
|
|
303
|
-
},
|
|
304
|
-
{
|
|
305
|
-
"internalType": "address",
|
|
306
|
-
"name": "_from",
|
|
307
|
-
"type": "address"
|
|
308
|
-
},
|
|
309
|
-
{
|
|
310
|
-
"internalType": "uint256[]",
|
|
311
|
-
"name": "ids",
|
|
312
|
-
"type": "uint256[]"
|
|
313
|
-
},
|
|
314
|
-
{
|
|
315
|
-
"internalType": "uint256[]",
|
|
316
|
-
"name": "values",
|
|
317
|
-
"type": "uint256[]"
|
|
318
|
-
},
|
|
319
|
-
{
|
|
320
|
-
"internalType": "bytes",
|
|
321
|
-
"name": "data",
|
|
322
|
-
"type": "bytes"
|
|
323
|
-
}
|
|
324
|
-
],
|
|
325
|
-
"name": "onERC1155BatchReceived",
|
|
326
|
-
"outputs": [
|
|
327
|
-
{
|
|
328
|
-
"internalType": "bytes4",
|
|
329
|
-
"name": "",
|
|
330
|
-
"type": "bytes4"
|
|
188
|
+
"name": "allowedSigners",
|
|
189
|
+
"type": "address[]"
|
|
331
190
|
}
|
|
332
191
|
],
|
|
192
|
+
"payable": false,
|
|
333
193
|
"stateMutability": "nonpayable",
|
|
334
|
-
"type": "
|
|
194
|
+
"type": "constructor"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"payable": true,
|
|
198
|
+
"stateMutability": "payable",
|
|
199
|
+
"type": "fallback"
|
|
335
200
|
},
|
|
336
201
|
{
|
|
202
|
+
"anonymous": false,
|
|
337
203
|
"inputs": [
|
|
338
204
|
{
|
|
339
|
-
"
|
|
340
|
-
"name": "
|
|
341
|
-
"type": "address"
|
|
342
|
-
},
|
|
343
|
-
{
|
|
344
|
-
"internalType": "address",
|
|
345
|
-
"name": "_from",
|
|
205
|
+
"indexed": false,
|
|
206
|
+
"name": "from",
|
|
346
207
|
"type": "address"
|
|
347
208
|
},
|
|
348
209
|
{
|
|
349
|
-
"
|
|
350
|
-
"name": "id",
|
|
351
|
-
"type": "uint256"
|
|
352
|
-
},
|
|
353
|
-
{
|
|
354
|
-
"internalType": "uint256",
|
|
210
|
+
"indexed": false,
|
|
355
211
|
"name": "value",
|
|
356
212
|
"type": "uint256"
|
|
357
213
|
},
|
|
358
214
|
{
|
|
359
|
-
"
|
|
215
|
+
"indexed": false,
|
|
360
216
|
"name": "data",
|
|
361
217
|
"type": "bytes"
|
|
362
218
|
}
|
|
363
219
|
],
|
|
364
|
-
"name": "
|
|
365
|
-
"
|
|
220
|
+
"name": "Deposited",
|
|
221
|
+
"type": "event"
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"anonymous": false,
|
|
225
|
+
"inputs": [
|
|
366
226
|
{
|
|
367
|
-
"
|
|
368
|
-
"name": "",
|
|
369
|
-
"type": "
|
|
227
|
+
"indexed": false,
|
|
228
|
+
"name": "msgSender",
|
|
229
|
+
"type": "address"
|
|
370
230
|
}
|
|
371
231
|
],
|
|
372
|
-
"
|
|
373
|
-
"type": "
|
|
232
|
+
"name": "SafeModeActivated",
|
|
233
|
+
"type": "event"
|
|
374
234
|
},
|
|
375
235
|
{
|
|
236
|
+
"anonymous": false,
|
|
376
237
|
"inputs": [
|
|
377
238
|
{
|
|
378
|
-
"
|
|
379
|
-
"name": "
|
|
239
|
+
"indexed": false,
|
|
240
|
+
"name": "msgSender",
|
|
241
|
+
"type": "address"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"indexed": false,
|
|
245
|
+
"name": "otherSigner",
|
|
380
246
|
"type": "address"
|
|
381
247
|
},
|
|
382
248
|
{
|
|
383
|
-
"
|
|
384
|
-
"name": "
|
|
249
|
+
"indexed": false,
|
|
250
|
+
"name": "operation",
|
|
251
|
+
"type": "bytes32"
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"indexed": false,
|
|
255
|
+
"name": "toAddress",
|
|
385
256
|
"type": "address"
|
|
386
257
|
},
|
|
387
258
|
{
|
|
388
|
-
"
|
|
389
|
-
"name": "
|
|
259
|
+
"indexed": false,
|
|
260
|
+
"name": "value",
|
|
390
261
|
"type": "uint256"
|
|
391
262
|
},
|
|
392
263
|
{
|
|
393
|
-
"
|
|
394
|
-
"name": "
|
|
264
|
+
"indexed": false,
|
|
265
|
+
"name": "data",
|
|
395
266
|
"type": "bytes"
|
|
396
267
|
}
|
|
397
268
|
],
|
|
398
|
-
"name": "
|
|
399
|
-
"
|
|
400
|
-
{
|
|
401
|
-
"internalType": "bytes4",
|
|
402
|
-
"name": "",
|
|
403
|
-
"type": "bytes4"
|
|
404
|
-
}
|
|
405
|
-
],
|
|
406
|
-
"stateMutability": "nonpayable",
|
|
407
|
-
"type": "function"
|
|
408
|
-
},
|
|
409
|
-
{
|
|
410
|
-
"inputs": [],
|
|
411
|
-
"name": "safeMode",
|
|
412
|
-
"outputs": [
|
|
413
|
-
{
|
|
414
|
-
"internalType": "bool",
|
|
415
|
-
"name": "",
|
|
416
|
-
"type": "bool"
|
|
417
|
-
}
|
|
418
|
-
],
|
|
419
|
-
"stateMutability": "view",
|
|
420
|
-
"type": "function"
|
|
421
|
-
},
|
|
422
|
-
{
|
|
423
|
-
"inputs": [
|
|
424
|
-
{
|
|
425
|
-
"internalType": "address",
|
|
426
|
-
"name": "toAddress",
|
|
427
|
-
"type": "address"
|
|
428
|
-
},
|
|
429
|
-
{
|
|
430
|
-
"internalType": "uint256",
|
|
431
|
-
"name": "value",
|
|
432
|
-
"type": "uint256"
|
|
433
|
-
},
|
|
434
|
-
{
|
|
435
|
-
"internalType": "bytes",
|
|
436
|
-
"name": "data",
|
|
437
|
-
"type": "bytes"
|
|
438
|
-
},
|
|
439
|
-
{
|
|
440
|
-
"internalType": "uint256",
|
|
441
|
-
"name": "expireTime",
|
|
442
|
-
"type": "uint256"
|
|
443
|
-
},
|
|
444
|
-
{
|
|
445
|
-
"internalType": "uint256",
|
|
446
|
-
"name": "sequenceId",
|
|
447
|
-
"type": "uint256"
|
|
448
|
-
},
|
|
449
|
-
{
|
|
450
|
-
"internalType": "bytes",
|
|
451
|
-
"name": "signature",
|
|
452
|
-
"type": "bytes"
|
|
453
|
-
}
|
|
454
|
-
],
|
|
455
|
-
"name": "sendMultiSig",
|
|
456
|
-
"outputs": [],
|
|
457
|
-
"stateMutability": "nonpayable",
|
|
458
|
-
"type": "function"
|
|
459
|
-
},
|
|
460
|
-
{
|
|
461
|
-
"inputs": [
|
|
462
|
-
{
|
|
463
|
-
"internalType": "address[]",
|
|
464
|
-
"name": "recipients",
|
|
465
|
-
"type": "address[]"
|
|
466
|
-
},
|
|
467
|
-
{
|
|
468
|
-
"internalType": "uint256[]",
|
|
469
|
-
"name": "values",
|
|
470
|
-
"type": "uint256[]"
|
|
471
|
-
},
|
|
472
|
-
{
|
|
473
|
-
"internalType": "uint256",
|
|
474
|
-
"name": "expireTime",
|
|
475
|
-
"type": "uint256"
|
|
476
|
-
},
|
|
477
|
-
{
|
|
478
|
-
"internalType": "uint256",
|
|
479
|
-
"name": "sequenceId",
|
|
480
|
-
"type": "uint256"
|
|
481
|
-
},
|
|
482
|
-
{
|
|
483
|
-
"internalType": "bytes",
|
|
484
|
-
"name": "signature",
|
|
485
|
-
"type": "bytes"
|
|
486
|
-
}
|
|
487
|
-
],
|
|
488
|
-
"name": "sendMultiSigBatch",
|
|
489
|
-
"outputs": [],
|
|
490
|
-
"stateMutability": "nonpayable",
|
|
491
|
-
"type": "function"
|
|
492
|
-
},
|
|
493
|
-
{
|
|
494
|
-
"inputs": [
|
|
495
|
-
{
|
|
496
|
-
"internalType": "address",
|
|
497
|
-
"name": "toAddress",
|
|
498
|
-
"type": "address"
|
|
499
|
-
},
|
|
500
|
-
{
|
|
501
|
-
"internalType": "uint256",
|
|
502
|
-
"name": "value",
|
|
503
|
-
"type": "uint256"
|
|
504
|
-
},
|
|
505
|
-
{
|
|
506
|
-
"internalType": "address",
|
|
507
|
-
"name": "tokenContractAddress",
|
|
508
|
-
"type": "address"
|
|
509
|
-
},
|
|
510
|
-
{
|
|
511
|
-
"internalType": "uint256",
|
|
512
|
-
"name": "expireTime",
|
|
513
|
-
"type": "uint256"
|
|
514
|
-
},
|
|
515
|
-
{
|
|
516
|
-
"internalType": "uint256",
|
|
517
|
-
"name": "sequenceId",
|
|
518
|
-
"type": "uint256"
|
|
519
|
-
},
|
|
520
|
-
{
|
|
521
|
-
"internalType": "bytes",
|
|
522
|
-
"name": "signature",
|
|
523
|
-
"type": "bytes"
|
|
524
|
-
}
|
|
525
|
-
],
|
|
526
|
-
"name": "sendMultiSigToken",
|
|
527
|
-
"outputs": [],
|
|
528
|
-
"stateMutability": "nonpayable",
|
|
529
|
-
"type": "function"
|
|
530
|
-
},
|
|
531
|
-
{
|
|
532
|
-
"inputs": [
|
|
533
|
-
{
|
|
534
|
-
"internalType": "address",
|
|
535
|
-
"name": "forwarderAddress",
|
|
536
|
-
"type": "address"
|
|
537
|
-
},
|
|
538
|
-
{
|
|
539
|
-
"internalType": "bool",
|
|
540
|
-
"name": "autoFlush",
|
|
541
|
-
"type": "bool"
|
|
542
|
-
}
|
|
543
|
-
],
|
|
544
|
-
"name": "setAutoFlush1155",
|
|
545
|
-
"outputs": [],
|
|
546
|
-
"stateMutability": "nonpayable",
|
|
547
|
-
"type": "function"
|
|
548
|
-
},
|
|
549
|
-
{
|
|
550
|
-
"inputs": [
|
|
551
|
-
{
|
|
552
|
-
"internalType": "address",
|
|
553
|
-
"name": "forwarderAddress",
|
|
554
|
-
"type": "address"
|
|
555
|
-
},
|
|
556
|
-
{
|
|
557
|
-
"internalType": "bool",
|
|
558
|
-
"name": "autoFlush",
|
|
559
|
-
"type": "bool"
|
|
560
|
-
}
|
|
561
|
-
],
|
|
562
|
-
"name": "setAutoFlush721",
|
|
563
|
-
"outputs": [],
|
|
564
|
-
"stateMutability": "nonpayable",
|
|
565
|
-
"type": "function"
|
|
566
|
-
},
|
|
567
|
-
{
|
|
568
|
-
"inputs": [
|
|
569
|
-
{
|
|
570
|
-
"internalType": "address",
|
|
571
|
-
"name": "",
|
|
572
|
-
"type": "address"
|
|
573
|
-
}
|
|
574
|
-
],
|
|
575
|
-
"name": "signers",
|
|
576
|
-
"outputs": [
|
|
577
|
-
{
|
|
578
|
-
"internalType": "bool",
|
|
579
|
-
"name": "",
|
|
580
|
-
"type": "bool"
|
|
581
|
-
}
|
|
582
|
-
],
|
|
583
|
-
"stateMutability": "view",
|
|
584
|
-
"type": "function"
|
|
585
|
-
},
|
|
586
|
-
{
|
|
587
|
-
"inputs": [
|
|
588
|
-
{
|
|
589
|
-
"internalType": "bytes4",
|
|
590
|
-
"name": "interfaceId",
|
|
591
|
-
"type": "bytes4"
|
|
592
|
-
}
|
|
593
|
-
],
|
|
594
|
-
"name": "supportsInterface",
|
|
595
|
-
"outputs": [
|
|
596
|
-
{
|
|
597
|
-
"internalType": "bool",
|
|
598
|
-
"name": "",
|
|
599
|
-
"type": "bool"
|
|
600
|
-
}
|
|
601
|
-
],
|
|
602
|
-
"stateMutability": "view",
|
|
603
|
-
"type": "function"
|
|
604
|
-
},
|
|
605
|
-
{
|
|
606
|
-
"stateMutability": "payable",
|
|
607
|
-
"type": "receive"
|
|
269
|
+
"name": "Transacted",
|
|
270
|
+
"type": "event"
|
|
608
271
|
}
|
|
609
272
|
] as const satisfies Abi;
|
|
610
273
|
|
|
@@ -690,267 +353,44 @@ export class WalletSimple_json {
|
|
|
690
353
|
return this.contract;
|
|
691
354
|
}
|
|
692
355
|
|
|
693
|
-
/**
|
|
694
|
-
* getNextSequenceId
|
|
695
|
-
* view
|
|
696
|
-
*/
|
|
697
|
-
async getNextSequenceId(): Promise<bigint> {
|
|
698
|
-
return this.contract.read.getNextSequenceId() as Promise<bigint>;
|
|
699
|
-
}
|
|
700
|
-
|
|
701
|
-
/**
|
|
702
|
-
* initialized
|
|
703
|
-
* view
|
|
704
|
-
*/
|
|
705
|
-
async initialized(): Promise<boolean> {
|
|
706
|
-
return this.contract.read.initialized() as Promise<boolean>;
|
|
707
|
-
}
|
|
708
|
-
|
|
709
|
-
/**
|
|
710
|
-
* isSigner
|
|
711
|
-
* view
|
|
712
|
-
*/
|
|
713
|
-
async isSigner(signer: `0x${string}`): Promise<boolean> {
|
|
714
|
-
return this.contract.read.isSigner([signer] as const) as Promise<boolean>;
|
|
715
|
-
}
|
|
716
|
-
|
|
717
|
-
/**
|
|
718
|
-
* safeMode
|
|
719
|
-
* view
|
|
720
|
-
*/
|
|
721
|
-
async safeMode(): Promise<boolean> {
|
|
722
|
-
return this.contract.read.safeMode() as Promise<boolean>;
|
|
723
|
-
}
|
|
724
|
-
|
|
725
356
|
/**
|
|
726
357
|
* signers
|
|
727
358
|
* view
|
|
728
359
|
*/
|
|
729
|
-
async signers(arg0:
|
|
730
|
-
return this.contract.read.signers([arg0] as const) as Promise
|
|
731
|
-
}
|
|
732
|
-
|
|
733
|
-
/**
|
|
734
|
-
* supportsInterface
|
|
735
|
-
* view
|
|
736
|
-
*/
|
|
737
|
-
async supportsInterface(interfaceId: `0x${string}`): Promise<boolean> {
|
|
738
|
-
return this.contract.read.supportsInterface([interfaceId] as const) as Promise<boolean>;
|
|
739
|
-
}
|
|
740
|
-
|
|
741
|
-
/**
|
|
742
|
-
* activateSafeMode
|
|
743
|
-
* nonpayable
|
|
744
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
745
|
-
*/
|
|
746
|
-
async activateSafeMode(options?: {
|
|
747
|
-
accessList?: import('viem').AccessList;
|
|
748
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
749
|
-
chain?: import('viem').Chain | null;
|
|
750
|
-
dataSuffix?: `0x${string}`;
|
|
751
|
-
gas?: bigint;
|
|
752
|
-
gasPrice?: bigint;
|
|
753
|
-
maxFeePerGas?: bigint;
|
|
754
|
-
maxPriorityFeePerGas?: bigint;
|
|
755
|
-
nonce?: number;
|
|
756
|
-
value?: bigint;
|
|
757
|
-
}): Promise<`0x${string}`> {
|
|
758
|
-
if (!this.contract.write) {
|
|
759
|
-
throw new Error('Wallet client is required for write operations');
|
|
760
|
-
}
|
|
761
|
-
return this.contract.write.activateSafeMode(options) as Promise<`0x${string}`>;
|
|
762
|
-
}
|
|
763
|
-
|
|
764
|
-
/**
|
|
765
|
-
* batchFlushERC1155ForwarderTokens
|
|
766
|
-
* nonpayable
|
|
767
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
768
|
-
*/
|
|
769
|
-
async batchFlushERC1155ForwarderTokens(forwarderAddress: `0x${string}`, tokenContractAddress: `0x${string}`, tokenIds: bigint[], options?: {
|
|
770
|
-
accessList?: import('viem').AccessList;
|
|
771
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
772
|
-
chain?: import('viem').Chain | null;
|
|
773
|
-
dataSuffix?: `0x${string}`;
|
|
774
|
-
gas?: bigint;
|
|
775
|
-
gasPrice?: bigint;
|
|
776
|
-
maxFeePerGas?: bigint;
|
|
777
|
-
maxPriorityFeePerGas?: bigint;
|
|
778
|
-
nonce?: number;
|
|
779
|
-
value?: bigint;
|
|
780
|
-
}): Promise<`0x${string}`> {
|
|
781
|
-
if (!this.contract.write) {
|
|
782
|
-
throw new Error('Wallet client is required for write operations');
|
|
783
|
-
}
|
|
784
|
-
return this.contract.write.batchFlushERC1155ForwarderTokens([forwarderAddress, tokenContractAddress, tokenIds] as const, options) as Promise<`0x${string}`>;
|
|
785
|
-
}
|
|
786
|
-
|
|
787
|
-
/**
|
|
788
|
-
* flushERC1155ForwarderTokens
|
|
789
|
-
* nonpayable
|
|
790
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
791
|
-
*/
|
|
792
|
-
async flushERC1155ForwarderTokens(forwarderAddress: `0x${string}`, tokenContractAddress: `0x${string}`, tokenId: bigint, options?: {
|
|
793
|
-
accessList?: import('viem').AccessList;
|
|
794
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
795
|
-
chain?: import('viem').Chain | null;
|
|
796
|
-
dataSuffix?: `0x${string}`;
|
|
797
|
-
gas?: bigint;
|
|
798
|
-
gasPrice?: bigint;
|
|
799
|
-
maxFeePerGas?: bigint;
|
|
800
|
-
maxPriorityFeePerGas?: bigint;
|
|
801
|
-
nonce?: number;
|
|
802
|
-
value?: bigint;
|
|
803
|
-
}): Promise<`0x${string}`> {
|
|
804
|
-
if (!this.contract.write) {
|
|
805
|
-
throw new Error('Wallet client is required for write operations');
|
|
806
|
-
}
|
|
807
|
-
return this.contract.write.flushERC1155ForwarderTokens([forwarderAddress, tokenContractAddress, tokenId] as const, options) as Promise<`0x${string}`>;
|
|
808
|
-
}
|
|
809
|
-
|
|
810
|
-
/**
|
|
811
|
-
* flushERC721ForwarderTokens
|
|
812
|
-
* nonpayable
|
|
813
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
814
|
-
*/
|
|
815
|
-
async flushERC721ForwarderTokens(forwarderAddress: `0x${string}`, tokenContractAddress: `0x${string}`, tokenId: bigint, options?: {
|
|
816
|
-
accessList?: import('viem').AccessList;
|
|
817
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
818
|
-
chain?: import('viem').Chain | null;
|
|
819
|
-
dataSuffix?: `0x${string}`;
|
|
820
|
-
gas?: bigint;
|
|
821
|
-
gasPrice?: bigint;
|
|
822
|
-
maxFeePerGas?: bigint;
|
|
823
|
-
maxPriorityFeePerGas?: bigint;
|
|
824
|
-
nonce?: number;
|
|
825
|
-
value?: bigint;
|
|
826
|
-
}): Promise<`0x${string}`> {
|
|
827
|
-
if (!this.contract.write) {
|
|
828
|
-
throw new Error('Wallet client is required for write operations');
|
|
829
|
-
}
|
|
830
|
-
return this.contract.write.flushERC721ForwarderTokens([forwarderAddress, tokenContractAddress, tokenId] as const, options) as Promise<`0x${string}`>;
|
|
831
|
-
}
|
|
832
|
-
|
|
833
|
-
/**
|
|
834
|
-
* flushForwarderTokens
|
|
835
|
-
* nonpayable
|
|
836
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
837
|
-
*/
|
|
838
|
-
async flushForwarderTokens(forwarderAddress: `0x${string}`, tokenContractAddress: `0x${string}`, options?: {
|
|
839
|
-
accessList?: import('viem').AccessList;
|
|
840
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
841
|
-
chain?: import('viem').Chain | null;
|
|
842
|
-
dataSuffix?: `0x${string}`;
|
|
843
|
-
gas?: bigint;
|
|
844
|
-
gasPrice?: bigint;
|
|
845
|
-
maxFeePerGas?: bigint;
|
|
846
|
-
maxPriorityFeePerGas?: bigint;
|
|
847
|
-
nonce?: number;
|
|
848
|
-
value?: bigint;
|
|
849
|
-
}): Promise<`0x${string}`> {
|
|
850
|
-
if (!this.contract.write) {
|
|
851
|
-
throw new Error('Wallet client is required for write operations');
|
|
852
|
-
}
|
|
853
|
-
return this.contract.write.flushForwarderTokens([forwarderAddress, tokenContractAddress] as const, options) as Promise<`0x${string}`>;
|
|
854
|
-
}
|
|
855
|
-
|
|
856
|
-
/**
|
|
857
|
-
* init
|
|
858
|
-
* nonpayable
|
|
859
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
860
|
-
*/
|
|
861
|
-
async init(allowedSigners: `0x${string}`[], options?: {
|
|
862
|
-
accessList?: import('viem').AccessList;
|
|
863
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
864
|
-
chain?: import('viem').Chain | null;
|
|
865
|
-
dataSuffix?: `0x${string}`;
|
|
866
|
-
gas?: bigint;
|
|
867
|
-
gasPrice?: bigint;
|
|
868
|
-
maxFeePerGas?: bigint;
|
|
869
|
-
maxPriorityFeePerGas?: bigint;
|
|
870
|
-
nonce?: number;
|
|
871
|
-
value?: bigint;
|
|
872
|
-
}): Promise<`0x${string}`> {
|
|
873
|
-
if (!this.contract.write) {
|
|
874
|
-
throw new Error('Wallet client is required for write operations');
|
|
875
|
-
}
|
|
876
|
-
return this.contract.write.init([allowedSigners] as const, options) as Promise<`0x${string}`>;
|
|
877
|
-
}
|
|
878
|
-
|
|
879
|
-
/**
|
|
880
|
-
* onERC1155BatchReceived
|
|
881
|
-
* nonpayable
|
|
882
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
883
|
-
*/
|
|
884
|
-
async onERC1155BatchReceived(_operator: `0x${string}`, _from: `0x${string}`, ids: bigint[], values: bigint[], data: `0x${string}`, options?: {
|
|
885
|
-
accessList?: import('viem').AccessList;
|
|
886
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
887
|
-
chain?: import('viem').Chain | null;
|
|
888
|
-
dataSuffix?: `0x${string}`;
|
|
889
|
-
gas?: bigint;
|
|
890
|
-
gasPrice?: bigint;
|
|
891
|
-
maxFeePerGas?: bigint;
|
|
892
|
-
maxPriorityFeePerGas?: bigint;
|
|
893
|
-
nonce?: number;
|
|
894
|
-
value?: bigint;
|
|
895
|
-
}): Promise<`0x${string}`> {
|
|
896
|
-
if (!this.contract.write) {
|
|
897
|
-
throw new Error('Wallet client is required for write operations');
|
|
898
|
-
}
|
|
899
|
-
return this.contract.write.onERC1155BatchReceived([_operator, _from, ids, values, data] as const, options) as Promise<`0x${string}`>;
|
|
360
|
+
async signers(arg0: bigint): Promise<`0x${string}`> {
|
|
361
|
+
return this.contract.read.signers([arg0] as const) as Promise<`0x${string}`>;
|
|
900
362
|
}
|
|
901
363
|
|
|
902
364
|
/**
|
|
903
|
-
*
|
|
904
|
-
*
|
|
905
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
365
|
+
* isSigner
|
|
366
|
+
* view
|
|
906
367
|
*/
|
|
907
|
-
async
|
|
908
|
-
|
|
909
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
910
|
-
chain?: import('viem').Chain | null;
|
|
911
|
-
dataSuffix?: `0x${string}`;
|
|
912
|
-
gas?: bigint;
|
|
913
|
-
gasPrice?: bigint;
|
|
914
|
-
maxFeePerGas?: bigint;
|
|
915
|
-
maxPriorityFeePerGas?: bigint;
|
|
916
|
-
nonce?: number;
|
|
917
|
-
value?: bigint;
|
|
918
|
-
}): Promise<`0x${string}`> {
|
|
919
|
-
if (!this.contract.write) {
|
|
920
|
-
throw new Error('Wallet client is required for write operations');
|
|
921
|
-
}
|
|
922
|
-
return this.contract.write.onERC1155Received([_operator, _from, id, value, data] as const, options) as Promise<`0x${string}`>;
|
|
368
|
+
async isSigner(signer: `0x${string}`): Promise<boolean> {
|
|
369
|
+
return this.contract.read.isSigner([signer] as const) as Promise<boolean>;
|
|
923
370
|
}
|
|
924
371
|
|
|
925
372
|
/**
|
|
926
|
-
*
|
|
927
|
-
*
|
|
928
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
373
|
+
* getNextSequenceId
|
|
374
|
+
* view
|
|
929
375
|
*/
|
|
930
|
-
async
|
|
931
|
-
|
|
932
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
933
|
-
chain?: import('viem').Chain | null;
|
|
934
|
-
dataSuffix?: `0x${string}`;
|
|
935
|
-
gas?: bigint;
|
|
936
|
-
gasPrice?: bigint;
|
|
937
|
-
maxFeePerGas?: bigint;
|
|
938
|
-
maxPriorityFeePerGas?: bigint;
|
|
939
|
-
nonce?: number;
|
|
940
|
-
value?: bigint;
|
|
941
|
-
}): Promise<`0x${string}`> {
|
|
942
|
-
if (!this.contract.write) {
|
|
943
|
-
throw new Error('Wallet client is required for write operations');
|
|
944
|
-
}
|
|
945
|
-
return this.contract.write.onERC721Received([_operator, _from, _tokenId, _data] as const, options) as Promise<`0x${string}`>;
|
|
376
|
+
async getNextSequenceId(): Promise<bigint> {
|
|
377
|
+
return this.contract.read.getNextSequenceId() as Promise<bigint>;
|
|
946
378
|
}
|
|
947
379
|
|
|
948
380
|
/**
|
|
949
|
-
*
|
|
381
|
+
* safeMode
|
|
382
|
+
* view
|
|
383
|
+
*/
|
|
384
|
+
async safeMode(): Promise<boolean> {
|
|
385
|
+
return this.contract.read.safeMode() as Promise<boolean>;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
/**
|
|
389
|
+
* sendMultiSigToken
|
|
950
390
|
* nonpayable
|
|
951
391
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
952
392
|
*/
|
|
953
|
-
async
|
|
393
|
+
async sendMultiSigToken(toAddress: `0x${string}`, value: bigint, tokenContractAddress: `0x${string}`, expireTime: bigint, sequenceId: bigint, signature: `0x${string}`, options?: {
|
|
954
394
|
accessList?: import('viem').AccessList;
|
|
955
395
|
authorizationList?: import('viem').AuthorizationList;
|
|
956
396
|
chain?: import('viem').Chain | null;
|
|
@@ -965,15 +405,15 @@ export class WalletSimple_json {
|
|
|
965
405
|
if (!this.contract.write) {
|
|
966
406
|
throw new Error('Wallet client is required for write operations');
|
|
967
407
|
}
|
|
968
|
-
return this.contract.write.
|
|
408
|
+
return this.contract.write.sendMultiSigToken([toAddress, value, tokenContractAddress, expireTime, sequenceId, signature] as const, options) as Promise<`0x${string}`>;
|
|
969
409
|
}
|
|
970
410
|
|
|
971
411
|
/**
|
|
972
|
-
*
|
|
412
|
+
* flushForwarderTokens
|
|
973
413
|
* nonpayable
|
|
974
414
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
975
415
|
*/
|
|
976
|
-
async
|
|
416
|
+
async flushForwarderTokens(forwarderAddress: `0x${string}`, tokenContractAddress: `0x${string}`, options?: {
|
|
977
417
|
accessList?: import('viem').AccessList;
|
|
978
418
|
authorizationList?: import('viem').AuthorizationList;
|
|
979
419
|
chain?: import('viem').Chain | null;
|
|
@@ -988,15 +428,15 @@ export class WalletSimple_json {
|
|
|
988
428
|
if (!this.contract.write) {
|
|
989
429
|
throw new Error('Wallet client is required for write operations');
|
|
990
430
|
}
|
|
991
|
-
return this.contract.write.
|
|
431
|
+
return this.contract.write.flushForwarderTokens([forwarderAddress, tokenContractAddress] as const, options) as Promise<`0x${string}`>;
|
|
992
432
|
}
|
|
993
433
|
|
|
994
434
|
/**
|
|
995
|
-
*
|
|
435
|
+
* sendMultiSig
|
|
996
436
|
* nonpayable
|
|
997
437
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
998
438
|
*/
|
|
999
|
-
async
|
|
439
|
+
async sendMultiSig(toAddress: `0x${string}`, value: bigint, data: `0x${string}`, expireTime: bigint, sequenceId: bigint, signature: `0x${string}`, options?: {
|
|
1000
440
|
accessList?: import('viem').AccessList;
|
|
1001
441
|
authorizationList?: import('viem').AuthorizationList;
|
|
1002
442
|
chain?: import('viem').Chain | null;
|
|
@@ -1011,15 +451,15 @@ export class WalletSimple_json {
|
|
|
1011
451
|
if (!this.contract.write) {
|
|
1012
452
|
throw new Error('Wallet client is required for write operations');
|
|
1013
453
|
}
|
|
1014
|
-
return this.contract.write.
|
|
454
|
+
return this.contract.write.sendMultiSig([toAddress, value, data, expireTime, sequenceId, signature] as const, options) as Promise<`0x${string}`>;
|
|
1015
455
|
}
|
|
1016
456
|
|
|
1017
457
|
/**
|
|
1018
|
-
*
|
|
458
|
+
* createForwarder
|
|
1019
459
|
* nonpayable
|
|
1020
460
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1021
461
|
*/
|
|
1022
|
-
async
|
|
462
|
+
async createForwarder(options?: {
|
|
1023
463
|
accessList?: import('viem').AccessList;
|
|
1024
464
|
authorizationList?: import('viem').AuthorizationList;
|
|
1025
465
|
chain?: import('viem').Chain | null;
|
|
@@ -1034,15 +474,15 @@ export class WalletSimple_json {
|
|
|
1034
474
|
if (!this.contract.write) {
|
|
1035
475
|
throw new Error('Wallet client is required for write operations');
|
|
1036
476
|
}
|
|
1037
|
-
return this.contract.write.
|
|
477
|
+
return this.contract.write.createForwarder(options) as Promise<`0x${string}`>;
|
|
1038
478
|
}
|
|
1039
479
|
|
|
1040
480
|
/**
|
|
1041
|
-
*
|
|
481
|
+
* activateSafeMode
|
|
1042
482
|
* nonpayable
|
|
1043
483
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1044
484
|
*/
|
|
1045
|
-
async
|
|
485
|
+
async activateSafeMode(options?: {
|
|
1046
486
|
accessList?: import('viem').AccessList;
|
|
1047
487
|
authorizationList?: import('viem').AuthorizationList;
|
|
1048
488
|
chain?: import('viem').Chain | null;
|
|
@@ -1057,7 +497,7 @@ export class WalletSimple_json {
|
|
|
1057
497
|
if (!this.contract.write) {
|
|
1058
498
|
throw new Error('Wallet client is required for write operations');
|
|
1059
499
|
}
|
|
1060
|
-
return this.contract.write.
|
|
500
|
+
return this.contract.write.activateSafeMode(options) as Promise<`0x${string}`>;
|
|
1061
501
|
}
|
|
1062
502
|
|
|
1063
503
|
|
|
@@ -1077,68 +517,11 @@ export class WalletSimple_json {
|
|
|
1077
517
|
}
|
|
1078
518
|
return {
|
|
1079
519
|
/**
|
|
1080
|
-
* Simulate
|
|
1081
|
-
* Returns gas estimate and result without sending transaction
|
|
1082
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1083
|
-
*/
|
|
1084
|
-
async activateSafeMode(options?: {
|
|
1085
|
-
accessList?: import('viem').AccessList;
|
|
1086
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1087
|
-
chain?: import('viem').Chain | null;
|
|
1088
|
-
dataSuffix?: `0x${string}`;
|
|
1089
|
-
gas?: bigint;
|
|
1090
|
-
gasPrice?: bigint;
|
|
1091
|
-
maxFeePerGas?: bigint;
|
|
1092
|
-
maxPriorityFeePerGas?: bigint;
|
|
1093
|
-
nonce?: number;
|
|
1094
|
-
value?: bigint;
|
|
1095
|
-
}): Promise<void> {
|
|
1096
|
-
return contract.simulate.activateSafeMode(options) as Promise<void>;
|
|
1097
|
-
},
|
|
1098
|
-
/**
|
|
1099
|
-
* Simulate batchFlushERC1155ForwarderTokens
|
|
1100
|
-
* Returns gas estimate and result without sending transaction
|
|
1101
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1102
|
-
*/
|
|
1103
|
-
async batchFlushERC1155ForwarderTokens(forwarderAddress: `0x${string}`, tokenContractAddress: `0x${string}`, tokenIds: bigint[], options?: {
|
|
1104
|
-
accessList?: import('viem').AccessList;
|
|
1105
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1106
|
-
chain?: import('viem').Chain | null;
|
|
1107
|
-
dataSuffix?: `0x${string}`;
|
|
1108
|
-
gas?: bigint;
|
|
1109
|
-
gasPrice?: bigint;
|
|
1110
|
-
maxFeePerGas?: bigint;
|
|
1111
|
-
maxPriorityFeePerGas?: bigint;
|
|
1112
|
-
nonce?: number;
|
|
1113
|
-
value?: bigint;
|
|
1114
|
-
}): Promise<void> {
|
|
1115
|
-
return contract.simulate.batchFlushERC1155ForwarderTokens([forwarderAddress, tokenContractAddress, tokenIds] as const, options) as Promise<void>;
|
|
1116
|
-
},
|
|
1117
|
-
/**
|
|
1118
|
-
* Simulate flushERC1155ForwarderTokens
|
|
1119
|
-
* Returns gas estimate and result without sending transaction
|
|
1120
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1121
|
-
*/
|
|
1122
|
-
async flushERC1155ForwarderTokens(forwarderAddress: `0x${string}`, tokenContractAddress: `0x${string}`, tokenId: bigint, options?: {
|
|
1123
|
-
accessList?: import('viem').AccessList;
|
|
1124
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1125
|
-
chain?: import('viem').Chain | null;
|
|
1126
|
-
dataSuffix?: `0x${string}`;
|
|
1127
|
-
gas?: bigint;
|
|
1128
|
-
gasPrice?: bigint;
|
|
1129
|
-
maxFeePerGas?: bigint;
|
|
1130
|
-
maxPriorityFeePerGas?: bigint;
|
|
1131
|
-
nonce?: number;
|
|
1132
|
-
value?: bigint;
|
|
1133
|
-
}): Promise<void> {
|
|
1134
|
-
return contract.simulate.flushERC1155ForwarderTokens([forwarderAddress, tokenContractAddress, tokenId] as const, options) as Promise<void>;
|
|
1135
|
-
},
|
|
1136
|
-
/**
|
|
1137
|
-
* Simulate flushERC721ForwarderTokens
|
|
520
|
+
* Simulate sendMultiSigToken
|
|
1138
521
|
* Returns gas estimate and result without sending transaction
|
|
1139
522
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1140
523
|
*/
|
|
1141
|
-
async
|
|
524
|
+
async sendMultiSigToken(toAddress: `0x${string}`, value: bigint, tokenContractAddress: `0x${string}`, expireTime: bigint, sequenceId: bigint, signature: `0x${string}`, options?: {
|
|
1142
525
|
accessList?: import('viem').AccessList;
|
|
1143
526
|
authorizationList?: import('viem').AuthorizationList;
|
|
1144
527
|
chain?: import('viem').Chain | null;
|
|
@@ -1150,7 +533,7 @@ export class WalletSimple_json {
|
|
|
1150
533
|
nonce?: number;
|
|
1151
534
|
value?: bigint;
|
|
1152
535
|
}): Promise<void> {
|
|
1153
|
-
return contract.simulate.
|
|
536
|
+
return contract.simulate.sendMultiSigToken([toAddress, value, tokenContractAddress, expireTime, sequenceId, signature] as const, options) as Promise<void>;
|
|
1154
537
|
},
|
|
1155
538
|
/**
|
|
1156
539
|
* Simulate flushForwarderTokens
|
|
@@ -1171,82 +554,6 @@ export class WalletSimple_json {
|
|
|
1171
554
|
}): Promise<void> {
|
|
1172
555
|
return contract.simulate.flushForwarderTokens([forwarderAddress, tokenContractAddress] as const, options) as Promise<void>;
|
|
1173
556
|
},
|
|
1174
|
-
/**
|
|
1175
|
-
* Simulate init
|
|
1176
|
-
* Returns gas estimate and result without sending transaction
|
|
1177
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1178
|
-
*/
|
|
1179
|
-
async init(allowedSigners: `0x${string}`[], options?: {
|
|
1180
|
-
accessList?: import('viem').AccessList;
|
|
1181
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1182
|
-
chain?: import('viem').Chain | null;
|
|
1183
|
-
dataSuffix?: `0x${string}`;
|
|
1184
|
-
gas?: bigint;
|
|
1185
|
-
gasPrice?: bigint;
|
|
1186
|
-
maxFeePerGas?: bigint;
|
|
1187
|
-
maxPriorityFeePerGas?: bigint;
|
|
1188
|
-
nonce?: number;
|
|
1189
|
-
value?: bigint;
|
|
1190
|
-
}): Promise<void> {
|
|
1191
|
-
return contract.simulate.init([allowedSigners] as const, options) as Promise<void>;
|
|
1192
|
-
},
|
|
1193
|
-
/**
|
|
1194
|
-
* Simulate onERC1155BatchReceived
|
|
1195
|
-
* Returns gas estimate and result without sending transaction
|
|
1196
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1197
|
-
*/
|
|
1198
|
-
async onERC1155BatchReceived(_operator: `0x${string}`, _from: `0x${string}`, ids: bigint[], values: bigint[], data: `0x${string}`, options?: {
|
|
1199
|
-
accessList?: import('viem').AccessList;
|
|
1200
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1201
|
-
chain?: import('viem').Chain | null;
|
|
1202
|
-
dataSuffix?: `0x${string}`;
|
|
1203
|
-
gas?: bigint;
|
|
1204
|
-
gasPrice?: bigint;
|
|
1205
|
-
maxFeePerGas?: bigint;
|
|
1206
|
-
maxPriorityFeePerGas?: bigint;
|
|
1207
|
-
nonce?: number;
|
|
1208
|
-
value?: bigint;
|
|
1209
|
-
}): Promise<`0x${string}`> {
|
|
1210
|
-
return contract.simulate.onERC1155BatchReceived([_operator, _from, ids, values, data] as const, options) as Promise<`0x${string}`>;
|
|
1211
|
-
},
|
|
1212
|
-
/**
|
|
1213
|
-
* Simulate onERC1155Received
|
|
1214
|
-
* Returns gas estimate and result without sending transaction
|
|
1215
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1216
|
-
*/
|
|
1217
|
-
async onERC1155Received(_operator: `0x${string}`, _from: `0x${string}`, id: bigint, value: bigint, data: `0x${string}`, options?: {
|
|
1218
|
-
accessList?: import('viem').AccessList;
|
|
1219
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1220
|
-
chain?: import('viem').Chain | null;
|
|
1221
|
-
dataSuffix?: `0x${string}`;
|
|
1222
|
-
gas?: bigint;
|
|
1223
|
-
gasPrice?: bigint;
|
|
1224
|
-
maxFeePerGas?: bigint;
|
|
1225
|
-
maxPriorityFeePerGas?: bigint;
|
|
1226
|
-
nonce?: number;
|
|
1227
|
-
value?: bigint;
|
|
1228
|
-
}): Promise<`0x${string}`> {
|
|
1229
|
-
return contract.simulate.onERC1155Received([_operator, _from, id, value, data] as const, options) as Promise<`0x${string}`>;
|
|
1230
|
-
},
|
|
1231
|
-
/**
|
|
1232
|
-
* Simulate onERC721Received
|
|
1233
|
-
* Returns gas estimate and result without sending transaction
|
|
1234
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1235
|
-
*/
|
|
1236
|
-
async onERC721Received(_operator: `0x${string}`, _from: `0x${string}`, _tokenId: bigint, _data: `0x${string}`, options?: {
|
|
1237
|
-
accessList?: import('viem').AccessList;
|
|
1238
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1239
|
-
chain?: import('viem').Chain | null;
|
|
1240
|
-
dataSuffix?: `0x${string}`;
|
|
1241
|
-
gas?: bigint;
|
|
1242
|
-
gasPrice?: bigint;
|
|
1243
|
-
maxFeePerGas?: bigint;
|
|
1244
|
-
maxPriorityFeePerGas?: bigint;
|
|
1245
|
-
nonce?: number;
|
|
1246
|
-
value?: bigint;
|
|
1247
|
-
}): Promise<`0x${string}`> {
|
|
1248
|
-
return contract.simulate.onERC721Received([_operator, _from, _tokenId, _data] as const, options) as Promise<`0x${string}`>;
|
|
1249
|
-
},
|
|
1250
557
|
/**
|
|
1251
558
|
* Simulate sendMultiSig
|
|
1252
559
|
* Returns gas estimate and result without sending transaction
|
|
@@ -1267,49 +574,11 @@ export class WalletSimple_json {
|
|
|
1267
574
|
return contract.simulate.sendMultiSig([toAddress, value, data, expireTime, sequenceId, signature] as const, options) as Promise<void>;
|
|
1268
575
|
},
|
|
1269
576
|
/**
|
|
1270
|
-
* Simulate
|
|
1271
|
-
* Returns gas estimate and result without sending transaction
|
|
1272
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1273
|
-
*/
|
|
1274
|
-
async sendMultiSigBatch(recipients: `0x${string}`[], values: bigint[], expireTime: bigint, sequenceId: bigint, signature: `0x${string}`, options?: {
|
|
1275
|
-
accessList?: import('viem').AccessList;
|
|
1276
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1277
|
-
chain?: import('viem').Chain | null;
|
|
1278
|
-
dataSuffix?: `0x${string}`;
|
|
1279
|
-
gas?: bigint;
|
|
1280
|
-
gasPrice?: bigint;
|
|
1281
|
-
maxFeePerGas?: bigint;
|
|
1282
|
-
maxPriorityFeePerGas?: bigint;
|
|
1283
|
-
nonce?: number;
|
|
1284
|
-
value?: bigint;
|
|
1285
|
-
}): Promise<void> {
|
|
1286
|
-
return contract.simulate.sendMultiSigBatch([recipients, values, expireTime, sequenceId, signature] as const, options) as Promise<void>;
|
|
1287
|
-
},
|
|
1288
|
-
/**
|
|
1289
|
-
* Simulate sendMultiSigToken
|
|
1290
|
-
* Returns gas estimate and result without sending transaction
|
|
1291
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1292
|
-
*/
|
|
1293
|
-
async sendMultiSigToken(toAddress: `0x${string}`, value: bigint, tokenContractAddress: `0x${string}`, expireTime: bigint, sequenceId: bigint, signature: `0x${string}`, options?: {
|
|
1294
|
-
accessList?: import('viem').AccessList;
|
|
1295
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1296
|
-
chain?: import('viem').Chain | null;
|
|
1297
|
-
dataSuffix?: `0x${string}`;
|
|
1298
|
-
gas?: bigint;
|
|
1299
|
-
gasPrice?: bigint;
|
|
1300
|
-
maxFeePerGas?: bigint;
|
|
1301
|
-
maxPriorityFeePerGas?: bigint;
|
|
1302
|
-
nonce?: number;
|
|
1303
|
-
value?: bigint;
|
|
1304
|
-
}): Promise<void> {
|
|
1305
|
-
return contract.simulate.sendMultiSigToken([toAddress, value, tokenContractAddress, expireTime, sequenceId, signature] as const, options) as Promise<void>;
|
|
1306
|
-
},
|
|
1307
|
-
/**
|
|
1308
|
-
* Simulate setAutoFlush1155
|
|
577
|
+
* Simulate createForwarder
|
|
1309
578
|
* Returns gas estimate and result without sending transaction
|
|
1310
579
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1311
580
|
*/
|
|
1312
|
-
async
|
|
581
|
+
async createForwarder(options?: {
|
|
1313
582
|
accessList?: import('viem').AccessList;
|
|
1314
583
|
authorizationList?: import('viem').AuthorizationList;
|
|
1315
584
|
chain?: import('viem').Chain | null;
|
|
@@ -1320,15 +589,15 @@ export class WalletSimple_json {
|
|
|
1320
589
|
maxPriorityFeePerGas?: bigint;
|
|
1321
590
|
nonce?: number;
|
|
1322
591
|
value?: bigint;
|
|
1323
|
-
}): Promise
|
|
1324
|
-
return contract.simulate.
|
|
592
|
+
}): Promise<`0x${string}`> {
|
|
593
|
+
return contract.simulate.createForwarder(options) as Promise<`0x${string}`>;
|
|
1325
594
|
},
|
|
1326
595
|
/**
|
|
1327
|
-
* Simulate
|
|
596
|
+
* Simulate activateSafeMode
|
|
1328
597
|
* Returns gas estimate and result without sending transaction
|
|
1329
598
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1330
599
|
*/
|
|
1331
|
-
async
|
|
600
|
+
async activateSafeMode(options?: {
|
|
1332
601
|
accessList?: import('viem').AccessList;
|
|
1333
602
|
authorizationList?: import('viem').AuthorizationList;
|
|
1334
603
|
chain?: import('viem').Chain | null;
|
|
@@ -1340,7 +609,7 @@ export class WalletSimple_json {
|
|
|
1340
609
|
nonce?: number;
|
|
1341
610
|
value?: bigint;
|
|
1342
611
|
}): Promise<void> {
|
|
1343
|
-
return contract.simulate.
|
|
612
|
+
return contract.simulate.activateSafeMode(options) as Promise<void>;
|
|
1344
613
|
}
|
|
1345
614
|
};
|
|
1346
615
|
}
|
|
@@ -1359,44 +628,6 @@ export class WalletSimple_json {
|
|
|
1359
628
|
*/
|
|
1360
629
|
get watch() {
|
|
1361
630
|
return {
|
|
1362
|
-
/**
|
|
1363
|
-
* Watch BatchTransacted events
|
|
1364
|
-
* @param callback Function to call when event is emitted
|
|
1365
|
-
* @param filter Optional filter for indexed parameters
|
|
1366
|
-
* @returns Unwatch function to stop listening
|
|
1367
|
-
*/
|
|
1368
|
-
BatchTransacted: (callback: (event: { msgSender: `0x${string}`; otherSigner: `0x${string}`; operation: `0x${string}` }) => void) => {
|
|
1369
|
-
return this.publicClient.watchContractEvent({
|
|
1370
|
-
address: this.contractAddress,
|
|
1371
|
-
abi: WalletSimple_jsonAbi,
|
|
1372
|
-
eventName: 'BatchTransacted',
|
|
1373
|
-
|
|
1374
|
-
onLogs: (logs: any[]) => {
|
|
1375
|
-
logs.forEach((log: any) => {
|
|
1376
|
-
callback(log.args as any);
|
|
1377
|
-
});
|
|
1378
|
-
},
|
|
1379
|
-
}) as () => void;
|
|
1380
|
-
},
|
|
1381
|
-
/**
|
|
1382
|
-
* Watch BatchTransfer events
|
|
1383
|
-
* @param callback Function to call when event is emitted
|
|
1384
|
-
* @param filter Optional filter for indexed parameters
|
|
1385
|
-
* @returns Unwatch function to stop listening
|
|
1386
|
-
*/
|
|
1387
|
-
BatchTransfer: (callback: (event: { sender: `0x${string}`; recipient: `0x${string}`; value: bigint }) => void) => {
|
|
1388
|
-
return this.publicClient.watchContractEvent({
|
|
1389
|
-
address: this.contractAddress,
|
|
1390
|
-
abi: WalletSimple_jsonAbi,
|
|
1391
|
-
eventName: 'BatchTransfer',
|
|
1392
|
-
|
|
1393
|
-
onLogs: (logs: any[]) => {
|
|
1394
|
-
logs.forEach((log: any) => {
|
|
1395
|
-
callback(log.args as any);
|
|
1396
|
-
});
|
|
1397
|
-
},
|
|
1398
|
-
}) as () => void;
|
|
1399
|
-
},
|
|
1400
631
|
/**
|
|
1401
632
|
* Watch Deposited events
|
|
1402
633
|
* @param callback Function to call when event is emitted
|