@gitmyabi/weth 1.0.1 → 1.0.2

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,300 @@
1
1
  import type { Address, PublicClient, WalletClient } from 'viem';
2
2
  /**
3
- * WETH9_json ABI
3
+ * StandardToken_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 StandardToken_jsonAbi: readonly [{
9
8
  readonly inputs: readonly [];
10
- readonly name: "name";
9
+ readonly stateMutability: "nonpayable";
10
+ readonly type: "constructor";
11
+ }, {
12
+ readonly anonymous: false;
13
+ readonly inputs: readonly [{
14
+ readonly indexed: true;
15
+ readonly internalType: "address";
16
+ readonly name: "owner";
17
+ readonly type: "address";
18
+ }, {
19
+ readonly indexed: true;
20
+ readonly internalType: "address";
21
+ readonly name: "spender";
22
+ readonly type: "address";
23
+ }, {
24
+ readonly indexed: false;
25
+ readonly internalType: "uint256";
26
+ readonly name: "value";
27
+ readonly type: "uint256";
28
+ }];
29
+ readonly name: "Approval";
30
+ readonly type: "event";
31
+ }, {
32
+ readonly anonymous: false;
33
+ readonly inputs: readonly [{
34
+ readonly indexed: false;
35
+ readonly internalType: "uint8";
36
+ readonly name: "version";
37
+ readonly type: "uint8";
38
+ }];
39
+ readonly name: "Initialized";
40
+ readonly type: "event";
41
+ }, {
42
+ readonly anonymous: false;
43
+ readonly inputs: readonly [{
44
+ readonly indexed: true;
45
+ readonly internalType: "address";
46
+ readonly name: "from";
47
+ readonly type: "address";
48
+ }, {
49
+ readonly indexed: true;
50
+ readonly internalType: "address";
51
+ readonly name: "to";
52
+ readonly type: "address";
53
+ }, {
54
+ readonly indexed: false;
55
+ readonly internalType: "uint256";
56
+ readonly name: "value";
57
+ readonly type: "uint256";
58
+ }];
59
+ readonly name: "Transfer";
60
+ readonly type: "event";
61
+ }, {
62
+ readonly inputs: readonly [{
63
+ readonly internalType: "address";
64
+ readonly name: "owner";
65
+ readonly type: "address";
66
+ }, {
67
+ readonly internalType: "address";
68
+ readonly name: "spender";
69
+ readonly type: "address";
70
+ }];
71
+ readonly name: "allowance";
11
72
  readonly outputs: readonly [{
73
+ readonly internalType: "uint256";
12
74
  readonly name: "";
13
- readonly type: "string";
75
+ readonly type: "uint256";
14
76
  }];
15
- readonly payable: false;
16
77
  readonly stateMutability: "view";
17
78
  readonly type: "function";
18
79
  }, {
19
- readonly constant: false;
20
80
  readonly inputs: readonly [{
21
- readonly name: "guy";
81
+ readonly internalType: "address";
82
+ readonly name: "spender";
22
83
  readonly type: "address";
23
84
  }, {
24
- readonly name: "wad";
85
+ readonly internalType: "uint256";
86
+ readonly name: "amount";
25
87
  readonly type: "uint256";
26
88
  }];
27
89
  readonly name: "approve";
28
90
  readonly outputs: readonly [{
91
+ readonly internalType: "bool";
29
92
  readonly name: "";
30
93
  readonly type: "bool";
31
94
  }];
32
- readonly payable: false;
33
95
  readonly stateMutability: "nonpayable";
34
96
  readonly type: "function";
35
97
  }, {
36
- readonly constant: true;
37
- readonly inputs: readonly [];
38
- readonly name: "totalSupply";
98
+ readonly inputs: readonly [{
99
+ readonly internalType: "address";
100
+ readonly name: "account";
101
+ readonly type: "address";
102
+ }];
103
+ readonly name: "balanceOf";
39
104
  readonly outputs: readonly [{
105
+ readonly internalType: "uint256";
40
106
  readonly name: "";
41
107
  readonly type: "uint256";
42
108
  }];
43
- readonly payable: false;
44
109
  readonly stateMutability: "view";
45
110
  readonly type: "function";
46
111
  }, {
47
- readonly constant: false;
48
112
  readonly inputs: readonly [{
49
- readonly name: "src";
50
- readonly type: "address";
51
- }, {
52
- readonly name: "dst";
53
- readonly type: "address";
54
- }, {
55
- readonly name: "wad";
113
+ readonly internalType: "uint256";
114
+ readonly name: "amount";
56
115
  readonly type: "uint256";
57
116
  }];
58
- readonly name: "transferFrom";
59
- readonly outputs: readonly [{
60
- readonly name: "";
61
- readonly type: "bool";
62
- }];
63
- readonly payable: false;
117
+ readonly name: "burn";
118
+ readonly outputs: readonly [];
64
119
  readonly stateMutability: "nonpayable";
65
120
  readonly type: "function";
66
121
  }, {
67
- readonly constant: false;
68
122
  readonly inputs: readonly [{
69
- readonly name: "wad";
123
+ readonly internalType: "address";
124
+ readonly name: "account";
125
+ readonly type: "address";
126
+ }, {
127
+ readonly internalType: "uint256";
128
+ readonly name: "amount";
70
129
  readonly type: "uint256";
71
130
  }];
72
- readonly name: "withdraw";
131
+ readonly name: "burnFrom";
73
132
  readonly outputs: readonly [];
74
- readonly payable: false;
75
133
  readonly stateMutability: "nonpayable";
76
134
  readonly type: "function";
77
135
  }, {
78
- readonly constant: true;
79
136
  readonly inputs: readonly [];
80
137
  readonly name: "decimals";
81
138
  readonly outputs: readonly [{
139
+ readonly internalType: "uint8";
82
140
  readonly name: "";
83
141
  readonly type: "uint8";
84
142
  }];
85
- readonly payable: false;
86
143
  readonly stateMutability: "view";
87
144
  readonly type: "function";
88
145
  }, {
89
- readonly constant: true;
90
146
  readonly inputs: readonly [{
91
- readonly name: "";
147
+ readonly internalType: "address";
148
+ readonly name: "spender";
92
149
  readonly type: "address";
93
- }];
94
- readonly name: "balanceOf";
95
- readonly outputs: readonly [{
96
- readonly name: "";
150
+ }, {
151
+ readonly internalType: "uint256";
152
+ readonly name: "subtractedValue";
97
153
  readonly type: "uint256";
98
154
  }];
99
- readonly payable: false;
100
- readonly stateMutability: "view";
101
- readonly type: "function";
102
- }, {
103
- readonly constant: true;
104
- readonly inputs: readonly [];
105
- readonly name: "symbol";
155
+ readonly name: "decreaseAllowance";
106
156
  readonly outputs: readonly [{
157
+ readonly internalType: "bool";
107
158
  readonly name: "";
108
- readonly type: "string";
159
+ readonly type: "bool";
109
160
  }];
110
- readonly payable: false;
111
- readonly stateMutability: "view";
161
+ readonly stateMutability: "nonpayable";
112
162
  readonly type: "function";
113
163
  }, {
114
- readonly constant: false;
115
164
  readonly inputs: readonly [{
116
- readonly name: "dst";
165
+ readonly internalType: "address";
166
+ readonly name: "spender";
117
167
  readonly type: "address";
118
168
  }, {
119
- readonly name: "wad";
169
+ readonly internalType: "uint256";
170
+ readonly name: "addedValue";
120
171
  readonly type: "uint256";
121
172
  }];
122
- readonly name: "transfer";
173
+ readonly name: "increaseAllowance";
123
174
  readonly outputs: readonly [{
175
+ readonly internalType: "bool";
124
176
  readonly name: "";
125
177
  readonly type: "bool";
126
178
  }];
127
- readonly payable: false;
128
179
  readonly stateMutability: "nonpayable";
129
180
  readonly type: "function";
130
181
  }, {
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
182
  readonly inputs: readonly [{
141
- readonly name: "";
183
+ readonly internalType: "address";
184
+ readonly name: "_owner";
142
185
  readonly type: "address";
143
186
  }, {
144
- readonly name: "";
145
- readonly type: "address";
187
+ readonly internalType: "string";
188
+ readonly name: "_name";
189
+ readonly type: "string";
190
+ }, {
191
+ readonly internalType: "string";
192
+ readonly name: "_symbol";
193
+ readonly type: "string";
194
+ }, {
195
+ readonly internalType: "uint8";
196
+ readonly name: "_decimals";
197
+ readonly type: "uint8";
198
+ }, {
199
+ readonly internalType: "uint256";
200
+ readonly name: "_initialSupply";
201
+ readonly type: "uint256";
146
202
  }];
147
- readonly name: "allowance";
203
+ readonly name: "initialize";
204
+ readonly outputs: readonly [];
205
+ readonly stateMutability: "nonpayable";
206
+ readonly type: "function";
207
+ }, {
208
+ readonly inputs: readonly [];
209
+ readonly name: "maxSupply";
148
210
  readonly outputs: readonly [{
211
+ readonly internalType: "uint256";
149
212
  readonly name: "";
150
213
  readonly type: "uint256";
151
214
  }];
152
- readonly payable: false;
153
215
  readonly stateMutability: "view";
154
216
  readonly type: "function";
155
217
  }, {
156
- readonly payable: true;
157
- readonly stateMutability: "payable";
158
- readonly type: "fallback";
218
+ readonly inputs: readonly [];
219
+ readonly name: "name";
220
+ readonly outputs: readonly [{
221
+ readonly internalType: "string";
222
+ readonly name: "";
223
+ readonly type: "string";
224
+ }];
225
+ readonly stateMutability: "view";
226
+ readonly type: "function";
159
227
  }, {
160
- readonly anonymous: false;
161
- readonly inputs: readonly [{
162
- readonly indexed: true;
163
- readonly name: "src";
164
- readonly type: "address";
165
- }, {
166
- readonly indexed: true;
167
- readonly name: "guy";
168
- readonly type: "address";
169
- }, {
170
- readonly indexed: false;
171
- readonly name: "wad";
172
- readonly type: "uint256";
228
+ readonly inputs: readonly [];
229
+ readonly name: "symbol";
230
+ readonly outputs: readonly [{
231
+ readonly internalType: "string";
232
+ readonly name: "";
233
+ readonly type: "string";
173
234
  }];
174
- readonly name: "Approval";
175
- readonly type: "event";
235
+ readonly stateMutability: "view";
236
+ readonly type: "function";
176
237
  }, {
177
- readonly anonymous: false;
178
- 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";
238
+ readonly inputs: readonly [];
239
+ readonly name: "totalSupply";
240
+ readonly outputs: readonly [{
241
+ readonly internalType: "uint256";
242
+ readonly name: "";
189
243
  readonly type: "uint256";
190
244
  }];
191
- readonly name: "Transfer";
192
- readonly type: "event";
245
+ readonly stateMutability: "view";
246
+ readonly type: "function";
193
247
  }, {
194
- readonly anonymous: false;
195
248
  readonly inputs: readonly [{
196
- readonly indexed: true;
197
- readonly name: "dst";
249
+ readonly internalType: "address";
250
+ readonly name: "to";
198
251
  readonly type: "address";
199
252
  }, {
200
- readonly indexed: false;
201
- readonly name: "wad";
253
+ readonly internalType: "uint256";
254
+ readonly name: "amount";
202
255
  readonly type: "uint256";
203
256
  }];
204
- readonly name: "Deposit";
205
- readonly type: "event";
257
+ readonly name: "transfer";
258
+ readonly outputs: readonly [{
259
+ readonly internalType: "bool";
260
+ readonly name: "";
261
+ readonly type: "bool";
262
+ }];
263
+ readonly stateMutability: "nonpayable";
264
+ readonly type: "function";
206
265
  }, {
207
- readonly anonymous: false;
208
266
  readonly inputs: readonly [{
209
- readonly indexed: true;
210
- readonly name: "src";
267
+ readonly internalType: "address";
268
+ readonly name: "from";
211
269
  readonly type: "address";
212
270
  }, {
213
- readonly indexed: false;
214
- readonly name: "wad";
271
+ readonly internalType: "address";
272
+ readonly name: "to";
273
+ readonly type: "address";
274
+ }, {
275
+ readonly internalType: "uint256";
276
+ readonly name: "amount";
215
277
  readonly type: "uint256";
216
278
  }];
217
- readonly name: "Withdrawal";
218
- readonly type: "event";
279
+ readonly name: "transferFrom";
280
+ readonly outputs: readonly [{
281
+ readonly internalType: "bool";
282
+ readonly name: "";
283
+ readonly type: "bool";
284
+ }];
285
+ readonly stateMutability: "nonpayable";
286
+ readonly type: "function";
219
287
  }];
220
288
  /**
221
- * Type-safe ABI for WETH9_json
289
+ * Type-safe ABI for StandardToken_json
222
290
  */
