@gitmyabi/weth 1.0.6 → 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,232 +1,452 @@
1
1
  import type { Address, PublicClient, WalletClient } from 'viem';
2
2
  /**
3
- * WETH9_json ABI
3
+ * DelayedWETH_json ABI
4
4
  *
5
5
  * This ABI is typed using viem's type system for full type safety.
6
6
  */
7
- export declare const WETH9_jsonAbi: readonly [{
8
- readonly constant: true;
7
+ export declare const DelayedWETH_jsonAbi: readonly [{
8
+ readonly inputs: readonly [{
9
+ readonly internalType: "uint256";
10
+ readonly name: "_delay";
11
+ readonly type: "uint256";
12
+ }];
13
+ readonly stateMutability: "nonpayable";
14
+ readonly type: "constructor";
15
+ }, {
9
16
  readonly inputs: readonly [];
10
- readonly name: "name";
17
+ readonly name: "ProxyAdminOwnedBase_NotProxyAdmin";
18
+ readonly type: "error";
19
+ }, {
20
+ readonly inputs: readonly [];
21
+ readonly name: "ProxyAdminOwnedBase_NotProxyAdminOrProxyAdminOwner";
22
+ readonly type: "error";
23
+ }, {
24
+ readonly inputs: readonly [];
25
+ readonly name: "ProxyAdminOwnedBase_NotProxyAdminOwner";
26
+ readonly type: "error";
27
+ }, {
28
+ readonly inputs: readonly [];
29
+ readonly name: "ProxyAdminOwnedBase_NotResolvedDelegateProxy";
30
+ readonly type: "error";
31
+ }, {
32
+ readonly inputs: readonly [];
33
+ readonly name: "ProxyAdminOwnedBase_NotSharedProxyAdminOwner";
34
+ readonly type: "error";
35
+ }, {
36
+ readonly inputs: readonly [];
37
+ readonly name: "ProxyAdminOwnedBase_ProxyAdminNotFound";
38
+ readonly type: "error";
39
+ }, {
40
+ readonly inputs: readonly [];
41
+ readonly name: "ReinitializableBase_ZeroInitVersion";
42
+ readonly type: "error";
43
+ }, {
44
+ readonly anonymous: false;
45
+ readonly inputs: readonly [{
46
+ readonly indexed: true;
47
+ readonly internalType: "address";
48
+ readonly name: "src";
49
+ readonly type: "address";
50
+ }, {
51
+ readonly indexed: true;
52
+ readonly internalType: "address";
53
+ readonly name: "guy";
54
+ readonly type: "address";
55
+ }, {
56
+ readonly indexed: false;
57
+ readonly internalType: "uint256";
58
+ readonly name: "wad";
59
+ readonly type: "uint256";
60
+ }];
61
+ readonly name: "Approval";
62
+ readonly type: "event";
63
+ }, {
64
+ readonly anonymous: false;
65
+ readonly inputs: readonly [{
66
+ readonly indexed: true;
67
+ readonly internalType: "address";
68
+ readonly name: "dst";
69
+ readonly type: "address";
70
+ }, {
71
+ readonly indexed: false;
72
+ readonly internalType: "uint256";
73
+ readonly name: "wad";
74
+ readonly type: "uint256";
75
+ }];
76
+ readonly name: "Deposit";
77
+ readonly type: "event";
78
+ }, {
79
+ readonly anonymous: false;
80
+ readonly inputs: readonly [{
81
+ readonly indexed: false;
82
+ readonly internalType: "uint8";
83
+ readonly name: "version";
84
+ readonly type: "uint8";
85
+ }];
86
+ readonly name: "Initialized";
87
+ readonly type: "event";
88
+ }, {
89
+ readonly anonymous: false;
90
+ readonly inputs: readonly [{
91
+ readonly indexed: true;
92
+ readonly internalType: "address";
93
+ readonly name: "src";
94
+ readonly type: "address";
95
+ }, {
96
+ readonly indexed: true;
97
+ readonly internalType: "address";
98
+ readonly name: "dst";
99
+ readonly type: "address";
100
+ }, {
101
+ readonly indexed: false;
102
+ readonly internalType: "uint256";
103
+ readonly name: "wad";
104
+ readonly type: "uint256";
105
+ }];
106
+ readonly name: "Transfer";
107
+ readonly type: "event";
108
+ }, {
109
+ readonly anonymous: false;
110
+ readonly inputs: readonly [{
111
+ readonly indexed: true;
112
+ readonly internalType: "address";
113
+ readonly name: "src";
114
+ readonly type: "address";
115
+ }, {
116
+ readonly indexed: false;
117
+ readonly internalType: "uint256";
118
+ readonly name: "wad";
119
+ readonly type: "uint256";
120
+ }];
121
+ readonly name: "Withdrawal";
122
+ readonly type: "event";
123
+ }, {
124
+ readonly stateMutability: "payable";
125
+ readonly type: "fallback";
126
+ }, {
127
+ readonly inputs: readonly [{
128
+ readonly internalType: "address";
129
+ readonly name: "owner";
130
+ readonly type: "address";
131
+ }, {
132
+ readonly internalType: "address";
133
+ readonly name: "spender";
134
+ readonly type: "address";
135
+ }];
136
+ readonly name: "allowance";
11
137
  readonly outputs: readonly [{
138
+ readonly internalType: "uint256";
12
139
  readonly name: "";
13
- readonly type: "string";
140
+ readonly type: "uint256";
14
141
  }];
15
- readonly payable: false;
16
142
  readonly stateMutability: "view";
17
143
  readonly type: "function";
18
144
  }, {
19
- readonly constant: false;
20
145
  readonly inputs: readonly [{
146
+ readonly internalType: "address";
21
147
  readonly name: "guy";
22
148
  readonly type: "address";
23
149
  }, {
150
+ readonly internalType: "uint256";
24
151
  readonly name: "wad";
25
152
  readonly type: "uint256";
26
153
  }];
27
154
  readonly name: "approve";
28
155
  readonly outputs: readonly [{
156
+ readonly internalType: "bool";
29
157
  readonly name: "";
30
158
  readonly type: "bool";
31
159
  }];
32
- readonly payable: false;
33
160
  readonly stateMutability: "nonpayable";
34
161
  readonly type: "function";
35
162
  }, {
36
- readonly constant: true;
163
+ readonly inputs: readonly [{
164
+ readonly internalType: "address";
165
+ readonly name: "src";
166
+ readonly type: "address";
167
+ }];
168
+ readonly name: "balanceOf";
169
+ readonly outputs: readonly [{
170
+ readonly internalType: "uint256";
171
+ readonly name: "";
172
+ readonly type: "uint256";
173
+ }];
174
+ readonly stateMutability: "view";
175
+ readonly type: "function";
176
+ }, {
37
177
  readonly inputs: readonly [];
38
- readonly name: "totalSupply";
178
+ readonly name: "config";
179
+ readonly outputs: readonly [{
180
+ readonly internalType: "contract ISuperchainConfig";
181
+ readonly name: "";
182
+ readonly type: "address";
183
+ }];
184
+ readonly stateMutability: "view";
185
+ readonly type: "function";
186
+ }, {
187
+ readonly inputs: readonly [];
188
+ readonly name: "decimals";
39
189
  readonly outputs: readonly [{
190
+ readonly internalType: "uint8";
191
+ readonly name: "";
192
+ readonly type: "uint8";
193
+ }];
194
+ readonly stateMutability: "view";
195
+ readonly type: "function";
196
+ }, {
197
+ readonly inputs: readonly [];
198
+ readonly name: "delay";
199
+ readonly outputs: readonly [{
200
+ readonly internalType: "uint256";
40
201
  readonly name: "";
41
202
  readonly type: "uint256";
42
203
  }];
43
- readonly payable: false;
44
204
  readonly stateMutability: "view";
45
205
  readonly type: "function";
46
206
  }, {
47
- readonly constant: false;
207
+ readonly inputs: readonly [];
208
+ readonly name: "deposit";
209
+ readonly outputs: readonly [];
210
+ readonly stateMutability: "payable";
211
+ readonly type: "function";
212
+ }, {
48
213
  readonly inputs: readonly [{
49
- readonly name: "src";
214
+ readonly internalType: "address";
215
+ readonly name: "_guy";
50
216
  readonly type: "address";
51
217
  }, {
52
- readonly name: "dst";
53
- readonly type: "address";
54
- }, {
55
- readonly name: "wad";
218
+ readonly internalType: "uint256";
219
+ readonly name: "_wad";
56
220
  readonly type: "uint256";
57
221
  }];
58
- readonly name: "transferFrom";
59
- readonly outputs: readonly [{
60
- readonly name: "";
61
- readonly type: "bool";
62
- }];
63
- readonly payable: false;
222
+ readonly name: "hold";
223
+ readonly outputs: readonly [];
64
224
  readonly stateMutability: "nonpayable";
65
225
  readonly type: "function";
66
226
  }, {
67
- readonly constant: false;
68
227
  readonly inputs: readonly [{
69
- readonly name: "wad";
70
- readonly type: "uint256";
228
+ readonly internalType: "address";
229
+ readonly name: "_guy";
230
+ readonly type: "address";
71
231
  }];
72
- readonly name: "withdraw";
232
+ readonly name: "hold";
73
233
  readonly outputs: readonly [];
74
- readonly payable: false;
75
234
  readonly stateMutability: "nonpayable";
76
235
  readonly type: "function";
77
236
  }, {
78
- readonly constant: true;
79
237
  readonly inputs: readonly [];
80
- readonly name: "decimals";
238
+ readonly name: "initVersion";
81
239
  readonly outputs: readonly [{
240
+ readonly internalType: "uint8";
82
241
  readonly name: "";
83
242
  readonly type: "uint8";
84
243
  }];
85
- readonly payable: false;
86
244
  readonly stateMutability: "view";
87
245
  readonly type: "function";
88
246
  }, {
89
- readonly constant: true;
90
247
  readonly inputs: readonly [{
248
+ readonly internalType: "contract ISystemConfig";
249
+ readonly name: "_systemConfig";
250
+ readonly type: "address";
251
+ }];
252
+ readonly name: "initialize";
253
+ readonly outputs: readonly [];
254
+ readonly stateMutability: "nonpayable";
255
+ readonly type: "function";
256
+ }, {
257
+ readonly inputs: readonly [];
258
+ readonly name: "name";
259
+ readonly outputs: readonly [{
260
+ readonly internalType: "string";
261
+ readonly name: "";
262
+ readonly type: "string";
263
+ }];
264
+ readonly stateMutability: "view";
265
+ readonly type: "function";
266
+ }, {
267
+ readonly inputs: readonly [];
268
+ readonly name: "proxyAdmin";
269
+ readonly outputs: readonly [{
270
+ readonly internalType: "contract IProxyAdmin";
91
271
  readonly name: "";
92
272
  readonly type: "address";
93
273
  }];
94
- readonly name: "balanceOf";
274
+ readonly stateMutability: "view";
275
+ readonly type: "function";
276
+ }, {
277
+ readonly inputs: readonly [];
278
+ readonly name: "proxyAdminOwner";
95
279
  readonly outputs: readonly [{
280
+ readonly internalType: "address";
96
281
  readonly name: "";
97
- readonly type: "uint256";
282
+ readonly type: "address";
98
283
  }];
99
- readonly payable: false;
100
284
  readonly stateMutability: "view";
101
285
  readonly type: "function";
102
286
  }, {
103
- readonly constant: true;
287
+ readonly inputs: readonly [{
288
+ readonly internalType: "uint256";
289
+ readonly name: "_wad";
290
+ readonly type: "uint256";
291
+ }];
292
+ readonly name: "recover";
293
+ readonly outputs: readonly [];
294
+ readonly stateMutability: "nonpayable";
295
+ readonly type: "function";
296
+ }, {
104
297
  readonly inputs: readonly [];
105
298
  readonly name: "symbol";
106
299
  readonly outputs: readonly [{
300
+ readonly internalType: "string";
107
301
  readonly name: "";
108
302
  readonly type: "string";
109
303
  }];
110
- readonly payable: false;
111
304
  readonly stateMutability: "view";
112
305
  readonly type: "function";
113
306
  }, {
114
- readonly constant: false;
307
+ readonly inputs: readonly [];
308
+ readonly name: "systemConfig";
309
+ readonly outputs: readonly [{
310
+ readonly internalType: "contract ISystemConfig";
311
+ readonly name: "";
312
+ readonly type: "address";
313
+ }];
314
+ readonly stateMutability: "view";
315
+ readonly type: "function";
316
+ }, {
317
+ readonly inputs: readonly [];
318
+ readonly name: "totalSupply";
319
+ readonly outputs: readonly [{
320
+ readonly internalType: "uint256";
321
+ readonly name: "";
322
+ readonly type: "uint256";
323
+ }];
324
+ readonly stateMutability: "view";
325
+ readonly type: "function";
326
+ }, {
115
327
  readonly inputs: readonly [{
328
+ readonly internalType: "address";
116
329
  readonly name: "dst";
117
330
  readonly type: "address";
118
331
  }, {
332
+ readonly internalType: "uint256";
119
333
  readonly name: "wad";
120
334
  readonly type: "uint256";
121
335
  }];
122
336
  readonly name: "transfer";
123
337
  readonly outputs: readonly [{
338
+ readonly internalType: "bool";
124
339
  readonly name: "";
125
340
  readonly type: "bool";
126
341
  }];
127
- readonly payable: false;
128
342
  readonly stateMutability: "nonpayable";
129
343
  readonly type: "function";
130
344
  }, {
131
- readonly constant: false;
132
- readonly inputs: readonly [];
133
- readonly name: "deposit";
134
- readonly outputs: readonly [];
135
- readonly payable: true;
136
- readonly stateMutability: "payable";
137
- readonly type: "function";
138
- }, {
139
- readonly constant: true;
140
345
  readonly inputs: readonly [{
141
- readonly name: "";
346
+ readonly internalType: "address";
347
+ readonly name: "src";
142
348
  readonly type: "address";
143
349
  }, {
144
- readonly name: "";
350
+ readonly internalType: "address";
351
+ readonly name: "dst";
145
352
  readonly type: "address";
353
+ }, {
354
+ readonly internalType: "uint256";
355
+ readonly name: "wad";
356
+ readonly type: "uint256";
146
357
  }];
147
- readonly name: "allowance";
358
+ readonly name: "transferFrom";
148
359
  readonly outputs: readonly [{
360
+ readonly internalType: "bool";
149
361
  readonly name: "";
150
- readonly type: "uint256";
362
+ readonly type: "bool";
151
363
  }];
152
- readonly payable: false;
153
- readonly stateMutability: "view";
364
+ readonly stateMutability: "nonpayable";
154
365
  readonly type: "function";
155
366
  }, {
156
- readonly payable: true;
157
- readonly stateMutability: "payable";
158
- readonly type: "fallback";
159
- }, {
160
- readonly anonymous: false;
161
367
  readonly inputs: readonly [{
162
- readonly indexed: true;
163
- readonly name: "src";
368
+ readonly internalType: "address";
369
+ readonly name: "_guy";
164
370
  readonly type: "address";
165
371
  }, {
166
- readonly indexed: true;
167
- readonly name: "guy";
168
- readonly type: "address";
169
- }, {
170
- readonly indexed: false;
171
- readonly name: "wad";
372
+ readonly internalType: "uint256";
373
+ readonly name: "_wad";
172
374
  readonly type: "uint256";
173
375
  }];
174
- readonly name: "Approval";
175
- readonly type: "event";
376
+ readonly name: "unlock";
377
+ readonly outputs: readonly [];
378
+ readonly stateMutability: "nonpayable";
379
+ readonly type: "function";
380
+ }, {
381
+ readonly inputs: readonly [];
382
+ readonly name: "version";
383
+ readonly outputs: readonly [{
384
+ readonly internalType: "string";
385
+ readonly name: "";
386
+ readonly type: "string";
387
+ }];
388
+ readonly stateMutability: "view";
389
+ readonly type: "function";
176
390
  }, {
177
- readonly anonymous: false;
178
391
  readonly inputs: readonly [{
179
- readonly indexed: true;
180
- readonly name: "src";
181
- readonly type: "address";
182
- }, {
183
- readonly indexed: true;
184
- readonly name: "dst";
185
- readonly type: "address";
186
- }, {
187
- readonly indexed: false;
188
- readonly name: "wad";
392
+ readonly internalType: "uint256";
393
+ readonly name: "_wad";
189
394
  readonly type: "uint256";
190
395
  }];
191
- readonly name: "Transfer";
192
- readonly type: "event";
396
+ readonly name: "withdraw";
397
+ readonly outputs: readonly [];
398
+ readonly stateMutability: "nonpayable";
399
+ readonly type: "function";
193
400
  }, {
194
- readonly anonymous: false;
195
401
  readonly inputs: readonly [{
196
- readonly indexed: true;
197
- readonly name: "dst";
402
+ readonly internalType: "address";
403
+ readonly name: "_guy";
198
404
  readonly type: "address";
199
405
  }, {
200
- readonly indexed: false;
201
- readonly name: "wad";
406
+ readonly internalType: "uint256";
407
+ readonly name: "_wad";
202
408
  readonly type: "uint256";
203
409
  }];
204
- readonly name: "Deposit";
205
- readonly type: "event";
410
+ readonly name: "withdraw";
411
+ readonly outputs: readonly [];
412
+ readonly stateMutability: "nonpayable";
413
+ readonly type: "function";
206
414
  }, {
207
- readonly anonymous: false;
208
415
  readonly inputs: readonly [{
209
- readonly indexed: true;
210
- readonly name: "src";
416
+ readonly internalType: "address";
417
+ readonly name: "";
211
418
  readonly type: "address";
212
419
  }, {
213
- readonly indexed: false;
214
- readonly name: "wad";
420
+ readonly internalType: "address";
421
+ readonly name: "";
422
+ readonly type: "address";
423
+ }];
424
+ readonly name: "withdrawals";
425
+ readonly outputs: readonly [{
426
+ readonly internalType: "uint256";
427
+ readonly name: "amount";
428
+ readonly type: "uint256";
429
+ }, {
430
+ readonly internalType: "uint256";
431
+ readonly name: "timestamp";
215
432
  readonly type: "uint256";
216
433
  }];
217
- readonly name: "Withdrawal";
218
- readonly type: "event";
434
+ readonly stateMutability: "view";
435
+ readonly type: "function";
436
+ }, {
437
+ readonly stateMutability: "payable";
438
+ readonly type: "receive";
219
439
  }];
220
440
  /**
221
- * Type-safe ABI for WETH9_json
441
+ * Type-safe ABI for DelayedWETH_json
222
442
  */
223
- export type WETH9_jsonAbi = typeof WETH9_jsonAbi;
443
+ export type DelayedWETH_jsonAbi = typeof DelayedWETH_jsonAbi;
224
444
  /**
225
- * Contract instance type for WETH9_json
445
+ * Contract instance type for DelayedWETH_json
226
446
  */
227
- export type WETH9_jsonContract = any;
447
+ export type DelayedWETH_jsonContract = any;
228
448
  /**
229
- * WETH9_json Contract Class
449
+ * DelayedWETH_json Contract Class
230
450
  *
231
451
  * Provides a class-based API similar to TypeChain for interacting with the contract.
232
452
  *
@@ -234,12 +454,12 @@ export type WETH9_jsonContract = any;
234
454
  * ```typescript
235
455
  * import { createPublicClient, createWalletClient, http } from 'viem';
236
456
  * import { mainnet } from 'viem/chains';
237
- * import { WETH9_json } from 'WETH9_json';
457
+ * import { DelayedWETH_json } from 'DelayedWETH_json';
238
458
  *
239
459
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
240
460
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
241
461
  *
242
- * const contract = new WETH9_json('0x...', { publicClient, walletClient });
462
+ * const contract = new DelayedWETH_json('0x...', { publicClient, walletClient });
243
463
  *
244
464
  * // Read functions
245
465
  * const result = await contract.balanceOf('0x...');
@@ -257,7 +477,7 @@ export type WETH9_jsonContract = any;
257
477
  * });
258
478
  * ```
259
479
  */
260
- export declare class WETH9_json {
480
+ export declare class DelayedWETH_json {
261
481
  private contract;
262
482
  private contractAddress;
263
483
  private publicClient;
@@ -272,37 +492,77 @@ export declare class WETH9_json {
272
492
  /**
273
493
  * Get the underlying viem contract instance
274
494
  */
275
- getContract(): WETH9_jsonContract;
495
+ getContract(): DelayedWETH_jsonContract;
276
496
  /**
277
- * name
497
+ * allowance
278
498
  * view
279
499
  */
280
- name(): Promise<string>;
500
+ allowance(owner: `0x${string}`, spender: `0x${string}`): Promise<bigint>;
281
501
  /**
282
- * totalSupply
502
+ * balanceOf
283
503
  * view
284
504
  */
285
- totalSupply(): Promise<bigint>;
505
+ balanceOf(src: `0x${string}`): Promise<bigint>;
506
+ /**
507
+ * config
508
+ * view
509
+ */
510
+ config(): Promise<`0x${string}`>;
286
511
  /**
287
512
  * decimals
288
513
  * view
289
514
  */
290
515
  decimals(): Promise<bigint>;
291
516
  /**
292
- * balanceOf
517
+ * delay
293
518
  * view
294
519
  */
295
- balanceOf(arg0: `0x${string}`): Promise<bigint>;
520
+ delay(): Promise<bigint>;
521
+ /**
522
+ * initVersion
523
+ * view
524
+ */
525
+ initVersion(): Promise<bigint>;
526
+ /**
527
+ * name
528
+ * view
529
+ */
530
+ name(): Promise<string>;
531
+ /**
532
+ * proxyAdmin
533
+ * view
534
+ */
535
+ proxyAdmin(): Promise<`0x${string}`>;
536
+ /**
537
+ * proxyAdminOwner
538
+ * view
539
+ */
540
+ proxyAdminOwner(): Promise<`0x${string}`>;
296
541
  /**
297
542
  * symbol
298
543
  * view
299
544
  */
300
545
  symbol(): Promise<string>;
301
546
  /**
302
- * allowance
547
+ * systemConfig
303
548
  * view
304
549
  */
305
- allowance(arg0: `0x${string}`, arg1: `0x${string}`): Promise<bigint>;
550
+ systemConfig(): Promise<`0x${string}`>;
551
+ /**
552
+ * totalSupply
553
+ * view
554
+ */
555
+ totalSupply(): Promise<bigint>;
556
+ /**
557
+ * version
558
+ * view
559
+ */
560
+ version(): Promise<string>;
561
+ /**
562
+ * withdrawals
563
+ * view
564
+ */
565
+ withdrawals(arg0: `0x${string}`, arg1: `0x${string}`): Promise<[bigint, bigint]>;
306
566
  /**
307
567
  * approve
308
568
  * nonpayable
@@ -321,11 +581,52 @@ export declare class WETH9_json {
321
581
  value?: bigint;
322
582
  }): Promise<`0x${string}`>;
323
583
  /**
324
- * transferFrom
584
+ * deposit
585
+ * payable
586
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
587
+ */
588
+ deposit(options?: {
589
+ accessList?: import('viem').AccessList;
590
+ authorizationList?: import('viem').AuthorizationList;
591
+ chain?: import('viem').Chain | null;
592
+ dataSuffix?: `0x${string}`;
593
+ gas?: bigint;
594
+ gasPrice?: bigint;
595
+ maxFeePerGas?: bigint;
596
+ maxPriorityFeePerGas?: bigint;
597
+ nonce?: number;
598
+ value?: bigint;
599
+ }): Promise<`0x${string}`>;
600
+ hold(_guy: `0x${string}`, _wad: bigint, options?: {
601
+ accessList?: import('viem').AccessList;
602
+ authorizationList?: import('viem').AuthorizationList;
603
+ chain?: import('viem').Chain | null;
604
+ dataSuffix?: `0x${string}`;
605
+ gas?: bigint;
606
+ gasPrice?: bigint;
607
+ maxFeePerGas?: bigint;
608
+ maxPriorityFeePerGas?: bigint;
609
+ nonce?: number;
610
+ value?: bigint;
611
+ }): Promise<`0x${string}`>;
612
+ hold(_guy: `0x${string}`, options?: {
613
+ accessList?: import('viem').AccessList;
614
+ authorizationList?: import('viem').AuthorizationList;
615
+ chain?: import('viem').Chain | null;
616
+ dataSuffix?: `0x${string}`;
617
+ gas?: bigint;
618
+ gasPrice?: bigint;
619
+ maxFeePerGas?: bigint;
620
+ maxPriorityFeePerGas?: bigint;
621
+ nonce?: number;
622
+ value?: bigint;
623
+ }): Promise<`0x${string}`>;
624
+ /**
625
+ * initialize
325
626
  * nonpayable
326
627
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
327
628
  */
328
- transferFrom(src: `0x${string}`, dst: `0x${string}`, wad: bigint, options?: {
629
+ initialize(_systemConfig: `0x${string}`, options?: {
329
630
  accessList?: import('viem').AccessList;
330
631
  authorizationList?: import('viem').AuthorizationList;
331
632
  chain?: import('viem').Chain | null;
@@ -338,11 +639,11 @@ export declare class WETH9_json {
338
639
  value?: bigint;
339
640
  }): Promise<`0x${string}`>;
340
641
  /**
341
- * withdraw
642
+ * recover
342
643
  * nonpayable
343
644
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
344
645
  */
345
- withdraw(wad: bigint, options?: {
646
+ recover(_wad: bigint, options?: {
346
647
  accessList?: import('viem').AccessList;
347
648
  authorizationList?: import('viem').AuthorizationList;
348
649
  chain?: import('viem').Chain | null;
@@ -372,11 +673,52 @@ export declare class WETH9_json {
372
673
  value?: bigint;
373
674
  }): Promise<`0x${string}`>;
374
675
  /**
375
- * deposit
376
- * payable
676
+ * transferFrom
677
+ * nonpayable
377
678
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
378
679
  */
379
- deposit(options?: {
680
+ transferFrom(src: `0x${string}`, dst: `0x${string}`, wad: bigint, options?: {
681
+ accessList?: import('viem').AccessList;
682
+ authorizationList?: import('viem').AuthorizationList;
683
+ chain?: import('viem').Chain | null;
684
+ dataSuffix?: `0x${string}`;
685
+ gas?: bigint;
686
+ gasPrice?: bigint;
687
+ maxFeePerGas?: bigint;
688
+ maxPriorityFeePerGas?: bigint;
689
+ nonce?: number;
690
+ value?: bigint;
691
+ }): Promise<`0x${string}`>;
692
+ /**
693
+ * unlock
694
+ * nonpayable
695
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
696
+ */
697
+ unlock(_guy: `0x${string}`, _wad: bigint, options?: {
698
+ accessList?: import('viem').AccessList;
699
+ authorizationList?: import('viem').AuthorizationList;
700
+ chain?: import('viem').Chain | null;
701
+ dataSuffix?: `0x${string}`;
702
+ gas?: bigint;
703
+ gasPrice?: bigint;
704
+ maxFeePerGas?: bigint;
705
+ maxPriorityFeePerGas?: bigint;
706
+ nonce?: number;
707
+ value?: bigint;
708
+ }): Promise<`0x${string}`>;
709
+ withdraw(_wad: bigint, options?: {
710
+ accessList?: import('viem').AccessList;
711
+ authorizationList?: import('viem').AuthorizationList;
712
+ chain?: import('viem').Chain | null;
713
+ dataSuffix?: `0x${string}`;
714
+ gas?: bigint;
715
+ gasPrice?: bigint;
716
+ maxFeePerGas?: bigint;
717
+ maxPriorityFeePerGas?: bigint;
718
+ nonce?: number;
719
+ value?: bigint;
720
+ }): Promise<`0x${string}`>;
721
+ withdraw(_guy: `0x${string}`, _wad: bigint, options?: {
380
722
  accessList?: import('viem').AccessList;
381
723
  authorizationList?: import('viem').AuthorizationList;
382
724
  chain?: import('viem').Chain | null;
@@ -415,11 +757,11 @@ export declare class WETH9_json {
415
757
  value?: bigint;
416
758
  }): Promise<boolean>;
417
759
  /**
418
- * Simulate transferFrom
760
+ * Simulate deposit
419
761
  * Returns gas estimate and result without sending transaction
420
762
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
421
763
  */
422
- transferFrom(src: `0x${string}`, dst: `0x${string}`, wad: bigint, options?: {
764
+ deposit(options?: {
423
765
  accessList?: import("viem").AccessList;
424
766
  authorizationList?: import("viem").AuthorizationList;
425
767
  chain?: import("viem").Chain | null;
@@ -430,13 +772,37 @@ export declare class WETH9_json {
430
772
  maxPriorityFeePerGas?: bigint;
431
773
  nonce?: number;
432
774
  value?: bigint;
433
- }): Promise<boolean>;
775
+ }): Promise<void>;
434
776
  /**
435
- * Simulate withdraw
777
+ * Simulate hold
778
+ * Returns gas estimate and result without sending transaction
779
+ * Supports multiple overloads: (address, uint256), (address)
780
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
781
+ */
782
+ hold(...args: any[]): Promise<any>;
783
+ /**
784
+ * Simulate initialize
785
+ * Returns gas estimate and result without sending transaction
786
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
787
+ */
788
+ initialize(_systemConfig: `0x${string}`, options?: {
789
+ accessList?: import("viem").AccessList;
790
+ authorizationList?: import("viem").AuthorizationList;
791
+ chain?: import("viem").Chain | null;
792
+ dataSuffix?: `0x${string}`;
793
+ gas?: bigint;
794
+ gasPrice?: bigint;
795
+ maxFeePerGas?: bigint;
796
+ maxPriorityFeePerGas?: bigint;
797
+ nonce?: number;
798
+ value?: bigint;
799
+ }): Promise<void>;
800
+ /**
801
+ * Simulate recover
436
802
  * Returns gas estimate and result without sending transaction
437
803
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
438
804
  */
439
- withdraw(wad: bigint, options?: {
805
+ recover(_wad: bigint, options?: {
440
806
  accessList?: import("viem").AccessList;
441
807
  authorizationList?: import("viem").AuthorizationList;
442
808
  chain?: import("viem").Chain | null;
@@ -466,11 +832,28 @@ export declare class WETH9_json {
466
832
  value?: bigint;
467
833
  }): Promise<boolean>;
468
834
  /**
469
- * Simulate deposit
835
+ * Simulate transferFrom
470
836
  * Returns gas estimate and result without sending transaction
471
837
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
472
838
  */
473
- deposit(options?: {
839
+ transferFrom(src: `0x${string}`, dst: `0x${string}`, wad: bigint, options?: {
840
+ accessList?: import("viem").AccessList;
841
+ authorizationList?: import("viem").AuthorizationList;
842
+ chain?: import("viem").Chain | null;
843
+ dataSuffix?: `0x${string}`;
844
+ gas?: bigint;
845
+ gasPrice?: bigint;
846
+ maxFeePerGas?: bigint;
847
+ maxPriorityFeePerGas?: bigint;
848
+ nonce?: number;
849
+ value?: bigint;
850
+ }): Promise<boolean>;
851
+ /**
852
+ * Simulate unlock
853
+ * Returns gas estimate and result without sending transaction
854
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
855
+ */
856
+ unlock(_guy: `0x${string}`, _wad: bigint, options?: {
474
857
  accessList?: import("viem").AccessList;
475
858
  authorizationList?: import("viem").AuthorizationList;
476
859
  chain?: import("viem").Chain | null;
@@ -482,6 +865,13 @@ export declare class WETH9_json {
482
865
  nonce?: number;
483
866
  value?: bigint;
484
867
  }): Promise<void>;
868
+ /**
869
+ * Simulate withdraw
870
+ * Returns gas estimate and result without sending transaction
871
+ * Supports multiple overloads: (uint256), (address, uint256)
872
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
873
+ */
874
+ withdraw(...args: any[]): Promise<any>;
485
875
  };
486
876
  /**
487
877
  * Watch contract events
@@ -511,29 +901,38 @@ export declare class WETH9_json {
511
901
  guy: `0x${string}`;
512
902
  }) => () => void;
513
903
  /**
514
- * Watch Transfer events
904
+ * Watch Deposit events
515
905
  * @param callback Function to call when event is emitted
516
906
  * @param filter Optional filter for indexed parameters
517
907
  * @returns Unwatch function to stop listening
518
908
  */
519
- Transfer: (callback: (event: {
520
- src: `0x${string}`;
909
+ Deposit: (callback: (event: {
521
910
  dst: `0x${string}`;
522
911
  wad: bigint;
523
912
  }) => void, filter?: {
524
- src: `0x${string}`;
525
913
  dst: `0x${string}`;
526
914
  }) => () => void;
527
915
  /**
528
- * Watch Deposit events
916
+ * Watch Initialized events
529
917
  * @param callback Function to call when event is emitted
530
918
  * @param filter Optional filter for indexed parameters
531
919
  * @returns Unwatch function to stop listening
532
920
  */
533
- Deposit: (callback: (event: {
921
+ Initialized: (callback: (event: {
922
+ version: bigint;
923
+ }) => void) => () => void;
924
+ /**
925
+ * Watch Transfer events
926
+ * @param callback Function to call when event is emitted
927
+ * @param filter Optional filter for indexed parameters
928
+ * @returns Unwatch function to stop listening
929
+ */
930
+ Transfer: (callback: (event: {
931
+ src: `0x${string}`;
534
932
  dst: `0x${string}`;
535
933
  wad: bigint;
536
934
  }) => void, filter?: {
935
+ src: `0x${string}`;
537
936
  dst: `0x${string}`;
538
937
  }) => () => void;
539
938
  /**