@gitmyabi/weth 1.0.5 → 1.0.7

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.
@@ -1,35 +1,197 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Name_json = exports.Name_jsonAbi = void 0;
3
+ exports.DelayedWETH_json = exports.DelayedWETH_jsonAbi = void 0;
4
4
  const viem_1 = require("viem");
5
5
  /**
6
- * Name_json ABI
6
+ * DelayedWETH_json ABI
7
7
  *
8
8
  * This ABI is typed using viem's type system for full type safety.
9
9
  */
10
- exports.Name_jsonAbi = [
10
+ exports.DelayedWETH_jsonAbi = [
11
+ {
12
+ "inputs": [
13
+ {
14
+ "internalType": "uint256",
15
+ "name": "_delay",
16
+ "type": "uint256"
17
+ }
18
+ ],
19
+ "stateMutability": "nonpayable",
20
+ "type": "constructor"
21
+ },
11
22
  {
12
- "constant": true,
13
23
  "inputs": [],
14
- "name": "name",
24
+ "name": "ProxyAdminOwnedBase_NotProxyAdmin",
25
+ "type": "error"
26
+ },
27
+ {
28
+ "inputs": [],
29
+ "name": "ProxyAdminOwnedBase_NotProxyAdminOrProxyAdminOwner",
30
+ "type": "error"
31
+ },
32
+ {
33
+ "inputs": [],
34
+ "name": "ProxyAdminOwnedBase_NotProxyAdminOwner",
35
+ "type": "error"
36
+ },
37
+ {
38
+ "inputs": [],
39
+ "name": "ProxyAdminOwnedBase_NotResolvedDelegateProxy",
40
+ "type": "error"
41
+ },
42
+ {
43
+ "inputs": [],
44
+ "name": "ProxyAdminOwnedBase_NotSharedProxyAdminOwner",
45
+ "type": "error"
46
+ },
47
+ {
48
+ "inputs": [],
49
+ "name": "ProxyAdminOwnedBase_ProxyAdminNotFound",
50
+ "type": "error"
51
+ },
52
+ {
53
+ "inputs": [],
54
+ "name": "ReinitializableBase_ZeroInitVersion",
55
+ "type": "error"
56
+ },
57
+ {
58
+ "anonymous": false,
59
+ "inputs": [
60
+ {
61
+ "indexed": true,
62
+ "internalType": "address",
63
+ "name": "src",
64
+ "type": "address"
65
+ },
66
+ {
67
+ "indexed": true,
68
+ "internalType": "address",
69
+ "name": "guy",
70
+ "type": "address"
71
+ },
72
+ {
73
+ "indexed": false,
74
+ "internalType": "uint256",
75
+ "name": "wad",
76
+ "type": "uint256"
77
+ }
78
+ ],
79
+ "name": "Approval",
80
+ "type": "event"
81
+ },
82
+ {
83
+ "anonymous": false,
84
+ "inputs": [
85
+ {
86
+ "indexed": true,
87
+ "internalType": "address",
88
+ "name": "dst",
89
+ "type": "address"
90
+ },
91
+ {
92
+ "indexed": false,
93
+ "internalType": "uint256",
94
+ "name": "wad",
95
+ "type": "uint256"
96
+ }
97
+ ],
98
+ "name": "Deposit",
99
+ "type": "event"
100
+ },
101
+ {
102
+ "anonymous": false,
103
+ "inputs": [
104
+ {
105
+ "indexed": false,
106
+ "internalType": "uint8",
107
+ "name": "version",
108
+ "type": "uint8"
109
+ }
110
+ ],
111
+ "name": "Initialized",
112
+ "type": "event"
113
+ },
114
+ {
115
+ "anonymous": false,
116
+ "inputs": [
117
+ {
118
+ "indexed": true,
119
+ "internalType": "address",
120
+ "name": "src",
121
+ "type": "address"
122
+ },
123
+ {
124
+ "indexed": true,
125
+ "internalType": "address",
126
+ "name": "dst",
127
+ "type": "address"
128
+ },
129
+ {
130
+ "indexed": false,
131
+ "internalType": "uint256",
132
+ "name": "wad",
133
+ "type": "uint256"
134
+ }
135
+ ],
136
+ "name": "Transfer",
137
+ "type": "event"
138
+ },
139
+ {
140
+ "anonymous": false,
141
+ "inputs": [
142
+ {
143
+ "indexed": true,
144
+ "internalType": "address",
145
+ "name": "src",
146
+ "type": "address"
147
+ },
148
+ {
149
+ "indexed": false,
150
+ "internalType": "uint256",
151
+ "name": "wad",
152
+ "type": "uint256"
153
+ }
154
+ ],
155
+ "name": "Withdrawal",
156
+ "type": "event"
157
+ },
158
+ {
159
+ "stateMutability": "payable",
160
+ "type": "fallback"
161
+ },
162
+ {
163
+ "inputs": [
164
+ {
165
+ "internalType": "address",
166
+ "name": "owner",
167
+ "type": "address"
168
+ },
169
+ {
170
+ "internalType": "address",
171
+ "name": "spender",
172
+ "type": "address"
173
+ }
174
+ ],
175
+ "name": "allowance",
15
176
  "outputs": [
16
177
  {
178
+ "internalType": "uint256",
17
179
  "name": "",
18
- "type": "string"
180
+ "type": "uint256"
19
181
  }
20
182
  ],
21
- "payable": false,
22
183
  "stateMutability": "view",
23
184
  "type": "function"
24
185
  },
25
186
  {
26
- "constant": false,
27
187
  "inputs": [
28
188
  {
189
+ "internalType": "address",
29
190
  "name": "guy",
30
191
  "type": "address"
31
192
  },
32
193
  {
194
+ "internalType": "uint256",
33
195
  "name": "wad",
34
196
  "type": "uint256"
35
197
  }
@@ -37,257 +199,378 @@ exports.Name_jsonAbi = [
37
199
  "name": "approve",
38
200
  "outputs": [
39
201
  {
202
+ "internalType": "bool",
40
203
  "name": "",
41
204
  "type": "bool"
42
205
  }
43
206
  ],
44
- "payable": false,
45
207
  "stateMutability": "nonpayable",
46
208
  "type": "function"
47
209
  },
48
210
  {
49
- "constant": true,
50
- "inputs": [],
51
- "name": "totalSupply",
211
+ "inputs": [
212
+ {
213
+ "internalType": "address",
214
+ "name": "src",
215
+ "type": "address"
216
+ }
217
+ ],
218
+ "name": "balanceOf",
52
219
  "outputs": [
53
220
  {
221
+ "internalType": "uint256",
54
222
  "name": "",
55
223
  "type": "uint256"
56
224
  }
57
225
  ],
58
- "payable": false,
59
226
  "stateMutability": "view",
60
227
  "type": "function"
61
228
  },
62
229
  {
63
- "constant": false,
64
- "inputs": [
65
- {
66
- "name": "src",
67
- "type": "address"
68
- },
230
+ "inputs": [],
231
+ "name": "config",
232
+ "outputs": [
69
233
  {
70
- "name": "dst",
234
+ "internalType": "contract ISuperchainConfig",
235
+ "name": "",
71
236
  "type": "address"
72
- },
237
+ }
238
+ ],
239
+ "stateMutability": "view",
240
+ "type": "function"
241
+ },
242
+ {
243
+ "inputs": [],
244
+ "name": "decimals",
245
+ "outputs": [
73
246
  {
74
- "name": "wad",
75
- "type": "uint256"
247
+ "internalType": "uint8",
248
+ "name": "",
249
+ "type": "uint8"
76
250
  }
77
251
  ],
78
- "name": "transferFrom",
252
+ "stateMutability": "view",
253
+ "type": "function"
254
+ },
255
+ {
256
+ "inputs": [],
257
+ "name": "delay",
79
258
  "outputs": [
80
259
  {
260
+ "internalType": "uint256",
81
261
  "name": "",
82
- "type": "bool"
262
+ "type": "uint256"
83
263
  }
84
264
  ],
85
- "payable": false,
86
- "stateMutability": "nonpayable",
265
+ "stateMutability": "view",
266
+ "type": "function"
267
+ },
268
+ {
269
+ "inputs": [],
270
+ "name": "deposit",
271
+ "outputs": [],
272
+ "stateMutability": "payable",
87
273
  "type": "function"
88
274
  },
89
275
  {
90
- "constant": false,
91
276
  "inputs": [
92
277
  {
93
- "name": "wad",
278
+ "internalType": "address",
279
+ "name": "_guy",
280
+ "type": "address"
281
+ },
282
+ {
283
+ "internalType": "uint256",
284
+ "name": "_wad",
94
285
  "type": "uint256"
95
286
  }
96
287
  ],
97
- "name": "withdraw",
288
+ "name": "hold",
289
+ "outputs": [],
290
+ "stateMutability": "nonpayable",
291
+ "type": "function"
292
+ },
293
+ {
294
+ "inputs": [
295
+ {
296
+ "internalType": "address",
297
+ "name": "_guy",
298
+ "type": "address"
299
+ }
300
+ ],
301
+ "name": "hold",
98
302
  "outputs": [],
99
- "payable": false,
100
303
  "stateMutability": "nonpayable",
101
304
  "type": "function"
102
305
  },
103
306
  {
104
- "constant": true,
105
307
  "inputs": [],
106
- "name": "decimals",
308
+ "name": "initVersion",
107
309
  "outputs": [
108
310
  {
311
+ "internalType": "uint8",
109
312
  "name": "",
110
313
  "type": "uint8"
111
314
  }
112
315
  ],
113
- "payable": false,
114
316
  "stateMutability": "view",
115
317
  "type": "function"
116
318
  },
117
319
  {
118
- "constant": true,
119
320
  "inputs": [
120
321
  {
121
- "name": "",
322
+ "internalType": "contract ISystemConfig",
323
+ "name": "_systemConfig",
122
324
  "type": "address"
123
325
  }
124
326
  ],
125
- "name": "balanceOf",
327
+ "name": "initialize",
328
+ "outputs": [],
329
+ "stateMutability": "nonpayable",
330
+ "type": "function"
331
+ },
332
+ {
333
+ "inputs": [],
334
+ "name": "name",
126
335
  "outputs": [
127
336
  {
337
+ "internalType": "string",
128
338
  "name": "",
129
- "type": "uint256"
339
+ "type": "string"
130
340
  }
131
341
  ],
132
- "payable": false,
133
342
  "stateMutability": "view",
134
343
  "type": "function"
135
344
  },
136
345
  {
137
- "constant": true,
138
346
  "inputs": [],
139
- "name": "symbol",
347
+ "name": "proxyAdmin",
140
348
  "outputs": [
141
349
  {
350
+ "internalType": "contract IProxyAdmin",
142
351
  "name": "",
143
- "type": "string"
352
+ "type": "address"
144
353
  }
145
354
  ],
146
- "payable": false,
147
355
  "stateMutability": "view",
148
356
  "type": "function"
149
357
  },
150
358
  {
151
- "constant": false,
152
- "inputs": [
359
+ "inputs": [],
360
+ "name": "proxyAdminOwner",
361
+ "outputs": [
153
362
  {
154
- "name": "dst",
363
+ "internalType": "address",
364
+ "name": "",
155
365
  "type": "address"
156
- },
366
+ }
367
+ ],
368
+ "stateMutability": "view",
369
+ "type": "function"
370
+ },
371
+ {
372
+ "inputs": [
157
373
  {
158
- "name": "wad",
374
+ "internalType": "uint256",
375
+ "name": "_wad",
159
376
  "type": "uint256"
160
377
  }
161
378
  ],
162
- "name": "transfer",
379
+ "name": "recover",
380
+ "outputs": [],
381
+ "stateMutability": "nonpayable",
382
+ "type": "function"
383
+ },
384
+ {
385
+ "inputs": [],
386
+ "name": "symbol",
163
387
  "outputs": [
164
388
  {
389
+ "internalType": "string",
165
390
  "name": "",
166
- "type": "bool"
391
+ "type": "string"
167
392
  }
168
393
  ],
169
- "payable": false,
170
- "stateMutability": "nonpayable",
394
+ "stateMutability": "view",
171
395
  "type": "function"
172
396
  },
173
397
  {
174
- "constant": false,
175
398
  "inputs": [],
176
- "name": "deposit",
177
- "outputs": [],
178
- "payable": true,
179
- "stateMutability": "payable",
399
+ "name": "systemConfig",
400
+ "outputs": [
401
+ {
402
+ "internalType": "contract ISystemConfig",
403
+ "name": "",
404
+ "type": "address"
405
+ }
406
+ ],
407
+ "stateMutability": "view",
180
408
  "type": "function"
181
409
  },
182
410
  {
183
- "constant": true,
184
- "inputs": [
411
+ "inputs": [],
412
+ "name": "totalSupply",
413
+ "outputs": [
185
414
  {
415
+ "internalType": "uint256",
186
416
  "name": "",
417
+ "type": "uint256"
418
+ }
419
+ ],
420
+ "stateMutability": "view",
421
+ "type": "function"
422
+ },
423
+ {
424
+ "inputs": [
425
+ {
426
+ "internalType": "address",
427
+ "name": "dst",
187
428
  "type": "address"
188
429
  },
189
430
  {
190
- "name": "",
191
- "type": "address"
431
+ "internalType": "uint256",
432
+ "name": "wad",
433
+ "type": "uint256"
192
434
  }
193
435
  ],
194
- "name": "allowance",
436
+ "name": "transfer",
195
437
  "outputs": [
196
438
  {
439
+ "internalType": "bool",
197
440
  "name": "",
198
- "type": "uint256"
441
+ "type": "bool"
199
442
  }
200
443
  ],
201
- "payable": false,
202
- "stateMutability": "view",
444
+ "stateMutability": "nonpayable",
203
445
  "type": "function"
204
446
  },
205
447
  {
206
- "payable": true,
207
- "stateMutability": "payable",
208
- "type": "fallback"
209
- },
210
- {
211
- "anonymous": false,
212
448
  "inputs": [
213
449
  {
214
- "indexed": true,
450
+ "internalType": "address",
215
451
  "name": "src",
216
452
  "type": "address"
217
453
  },
218
454
  {
219
- "indexed": true,
220
- "name": "guy",
455
+ "internalType": "address",
456
+ "name": "dst",
221
457
  "type": "address"
222
458
  },
223
459
  {
224
- "indexed": false,
460
+ "internalType": "uint256",
225
461
  "name": "wad",
226
462
  "type": "uint256"
227
463
  }
228
464
  ],
229
- "name": "Approval",
230
- "type": "event"
465
+ "name": "transferFrom",
466
+ "outputs": [
467
+ {
468
+ "internalType": "bool",
469
+ "name": "",
470
+ "type": "bool"
471
+ }
472
+ ],
473
+ "stateMutability": "nonpayable",
474
+ "type": "function"
231
475
  },
232
476
  {
233
- "anonymous": false,
234
477
  "inputs": [
235
478
  {
236
- "indexed": true,
237
- "name": "src",
479
+ "internalType": "address",
480
+ "name": "_guy",
238
481
  "type": "address"
239
482
  },
240
483
  {
241
- "indexed": true,
242
- "name": "dst",
243
- "type": "address"
244
- },
484
+ "internalType": "uint256",
485
+ "name": "_wad",
486
+ "type": "uint256"
487
+ }
488
+ ],
489
+ "name": "unlock",
490
+ "outputs": [],
491
+ "stateMutability": "nonpayable",
492
+ "type": "function"
493
+ },
494
+ {
495
+ "inputs": [],
496
+ "name": "version",
497
+ "outputs": [
245
498
  {
246
- "indexed": false,
247
- "name": "wad",
499
+ "internalType": "string",
500
+ "name": "",
501
+ "type": "string"
502
+ }
503
+ ],
504
+ "stateMutability": "view",
505
+ "type": "function"
506
+ },
507
+ {
508
+ "inputs": [
509
+ {
510
+ "internalType": "uint256",
511
+ "name": "_wad",
248
512
  "type": "uint256"
249
513
  }
250
514
  ],
251
- "name": "Transfer",
252
- "type": "event"
515
+ "name": "withdraw",
516
+ "outputs": [],
517
+ "stateMutability": "nonpayable",
518
+ "type": "function"
253
519
  },
254
520
  {
255
- "anonymous": false,
256
521
  "inputs": [
257
522
  {
258
- "indexed": true,
259
- "name": "dst",
523
+ "internalType": "address",
524
+ "name": "_guy",
260
525
  "type": "address"
261
526
  },
262
527
  {
263
- "indexed": false,
264
- "name": "wad",
528
+ "internalType": "uint256",
529
+ "name": "_wad",
265
530
  "type": "uint256"
266
531
  }
267
532
  ],
268
- "name": "Deposit",
269
- "type": "event"
533
+ "name": "withdraw",
534
+ "outputs": [],
535
+ "stateMutability": "nonpayable",
536
+ "type": "function"
270
537
  },
271
538
  {
272
- "anonymous": false,
273
539
  "inputs": [
274
540
  {
275
- "indexed": true,
276
- "name": "src",
541
+ "internalType": "address",
542
+ "name": "",
277
543
  "type": "address"
278
544
  },
279
545
  {
280
- "indexed": false,
281
- "name": "wad",
546
+ "internalType": "address",
547
+ "name": "",
548
+ "type": "address"
549
+ }
550
+ ],
551
+ "name": "withdrawals",
552
+ "outputs": [
553
+ {
554
+ "internalType": "uint256",
555
+ "name": "amount",
556
+ "type": "uint256"
557
+ },
558
+ {
559
+ "internalType": "uint256",
560
+ "name": "timestamp",
282
561
  "type": "uint256"
283
562
  }
284
563
  ],
285
- "name": "Withdrawal",
286
- "type": "event"
564
+ "stateMutability": "view",
565
+ "type": "function"
566
+ },
567
+ {
568
+ "stateMutability": "payable",
569
+ "type": "receive"
287
570
  }
288
571
  ];
289
572
  /**
290
- * Name_json Contract Class
573
+ * DelayedWETH_json Contract Class
291
574
  *
292
575
  * Provides a class-based API similar to TypeChain for interacting with the contract.
293
576
  *
@@ -295,12 +578,12 @@ exports.Name_jsonAbi = [
295
578
  * ```typescript
296
579
  * import { createPublicClient, createWalletClient, http } from 'viem';
297
580
  * import { mainnet } from 'viem/chains';
298
- * import { Name_json } from 'Name_json';
581
+ * import { DelayedWETH_json } from 'DelayedWETH_json';
299
582
  *
300
583
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
301
584
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
302
585
  *
303
- * const contract = new Name_json('0x...', { publicClient, walletClient });
586
+ * const contract = new DelayedWETH_json('0x...', { publicClient, walletClient });
304
587
  *
305
588
  * // Read functions
306
589
  * const result = await contract.balanceOf('0x...');
@@ -318,13 +601,13 @@ exports.Name_jsonAbi = [
318
601
  * });
319
602
  * ```
320
603
  */
321
- class Name_json {
604
+ class DelayedWETH_json {
322
605
  constructor(address, clients) {
323
606
  this.contractAddress = address;
324
607
  this.publicClient = clients.publicClient;
325
608
  this.contract = (0, viem_1.getContract)({
326
609
  address,
327
- abi: exports.Name_jsonAbi,
610
+ abi: exports.DelayedWETH_jsonAbi,
328
611
  client: {
329
612
  public: clients.publicClient,
330
613
  wallet: clients.walletClient,
@@ -344,18 +627,25 @@ class Name_json {
344
627
  return this.contract;
345
628
  }
346
629
  /**
347
- * name
630
+ * allowance
348
631
  * view
349
632
  */
350
- async name() {
351
- return this.contract.read.name();
633
+ async allowance(owner, spender) {
634
+ return this.contract.read.allowance([owner, spender]);
352
635
  }
353
636
  /**
354
- * totalSupply
637
+ * balanceOf
355
638
  * view
356
639
  */
357
- async totalSupply() {
358
- return this.contract.read.totalSupply();
640
+ async balanceOf(src) {
641
+ return this.contract.read.balanceOf([src]);
642
+ }
643
+ /**
644
+ * config
645
+ * view
646
+ */
647
+ async config() {
648
+ return this.contract.read.config();
359
649
  }
360
650
  /**
361
651
  * decimals
@@ -365,11 +655,39 @@ class Name_json {
365
655
  return this.contract.read.decimals();
366
656
  }
367
657
  /**
368
- * balanceOf
658
+ * delay
369
659
  * view
370
660
  */
371
- async balanceOf(arg0) {
372
- return this.contract.read.balanceOf([arg0]);
661
+ async delay() {
662
+ return this.contract.read.delay();
663
+ }
664
+ /**
665
+ * initVersion
666
+ * view
667
+ */
668
+ async initVersion() {
669
+ return this.contract.read.initVersion();
670
+ }
671
+ /**
672
+ * name
673
+ * view
674
+ */
675
+ async name() {
676
+ return this.contract.read.name();
677
+ }
678
+ /**
679
+ * proxyAdmin
680
+ * view
681
+ */
682
+ async proxyAdmin() {
683
+ return this.contract.read.proxyAdmin();
684
+ }
685
+ /**
686
+ * proxyAdminOwner
687
+ * view
688
+ */
689
+ async proxyAdminOwner() {
690
+ return this.contract.read.proxyAdminOwner();
373
691
  }
374
692
  /**
375
693
  * symbol
@@ -379,11 +697,32 @@ class Name_json {
379
697
  return this.contract.read.symbol();
380
698
  }
381
699
  /**
382
- * allowance
700
+ * systemConfig
701
+ * view
702
+ */
703
+ async systemConfig() {
704
+ return this.contract.read.systemConfig();
705
+ }
706
+ /**
707
+ * totalSupply
708
+ * view
709
+ */
710
+ async totalSupply() {
711
+ return this.contract.read.totalSupply();
712
+ }
713
+ /**
714
+ * version
383
715
  * view
384
716
  */
385
- async allowance(arg0, arg1) {
386
- return this.contract.read.allowance([arg0, arg1]);
717
+ async version() {
718
+ return this.contract.read.version();
719
+ }
720
+ /**
721
+ * withdrawals
722
+ * view
723
+ */
724
+ async withdrawals(arg0, arg1) {
725
+ return this.contract.read.withdrawals([arg0, arg1]);
387
726
  }
388
727
  /**
389
728
  * approve
@@ -397,26 +736,43 @@ class Name_json {
397
736
  return this.contract.write.approve([guy, wad], options);
398
737
  }
399
738
  /**
400
- * transferFrom
739
+ * deposit
740
+ * payable
741
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
742
+ */
743
+ async deposit(options) {
744
+ if (!this.contract.write) {
745
+ throw new Error('Wallet client is required for write operations');
746
+ }
747
+ return this.contract.write.deposit(options);
748
+ }
749
+ async hold(...args) {
750
+ if (!this.contract.write) {
751
+ throw new Error('Wallet client is required for write operations');
752
+ }
753
+ return this.contract.write.hold(args);
754
+ }
755
+ /**
756
+ * initialize
401
757
  * nonpayable
402
758
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
403
759
  */
404
- async transferFrom(src, dst, wad, options) {
760
+ async initialize(_systemConfig, options) {
405
761
  if (!this.contract.write) {
406
762
  throw new Error('Wallet client is required for write operations');
407
763
  }
408
- return this.contract.write.transferFrom([src, dst, wad], options);
764
+ return this.contract.write.initialize([_systemConfig], options);
409
765
  }
410
766
  /**
411
- * withdraw
767
+ * recover
412
768
  * nonpayable
413
769
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
414
770
  */
415
- async withdraw(wad, options) {
771
+ async recover(_wad, options) {
416
772
  if (!this.contract.write) {
417
773
  throw new Error('Wallet client is required for write operations');
418
774
  }
419
- return this.contract.write.withdraw([wad], options);
775
+ return this.contract.write.recover([_wad], options);
420
776
  }
421
777
  /**
422
778
  * transfer
@@ -430,15 +786,32 @@ class Name_json {
430
786
  return this.contract.write.transfer([dst, wad], options);
431
787
  }
432
788
  /**
433
- * deposit
434
- * payable
789
+ * transferFrom
790
+ * nonpayable
435
791
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
436
792
  */
437
- async deposit(options) {
793
+ async transferFrom(src, dst, wad, options) {
438
794
  if (!this.contract.write) {
439
795
  throw new Error('Wallet client is required for write operations');
440
796
  }
441
- return this.contract.write.deposit(options);
797
+ return this.contract.write.transferFrom([src, dst, wad], options);
798
+ }
799
+ /**
800
+ * unlock
801
+ * nonpayable
802
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
803
+ */
804
+ async unlock(_guy, _wad, options) {
805
+ if (!this.contract.write) {
806
+ throw new Error('Wallet client is required for write operations');
807
+ }
808
+ return this.contract.write.unlock([_guy, _wad], options);
809
+ }
810
+ async withdraw(...args) {
811
+ if (!this.contract.write) {
812
+ throw new Error('Wallet client is required for write operations');
813
+ }
814
+ return this.contract.write.withdraw(args);
442
815
  }
443
816
  /**
444
817
  * Simulate contract write operations (dry-run without sending transaction)
@@ -463,20 +836,37 @@ class Name_json {
463
836
  return contract.simulate.approve([guy, wad], options);
464
837
  },
465
838
  /**
466
- * Simulate transferFrom
839
+ * Simulate deposit
467
840
  * Returns gas estimate and result without sending transaction
468
841
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
469
842
  */
470
- async transferFrom(src, dst, wad, options) {
471
- return contract.simulate.transferFrom([src, dst, wad], options);
843
+ async deposit(options) {
844
+ return contract.simulate.deposit(options);
472
845
  },
473
846
  /**
474
- * Simulate withdraw
847
+ * Simulate hold
848
+ * Returns gas estimate and result without sending transaction
849
+ * Supports multiple overloads: (address, uint256), (address)
850
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
851
+ */
852
+ async hold(...args) {
853
+ return contract.simulate.hold(args);
854
+ },
855
+ /**
856
+ * Simulate initialize
857
+ * Returns gas estimate and result without sending transaction
858
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
859
+ */
860
+ async initialize(_systemConfig, options) {
861
+ return contract.simulate.initialize([_systemConfig], options);
862
+ },
863
+ /**
864
+ * Simulate recover
475
865
  * Returns gas estimate and result without sending transaction
476
866
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
477
867
  */
478
- async withdraw(wad, options) {
479
- return contract.simulate.withdraw([wad], options);
868
+ async recover(_wad, options) {
869
+ return contract.simulate.recover([_wad], options);
480
870
  },
481
871
  /**
482
872
  * Simulate transfer
@@ -487,12 +877,29 @@ class Name_json {
487
877
  return contract.simulate.transfer([dst, wad], options);
488
878
  },
489
879
  /**
490
- * Simulate deposit
880
+ * Simulate transferFrom
491
881
  * Returns gas estimate and result without sending transaction
492
882
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
493
883
  */
494
- async deposit(options) {
495
- return contract.simulate.deposit(options);
884
+ async transferFrom(src, dst, wad, options) {
885
+ return contract.simulate.transferFrom([src, dst, wad], options);
886
+ },
887
+ /**
888
+ * Simulate unlock
889
+ * Returns gas estimate and result without sending transaction
890
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
891
+ */
892
+ async unlock(_guy, _wad, options) {
893
+ return contract.simulate.unlock([_guy, _wad], options);
894
+ },
895
+ /**
896
+ * Simulate withdraw
897
+ * Returns gas estimate and result without sending transaction
898
+ * Supports multiple overloads: (uint256), (address, uint256)
899
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
900
+ */
901
+ async withdraw(...args) {
902
+ return contract.simulate.withdraw(args);
496
903
  }
497
904
  };
498
905
  }
@@ -519,7 +926,7 @@ class Name_json {
519
926
  Approval: (callback, filter) => {
520
927
  return this.publicClient.watchContractEvent({
521
928
  address: this.contractAddress,
522
- abi: exports.Name_jsonAbi,
929
+ abi: exports.DelayedWETH_jsonAbi,
523
930
  eventName: 'Approval',
524
931
  args: filter,
525
932
  onLogs: (logs) => {
@@ -530,16 +937,16 @@ class Name_json {
530
937
  });
531
938
  },
532
939
  /**
533
- * Watch Transfer events
940
+ * Watch Deposit events
534
941
  * @param callback Function to call when event is emitted
535
942
  * @param filter Optional filter for indexed parameters
536
943
  * @returns Unwatch function to stop listening
537
944
  */
538
- Transfer: (callback, filter) => {
945
+ Deposit: (callback, filter) => {
539
946
  return this.publicClient.watchContractEvent({
540
947
  address: this.contractAddress,
541
- abi: exports.Name_jsonAbi,
542
- eventName: 'Transfer',
948
+ abi: exports.DelayedWETH_jsonAbi,
949
+ eventName: 'Deposit',
543
950
  args: filter,
544
951
  onLogs: (logs) => {
545
952
  logs.forEach((log) => {
@@ -549,16 +956,34 @@ class Name_json {
549
956
  });
550
957
  },
551
958
  /**
552
- * Watch Deposit events
959
+ * Watch Initialized events
553
960
  * @param callback Function to call when event is emitted
554
961
  * @param filter Optional filter for indexed parameters
555
962
  * @returns Unwatch function to stop listening
556
963
  */
557
- Deposit: (callback, filter) => {
964
+ Initialized: (callback) => {
558
965
  return this.publicClient.watchContractEvent({
559
966
  address: this.contractAddress,
560
- abi: exports.Name_jsonAbi,
561
- eventName: 'Deposit',
967
+ abi: exports.DelayedWETH_jsonAbi,
968
+ eventName: 'Initialized',
969
+ onLogs: (logs) => {
970
+ logs.forEach((log) => {
971
+ callback(log.args);
972
+ });
973
+ },
974
+ });
975
+ },
976
+ /**
977
+ * Watch Transfer events
978
+ * @param callback Function to call when event is emitted
979
+ * @param filter Optional filter for indexed parameters
980
+ * @returns Unwatch function to stop listening
981
+ */
982
+ Transfer: (callback, filter) => {
983
+ return this.publicClient.watchContractEvent({
984
+ address: this.contractAddress,
985
+ abi: exports.DelayedWETH_jsonAbi,
986
+ eventName: 'Transfer',
562
987
  args: filter,
563
988
  onLogs: (logs) => {
564
989
  logs.forEach((log) => {
@@ -576,7 +1001,7 @@ class Name_json {
576
1001
  Withdrawal: (callback, filter) => {
577
1002
  return this.publicClient.watchContractEvent({
578
1003
  address: this.contractAddress,
579
- abi: exports.Name_jsonAbi,
1004
+ abi: exports.DelayedWETH_jsonAbi,
580
1005
  eventName: 'Withdrawal',
581
1006
  args: filter,
582
1007
  onLogs: (logs) => {
@@ -589,4 +1014,4 @@ class Name_json {
589
1014
  };
590
1015
  }
591
1016
  }
592
- exports.Name_json = Name_json;
1017
+ exports.DelayedWETH_json = DelayedWETH_json;