223
- export type WETH9_jsonAbi = typeof WETH9_jsonAbi;
291
+ export type StandardToken_jsonAbi = typeof StandardToken_jsonAbi;
224
292
  /**
225
- * Contract instance type for WETH9_json
293
+ * Contract instance type for StandardToken_json
226
294
  */
227
- export type WETH9_jsonContract = any;
295
+ export type StandardToken_jsonContract = any;
228
296
  /**
229
- * WETH9_json Contract Class
297
+ * StandardToken_json Contract Class
230
298
  *
231
299
  * Provides a class-based API similar to TypeChain for interacting with the contract.
232
300
  *
@@ -234,12 +302,12 @@ export type WETH9_jsonContract = any;
234
302
  * ```typescript
235
303
  * import { createPublicClient, createWalletClient, http } from 'viem';
236
304
  * import { mainnet } from 'viem/chains';
237
- * import { WETH9_json } from 'WETH9_json';
305
+ * import { StandardToken_json } from 'StandardToken_json';
238
306
  *
239
307
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
240
308
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
241
309
  *
242
- * const contract = new WETH9_json('0x...', { publicClient, walletClient });
310
+ * const contract = new StandardToken_json('0x...', { publicClient, walletClient });
243
311
  *
244
312
  * // Read functions
245
313
  * const result = await contract.balanceOf('0x...');
@@ -257,7 +325,7 @@ export type WETH9_jsonContract = any;
257
325
  * });
258
326
  * ```
259
327
  */
