@gitmyabi/usdt 1.0.4 → 1.0.5
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 +5 -5
- package/contracts/BridgeToken_json.d.ts +169 -0
- package/contracts/BridgeToken_json.js +221 -0
- package/contracts/BridgeToken_json.ts +251 -0
- package/contracts/{USDToken_json.d.ts → TokenImplementation_json.d.ts} +315 -164
- package/contracts/{USDToken_json.js → TokenImplementation_json.js} +354 -227
- package/contracts/{USDToken_json.ts → TokenImplementation_json.ts} +406 -233
- package/contracts/index.d.ts +4 -2
- package/contracts/index.js +7 -4
- package/contracts/index.ts +4 -2
- package/package.json +3 -3
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
import type { Address, PublicClient, WalletClient } from 'viem';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* TokenImplementation_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
|
|
8
|
-
readonly inputs: readonly [];
|
|
9
|
-
readonly stateMutability: "nonpayable";
|
|
10
|
-
readonly type: "constructor";
|
|
11
|
-
}, {
|
|
7
|
+
export declare const TokenImplementation_jsonAbi: readonly [{
|
|
12
8
|
readonly anonymous: false;
|
|
13
9
|
readonly inputs: readonly [{
|
|
14
10
|
readonly indexed: true;
|
|
@@ -28,36 +24,6 @@ export declare const USDToken_jsonAbi: readonly [{
|
|
|
28
24
|
}];
|
|
29
25
|
readonly name: "Approval";
|
|
30
26
|
readonly type: "event";
|
|
31
|
-
}, {
|
|
32
|
-
readonly anonymous: false;
|
|
33
|
-
readonly inputs: readonly [{
|
|
34
|
-
readonly indexed: false;
|
|
35
|
-
readonly internalType: "string";
|
|
36
|
-
readonly name: "newName";
|
|
37
|
-
readonly type: "string";
|
|
38
|
-
}];
|
|
39
|
-
readonly name: "NameChanged";
|
|
40
|
-
readonly type: "event";
|
|
41
|
-
}, {
|
|
42
|
-
readonly anonymous: false;
|
|
43
|
-
readonly inputs: readonly [{
|
|
44
|
-
readonly indexed: true;
|
|
45
|
-
readonly internalType: "address";
|
|
46
|
-
readonly name: "previousOwner";
|
|
47
|
-
readonly type: "address";
|
|
48
|
-
}];
|
|
49
|
-
readonly name: "OwnershipRenounced";
|
|
50
|
-
readonly type: "event";
|
|
51
|
-
}, {
|
|
52
|
-
readonly anonymous: false;
|
|
53
|
-
readonly inputs: readonly [{
|
|
54
|
-
readonly indexed: false;
|
|
55
|
-
readonly internalType: "string";
|
|
56
|
-
readonly name: "newSymbol";
|
|
57
|
-
readonly type: "string";
|
|
58
|
-
}];
|
|
59
|
-
readonly name: "SymbolChanged";
|
|
60
|
-
readonly type: "event";
|
|
61
27
|
}, {
|
|
62
28
|
readonly anonymous: false;
|
|
63
29
|
readonly inputs: readonly [{
|
|
@@ -78,14 +44,24 @@ export declare const USDToken_jsonAbi: readonly [{
|
|
|
78
44
|
}];
|
|
79
45
|
readonly name: "Transfer";
|
|
80
46
|
readonly type: "event";
|
|
47
|
+
}, {
|
|
48
|
+
readonly inputs: readonly [];
|
|
49
|
+
readonly name: "DOMAIN_SEPARATOR";
|
|
50
|
+
readonly outputs: readonly [{
|
|
51
|
+
readonly internalType: "bytes32";
|
|
52
|
+
readonly name: "";
|
|
53
|
+
readonly type: "bytes32";
|
|
54
|
+
}];
|
|
55
|
+
readonly stateMutability: "view";
|
|
56
|
+
readonly type: "function";
|
|
81
57
|
}, {
|
|
82
58
|
readonly inputs: readonly [{
|
|
83
59
|
readonly internalType: "address";
|
|
84
|
-
readonly name: "";
|
|
60
|
+
readonly name: "owner_";
|
|
85
61
|
readonly type: "address";
|
|
86
62
|
}, {
|
|
87
63
|
readonly internalType: "address";
|
|
88
|
-
readonly name: "";
|
|
64
|
+
readonly name: "spender_";
|
|
89
65
|
readonly type: "address";
|
|
90
66
|
}];
|
|
91
67
|
readonly name: "allowance";
|
|
@@ -99,11 +75,11 @@ export declare const USDToken_jsonAbi: readonly [{
|
|
|
99
75
|
}, {
|
|
100
76
|
readonly inputs: readonly [{
|
|
101
77
|
readonly internalType: "address";
|
|
102
|
-
readonly name: "
|
|
78
|
+
readonly name: "spender_";
|
|
103
79
|
readonly type: "address";
|
|
104
80
|
}, {
|
|
105
81
|
readonly internalType: "uint256";
|
|
106
|
-
readonly name: "
|
|
82
|
+
readonly name: "amount_";
|
|
107
83
|
readonly type: "uint256";
|
|
108
84
|
}];
|
|
109
85
|
readonly name: "approve";
|
|
@@ -117,7 +93,7 @@ export declare const USDToken_jsonAbi: readonly [{
|
|
|
117
93
|
}, {
|
|
118
94
|
readonly inputs: readonly [{
|
|
119
95
|
readonly internalType: "address";
|
|
120
|
-
readonly name: "";
|
|
96
|
+
readonly name: "account_";
|
|
121
97
|
readonly type: "address";
|
|
122
98
|
}];
|
|
123
99
|
readonly name: "balanceOf";
|
|
@@ -128,6 +104,30 @@ export declare const USDToken_jsonAbi: readonly [{
|
|
|
128
104
|
}];
|
|
129
105
|
readonly stateMutability: "view";
|
|
130
106
|
readonly type: "function";
|
|
107
|
+
}, {
|
|
108
|
+
readonly inputs: readonly [{
|
|
109
|
+
readonly internalType: "address";
|
|
110
|
+
readonly name: "account_";
|
|
111
|
+
readonly type: "address";
|
|
112
|
+
}, {
|
|
113
|
+
readonly internalType: "uint256";
|
|
114
|
+
readonly name: "amount_";
|
|
115
|
+
readonly type: "uint256";
|
|
116
|
+
}];
|
|
117
|
+
readonly name: "burn";
|
|
118
|
+
readonly outputs: readonly [];
|
|
119
|
+
readonly stateMutability: "nonpayable";
|
|
120
|
+
readonly type: "function";
|
|
121
|
+
}, {
|
|
122
|
+
readonly inputs: readonly [];
|
|
123
|
+
readonly name: "chainId";
|
|
124
|
+
readonly outputs: readonly [{
|
|
125
|
+
readonly internalType: "uint16";
|
|
126
|
+
readonly name: "";
|
|
127
|
+
readonly type: "uint16";
|
|
128
|
+
}];
|
|
129
|
+
readonly stateMutability: "view";
|
|
130
|
+
readonly type: "function";
|
|
131
131
|
}, {
|
|
132
132
|
readonly inputs: readonly [];
|
|
133
133
|
readonly name: "decimals";
|
|
@@ -141,11 +141,11 @@ export declare const USDToken_jsonAbi: readonly [{
|
|
|
141
141
|
}, {
|
|
142
142
|
readonly inputs: readonly [{
|
|
143
143
|
readonly internalType: "address";
|
|
144
|
-
readonly name: "
|
|
144
|
+
readonly name: "spender_";
|
|
145
145
|
readonly type: "address";
|
|
146
146
|
}, {
|
|
147
147
|
readonly internalType: "uint256";
|
|
148
|
-
readonly name: "
|
|
148
|
+
readonly name: "subtractedValue_";
|
|
149
149
|
readonly type: "uint256";
|
|
150
150
|
}];
|
|
151
151
|
readonly name: "decreaseAllowance";
|
|
@@ -156,14 +156,48 @@ export declare const USDToken_jsonAbi: readonly [{
|
|
|
156
156
|
}];
|
|
157
157
|
readonly stateMutability: "nonpayable";
|
|
158
158
|
readonly type: "function";
|
|
159
|
+
}, {
|
|
160
|
+
readonly inputs: readonly [];
|
|
161
|
+
readonly name: "eip712Domain";
|
|
162
|
+
readonly outputs: readonly [{
|
|
163
|
+
readonly internalType: "bytes1";
|
|
164
|
+
readonly name: "domainFields";
|
|
165
|
+
readonly type: "bytes1";
|
|
166
|
+
}, {
|
|
167
|
+
readonly internalType: "string";
|
|
168
|
+
readonly name: "domainName";
|
|
169
|
+
readonly type: "string";
|
|
170
|
+
}, {
|
|
171
|
+
readonly internalType: "string";
|
|
172
|
+
readonly name: "domainVersion";
|
|
173
|
+
readonly type: "string";
|
|
174
|
+
}, {
|
|
175
|
+
readonly internalType: "uint256";
|
|
176
|
+
readonly name: "domainChainId";
|
|
177
|
+
readonly type: "uint256";
|
|
178
|
+
}, {
|
|
179
|
+
readonly internalType: "address";
|
|
180
|
+
readonly name: "domainVerifyingContract";
|
|
181
|
+
readonly type: "address";
|
|
182
|
+
}, {
|
|
183
|
+
readonly internalType: "bytes32";
|
|
184
|
+
readonly name: "domainSalt";
|
|
185
|
+
readonly type: "bytes32";
|
|
186
|
+
}, {
|
|
187
|
+
readonly internalType: "uint256[]";
|
|
188
|
+
readonly name: "domainExtensions";
|
|
189
|
+
readonly type: "uint256[]";
|
|
190
|
+
}];
|
|
191
|
+
readonly stateMutability: "view";
|
|
192
|
+
readonly type: "function";
|
|
159
193
|
}, {
|
|
160
194
|
readonly inputs: readonly [{
|
|
161
195
|
readonly internalType: "address";
|
|
162
|
-
readonly name: "
|
|
196
|
+
readonly name: "spender_";
|
|
163
197
|
readonly type: "address";
|
|
164
198
|
}, {
|
|
165
199
|
readonly internalType: "uint256";
|
|
166
|
-
readonly name: "
|
|
200
|
+
readonly name: "addedValue_";
|
|
167
201
|
readonly type: "uint256";
|
|
168
202
|
}];
|
|
169
203
|
readonly name: "increaseAllowance";
|
|
@@ -175,14 +209,52 @@ export declare const USDToken_jsonAbi: readonly [{
|
|
|
175
209
|
readonly stateMutability: "nonpayable";
|
|
176
210
|
readonly type: "function";
|
|
177
211
|
}, {
|
|
178
|
-
readonly inputs: readonly [
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
readonly
|
|
182
|
-
|
|
183
|
-
readonly
|
|
212
|
+
readonly inputs: readonly [{
|
|
213
|
+
readonly internalType: "string";
|
|
214
|
+
readonly name: "name_";
|
|
215
|
+
readonly type: "string";
|
|
216
|
+
}, {
|
|
217
|
+
readonly internalType: "string";
|
|
218
|
+
readonly name: "symbol_";
|
|
219
|
+
readonly type: "string";
|
|
220
|
+
}, {
|
|
221
|
+
readonly internalType: "uint8";
|
|
222
|
+
readonly name: "decimals_";
|
|
223
|
+
readonly type: "uint8";
|
|
224
|
+
}, {
|
|
225
|
+
readonly internalType: "uint64";
|
|
226
|
+
readonly name: "sequence_";
|
|
227
|
+
readonly type: "uint64";
|
|
228
|
+
}, {
|
|
229
|
+
readonly internalType: "address";
|
|
230
|
+
readonly name: "owner_";
|
|
231
|
+
readonly type: "address";
|
|
232
|
+
}, {
|
|
233
|
+
readonly internalType: "uint16";
|
|
234
|
+
readonly name: "chainId_";
|
|
235
|
+
readonly type: "uint16";
|
|
236
|
+
}, {
|
|
237
|
+
readonly internalType: "bytes32";
|
|
238
|
+
readonly name: "nativeContract_";
|
|
239
|
+
readonly type: "bytes32";
|
|
184
240
|
}];
|
|
185
|
-
readonly
|
|
241
|
+
readonly name: "initialize";
|
|
242
|
+
readonly outputs: readonly [];
|
|
243
|
+
readonly stateMutability: "nonpayable";
|
|
244
|
+
readonly type: "function";
|
|
245
|
+
}, {
|
|
246
|
+
readonly inputs: readonly [{
|
|
247
|
+
readonly internalType: "address";
|
|
248
|
+
readonly name: "account_";
|
|
249
|
+
readonly type: "address";
|
|
250
|
+
}, {
|
|
251
|
+
readonly internalType: "uint256";
|
|
252
|
+
readonly name: "amount_";
|
|
253
|
+
readonly type: "uint256";
|
|
254
|
+
}];
|
|
255
|
+
readonly name: "mint";
|
|
256
|
+
readonly outputs: readonly [];
|
|
257
|
+
readonly stateMutability: "nonpayable";
|
|
186
258
|
readonly type: "function";
|
|
187
259
|
}, {
|
|
188
260
|
readonly inputs: readonly [];
|
|
@@ -196,47 +268,69 @@ export declare const USDToken_jsonAbi: readonly [{
|
|
|
196
268
|
readonly type: "function";
|
|
197
269
|
}, {
|
|
198
270
|
readonly inputs: readonly [];
|
|
199
|
-
readonly name: "
|
|
271
|
+
readonly name: "nativeContract";
|
|
200
272
|
readonly outputs: readonly [{
|
|
201
|
-
readonly internalType: "
|
|
273
|
+
readonly internalType: "bytes32";
|
|
202
274
|
readonly name: "";
|
|
203
|
-
readonly type: "
|
|
275
|
+
readonly type: "bytes32";
|
|
204
276
|
}];
|
|
205
277
|
readonly stateMutability: "view";
|
|
206
278
|
readonly type: "function";
|
|
207
279
|
}, {
|
|
208
|
-
readonly inputs: readonly [
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
readonly inputs: readonly [];
|
|
215
|
-
readonly name: "renounced";
|
|
280
|
+
readonly inputs: readonly [{
|
|
281
|
+
readonly internalType: "address";
|
|
282
|
+
readonly name: "owner_";
|
|
283
|
+
readonly type: "address";
|
|
284
|
+
}];
|
|
285
|
+
readonly name: "nonces";
|
|
216
286
|
readonly outputs: readonly [{
|
|
217
|
-
readonly internalType: "
|
|
287
|
+
readonly internalType: "uint256";
|
|
218
288
|
readonly name: "";
|
|
219
|
-
readonly type: "
|
|
289
|
+
readonly type: "uint256";
|
|
220
290
|
}];
|
|
221
291
|
readonly stateMutability: "view";
|
|
222
292
|
readonly type: "function";
|
|
223
293
|
}, {
|
|
224
|
-
readonly inputs: readonly [
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
readonly
|
|
294
|
+
readonly inputs: readonly [];
|
|
295
|
+
readonly name: "owner";
|
|
296
|
+
readonly outputs: readonly [{
|
|
297
|
+
readonly internalType: "address";
|
|
298
|
+
readonly name: "";
|
|
299
|
+
readonly type: "address";
|
|
228
300
|
}];
|
|
229
|
-
readonly
|
|
230
|
-
readonly outputs: readonly [];
|
|
231
|
-
readonly stateMutability: "nonpayable";
|
|
301
|
+
readonly stateMutability: "view";
|
|
232
302
|
readonly type: "function";
|
|
233
303
|
}, {
|
|
234
304
|
readonly inputs: readonly [{
|
|
235
|
-
readonly internalType: "
|
|
236
|
-
readonly name: "
|
|
237
|
-
readonly type: "
|
|
305
|
+
readonly internalType: "address";
|
|
306
|
+
readonly name: "owner_";
|
|
307
|
+
readonly type: "address";
|
|
308
|
+
}, {
|
|
309
|
+
readonly internalType: "address";
|
|
310
|
+
readonly name: "spender_";
|
|
311
|
+
readonly type: "address";
|
|
312
|
+
}, {
|
|
313
|
+
readonly internalType: "uint256";
|
|
314
|
+
readonly name: "value_";
|
|
315
|
+
readonly type: "uint256";
|
|
316
|
+
}, {
|
|
317
|
+
readonly internalType: "uint256";
|
|
318
|
+
readonly name: "deadline_";
|
|
319
|
+
readonly type: "uint256";
|
|
320
|
+
}, {
|
|
321
|
+
readonly internalType: "uint8";
|
|
322
|
+
readonly name: "v_";
|
|
323
|
+
readonly type: "uint8";
|
|
324
|
+
}, {
|
|
325
|
+
readonly internalType: "bytes32";
|
|
326
|
+
readonly name: "r_";
|
|
327
|
+
readonly type: "bytes32";
|
|
328
|
+
}, {
|
|
329
|
+
readonly internalType: "bytes32";
|
|
330
|
+
readonly name: "s_";
|
|
331
|
+
readonly type: "bytes32";
|
|
238
332
|
}];
|
|
239
|
-
readonly name: "
|
|
333
|
+
readonly name: "permit";
|
|
240
334
|
readonly outputs: readonly [];
|
|
241
335
|
readonly stateMutability: "nonpayable";
|
|
242
336
|
readonly type: "function";
|
|
@@ -250,16 +344,6 @@ export declare const USDToken_jsonAbi: readonly [{
|
|
|
250
344
|
}];
|
|
251
345
|
readonly stateMutability: "view";
|
|
252
346
|
readonly type: "function";
|
|
253
|
-
}, {
|
|
254
|
-
readonly inputs: readonly [];
|
|
255
|
-
readonly name: "tokenImage";
|
|
256
|
-
readonly outputs: readonly [{
|
|
257
|
-
readonly internalType: "string";
|
|
258
|
-
readonly name: "";
|
|
259
|
-
readonly type: "string";
|
|
260
|
-
}];
|
|
261
|
-
readonly stateMutability: "pure";
|
|
262
|
-
readonly type: "function";
|
|
263
347
|
}, {
|
|
264
348
|
readonly inputs: readonly [];
|
|
265
349
|
readonly name: "totalSupply";
|
|
@@ -273,11 +357,11 @@ export declare const USDToken_jsonAbi: readonly [{
|
|
|
273
357
|
}, {
|
|
274
358
|
readonly inputs: readonly [{
|
|
275
359
|
readonly internalType: "address";
|
|
276
|
-
readonly name: "
|
|
360
|
+
readonly name: "recipient_";
|
|
277
361
|
readonly type: "address";
|
|
278
362
|
}, {
|
|
279
363
|
readonly internalType: "uint256";
|
|
280
|
-
readonly name: "
|
|
364
|
+
readonly name: "amount_";
|
|
281
365
|
readonly type: "uint256";
|
|
282
366
|
}];
|
|
283
367
|
readonly name: "transfer";
|
|
@@ -291,15 +375,15 @@ export declare const USDToken_jsonAbi: readonly [{
|
|
|
291
375
|
}, {
|
|
292
376
|
readonly inputs: readonly [{
|
|
293
377
|
readonly internalType: "address";
|
|
294
|
-
readonly name: "
|
|
378
|
+
readonly name: "sender_";
|
|
295
379
|
readonly type: "address";
|
|
296
380
|
}, {
|
|
297
381
|
readonly internalType: "address";
|
|
298
|
-
readonly name: "
|
|
382
|
+
readonly name: "recipient_";
|
|
299
383
|
readonly type: "address";
|
|
300
384
|
}, {
|
|
301
385
|
readonly internalType: "uint256";
|
|
302
|
-
readonly name: "
|
|
386
|
+
readonly name: "amount_";
|
|
303
387
|
readonly type: "uint256";
|
|
304
388
|
}];
|
|
305
389
|
readonly name: "transferFrom";
|
|
@@ -310,17 +394,35 @@ export declare const USDToken_jsonAbi: readonly [{
|
|
|
310
394
|
}];
|
|
311
395
|
readonly stateMutability: "nonpayable";
|
|
312
396
|
readonly type: "function";
|
|
397
|
+
}, {
|
|
398
|
+
readonly inputs: readonly [{
|
|
399
|
+
readonly internalType: "string";
|
|
400
|
+
readonly name: "name_";
|
|
401
|
+
readonly type: "string";
|
|
402
|
+
}, {
|
|
403
|
+
readonly internalType: "string";
|
|
404
|
+
readonly name: "symbol_";
|
|
405
|
+
readonly type: "string";
|
|
406
|
+
}, {
|
|
407
|
+
readonly internalType: "uint64";
|
|
408
|
+
readonly name: "sequence_";
|
|
409
|
+
readonly type: "uint64";
|
|
410
|
+
}];
|
|
411
|
+
readonly name: "updateDetails";
|
|
412
|
+
readonly outputs: readonly [];
|
|
413
|
+
readonly stateMutability: "nonpayable";
|
|
414
|
+
readonly type: "function";
|
|
313
415
|
}];
|
|
314
416
|
/**
|
|
315
|
-
* Type-safe ABI for
|
|
417
|
+
* Type-safe ABI for TokenImplementation_json
|
|
316
418
|
*/
|
|
317
|
-
export type
|
|
419
|
+
export type TokenImplementation_jsonAbi = typeof TokenImplementation_jsonAbi;
|
|
318
420
|
/**
|
|
319
|
-
* Contract instance type for
|
|
421
|
+
* Contract instance type for TokenImplementation_json
|
|
320
422
|
*/
|
|
321
|
-
export type
|
|
423
|
+
export type TokenImplementation_jsonContract = any;
|
|
322
424
|
/**
|
|
323
|
-
*
|
|
425
|
+
* TokenImplementation_json Contract Class
|
|
324
426
|
*
|
|
325
427
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
326
428
|
*
|
|
@@ -328,12 +430,12 @@ export type USDToken_jsonContract = any;
|
|
|
328
430
|
* ```typescript
|
|
329
431
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
330
432
|
* import { mainnet } from 'viem/chains';
|
|
331
|
-
* import {
|
|
433
|
+
* import { TokenImplementation_json } from 'TokenImplementation_json';
|
|
332
434
|
*
|
|
333
435
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
334
436
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
335
437
|
*
|
|
336
|
-
* const contract = new
|
|
438
|
+
* const contract = new TokenImplementation_json('0x...', { publicClient, walletClient });
|
|
337
439
|
*
|
|
338
440
|
* // Read functions
|
|
339
441
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -351,7 +453,7 @@ export type USDToken_jsonContract = any;
|
|
|
351
453
|
* });
|
|
352
454
|
* ```
|
|
353
455
|
*/
|
|
354
|
-
export declare class
|
|
456
|
+
export declare class TokenImplementation_json {
|
|
355
457
|
private contract;
|
|
356
458
|
private contractAddress;
|
|
357
459
|
private publicClient;
|
|
@@ -366,52 +468,62 @@ export declare class USDToken_json {
|
|
|
366
468
|
/**
|
|
367
469
|
* Get the underlying viem contract instance
|
|
368
470
|
*/
|
|
369
|
-
getContract():
|
|
471
|
+
getContract(): TokenImplementation_jsonContract;
|
|
472
|
+
/**
|
|
473
|
+
* DOMAIN_SEPARATOR
|
|
474
|
+
* view
|
|
475
|
+
*/
|
|
476
|
+
DOMAIN_SEPARATOR(): Promise<`0x${string}`>;
|
|
370
477
|
/**
|
|
371
478
|
* allowance
|
|
372
479
|
* view
|
|
373
480
|
*/
|
|
374
|
-
allowance(
|
|
481
|
+
allowance(owner_: `0x${string}`, spender_: `0x${string}`): Promise<bigint>;
|
|
375
482
|
/**
|
|
376
483
|
* balanceOf
|
|
377
484
|
* view
|
|
378
485
|
*/
|
|
379
|
-
balanceOf(
|
|
486
|
+
balanceOf(account_: `0x${string}`): Promise<bigint>;
|
|
487
|
+
/**
|
|
488
|
+
* chainId
|
|
489
|
+
* view
|
|
490
|
+
*/
|
|
491
|
+
chainId(): Promise<bigint>;
|
|
380
492
|
/**
|
|
381
493
|
* decimals
|
|
382
494
|
* view
|
|
383
495
|
*/
|
|
384
496
|
decimals(): Promise<bigint>;
|
|
385
497
|
/**
|
|
386
|
-
*
|
|
498
|
+
* eip712Domain
|
|
387
499
|
* view
|
|
388
500
|
*/
|
|
389
|
-
|
|
501
|
+
eip712Domain(): Promise<[`0x${string}`, string, string, bigint, `0x${string}`, `0x${string}`, bigint[]]>;
|
|
390
502
|
/**
|
|
391
503
|
* name
|
|
392
504
|
* view
|
|
393
505
|
*/
|
|
394
506
|
name(): Promise<string>;
|
|
395
507
|
/**
|
|
396
|
-
*
|
|
508
|
+
* nativeContract
|
|
397
509
|
* view
|
|
398
510
|
*/
|
|
399
|
-
|
|
511
|
+
nativeContract(): Promise<`0x${string}`>;
|
|
400
512
|
/**
|
|
401
|
-
*
|
|
513
|
+
* nonces
|
|
402
514
|
* view
|
|
403
515
|
*/
|
|
404
|
-
|
|
516
|
+
nonces(owner_: `0x${string}`): Promise<bigint>;
|
|
405
517
|
/**
|
|
406
|
-
*
|
|
518
|
+
* owner
|
|
407
519
|
* view
|
|
408
520
|
*/
|
|
409
|
-
|
|
521
|
+
owner(): Promise<`0x${string}`>;
|
|
410
522
|
/**
|
|
411
|
-
*
|
|
412
|
-
*
|
|
523
|
+
* symbol
|
|
524
|
+
* view
|
|
413
525
|
*/
|
|
414
|
-
|
|
526
|
+
symbol(): Promise<string>;
|
|
415
527
|
/**
|
|
416
528
|
* totalSupply
|
|
417
529
|
* view
|
|
@@ -422,7 +534,24 @@ export declare class USDToken_json {
|
|
|
422
534
|
* nonpayable
|
|
423
535
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
424
536
|
*/
|
|
425
|
-
approve(
|
|
537
|
+
approve(spender_: `0x${string}`, amount_: bigint, options?: {
|
|
538
|
+
accessList?: import('viem').AccessList;
|
|
539
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
540
|
+
chain?: import('viem').Chain | null;
|
|
541
|
+
dataSuffix?: `0x${string}`;
|
|
542
|
+
gas?: bigint;
|
|
543
|
+
gasPrice?: bigint;
|
|
544
|
+
maxFeePerGas?: bigint;
|
|
545
|
+
maxPriorityFeePerGas?: bigint;
|
|
546
|
+
nonce?: number;
|
|
547
|
+
value?: bigint;
|
|
548
|
+
}): Promise<`0x${string}`>;
|
|
549
|
+
/**
|
|
550
|
+
* burn
|
|
551
|
+
* nonpayable
|
|
552
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
553
|
+
*/
|
|
554
|
+
burn(account_: `0x${string}`, amount_: bigint, options?: {
|
|
426
555
|
accessList?: import('viem').AccessList;
|
|
427
556
|
authorizationList?: import('viem').AuthorizationList;
|
|
428
557
|
chain?: import('viem').Chain | null;
|
|
@@ -439,7 +568,7 @@ export declare class USDToken_json {
|
|
|
439
568
|
* nonpayable
|
|
440
569
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
441
570
|
*/
|
|
442
|
-
decreaseAllowance(
|
|
571
|
+
decreaseAllowance(spender_: `0x${string}`, subtractedValue_: bigint, options?: {
|
|
443
572
|
accessList?: import('viem').AccessList;
|
|
444
573
|
authorizationList?: import('viem').AuthorizationList;
|
|
445
574
|
chain?: import('viem').Chain | null;
|
|
@@ -456,7 +585,7 @@ export declare class USDToken_json {
|
|
|
456
585
|
* nonpayable
|
|
457
586
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
458
587
|
*/
|
|
459
|
-
increaseAllowance(
|
|
588
|
+
increaseAllowance(spender_: `0x${string}`, addedValue_: bigint, options?: {
|
|
460
589
|
accessList?: import('viem').AccessList;
|
|
461
590
|
authorizationList?: import('viem').AuthorizationList;
|
|
462
591
|
chain?: import('viem').Chain | null;
|
|
@@ -469,11 +598,11 @@ export declare class USDToken_json {
|
|
|
469
598
|
value?: bigint;
|
|
470
599
|
}): Promise<`0x${string}`>;
|
|
471
600
|
/**
|
|
472
|
-
*
|
|
601
|
+
* initialize
|
|
473
602
|
* nonpayable
|
|
474
603
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
475
604
|
*/
|
|
476
|
-
|
|
605
|
+
initialize(name_: string, symbol_: string, decimals_: bigint, sequence_: bigint, owner_: `0x${string}`, chainId_: bigint, nativeContract_: `0x${string}`, options?: {
|
|
477
606
|
accessList?: import('viem').AccessList;
|
|
478
607
|
authorizationList?: import('viem').AuthorizationList;
|
|
479
608
|
chain?: import('viem').Chain | null;
|
|
@@ -486,11 +615,11 @@ export declare class USDToken_json {
|
|
|
486
615
|
value?: bigint;
|
|
487
616
|
}): Promise<`0x${string}`>;
|
|
488
617
|
/**
|
|
489
|
-
*
|
|
618
|
+
* mint
|
|
490
619
|
* nonpayable
|
|
491
620
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
492
621
|
*/
|
|
493
|
-
|
|
622
|
+
mint(account_: `0x${string}`, amount_: bigint, options?: {
|
|
494
623
|
accessList?: import('viem').AccessList;
|
|
495
624
|
authorizationList?: import('viem').AuthorizationList;
|
|
496
625
|
chain?: import('viem').Chain | null;
|
|
@@ -503,11 +632,11 @@ export declare class USDToken_json {
|
|
|
503
632
|
value?: bigint;
|
|
504
633
|
}): Promise<`0x${string}`>;
|
|
505
634
|
/**
|
|
506
|
-
*
|
|
635
|
+
* permit
|
|
507
636
|
* nonpayable
|
|
508
637
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
509
638
|
*/
|
|
510
|
-
|
|
639
|
+
permit(owner_: `0x${string}`, spender_: `0x${string}`, value_: bigint, deadline_: bigint, v_: bigint, r_: `0x${string}`, s_: `0x${string}`, options?: {
|
|
511
640
|
accessList?: import('viem').AccessList;
|
|
512
641
|
authorizationList?: import('viem').AuthorizationList;
|
|
513
642
|
chain?: import('viem').Chain | null;
|
|
@@ -524,7 +653,7 @@ export declare class USDToken_json {
|
|
|
524
653
|
* nonpayable
|
|
525
654
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
526
655
|
*/
|
|
527
|
-
transfer(
|
|
656
|
+
transfer(recipient_: `0x${string}`, amount_: bigint, options?: {
|
|
528
657
|
accessList?: import('viem').AccessList;
|
|
529
658
|
authorizationList?: import('viem').AuthorizationList;
|
|
530
659
|
chain?: import('viem').Chain | null;
|
|
@@ -541,7 +670,24 @@ export declare class USDToken_json {
|
|
|
541
670
|
* nonpayable
|
|
542
671
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
543
672
|
*/
|
|
544
|
-
transferFrom(
|
|
673
|
+
transferFrom(sender_: `0x${string}`, recipient_: `0x${string}`, amount_: bigint, options?: {
|
|
674
|
+
accessList?: import('viem').AccessList;
|
|
675
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
676
|
+
chain?: import('viem').Chain | null;
|
|
677
|
+
dataSuffix?: `0x${string}`;
|
|
678
|
+
gas?: bigint;
|
|
679
|
+
gasPrice?: bigint;
|
|
680
|
+
maxFeePerGas?: bigint;
|
|
681
|
+
maxPriorityFeePerGas?: bigint;
|
|
682
|
+
nonce?: number;
|
|
683
|
+
value?: bigint;
|
|
684
|
+
}): Promise<`0x${string}`>;
|
|
685
|
+
/**
|
|
686
|
+
* updateDetails
|
|
687
|
+
* nonpayable
|
|
688
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
689
|
+
*/
|
|
690
|
+
updateDetails(name_: string, symbol_: string, sequence_: bigint, options?: {
|
|
545
691
|
accessList?: import('viem').AccessList;
|
|
546
692
|
authorizationList?: import('viem').AuthorizationList;
|
|
547
693
|
chain?: import('viem').Chain | null;
|
|
@@ -567,7 +713,7 @@ export declare class USDToken_json {
|
|
|
567
713
|
* Returns gas estimate and result without sending transaction
|
|
568
714
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
569
715
|
*/
|
|
570
|
-
approve(
|
|
716
|
+
approve(spender_: `0x${string}`, amount_: bigint, options?: {
|
|
571
717
|
accessList?: import("viem").AccessList;
|
|
572
718
|
authorizationList?: import("viem").AuthorizationList;
|
|
573
719
|
chain?: import("viem").Chain | null;
|
|
@@ -579,12 +725,29 @@ export declare class USDToken_json {
|
|
|
579
725
|
nonce?: number;
|
|
580
726
|
value?: bigint;
|
|
581
727
|
}): Promise<boolean>;
|
|
728
|
+
/**
|
|
729
|
+
* Simulate burn
|
|
730
|
+
* Returns gas estimate and result without sending transaction
|
|
731
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
732
|
+
*/
|
|
733
|
+
burn(account_: `0x${string}`, amount_: bigint, options?: {
|
|
734
|
+
accessList?: import("viem").AccessList;
|
|
735
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
736
|
+
chain?: import("viem").Chain | null;
|
|
737
|
+
dataSuffix?: `0x${string}`;
|
|
738
|
+
gas?: bigint;
|
|
739
|
+
gasPrice?: bigint;
|
|
740
|
+
maxFeePerGas?: bigint;
|
|
741
|
+
maxPriorityFeePerGas?: bigint;
|
|
742
|
+
nonce?: number;
|
|
743
|
+
value?: bigint;
|
|
744
|
+
}): Promise<void>;
|
|
582
745
|
/**
|
|
583
746
|
* Simulate decreaseAllowance
|
|
584
747
|
* Returns gas estimate and result without sending transaction
|
|
585
748
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
586
749
|
*/
|
|
587
|
-
decreaseAllowance(
|
|
750
|
+
decreaseAllowance(spender_: `0x${string}`, subtractedValue_: bigint, options?: {
|
|
588
751
|
accessList?: import("viem").AccessList;
|
|
589
752
|
authorizationList?: import("viem").AuthorizationList;
|
|
590
753
|
chain?: import("viem").Chain | null;
|
|
@@ -601,7 +764,7 @@ export declare class USDToken_json {
|
|
|
601
764
|
* Returns gas estimate and result without sending transaction
|
|
602
765
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
603
766
|
*/
|
|
604
|
-
increaseAllowance(
|
|
767
|
+
increaseAllowance(spender_: `0x${string}`, addedValue_: bigint, options?: {
|
|
605
768
|
accessList?: import("viem").AccessList;
|
|
606
769
|
authorizationList?: import("viem").AuthorizationList;
|
|
607
770
|
chain?: import("viem").Chain | null;
|
|
@@ -614,11 +777,11 @@ export declare class USDToken_json {
|
|
|
614
777
|
value?: bigint;
|
|
615
778
|
}): Promise<boolean>;
|
|
616
779
|
/**
|
|
617
|
-
* Simulate
|
|
780
|
+
* Simulate initialize
|
|
618
781
|
* Returns gas estimate and result without sending transaction
|
|
619
782
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
620
783
|
*/
|
|
621
|
-
|
|
784
|
+
initialize(name_: string, symbol_: string, decimals_: bigint, sequence_: bigint, owner_: `0x${string}`, chainId_: bigint, nativeContract_: `0x${string}`, options?: {
|
|
622
785
|
accessList?: import("viem").AccessList;
|
|
623
786
|
authorizationList?: import("viem").AuthorizationList;
|
|
624
787
|
chain?: import("viem").Chain | null;
|
|
@@ -631,11 +794,11 @@ export declare class USDToken_json {
|
|
|
631
794
|
value?: bigint;
|
|
632
795
|
}): Promise<void>;
|
|
633
796
|
/**
|
|
634
|
-
* Simulate
|
|
797
|
+
* Simulate mint
|
|
635
798
|
* Returns gas estimate and result without sending transaction
|
|
636
799
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
637
800
|
*/
|
|
638
|
-
|
|
801
|
+
mint(account_: `0x${string}`, amount_: bigint, options?: {
|
|
639
802
|
accessList?: import("viem").AccessList;
|
|
640
803
|
authorizationList?: import("viem").AuthorizationList;
|
|
641
804
|
chain?: import("viem").Chain | null;
|
|
@@ -648,11 +811,11 @@ export declare class USDToken_json {
|
|
|
648
811
|
value?: bigint;
|
|
649
812
|
}): Promise<void>;
|
|
650
813
|
/**
|
|
651
|
-
* Simulate
|
|
814
|
+
* Simulate permit
|
|
652
815
|
* Returns gas estimate and result without sending transaction
|
|
653
816
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
654
817
|
*/
|
|
655
|
-
|
|
818
|
+
permit(owner_: `0x${string}`, spender_: `0x${string}`, value_: bigint, deadline_: bigint, v_: bigint, r_: `0x${string}`, s_: `0x${string}`, options?: {
|
|
656
819
|
accessList?: import("viem").AccessList;
|
|
657
820
|
authorizationList?: import("viem").AuthorizationList;
|
|
658
821
|
chain?: import("viem").Chain | null;
|
|
@@ -669,7 +832,7 @@ export declare class USDToken_json {
|
|
|
669
832
|
* Returns gas estimate and result without sending transaction
|
|
670
833
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
671
834
|
*/
|
|
672
|
-
transfer(
|
|
835
|
+
transfer(recipient_: `0x${string}`, amount_: bigint, options?: {
|
|
673
836
|
accessList?: import("viem").AccessList;
|
|
674
837
|
authorizationList?: import("viem").AuthorizationList;
|
|
675
838
|
chain?: import("viem").Chain | null;
|
|
@@ -686,7 +849,7 @@ export declare class USDToken_json {
|
|
|
686
849
|
* Returns gas estimate and result without sending transaction
|
|
687
850
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
688
851
|
*/
|
|
689
|
-
transferFrom(
|
|
852
|
+
transferFrom(sender_: `0x${string}`, recipient_: `0x${string}`, amount_: bigint, options?: {
|
|
690
853
|
accessList?: import("viem").AccessList;
|
|
691
854
|
authorizationList?: import("viem").AuthorizationList;
|
|
692
855
|
chain?: import("viem").Chain | null;
|
|
@@ -698,6 +861,23 @@ export declare class USDToken_json {
|
|
|
698
861
|
nonce?: number;
|
|
699
862
|
value?: bigint;
|
|
700
863
|
}): Promise<boolean>;
|
|
864
|
+
/**
|
|
865
|
+
* Simulate updateDetails
|
|
866
|
+
* Returns gas estimate and result without sending transaction
|
|
867
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
868
|
+
*/
|
|
869
|
+
updateDetails(name_: string, symbol_: string, sequence_: bigint, options?: {
|
|
870
|
+
accessList?: import("viem").AccessList;
|
|
871
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
872
|
+
chain?: import("viem").Chain | null;
|
|
873
|
+
dataSuffix?: `0x${string}`;
|
|
874
|
+
gas?: bigint;
|
|
875
|
+
gasPrice?: bigint;
|
|
876
|
+
maxFeePerGas?: bigint;
|
|
877
|
+
maxPriorityFeePerGas?: bigint;
|
|
878
|
+
nonce?: number;
|
|
879
|
+
value?: bigint;
|
|
880
|
+
}): Promise<void>;
|
|
701
881
|
};
|
|
702
882
|
/**
|
|
703
883
|
* Watch contract events
|
|
@@ -726,35 +906,6 @@ export declare class USDToken_json {
|
|
|
726
906
|
owner: `0x${string}`;
|
|
727
907
|
spender: `0x${string}`;
|
|
728
908
|
}) => () => void;
|
|
729
|
-
/**
|
|
730
|
-
* Watch NameChanged events
|
|
731
|
-
* @param callback Function to call when event is emitted
|
|
732
|
-
* @param filter Optional filter for indexed parameters
|
|
733
|
-
* @returns Unwatch function to stop listening
|
|
734
|
-
*/
|
|
735
|
-
NameChanged: (callback: (event: {
|
|
736
|
-
newName: string;
|
|
737
|
-
}) => void) => () => void;
|
|
738
|
-
/**
|
|
739
|
-
* Watch OwnershipRenounced events
|
|
740
|
-
* @param callback Function to call when event is emitted
|
|
741
|
-
* @param filter Optional filter for indexed parameters
|
|
742
|
-
* @returns Unwatch function to stop listening
|
|
743
|
-
*/
|
|
744
|
-
OwnershipRenounced: (callback: (event: {
|
|
745
|
-
previousOwner: `0x${string}`;
|
|
746
|
-
}) => void, filter?: {
|
|
747
|
-
previousOwner: `0x${string}`;
|
|
748
|
-
}) => () => void;
|
|
749
|
-
/**
|
|
750
|
-
* Watch SymbolChanged events
|
|
751
|
-
* @param callback Function to call when event is emitted
|
|
752
|
-
* @param filter Optional filter for indexed parameters
|
|
753
|
-
* @returns Unwatch function to stop listening
|
|
754
|
-
*/
|
|
755
|
-
SymbolChanged: (callback: (event: {
|
|
756
|
-
newSymbol: string;
|
|
757
|
-
}) => void) => () => void;
|
|
758
909
|
/**
|
|
759
910
|
* Watch Transfer events
|
|
760
911
|
* @param callback Function to call when event is emitted
|