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