260
- export declare class WETH9_json {
328
+ export declare class StandardToken_json {
261
329
  private contract;
262
330
  private contractAddress;
263
331
  private publicClient;
@@ -272,43 +340,48 @@ export declare class WETH9_json {
272
340
  /**
273
341
  * Get the underlying viem contract instance
274
342
  */
275
- getContract(): WETH9_jsonContract;
343
+ getContract(): StandardToken_jsonContract;
276
344
  /**
277
- * name
345
+ * allowance
278
346
  * view
279
347
  */
280
- name(): Promise<string>;
348
+ allowance(owner: `0x${string}`, spender: `0x${string}`): Promise<bigint>;
281
349
  /**
282
- * totalSupply
350
+ * balanceOf
283
351
  * view
284
352
  */
285
- totalSupply(): Promise<bigint>;
353
+ balanceOf(account: `0x${string}`): Promise<bigint>;
286
354
  /**
287
355
  * decimals
288
356
  * view
289
357
  */
290
358
  decimals(): Promise<bigint>;
291
359
  /**
292
- * balanceOf
360
+ * maxSupply
293
361
  * view
294
362
  */
295
- balanceOf(arg0: `0x${string}`): Promise<bigint>;
363
+ maxSupply(): Promise<bigint>;
364
+ /**
365
+ * name
366
+ * view
367
+ */
368
+ name(): Promise<string>;
296
369
  /**
297
370
  * symbol
298
371
  * view
299
372
  */
300
373
  symbol(): Promise<string>;
301
374
  /**
302
- * allowance
375
+ * totalSupply
303
376
  * view
304
377
  */
305
- allowance(arg0: `0x${string}`, arg1: `0x${string}`): Promise<bigint>;
378
+ totalSupply(): Promise<bigint>;
306
379
  /**
307
380
  * approve
308
381
  * nonpayable
309
382
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
310
383
  */
311
- approve(guy: `0x${string}`, wad: bigint, options?: {
384
+ approve(spender: `0x${string}`, amount: bigint, options?: {
312
385
  accessList?: import('viem').AccessList;
313
386
  authorizationList?: import('viem').AuthorizationList;
314
387
  chain?: import('viem').Chain | null;
@@ -321,11 +394,62 @@ export declare class WETH9_json {
321
394
  value?: bigint;
322
395
  }): Promise<`0x${string}`>;
323
396
  /**
324
- * transferFrom
397
+ * burn
398
+ * nonpayable
399
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
400
+ */
401
+ burn(amount: bigint, options?: {
402
+ accessList?: import('viem').AccessList;
403
+ authorizationList?: import('viem').AuthorizationList;
404
+ chain?: import('viem').Chain | null;
405
+ dataSuffix?: `0x${string}`;
406
+ gas?: bigint;
407
+ gasPrice?: bigint;
408
+ maxFeePerGas?: bigint;
409
+ maxPriorityFeePerGas?: bigint;
410
+ nonce?: number;
411
+ value?: bigint;
412
+ }): Promise<`0x${string}`>;
413
+ /**
414
+ * burnFrom
415
+ * nonpayable
416
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
417
+ */
418
+ burnFrom(account: `0x${string}`, amount: bigint, options?: {
419
+ accessList?: import('viem').AccessList;
420
+ authorizationList?: import('viem').AuthorizationList;
421
+ chain?: import('viem').Chain | null;
422
+ dataSuffix?: `0x${string}`;
423
+ gas?: bigint;
424
+ gasPrice?: bigint;
425
+ maxFeePerGas?: bigint;
426
+ maxPriorityFeePerGas?: bigint;
427
+ nonce?: number;
428
+ value?: bigint;
429
+ }): Promise<`0x${string}`>;
430
+ /**
431
+ * decreaseAllowance
432
+ * nonpayable
433
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
434
+ */
435
+ decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
436
+ accessList?: import('viem').AccessList;
437
+ authorizationList?: import('viem').AuthorizationList;
438
+ chain?: import('viem').Chain | null;
439
+ dataSuffix?: `0x${string}`;
440
+ gas?: bigint;
441
+ gasPrice?: bigint;
442
+ maxFeePerGas?: bigint;
443
+ maxPriorityFeePerGas?: bigint;
444
+ nonce?: number;
445
+ value?: bigint;
446
+ }): Promise<`0x${string}`>;
447
+ /**
448
+ * increaseAllowance
325
449
  * nonpayable
326
450
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
327
451
  */
328
- transferFrom(src: `0x${string}`, dst: `0x${string}`, wad: bigint, options?: {
452
+ increaseAllowance(spender: `0x${string}`, addedValue: bigint, options?: {
329
453
  accessList?: import('viem').AccessList;
330
454
  authorizationList?: import('viem').AuthorizationList;
331
455
  chain?: import('viem').Chain | null;
@@ -338,11 +462,11 @@ export declare class WETH9_json {
338
462
  value?: bigint;
339
463
  }): Promise<`0x${string}`>;
340
464
  /**
341
- * withdraw
465
+ * initialize
342
466
  * nonpayable
343
467
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
344
468
  */
345
- withdraw(wad: bigint, options?: {
469
+ initialize(_owner: `0x${string}`, _name: string, _symbol: string, _decimals: bigint, _initialSupply: bigint, options?: {
346
470
  accessList?: import('viem').AccessList;
347
471
  authorizationList?: import('viem').AuthorizationList;
348
472
  chain?: import('viem').Chain | null;
@@ -359,7 +483,7 @@ export declare class WETH9_json {
359
483
  * nonpayable
360
484
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
361
485
  */
362
- transfer(dst: `0x${string}`, wad: bigint, options?: {
486
+ transfer(to: `0x${string}`, amount: bigint, options?: {
363
487
  accessList?: import('viem').AccessList;
364
488
  authorizationList?: import('viem').AuthorizationList;
365
489
  chain?: import('viem').Chain | null;
@@ -372,11 +496,11 @@ export declare class WETH9_json {
372
496
  value?: bigint;
373
497
  }): Promise<`0x${string}`>;
374
498
  /**
375
- * deposit
376
- * payable
499
+ * transferFrom
500
+ * nonpayable
377
501
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
378
502
  */
379
- deposit(options?: {
503
+ transferFrom(from: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
380
504
  accessList?: import('viem').AccessList;
381
505
  authorizationList?: import('viem').AuthorizationList;
382
506
  chain?: import('viem').Chain | null;
@@ -402,7 +526,7 @@ export declare class WETH9_json {
402
526
  * Returns gas estimate and result without sending transaction
403
527
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
404
528
  */
405
- approve(guy: `0x${string}`, wad: bigint, options?: {
529
+ approve(spender: `0x${string}`, amount: bigint, options?: {
406
530
  accessList?: import("viem").AccessList;
407
531
  authorizationList?: import("viem").AuthorizationList;
408
532
  chain?: import("viem").Chain | null;
@@ -415,11 +539,62 @@ export declare class WETH9_json {
415
539
  value?: bigint;
416
540
  }): Promise<boolean>;
417
541
  /**
418
- * Simulate transferFrom
542
+ * Simulate burn
419
543
  * Returns gas estimate and result without sending transaction
420
544
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
421
545
  */
422
- transferFrom(src: `0x${string}`, dst: `0x${string}`, wad: bigint, options?: {
546
+ burn(amount: bigint, options?: {
547
+ accessList?: import("viem").AccessList;
548
+ authorizationList?: import("viem").AuthorizationList;
549
+ chain?: import("viem").Chain | null;
550
+ dataSuffix?: `0x${string}`;
551
+ gas?: bigint;
552
+ gasPrice?: bigint;
553
+ maxFeePerGas?: bigint;
554
+ maxPriorityFeePerGas?: bigint;
555
+ nonce?: number;
556
+ value?: bigint;
557
+ }): Promise<void>;
558
+ /**
559
+ * Simulate burnFrom
560
+ * Returns gas estimate and result without sending transaction
561
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
562
+ */
563
+ burnFrom(account: `0x${string}`, amount: bigint, options?: {
564
+ accessList?: import("viem").AccessList;
565
+ authorizationList?: import("viem").AuthorizationList;
566
+ chain?: import("viem").Chain | null;
567
+ dataSuffix?: `0x${string}`;
568
+ gas?: bigint;
569
+ gasPrice?: bigint;
570
+ maxFeePerGas?: bigint;
571
+ maxPriorityFeePerGas?: bigint;
572
+ nonce?: number;
573
+ value?: bigint;
574
+ }): Promise<void>;
575
+ /**
576
+ * Simulate decreaseAllowance
577
+ * Returns gas estimate and result without sending transaction
578
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
579
+ */
580
+ decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
581
+ accessList?: import("viem").AccessList;
582
+ authorizationList?: import("viem").AuthorizationList;
583
+ chain?: import("viem").Chain | null;
584
+ dataSuffix?: `0x${string}`;
585
+ gas?: bigint;
586
+ gasPrice?: bigint;
587
+ maxFeePerGas?: bigint;
588
+ maxPriorityFeePerGas?: bigint;
589
+ nonce?: number;
590
+ value?: bigint;
591
+ }): Promise<boolean>;
592
+ /**
593
+ * Simulate increaseAllowance
594
+ * Returns gas estimate and result without sending transaction
595
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
596
+ */
597
+ increaseAllowance(spender: `0x${string}`, addedValue: bigint, options?: {
423
598
  accessList?: import("viem").AccessList;
424
599
  authorizationList?: import("viem").AuthorizationList;
425
600
  chain?: import("viem").Chain | null;
@@ -432,11 +607,11 @@ export declare class WETH9_json {
432
607
  value?: bigint;
433
608
  }): Promise<boolean>;
434
609
  /**
435
- * Simulate withdraw
610
+ * Simulate initialize
436
611
  * Returns gas estimate and result without sending transaction
437
612
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
438
613
  */
439
- withdraw(wad: bigint, options?: {
614
+ initialize(_owner: `0x${string}`, _name: string, _symbol: string, _decimals: bigint, _initialSupply: bigint, options?: {
440
615
  accessList?: import("viem").AccessList;
441
616
  authorizationList?: import("viem").AuthorizationList;
442
617
  chain?: import("viem").Chain | null;
@@ -453,7 +628,7 @@ export declare class WETH9_json {
453
628
  * Returns gas estimate and result without sending transaction
454
629
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
455
630
  */
456
- transfer(dst: `0x${string}`, wad: bigint, options?: {
631
+ transfer(to: `0x${string}`, amount: bigint, options?: {
457
632
  accessList?: import("viem").AccessList;
458
633
  authorizationList?: import("viem").AuthorizationList;
459
634
  chain?: import("viem").Chain | null;
@@ -466,11 +641,11 @@ export declare class WETH9_json {
466
641
  value?: bigint;
467
642
  }): Promise<boolean>;
468
643
  /**
469
- * Simulate deposit
644
+ * Simulate transferFrom
470
645
  * Returns gas estimate and result without sending transaction
471
646
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
472
647
  */
473
- deposit(options?: {
648
+ transferFrom(from: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
474
649
  accessList?: import("viem").AccessList;
475
650
  authorizationList?: import("viem").AuthorizationList;
476
651
  chain?: import("viem").Chain | null;
@@ -481,7 +656,7 @@ export declare class WETH9_json {
481
656
  maxPriorityFeePerGas?: bigint;
482
657
  nonce?: number;
483
658
  value?: bigint;
484
- }): Promise<void>;
659
+ }): Promise<boolean>;
485
660
  };
486
661
  /**
487
662
  * Watch contract events
@@ -503,50 +678,35 @@ export declare class WETH9_json {
503
678
  * @returns Unwatch function to stop listening
504
679
  */
505
680
  Approval: (callback: (event: {
506
- src: `0x${string}`;
507
- guy: `0x${string}`;
508
- wad: bigint;
509
- }) => void, filter?: {
510
- src: `0x${string}`;
511
- guy: `0x${string}`;
512
- }) => () => void;
513
- /**
514
- * Watch Transfer events
515
- * @param callback Function to call when event is emitted
516
- * @param filter Optional filter for indexed parameters
517
- * @returns Unwatch function to stop listening
518
- */
519
- Transfer: (callback: (event: {
520
- src: `0x${string}`;
521
- dst: `0x${string}`;
522
- wad: bigint;
681
+ owner: `0x${string}`;
682
+ spender: `0x${string}`;
683
+ value: bigint;
523
684
  }) => void, filter?: {
524
- src: `0x${string}`;
525
- dst: `0x${string}`;
685
+ owner: `0x${string}`;
686
+ spender: `0x${string}`;
526
687
  }) => () => void;
527
688
  /**
528
- * Watch Deposit events
689
+ * Watch Initialized events
529
690
  * @param callback Function to call when event is emitted
530
691
  * @param filter Optional filter for indexed parameters
531
692
  * @returns Unwatch function to stop listening
532
693
  */
533
- Deposit: (callback: (event: {
534
- dst: `0x${string}`;
535
- wad: bigint;
536
- }) => void, filter?: {
537
- dst: `0x${string}`;
538
- }) => () => void;
694
+ Initialized: (callback: (event: {
695
+ version: bigint;
696
+ }) => void) => () => void;
539
697
  /**
540
- * Watch Withdrawal events
698
+ * Watch Transfer events
541
699
  * @param callback Function to call when event is emitted
542
700
  * @param filter Optional filter for indexed parameters
543
701
  * @returns Unwatch function to stop listening
544
702
  */
545
- Withdrawal: (callback: (event: {
546
- src: `0x${string}`;
547
- wad: bigint;
703
+ Transfer: (callback: (event: {
704
+ from: `0x${string}`;
705
+ to: `0x${string}`;
706
+ value: bigint;
548
707
  }) => void, filter?: {
549
- src: `0x${string}`;
708
+ from: `0x${string}`;
709
+ to: `0x${string}`;
550
710
  }) => () => void;
551
711
  };
552
712
  }