@gitmyabi/walletsimple 1.0.15 → 1.0.17
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 +133 -277
- package/contracts/WalletSimple_json.js +148 -311
- package/contracts/WalletSimple_json.ts +149 -338
- package/package.json +3 -3
|
@@ -9,367 +9,266 @@ const viem_1 = require("viem");
|
|
|
9
9
|
*/
|
|
10
10
|
exports.WalletSimple_jsonAbi = [
|
|
11
11
|
{
|
|
12
|
-
"
|
|
12
|
+
"constant": false,
|
|
13
13
|
"inputs": [
|
|
14
14
|
{
|
|
15
|
-
"
|
|
16
|
-
"internalType": "address",
|
|
17
|
-
"name": "msgSender",
|
|
15
|
+
"name": "toAddress",
|
|
18
16
|
"type": "address"
|
|
19
17
|
},
|
|
20
18
|
{
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"name": "otherSigner",
|
|
24
|
-
"type": "address"
|
|
19
|
+
"name": "value",
|
|
20
|
+
"type": "uint256"
|
|
25
21
|
},
|
|
26
22
|
{
|
|
27
|
-
"
|
|
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",
|
|
23
|
+
"name": "tokenContractAddress",
|
|
43
24
|
"type": "address"
|
|
44
25
|
},
|
|
45
26
|
{
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"name": "recipient",
|
|
49
|
-
"type": "address"
|
|
27
|
+
"name": "expireTime",
|
|
28
|
+
"type": "uint256"
|
|
50
29
|
},
|
|
51
30
|
{
|
|
52
|
-
"
|
|
53
|
-
"internalType": "uint256",
|
|
54
|
-
"name": "value",
|
|
31
|
+
"name": "sequenceId",
|
|
55
32
|
"type": "uint256"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "signature",
|
|
36
|
+
"type": "bytes"
|
|
56
37
|
}
|
|
57
38
|
],
|
|
58
|
-
"name": "
|
|
59
|
-
"
|
|
39
|
+
"name": "sendMultiSigToken",
|
|
40
|
+
"outputs": [],
|
|
41
|
+
"payable": false,
|
|
42
|
+
"stateMutability": "nonpayable",
|
|
43
|
+
"type": "function"
|
|
60
44
|
},
|
|
61
45
|
{
|
|
62
|
-
"
|
|
46
|
+
"constant": true,
|
|
63
47
|
"inputs": [
|
|
64
48
|
{
|
|
65
|
-
"
|
|
66
|
-
"internalType": "address",
|
|
67
|
-
"name": "from",
|
|
68
|
-
"type": "address"
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
"indexed": false,
|
|
72
|
-
"internalType": "uint256",
|
|
73
|
-
"name": "value",
|
|
49
|
+
"name": "",
|
|
74
50
|
"type": "uint256"
|
|
75
|
-
}
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
"name": "signers",
|
|
54
|
+
"outputs": [
|
|
76
55
|
{
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"name": "data",
|
|
80
|
-
"type": "bytes"
|
|
56
|
+
"name": "",
|
|
57
|
+
"type": "address"
|
|
81
58
|
}
|
|
82
59
|
],
|
|
83
|
-
"
|
|
84
|
-
"
|
|
60
|
+
"payable": false,
|
|
61
|
+
"stateMutability": "view",
|
|
62
|
+
"type": "function"
|
|
85
63
|
},
|
|
86
64
|
{
|
|
87
|
-
"
|
|
65
|
+
"constant": false,
|
|
88
66
|
"inputs": [
|
|
89
67
|
{
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
|
|
68
|
+
"name": "forwarderAddress",
|
|
69
|
+
"type": "address"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"name": "tokenContractAddress",
|
|
93
73
|
"type": "address"
|
|
94
74
|
}
|
|
95
75
|
],
|
|
96
|
-
"name": "
|
|
97
|
-
"
|
|
76
|
+
"name": "flushForwarderTokens",
|
|
77
|
+
"outputs": [],
|
|
78
|
+
"payable": false,
|
|
79
|
+
"stateMutability": "nonpayable",
|
|
80
|
+
"type": "function"
|
|
98
81
|
},
|
|
99
82
|
{
|
|
100
|
-
"
|
|
83
|
+
"constant": false,
|
|
101
84
|
"inputs": [
|
|
102
85
|
{
|
|
103
|
-
"
|
|
104
|
-
"internalType": "address",
|
|
105
|
-
"name": "msgSender",
|
|
86
|
+
"name": "toAddress",
|
|
106
87
|
"type": "address"
|
|
107
88
|
},
|
|
108
89
|
{
|
|
109
|
-
"
|
|
110
|
-
"
|
|
111
|
-
"name": "otherSigner",
|
|
112
|
-
"type": "address"
|
|
90
|
+
"name": "value",
|
|
91
|
+
"type": "uint256"
|
|
113
92
|
},
|
|
114
93
|
{
|
|
115
|
-
"
|
|
116
|
-
"
|
|
117
|
-
"name": "operation",
|
|
118
|
-
"type": "bytes32"
|
|
94
|
+
"name": "data",
|
|
95
|
+
"type": "bytes"
|
|
119
96
|
},
|
|
120
97
|
{
|
|
121
|
-
"
|
|
122
|
-
"
|
|
123
|
-
"name": "toAddress",
|
|
124
|
-
"type": "address"
|
|
98
|
+
"name": "expireTime",
|
|
99
|
+
"type": "uint256"
|
|
125
100
|
},
|
|
126
101
|
{
|
|
127
|
-
"
|
|
128
|
-
"internalType": "uint256",
|
|
129
|
-
"name": "value",
|
|
102
|
+
"name": "sequenceId",
|
|
130
103
|
"type": "uint256"
|
|
131
104
|
},
|
|
132
105
|
{
|
|
133
|
-
"
|
|
134
|
-
"internalType": "bytes",
|
|
135
|
-
"name": "data",
|
|
106
|
+
"name": "signature",
|
|
136
107
|
"type": "bytes"
|
|
137
108
|
}
|
|
138
109
|
],
|
|
139
|
-
"name": "
|
|
140
|
-
"type": "event"
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
"stateMutability": "payable",
|
|
144
|
-
"type": "fallback"
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
"inputs": [],
|
|
148
|
-
"name": "activateSafeMode",
|
|
110
|
+
"name": "sendMultiSig",
|
|
149
111
|
"outputs": [],
|
|
112
|
+
"payable": false,
|
|
150
113
|
"stateMutability": "nonpayable",
|
|
151
114
|
"type": "function"
|
|
152
115
|
},
|
|
153
116
|
{
|
|
117
|
+
"constant": true,
|
|
154
118
|
"inputs": [
|
|
155
119
|
{
|
|
156
|
-
"
|
|
157
|
-
"name": "forwarderAddress",
|
|
120
|
+
"name": "signer",
|
|
158
121
|
"type": "address"
|
|
159
|
-
}
|
|
122
|
+
}
|
|
123
|
+
],
|
|
124
|
+
"name": "isSigner",
|
|
125
|
+
"outputs": [
|
|
160
126
|
{
|
|
161
|
-
"
|
|
162
|
-
"
|
|
163
|
-
"type": "address"
|
|
127
|
+
"name": "",
|
|
128
|
+
"type": "bool"
|
|
164
129
|
}
|
|
165
130
|
],
|
|
166
|
-
"
|
|
167
|
-
"
|
|
168
|
-
"stateMutability": "nonpayable",
|
|
131
|
+
"payable": false,
|
|
132
|
+
"stateMutability": "view",
|
|
169
133
|
"type": "function"
|
|
170
134
|
},
|
|
171
135
|
{
|
|
136
|
+
"constant": true,
|
|
172
137
|
"inputs": [],
|
|
173
138
|
"name": "getNextSequenceId",
|
|
174
139
|
"outputs": [
|
|
175
140
|
{
|
|
176
|
-
"internalType": "uint256",
|
|
177
141
|
"name": "",
|
|
178
142
|
"type": "uint256"
|
|
179
143
|
}
|
|
180
144
|
],
|
|
145
|
+
"payable": false,
|
|
181
146
|
"stateMutability": "view",
|
|
182
147
|
"type": "function"
|
|
183
148
|
},
|
|
184
149
|
{
|
|
185
|
-
"
|
|
150
|
+
"constant": false,
|
|
151
|
+
"inputs": [],
|
|
152
|
+
"name": "createForwarder",
|
|
153
|
+
"outputs": [
|
|
186
154
|
{
|
|
187
|
-
"
|
|
188
|
-
"
|
|
189
|
-
"type": "address[]"
|
|
155
|
+
"name": "",
|
|
156
|
+
"type": "address"
|
|
190
157
|
}
|
|
191
158
|
],
|
|
192
|
-
"
|
|
193
|
-
"outputs": [],
|
|
159
|
+
"payable": false,
|
|
194
160
|
"stateMutability": "nonpayable",
|
|
195
161
|
"type": "function"
|
|
196
162
|
},
|
|
197
163
|
{
|
|
164
|
+
"constant": true,
|
|
198
165
|
"inputs": [],
|
|
199
|
-
"name": "
|
|
166
|
+
"name": "safeMode",
|
|
200
167
|
"outputs": [
|
|
201
168
|
{
|
|
202
|
-
"internalType": "bool",
|
|
203
169
|
"name": "",
|
|
204
170
|
"type": "bool"
|
|
205
171
|
}
|
|
206
172
|
],
|
|
173
|
+
"payable": false,
|
|
207
174
|
"stateMutability": "view",
|
|
208
175
|
"type": "function"
|
|
209
176
|
},
|
|
210
177
|
{
|
|
211
|
-
"
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
],
|
|
218
|
-
"name": "isSigner",
|
|
219
|
-
"outputs": [
|
|
220
|
-
{
|
|
221
|
-
"internalType": "bool",
|
|
222
|
-
"name": "",
|
|
223
|
-
"type": "bool"
|
|
224
|
-
}
|
|
225
|
-
],
|
|
226
|
-
"stateMutability": "view",
|
|
178
|
+
"constant": false,
|
|
179
|
+
"inputs": [],
|
|
180
|
+
"name": "activateSafeMode",
|
|
181
|
+
"outputs": [],
|
|
182
|
+
"payable": false,
|
|
183
|
+
"stateMutability": "nonpayable",
|
|
227
184
|
"type": "function"
|
|
228
185
|
},
|
|
229
186
|
{
|
|
230
|
-
"inputs": [
|
|
231
|
-
"name": "safeMode",
|
|
232
|
-
"outputs": [
|
|
187
|
+
"inputs": [
|
|
233
188
|
{
|
|
234
|
-
"
|
|
235
|
-
"
|
|
236
|
-
"type": "bool"
|
|
189
|
+
"name": "allowedSigners",
|
|
190
|
+
"type": "address[]"
|
|
237
191
|
}
|
|
238
192
|
],
|
|
239
|
-
"
|
|
240
|
-
"
|
|
193
|
+
"payable": false,
|
|
194
|
+
"stateMutability": "nonpayable",
|
|
195
|
+
"type": "constructor"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"payable": true,
|
|
199
|
+
"stateMutability": "payable",
|
|
200
|
+
"type": "fallback"
|
|
241
201
|
},
|
|
242
202
|
{
|
|
203
|
+
"anonymous": false,
|
|
243
204
|
"inputs": [
|
|
244
205
|
{
|
|
245
|
-
"
|
|
246
|
-
"name": "
|
|
206
|
+
"indexed": false,
|
|
207
|
+
"name": "from",
|
|
247
208
|
"type": "address"
|
|
248
209
|
},
|
|
249
210
|
{
|
|
250
|
-
"
|
|
211
|
+
"indexed": false,
|
|
251
212
|
"name": "value",
|
|
252
213
|
"type": "uint256"
|
|
253
214
|
},
|
|
254
215
|
{
|
|
255
|
-
"
|
|
216
|
+
"indexed": false,
|
|
256
217
|
"name": "data",
|
|
257
218
|
"type": "bytes"
|
|
258
|
-
},
|
|
259
|
-
{
|
|
260
|
-
"internalType": "uint256",
|
|
261
|
-
"name": "expireTime",
|
|
262
|
-
"type": "uint256"
|
|
263
|
-
},
|
|
264
|
-
{
|
|
265
|
-
"internalType": "uint256",
|
|
266
|
-
"name": "sequenceId",
|
|
267
|
-
"type": "uint256"
|
|
268
|
-
},
|
|
269
|
-
{
|
|
270
|
-
"internalType": "bytes",
|
|
271
|
-
"name": "signature",
|
|
272
|
-
"type": "bytes"
|
|
273
219
|
}
|
|
274
220
|
],
|
|
275
|
-
"name": "
|
|
276
|
-
"
|
|
277
|
-
"stateMutability": "nonpayable",
|
|
278
|
-
"type": "function"
|
|
221
|
+
"name": "Deposited",
|
|
222
|
+
"type": "event"
|
|
279
223
|
},
|
|
280
224
|
{
|
|
225
|
+
"anonymous": false,
|
|
281
226
|
"inputs": [
|
|
282
227
|
{
|
|
283
|
-
"
|
|
284
|
-
"name": "
|
|
285
|
-
"type": "address
|
|
286
|
-
},
|
|
287
|
-
{
|
|
288
|
-
"internalType": "uint256[]",
|
|
289
|
-
"name": "values",
|
|
290
|
-
"type": "uint256[]"
|
|
291
|
-
},
|
|
292
|
-
{
|
|
293
|
-
"internalType": "uint256",
|
|
294
|
-
"name": "expireTime",
|
|
295
|
-
"type": "uint256"
|
|
296
|
-
},
|
|
297
|
-
{
|
|
298
|
-
"internalType": "uint256",
|
|
299
|
-
"name": "sequenceId",
|
|
300
|
-
"type": "uint256"
|
|
301
|
-
},
|
|
302
|
-
{
|
|
303
|
-
"internalType": "bytes",
|
|
304
|
-
"name": "signature",
|
|
305
|
-
"type": "bytes"
|
|
228
|
+
"indexed": false,
|
|
229
|
+
"name": "msgSender",
|
|
230
|
+
"type": "address"
|
|
306
231
|
}
|
|
307
232
|
],
|
|
308
|
-
"name": "
|
|
309
|
-
"
|
|
310
|
-
"stateMutability": "nonpayable",
|
|
311
|
-
"type": "function"
|
|
233
|
+
"name": "SafeModeActivated",
|
|
234
|
+
"type": "event"
|
|
312
235
|
},
|
|
313
236
|
{
|
|
237
|
+
"anonymous": false,
|
|
314
238
|
"inputs": [
|
|
315
239
|
{
|
|
316
|
-
"
|
|
317
|
-
"name": "
|
|
240
|
+
"indexed": false,
|
|
241
|
+
"name": "msgSender",
|
|
318
242
|
"type": "address"
|
|
319
243
|
},
|
|
320
244
|
{
|
|
321
|
-
"
|
|
322
|
-
"name": "
|
|
323
|
-
"type": "
|
|
245
|
+
"indexed": false,
|
|
246
|
+
"name": "otherSigner",
|
|
247
|
+
"type": "address"
|
|
324
248
|
},
|
|
325
249
|
{
|
|
326
|
-
"
|
|
327
|
-
"name": "
|
|
328
|
-
"type": "
|
|
250
|
+
"indexed": false,
|
|
251
|
+
"name": "operation",
|
|
252
|
+
"type": "bytes32"
|
|
329
253
|
},
|
|
330
254
|
{
|
|
331
|
-
"
|
|
332
|
-
"name": "
|
|
333
|
-
"type": "
|
|
255
|
+
"indexed": false,
|
|
256
|
+
"name": "toAddress",
|
|
257
|
+
"type": "address"
|
|
334
258
|
},
|
|
335
259
|
{
|
|
336
|
-
"
|
|
337
|
-
"name": "
|
|
260
|
+
"indexed": false,
|
|
261
|
+
"name": "value",
|
|
338
262
|
"type": "uint256"
|
|
339
263
|
},
|
|
340
264
|
{
|
|
341
|
-
"
|
|
342
|
-
"name": "
|
|
265
|
+
"indexed": false,
|
|
266
|
+
"name": "data",
|
|
343
267
|
"type": "bytes"
|
|
344
268
|
}
|
|
345
269
|
],
|
|
346
|
-
"name": "
|
|
347
|
-
"
|
|
348
|
-
"stateMutability": "nonpayable",
|
|
349
|
-
"type": "function"
|
|
350
|
-
},
|
|
351
|
-
{
|
|
352
|
-
"inputs": [
|
|
353
|
-
{
|
|
354
|
-
"internalType": "address",
|
|
355
|
-
"name": "",
|
|
356
|
-
"type": "address"
|
|
357
|
-
}
|
|
358
|
-
],
|
|
359
|
-
"name": "signers",
|
|
360
|
-
"outputs": [
|
|
361
|
-
{
|
|
362
|
-
"internalType": "bool",
|
|
363
|
-
"name": "",
|
|
364
|
-
"type": "bool"
|
|
365
|
-
}
|
|
366
|
-
],
|
|
367
|
-
"stateMutability": "view",
|
|
368
|
-
"type": "function"
|
|
369
|
-
},
|
|
370
|
-
{
|
|
371
|
-
"stateMutability": "payable",
|
|
372
|
-
"type": "receive"
|
|
270
|
+
"name": "Transacted",
|
|
271
|
+
"type": "event"
|
|
373
272
|
}
|
|
374
273
|
];
|
|
375
274
|
/**
|
|
@@ -430,18 +329,11 @@ class WalletSimple_json {
|
|
|
430
329
|
return this.contract;
|
|
431
330
|
}
|
|
432
331
|
/**
|
|
433
|
-
*
|
|
434
|
-
* view
|
|
435
|
-
*/
|
|
436
|
-
async getNextSequenceId() {
|
|
437
|
-
return this.contract.read.getNextSequenceId();
|
|
438
|
-
}
|
|
439
|
-
/**
|
|
440
|
-
* initialized
|
|
332
|
+
* signers
|
|
441
333
|
* view
|
|
442
334
|
*/
|
|
443
|
-
async
|
|
444
|
-
return this.contract.read.
|
|
335
|
+
async signers(arg0) {
|
|
336
|
+
return this.contract.read.signers([arg0]);
|
|
445
337
|
}
|
|
446
338
|
/**
|
|
447
339
|
* isSigner
|
|
@@ -451,29 +343,29 @@ class WalletSimple_json {
|
|
|
451
343
|
return this.contract.read.isSigner([signer]);
|
|
452
344
|
}
|
|
453
345
|
/**
|
|
454
|
-
*
|
|
346
|
+
* getNextSequenceId
|
|
455
347
|
* view
|
|
456
348
|
*/
|
|
457
|
-
async
|
|
458
|
-
return this.contract.read.
|
|
349
|
+
async getNextSequenceId() {
|
|
350
|
+
return this.contract.read.getNextSequenceId();
|
|
459
351
|
}
|
|
460
352
|
/**
|
|
461
|
-
*
|
|
353
|
+
* safeMode
|
|
462
354
|
* view
|
|
463
355
|
*/
|
|
464
|
-
async
|
|
465
|
-
return this.contract.read.
|
|
356
|
+
async safeMode() {
|
|
357
|
+
return this.contract.read.safeMode();
|
|
466
358
|
}
|
|
467
359
|
/**
|
|
468
|
-
*
|
|
360
|
+
* sendMultiSigToken
|
|
469
361
|
* nonpayable
|
|
470
362
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
471
363
|
*/
|
|
472
|
-
async
|
|
364
|
+
async sendMultiSigToken(toAddress, value, tokenContractAddress, expireTime, sequenceId, signature, options) {
|
|
473
365
|
if (!this.contract.write) {
|
|
474
366
|
throw new Error('Wallet client is required for write operations');
|
|
475
367
|
}
|
|
476
|
-
return this.contract.write.
|
|
368
|
+
return this.contract.write.sendMultiSigToken([toAddress, value, tokenContractAddress, expireTime, sequenceId, signature], options);
|
|
477
369
|
}
|
|
478
370
|
/**
|
|
479
371
|
* flushForwarderTokens
|
|
@@ -486,17 +378,6 @@ class WalletSimple_json {
|
|
|
486
378
|
}
|
|
487
379
|
return this.contract.write.flushForwarderTokens([forwarderAddress, tokenContractAddress], options);
|
|
488
380
|
}
|
|
489
|
-
/**
|
|
490
|
-
* init
|
|
491
|
-
* nonpayable
|
|
492
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
493
|
-
*/
|
|
494
|
-
async init(allowedSigners, options) {
|
|
495
|
-
if (!this.contract.write) {
|
|
496
|
-
throw new Error('Wallet client is required for write operations');
|
|
497
|
-
}
|
|
498
|
-
return this.contract.write.init([allowedSigners], options);
|
|
499
|
-
}
|
|
500
381
|
/**
|
|
501
382
|
* sendMultiSig
|
|
502
383
|
* nonpayable
|
|
@@ -509,26 +390,26 @@ class WalletSimple_json {
|
|
|
509
390
|
return this.contract.write.sendMultiSig([toAddress, value, data, expireTime, sequenceId, signature], options);
|
|
510
391
|
}
|
|
511
392
|
/**
|
|
512
|
-
*
|
|
393
|
+
* createForwarder
|
|
513
394
|
* nonpayable
|
|
514
395
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
515
396
|
*/
|
|
516
|
-
async
|
|
397
|
+
async createForwarder(options) {
|
|
517
398
|
if (!this.contract.write) {
|
|
518
399
|
throw new Error('Wallet client is required for write operations');
|
|
519
400
|
}
|
|
520
|
-
return this.contract.write.
|
|
401
|
+
return this.contract.write.createForwarder(options);
|
|
521
402
|
}
|
|
522
403
|
/**
|
|
523
|
-
*
|
|
404
|
+
* activateSafeMode
|
|
524
405
|
* nonpayable
|
|
525
406
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
526
407
|
*/
|
|
527
|
-
async
|
|
408
|
+
async activateSafeMode(options) {
|
|
528
409
|
if (!this.contract.write) {
|
|
529
410
|
throw new Error('Wallet client is required for write operations');
|
|
530
411
|
}
|
|
531
|
-
return this.contract.write.
|
|
412
|
+
return this.contract.write.activateSafeMode(options);
|
|
532
413
|
}
|
|
533
414
|
/**
|
|
534
415
|
* Simulate contract write operations (dry-run without sending transaction)
|
|
@@ -545,12 +426,12 @@ class WalletSimple_json {
|
|
|
545
426
|
}
|
|
546
427
|
return {
|
|
547
428
|
/**
|
|
548
|
-
* Simulate
|
|
429
|
+
* Simulate sendMultiSigToken
|
|
549
430
|
* Returns gas estimate and result without sending transaction
|
|
550
431
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
551
432
|
*/
|
|
552
|
-
async
|
|
553
|
-
return contract.simulate.
|
|
433
|
+
async sendMultiSigToken(toAddress, value, tokenContractAddress, expireTime, sequenceId, signature, options) {
|
|
434
|
+
return contract.simulate.sendMultiSigToken([toAddress, value, tokenContractAddress, expireTime, sequenceId, signature], options);
|
|
554
435
|
},
|
|
555
436
|
/**
|
|
556
437
|
* Simulate flushForwarderTokens
|
|
@@ -560,14 +441,6 @@ class WalletSimple_json {
|
|
|
560
441
|
async flushForwarderTokens(forwarderAddress, tokenContractAddress, options) {
|
|
561
442
|
return contract.simulate.flushForwarderTokens([forwarderAddress, tokenContractAddress], options);
|
|
562
443
|
},
|
|
563
|
-
/**
|
|
564
|
-
* Simulate init
|
|
565
|
-
* Returns gas estimate and result without sending transaction
|
|
566
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
567
|
-
*/
|
|
568
|
-
async init(allowedSigners, options) {
|
|
569
|
-
return contract.simulate.init([allowedSigners], options);
|
|
570
|
-
},
|
|
571
444
|
/**
|
|
572
445
|
* Simulate sendMultiSig
|
|
573
446
|
* Returns gas estimate and result without sending transaction
|
|
@@ -577,20 +450,20 @@ class WalletSimple_json {
|
|
|
577
450
|
return contract.simulate.sendMultiSig([toAddress, value, data, expireTime, sequenceId, signature], options);
|
|
578
451
|
},
|
|
579
452
|
/**
|
|
580
|
-
* Simulate
|
|
453
|
+
* Simulate createForwarder
|
|
581
454
|
* Returns gas estimate and result without sending transaction
|
|
582
455
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
583
456
|
*/
|
|
584
|
-
async
|
|
585
|
-
return contract.simulate.
|
|
457
|
+
async createForwarder(options) {
|
|
458
|
+
return contract.simulate.createForwarder(options);
|
|
586
459
|
},
|
|
587
460
|
/**
|
|
588
|
-
* Simulate
|
|
461
|
+
* Simulate activateSafeMode
|
|
589
462
|
* Returns gas estimate and result without sending transaction
|
|
590
463
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
591
464
|
*/
|
|
592
|
-
async
|
|
593
|
-
return contract.simulate.
|
|
465
|
+
async activateSafeMode(options) {
|
|
466
|
+
return contract.simulate.activateSafeMode(options);
|
|
594
467
|
}
|
|
595
468
|
};
|
|
596
469
|
}
|
|
@@ -608,42 +481,6 @@ class WalletSimple_json {
|
|
|
608
481
|
*/
|
|
609
482
|
get watch() {
|
|
610
483
|
return {
|
|
611
|
-
/**
|
|
612
|
-
* Watch BatchTransacted events
|
|
613
|
-
* @param callback Function to call when event is emitted
|
|
614
|
-
* @param filter Optional filter for indexed parameters
|
|
615
|
-
* @returns Unwatch function to stop listening
|
|
616
|
-
*/
|
|
617
|
-
BatchTransacted: (callback) => {
|
|
618
|
-
return this.publicClient.watchContractEvent({
|
|
619
|
-
address: this.contractAddress,
|
|
620
|
-
abi: exports.WalletSimple_jsonAbi,
|
|
621
|
-
eventName: 'BatchTransacted',
|
|
622
|
-
onLogs: (logs) => {
|
|
623
|
-
logs.forEach((log) => {
|
|
624
|
-
callback(log.args);
|
|
625
|
-
});
|
|
626
|
-
},
|
|
627
|
-
});
|
|
628
|
-
},
|
|
629
|
-
/**
|
|
630
|
-
* Watch BatchTransfer events
|
|
631
|
-
* @param callback Function to call when event is emitted
|
|
632
|
-
* @param filter Optional filter for indexed parameters
|
|
633
|
-
* @returns Unwatch function to stop listening
|
|
634
|
-
*/
|
|
635
|
-
BatchTransfer: (callback) => {
|
|
636
|
-
return this.publicClient.watchContractEvent({
|
|
637
|
-
address: this.contractAddress,
|
|
638
|
-
abi: exports.WalletSimple_jsonAbi,
|
|
639
|
-
eventName: 'BatchTransfer',
|
|
640
|
-
onLogs: (logs) => {
|
|
641
|
-
logs.forEach((log) => {
|
|
642
|
-
callback(log.args);
|
|
643
|
-
});
|
|
644
|
-
},
|
|
645
|
-
});
|
|
646
|
-
},
|
|
647
484
|
/**
|
|
648
485
|
* Watch Deposited events
|
|
649
486
|
* @param callback Function to call when event is emitted
|