@gitmyabi/walletsimple 1.0.26 → 1.0.28

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 CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
  Auto-generated TypeScript type bindings for **WalletSimple**
4
4
 
5
- - **Build ID**: `etherscan-walletsimple-a4d65fd5-1788982188210`
5
+ - **Build ID**: `etherscan-walletsimple-7857563c-1789057286382`
6
6
  - **Build Number**: 1
7
- - **Commit**: `1c98872`
7
+ - **Commit**: `1f09719`
8
8
  - **Branch**: `etherscan`
9
9
  - **Target**: `ethers-v6`
10
10
  - **Contracts**: 1
@@ -12,7 +12,7 @@ Auto-generated TypeScript type bindings for **WalletSimple**
12
12
  ## Installation
13
13
 
14
14
  ```bash
15
- npm install @gitmyabi/walletsimple@1.0.26
15
+ npm install @gitmyabi/walletsimple@1.0.28
16
16
  ```
17
17
 
18
18
  ## Usage
@@ -5,207 +5,290 @@ import type { Address, PublicClient, WalletClient } from 'viem';
5
5
  * This ABI is typed using viem's type system for full type safety.
6
6
  */
7
7
  export declare const WalletSimple_jsonAbi: readonly [{
8
- readonly constant: false;
8
+ readonly anonymous: false;
9
9
  readonly inputs: readonly [{
10
- readonly name: "toAddress";
10
+ readonly indexed: false;
11
+ readonly internalType: "address";
12
+ readonly name: "msgSender";
11
13
  readonly type: "address";
12
14
  }, {
13
- readonly name: "value";
14
- readonly type: "uint256";
15
+ readonly indexed: false;
16
+ readonly internalType: "address";
17
+ readonly name: "otherSigner";
18
+ readonly type: "address";
15
19
  }, {
16
- readonly name: "tokenContractAddress";
20
+ readonly indexed: false;
21
+ readonly internalType: "bytes32";
22
+ readonly name: "operation";
23
+ readonly type: "bytes32";
24
+ }];
25
+ readonly name: "BatchTransacted";
26
+ readonly type: "event";
27
+ }, {
28
+ readonly anonymous: false;
29
+ readonly inputs: readonly [{
30
+ readonly indexed: false;
31
+ readonly internalType: "address";
32
+ readonly name: "sender";
17
33
  readonly type: "address";
18
34
  }, {
19
- readonly name: "expireTime";
35
+ readonly indexed: false;
36
+ readonly internalType: "address";
37
+ readonly name: "recipient";
38
+ readonly type: "address";
39
+ }, {
40
+ readonly indexed: false;
41
+ readonly internalType: "uint256";
42
+ readonly name: "value";
20
43
  readonly type: "uint256";
44
+ }];
45
+ readonly name: "BatchTransfer";
46
+ readonly type: "event";
47
+ }, {
48
+ readonly anonymous: false;
49
+ readonly inputs: readonly [{
50
+ readonly indexed: false;
51
+ readonly internalType: "address";
52
+ readonly name: "from";
53
+ readonly type: "address";
21
54
  }, {
22
- readonly name: "sequenceId";
55
+ readonly indexed: false;
56
+ readonly internalType: "uint256";
57
+ readonly name: "value";
23
58
  readonly type: "uint256";
24
59
  }, {
25
- readonly name: "signature";
60
+ readonly indexed: false;
61
+ readonly internalType: "bytes";
62
+ readonly name: "data";
26
63
  readonly type: "bytes";
27
64
  }];
28
- readonly name: "sendMultiSigToken";
29
- readonly outputs: readonly [];
30
- readonly payable: false;
31
- readonly stateMutability: "nonpayable";
32
- readonly type: "function";
65
+ readonly name: "Deposited";
66
+ readonly type: "event";
33
67
  }, {
34
- readonly constant: true;
68
+ readonly anonymous: false;
35
69
  readonly inputs: readonly [{
36
- readonly name: "";
37
- readonly type: "uint256";
38
- }];
39
- readonly name: "signers";
40
- readonly outputs: readonly [{
41
- readonly name: "";
70
+ readonly indexed: false;
71
+ readonly internalType: "address";
72
+ readonly name: "msgSender";
42
73
  readonly type: "address";
43
74
  }];
44
- readonly payable: false;
45
- readonly stateMutability: "view";
46
- readonly type: "function";
75
+ readonly name: "SafeModeActivated";
76
+ readonly type: "event";
47
77
  }, {
48
- readonly constant: false;
78
+ readonly anonymous: false;
49
79
  readonly inputs: readonly [{
50
- readonly name: "forwarderAddress";
80
+ readonly indexed: false;
81
+ readonly internalType: "address";
82
+ readonly name: "msgSender";
51
83
  readonly type: "address";
52
84
  }, {
53
- readonly name: "tokenContractAddress";
85
+ readonly indexed: false;
86
+ readonly internalType: "address";
87
+ readonly name: "otherSigner";
54
88
  readonly type: "address";
55
- }];
56
- readonly name: "flushForwarderTokens";
57
- readonly outputs: readonly [];
58
- readonly payable: false;
59
- readonly stateMutability: "nonpayable";
60
- readonly type: "function";
61
- }, {
62
- readonly constant: false;
63
- readonly inputs: readonly [{
89
+ }, {
90
+ readonly indexed: false;
91
+ readonly internalType: "bytes32";
92
+ readonly name: "operation";
93
+ readonly type: "bytes32";
94
+ }, {
95
+ readonly indexed: false;
96
+ readonly internalType: "address";
64
97
  readonly name: "toAddress";
65
98
  readonly type: "address";
66
99
  }, {
100
+ readonly indexed: false;
101
+ readonly internalType: "uint256";
67
102
  readonly name: "value";
68
103
  readonly type: "uint256";
69
104
  }, {
105
+ readonly indexed: false;
106
+ readonly internalType: "bytes";
70
107
  readonly name: "data";
71
108
  readonly type: "bytes";
72
- }, {
73
- readonly name: "expireTime";
74
- readonly type: "uint256";
75
- }, {
76
- readonly name: "sequenceId";
77
- readonly type: "uint256";
78
- }, {
79
- readonly name: "signature";
80
- readonly type: "bytes";
81
109
  }];
82
- readonly name: "sendMultiSig";
110
+ readonly name: "Transacted";
111
+ readonly type: "event";
112
+ }, {
113
+ readonly stateMutability: "payable";
114
+ readonly type: "fallback";
115
+ }, {
116
+ readonly inputs: readonly [];
117
+ readonly name: "activateSafeMode";
83
118
  readonly outputs: readonly [];
84
- readonly payable: false;
85
119
  readonly stateMutability: "nonpayable";
86
120
  readonly type: "function";
87
121
  }, {
88
- readonly constant: true;
89
122
  readonly inputs: readonly [{
90
- readonly name: "signer";
123
+ readonly internalType: "address payable";
124
+ readonly name: "forwarderAddress";
125
+ readonly type: "address";
126
+ }, {
127
+ readonly internalType: "address";
128
+ readonly name: "tokenContractAddress";
91
129
  readonly type: "address";
92
130
  }];
93
- readonly name: "isSigner";
94
- readonly outputs: readonly [{
95
- readonly name: "";
96
- readonly type: "bool";
97
- }];
98
- readonly payable: false;
99
- readonly stateMutability: "view";
131
+ readonly name: "flushForwarderTokens";
132
+ readonly outputs: readonly [];
133
+ readonly stateMutability: "nonpayable";
100
134
  readonly type: "function";
101
135
  }, {
102
- readonly constant: true;
103
136
  readonly inputs: readonly [];
104
137
  readonly name: "getNextSequenceId";
105
138
  readonly outputs: readonly [{
139
+ readonly internalType: "uint256";
106
140
  readonly name: "";
107
141
  readonly type: "uint256";
108
142
  }];
109
- readonly payable: false;
110
143
  readonly stateMutability: "view";
111
144
  readonly type: "function";
112
145
  }, {
113
- readonly constant: false;
114
- readonly inputs: readonly [];
115
- readonly name: "createForwarder";
116
- readonly outputs: readonly [{
117
- readonly name: "";
118
- readonly type: "address";
146
+ readonly inputs: readonly [{
147
+ readonly internalType: "address[]";
148
+ readonly name: "allowedSigners";
149
+ readonly type: "address[]";
119
150
  }];
120
- readonly payable: false;
151
+ readonly name: "init";
152
+ readonly outputs: readonly [];
121
153
  readonly stateMutability: "nonpayable";
122
154
  readonly type: "function";
123
155
  }, {
124
- readonly constant: true;
125
156
  readonly inputs: readonly [];
126
- readonly name: "safeMode";
157
+ readonly name: "initialized";
127
158
  readonly outputs: readonly [{
159
+ readonly internalType: "bool";
128
160
  readonly name: "";
129
161
  readonly type: "bool";
130
162
  }];
131
- readonly payable: false;
132
163
  readonly stateMutability: "view";
133
164
  readonly type: "function";
134
- }, {
135
- readonly constant: false;
136
- readonly inputs: readonly [];
137
- readonly name: "activateSafeMode";
138
- readonly outputs: readonly [];
139
- readonly payable: false;
140
- readonly stateMutability: "nonpayable";
141
- readonly type: "function";
142
165
  }, {
143
166
  readonly inputs: readonly [{
144
- readonly name: "allowedSigners";
145
- readonly type: "address[]";
167
+ readonly internalType: "address";
168
+ readonly name: "signer";
169
+ readonly type: "address";
146
170
  }];
147
- readonly payable: false;
148
- readonly stateMutability: "nonpayable";
149
- readonly type: "constructor";
171
+ readonly name: "isSigner";
172
+ readonly outputs: readonly [{
173
+ readonly internalType: "bool";
174
+ readonly name: "";
175
+ readonly type: "bool";
176
+ }];
177
+ readonly stateMutability: "view";
178
+ readonly type: "function";
150
179
  }, {
151
- readonly payable: true;
152
- readonly stateMutability: "payable";
153
- readonly type: "fallback";
180
+ readonly inputs: readonly [];
181
+ readonly name: "safeMode";
182
+ readonly outputs: readonly [{
183
+ readonly internalType: "bool";
184
+ readonly name: "";
185
+ readonly type: "bool";
186
+ }];
187
+ readonly stateMutability: "view";
188
+ readonly type: "function";
154
189
  }, {
155
- readonly anonymous: false;
156
190
  readonly inputs: readonly [{
157
- readonly indexed: false;
158
- readonly name: "from";
191
+ readonly internalType: "address";
192
+ readonly name: "toAddress";
159
193
  readonly type: "address";
160
194
  }, {
161
- readonly indexed: false;
195
+ readonly internalType: "uint256";
162
196
  readonly name: "value";
163
197
  readonly type: "uint256";
164
198
  }, {
165
- readonly indexed: false;
199
+ readonly internalType: "bytes";
166
200
  readonly name: "data";
167
201
  readonly type: "bytes";
202
+ }, {
203
+ readonly internalType: "uint256";
204
+ readonly name: "expireTime";
205
+ readonly type: "uint256";
206
+ }, {
207
+ readonly internalType: "uint256";
208
+ readonly name: "sequenceId";
209
+ readonly type: "uint256";
210
+ }, {
211
+ readonly internalType: "bytes";
212
+ readonly name: "signature";
213
+ readonly type: "bytes";
168
214
  }];
169
- readonly name: "Deposited";
170
- readonly type: "event";
215
+ readonly name: "sendMultiSig";
216
+ readonly outputs: readonly [];
217
+ readonly stateMutability: "nonpayable";
218
+ readonly type: "function";
171
219
  }, {
172
- readonly anonymous: false;
173
220
  readonly inputs: readonly [{
174
- readonly indexed: false;
175
- readonly name: "msgSender";
176
- readonly type: "address";
221
+ readonly internalType: "address[]";
222
+ readonly name: "recipients";
223
+ readonly type: "address[]";
224
+ }, {
225
+ readonly internalType: "uint256[]";
226
+ readonly name: "values";
227
+ readonly type: "uint256[]";
228
+ }, {
229
+ readonly internalType: "uint256";
230
+ readonly name: "expireTime";
231
+ readonly type: "uint256";
232
+ }, {
233
+ readonly internalType: "uint256";
234
+ readonly name: "sequenceId";
235
+ readonly type: "uint256";
236
+ }, {
237
+ readonly internalType: "bytes";
238
+ readonly name: "signature";
239
+ readonly type: "bytes";
177
240
  }];
178
- readonly name: "SafeModeActivated";
179
- readonly type: "event";
241
+ readonly name: "sendMultiSigBatch";
242
+ readonly outputs: readonly [];
243
+ readonly stateMutability: "nonpayable";
244
+ readonly type: "function";
180
245
  }, {
181
- readonly anonymous: false;
182
246
  readonly inputs: readonly [{
183
- readonly indexed: false;
184
- readonly name: "msgSender";
185
- readonly type: "address";
186
- }, {
187
- readonly indexed: false;
188
- readonly name: "otherSigner";
247
+ readonly internalType: "address";
248
+ readonly name: "toAddress";
189
249
  readonly type: "address";
190
250
  }, {
191
- readonly indexed: false;
192
- readonly name: "operation";
193
- readonly type: "bytes32";
251
+ readonly internalType: "uint256";
252
+ readonly name: "value";
253
+ readonly type: "uint256";
194
254
  }, {
195
- readonly indexed: false;
196
- readonly name: "toAddress";
255
+ readonly internalType: "address";
256
+ readonly name: "tokenContractAddress";
197
257
  readonly type: "address";
198
258
  }, {
199
- readonly indexed: false;
200
- readonly name: "value";
259
+ readonly internalType: "uint256";
260
+ readonly name: "expireTime";
201
261
  readonly type: "uint256";
202
262
  }, {
203
- readonly indexed: false;
204
- readonly name: "data";
263
+ readonly internalType: "uint256";
264
+ readonly name: "sequenceId";
265
+ readonly type: "uint256";
266
+ }, {
267
+ readonly internalType: "bytes";
268
+ readonly name: "signature";
205
269
  readonly type: "bytes";
206
270
  }];
207
- readonly name: "Transacted";
208
- readonly type: "event";
271
+ readonly name: "sendMultiSigToken";
272
+ readonly outputs: readonly [];
273
+ readonly stateMutability: "nonpayable";
274
+ readonly type: "function";
275
+ }, {
276
+ readonly inputs: readonly [{
277
+ readonly internalType: "address";
278
+ readonly name: "";
279
+ readonly type: "address";
280
+ }];
281
+ readonly name: "signers";
282
+ readonly outputs: readonly [{
283
+ readonly internalType: "bool";
284
+ readonly name: "";
285
+ readonly type: "bool";
286
+ }];
287
+ readonly stateMutability: "view";
288
+ readonly type: "function";
289
+ }, {
290
+ readonly stateMutability: "payable";
291
+ readonly type: "receive";
209
292
  }];
210
293
  /**
211
294
  * Type-safe ABI for WalletSimple_json
@@ -264,31 +347,36 @@ export declare class WalletSimple_json {
264
347
  */
265
348
  getContract(): WalletSimple_jsonContract;
266
349
  /**
267
- * signers
350
+ * getNextSequenceId
268
351
  * view
269
352
  */
270
- signers(arg0: bigint): Promise<`0x${string}`>;
353
+ getNextSequenceId(): Promise<bigint>;
271
354
  /**
272
- * isSigner
355
+ * initialized
273
356
  * view
274
357
  */
275
- isSigner(signer: `0x${string}`): Promise<boolean>;
358
+ initialized(): Promise<boolean>;
276
359
  /**
277
- * getNextSequenceId
360
+ * isSigner
278
361
  * view
279
362
  */
280
- getNextSequenceId(): Promise<bigint>;
363
+ isSigner(signer: `0x${string}`): Promise<boolean>;
281
364
  /**
282
365
  * safeMode
283
366
  * view
284
367
  */
285
368
  safeMode(): Promise<boolean>;
286
369
  /**
287
- * sendMultiSigToken
370
+ * signers
371
+ * view
372
+ */
373
+ signers(arg0: `0x${string}`): Promise<boolean>;
374
+ /**
375
+ * activateSafeMode
288
376
  * nonpayable
289
377
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
290
378
  */
291
- sendMultiSigToken(toAddress: `0x${string}`, value: bigint, tokenContractAddress: `0x${string}`, expireTime: bigint, sequenceId: bigint, signature: `0x${string}`, options?: {
379
+ activateSafeMode(options?: {
292
380
  accessList?: import('viem').AccessList;
293
381
  authorizationList?: import('viem').AuthorizationList;
294
382
  chain?: import('viem').Chain | null;
@@ -317,6 +405,23 @@ export declare class WalletSimple_json {
317
405
  nonce?: number;
318
406
  value?: bigint;
319
407
  }): Promise<`0x${string}`>;
408
+ /**
409
+ * init
410
+ * nonpayable
411
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
412
+ */
413
+ init(allowedSigners: `0x${string}`[], options?: {
414
+ accessList?: import('viem').AccessList;
415
+ authorizationList?: import('viem').AuthorizationList;
416
+ chain?: import('viem').Chain | null;
417
+ dataSuffix?: `0x${string}`;
418
+ gas?: bigint;
419
+ gasPrice?: bigint;
420
+ maxFeePerGas?: bigint;
421
+ maxPriorityFeePerGas?: bigint;
422
+ nonce?: number;
423
+ value?: bigint;
424
+ }): Promise<`0x${string}`>;
320
425
  /**
321
426
  * sendMultiSig
322
427
  * nonpayable
@@ -335,11 +440,11 @@ export declare class WalletSimple_json {
335
440
  value?: bigint;
336
441
  }): Promise<`0x${string}`>;
337
442
  /**
338
- * createForwarder
443
+ * sendMultiSigBatch
339
444
  * nonpayable
340
445
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
341
446
  */
342
- createForwarder(options?: {
447
+ sendMultiSigBatch(recipients: `0x${string}`[], values: bigint[], expireTime: bigint, sequenceId: bigint, signature: `0x${string}`, options?: {
343
448
  accessList?: import('viem').AccessList;
344
449
  authorizationList?: import('viem').AuthorizationList;
345
450
  chain?: import('viem').Chain | null;
@@ -352,11 +457,11 @@ export declare class WalletSimple_json {
352
457
  value?: bigint;
353
458
  }): Promise<`0x${string}`>;
354
459
  /**
355
- * activateSafeMode
460
+ * sendMultiSigToken
356
461
  * nonpayable
357
462
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
358
463
  */
359
- activateSafeMode(options?: {
464
+ sendMultiSigToken(toAddress: `0x${string}`, value: bigint, tokenContractAddress: `0x${string}`, expireTime: bigint, sequenceId: bigint, signature: `0x${string}`, options?: {
360
465
  accessList?: import('viem').AccessList;
361
466
  authorizationList?: import('viem').AuthorizationList;
362
467
  chain?: import('viem').Chain | null;
@@ -378,11 +483,11 @@ export declare class WalletSimple_json {
378
483
  */
379
484
  get simulate(): {
380
485
  /**
381
- * Simulate sendMultiSigToken
486
+ * Simulate activateSafeMode
382
487
  * Returns gas estimate and result without sending transaction
383
488
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
384
489
  */
385
- sendMultiSigToken(toAddress: `0x${string}`, value: bigint, tokenContractAddress: `0x${string}`, expireTime: bigint, sequenceId: bigint, signature: `0x${string}`, options?: {
490
+ activateSafeMode(options?: {
386
491
  accessList?: import("viem").AccessList;
387
492
  authorizationList?: import("viem").AuthorizationList;
388
493
  chain?: import("viem").Chain | null;
@@ -411,6 +516,23 @@ export declare class WalletSimple_json {
411
516
  nonce?: number;
412
517
  value?: bigint;
413
518
  }): Promise<void>;
519
+ /**
520
+ * Simulate init
521
+ * Returns gas estimate and result without sending transaction
522
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
523
+ */
524
+ init(allowedSigners: `0x${string}`[], options?: {
525
+ accessList?: import("viem").AccessList;
526
+ authorizationList?: import("viem").AuthorizationList;
527
+ chain?: import("viem").Chain | null;
528
+ dataSuffix?: `0x${string}`;
529
+ gas?: bigint;
530
+ gasPrice?: bigint;
531
+ maxFeePerGas?: bigint;
532
+ maxPriorityFeePerGas?: bigint;
533
+ nonce?: number;
534
+ value?: bigint;
535
+ }): Promise<void>;
414
536
  /**
415
537
  * Simulate sendMultiSig
416
538
  * Returns gas estimate and result without sending transaction
@@ -429,11 +551,11 @@ export declare class WalletSimple_json {
429
551
  value?: bigint;
430
552
  }): Promise<void>;
431
553
  /**
432
- * Simulate createForwarder
554
+ * Simulate sendMultiSigBatch
433
555
  * Returns gas estimate and result without sending transaction
434
556
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
435
557
  */
436
- createForwarder(options?: {
558
+ sendMultiSigBatch(recipients: `0x${string}`[], values: bigint[], expireTime: bigint, sequenceId: bigint, signature: `0x${string}`, options?: {
437
559
  accessList?: import("viem").AccessList;
438
560
  authorizationList?: import("viem").AuthorizationList;
439
561
  chain?: import("viem").Chain | null;
@@ -444,13 +566,13 @@ export declare class WalletSimple_json {
444
566
  maxPriorityFeePerGas?: bigint;
445
567
  nonce?: number;
446
568
  value?: bigint;
447
- }): Promise<`0x${string}`>;
569
+ }): Promise<void>;
448
570
  /**
449
- * Simulate activateSafeMode
571
+ * Simulate sendMultiSigToken
450
572
  * Returns gas estimate and result without sending transaction
451
573
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
452
574
  */
453
- activateSafeMode(options?: {
575
+ sendMultiSigToken(toAddress: `0x${string}`, value: bigint, tokenContractAddress: `0x${string}`, expireTime: bigint, sequenceId: bigint, signature: `0x${string}`, options?: {
454
576
  accessList?: import("viem").AccessList;
455
577
  authorizationList?: import("viem").AuthorizationList;
456
578
  chain?: import("viem").Chain | null;
@@ -476,6 +598,28 @@ export declare class WalletSimple_json {
476
598
  * unwatch();
477
599
  */
478
600
  get watch(): {
601
+ /**
602
+ * Watch BatchTransacted events
603
+ * @param callback Function to call when event is emitted
604
+ * @param filter Optional filter for indexed parameters
605
+ * @returns Unwatch function to stop listening
606
+ */
607
+ BatchTransacted: (callback: (event: {
608
+ msgSender: `0x${string}`;
609
+ otherSigner: `0x${string}`;
610
+ operation: `0x${string}`;
611
+ }) => void) => () => void;
612
+ /**
613
+ * Watch BatchTransfer events
614
+ * @param callback Function to call when event is emitted
615
+ * @param filter Optional filter for indexed parameters
616
+ * @returns Unwatch function to stop listening
617
+ */
618
+ BatchTransfer: (callback: (event: {
619
+ sender: `0x${string}`;
620
+ recipient: `0x${string}`;
621
+ value: bigint;
622
+ }) => void) => () => void;
479
623
  /**
480
624
  * Watch Deposited events
481
625
  * @param callback Function to call when event is emitted