@gitmyabi/usdt 1.0.3 → 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/{TetherUSD_json.d.ts → TokenImplementation_json.d.ts} +266 -145
- package/contracts/{TetherUSD_json.js → TokenImplementation_json.js} +319 -189
- package/contracts/{TetherUSD_json.ts → TokenImplementation_json.ts} +349 -193
- 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,38 +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 internalType: "string";
|
|
10
|
-
readonly name: "name_";
|
|
11
|
-
readonly type: "string";
|
|
12
|
-
}, {
|
|
13
|
-
readonly internalType: "string";
|
|
14
|
-
readonly name: "symbol_";
|
|
15
|
-
readonly type: "string";
|
|
16
|
-
}, {
|
|
17
|
-
readonly internalType: "uint256";
|
|
18
|
-
readonly name: "decimals_";
|
|
19
|
-
readonly type: "uint256";
|
|
20
|
-
}, {
|
|
21
|
-
readonly internalType: "uint256";
|
|
22
|
-
readonly name: "initialBalance_";
|
|
23
|
-
readonly type: "uint256";
|
|
24
|
-
}, {
|
|
25
|
-
readonly internalType: "address";
|
|
26
|
-
readonly name: "tokenOwner";
|
|
27
|
-
readonly type: "address";
|
|
28
|
-
}, {
|
|
29
|
-
readonly internalType: "address payable";
|
|
30
|
-
readonly name: "feeReceiver_";
|
|
31
|
-
readonly type: "address";
|
|
32
|
-
}];
|
|
33
|
-
readonly stateMutability: "payable";
|
|
34
|
-
readonly type: "constructor";
|
|
35
|
-
}, {
|
|
7
|
+
export declare const TokenImplementation_jsonAbi: readonly [{
|
|
36
8
|
readonly anonymous: false;
|
|
37
9
|
readonly inputs: readonly [{
|
|
38
10
|
readonly indexed: true;
|
|
@@ -52,21 +24,6 @@ export declare const TetherUSD_jsonAbi: readonly [{
|
|
|
52
24
|
}];
|
|
53
25
|
readonly name: "Approval";
|
|
54
26
|
readonly type: "event";
|
|
55
|
-
}, {
|
|
56
|
-
readonly anonymous: false;
|
|
57
|
-
readonly inputs: readonly [{
|
|
58
|
-
readonly indexed: true;
|
|
59
|
-
readonly internalType: "address";
|
|
60
|
-
readonly name: "previousOwner";
|
|
61
|
-
readonly type: "address";
|
|
62
|
-
}, {
|
|
63
|
-
readonly indexed: true;
|
|
64
|
-
readonly internalType: "address";
|
|
65
|
-
readonly name: "newOwner";
|
|
66
|
-
readonly type: "address";
|
|
67
|
-
}];
|
|
68
|
-
readonly name: "OwnershipTransferred";
|
|
69
|
-
readonly type: "event";
|
|
70
27
|
}, {
|
|
71
28
|
readonly anonymous: false;
|
|
72
29
|
readonly inputs: readonly [{
|
|
@@ -89,32 +46,22 @@ export declare const TetherUSD_jsonAbi: readonly [{
|
|
|
89
46
|
readonly type: "event";
|
|
90
47
|
}, {
|
|
91
48
|
readonly inputs: readonly [];
|
|
92
|
-
readonly name: "
|
|
93
|
-
readonly outputs: readonly [{
|
|
94
|
-
readonly internalType: "uint256";
|
|
95
|
-
readonly name: "";
|
|
96
|
-
readonly type: "uint256";
|
|
97
|
-
}];
|
|
98
|
-
readonly stateMutability: "view";
|
|
99
|
-
readonly type: "function";
|
|
100
|
-
}, {
|
|
101
|
-
readonly inputs: readonly [];
|
|
102
|
-
readonly name: "_owner";
|
|
49
|
+
readonly name: "DOMAIN_SEPARATOR";
|
|
103
50
|
readonly outputs: readonly [{
|
|
104
|
-
readonly internalType: "
|
|
51
|
+
readonly internalType: "bytes32";
|
|
105
52
|
readonly name: "";
|
|
106
|
-
readonly type: "
|
|
53
|
+
readonly type: "bytes32";
|
|
107
54
|
}];
|
|
108
55
|
readonly stateMutability: "view";
|
|
109
56
|
readonly type: "function";
|
|
110
57
|
}, {
|
|
111
58
|
readonly inputs: readonly [{
|
|
112
59
|
readonly internalType: "address";
|
|
113
|
-
readonly name: "
|
|
60
|
+
readonly name: "owner_";
|
|
114
61
|
readonly type: "address";
|
|
115
62
|
}, {
|
|
116
63
|
readonly internalType: "address";
|
|
117
|
-
readonly name: "
|
|
64
|
+
readonly name: "spender_";
|
|
118
65
|
readonly type: "address";
|
|
119
66
|
}];
|
|
120
67
|
readonly name: "allowance";
|
|
@@ -128,11 +75,11 @@ export declare const TetherUSD_jsonAbi: readonly [{
|
|
|
128
75
|
}, {
|
|
129
76
|
readonly inputs: readonly [{
|
|
130
77
|
readonly internalType: "address";
|
|
131
|
-
readonly name: "
|
|
78
|
+
readonly name: "spender_";
|
|
132
79
|
readonly type: "address";
|
|
133
80
|
}, {
|
|
134
81
|
readonly internalType: "uint256";
|
|
135
|
-
readonly name: "
|
|
82
|
+
readonly name: "amount_";
|
|
136
83
|
readonly type: "uint256";
|
|
137
84
|
}];
|
|
138
85
|
readonly name: "approve";
|
|
@@ -146,7 +93,7 @@ export declare const TetherUSD_jsonAbi: readonly [{
|
|
|
146
93
|
}, {
|
|
147
94
|
readonly inputs: readonly [{
|
|
148
95
|
readonly internalType: "address";
|
|
149
|
-
readonly name: "
|
|
96
|
+
readonly name: "account_";
|
|
150
97
|
readonly type: "address";
|
|
151
98
|
}];
|
|
152
99
|
readonly name: "balanceOf";
|
|
@@ -157,24 +104,48 @@ export declare const TetherUSD_jsonAbi: readonly [{
|
|
|
157
104
|
}];
|
|
158
105
|
readonly stateMutability: "view";
|
|
159
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";
|
|
160
131
|
}, {
|
|
161
132
|
readonly inputs: readonly [];
|
|
162
133
|
readonly name: "decimals";
|
|
163
134
|
readonly outputs: readonly [{
|
|
164
|
-
readonly internalType: "
|
|
135
|
+
readonly internalType: "uint8";
|
|
165
136
|
readonly name: "";
|
|
166
|
-
readonly type: "
|
|
137
|
+
readonly type: "uint8";
|
|
167
138
|
}];
|
|
168
139
|
readonly stateMutability: "view";
|
|
169
140
|
readonly type: "function";
|
|
170
141
|
}, {
|
|
171
142
|
readonly inputs: readonly [{
|
|
172
143
|
readonly internalType: "address";
|
|
173
|
-
readonly name: "
|
|
144
|
+
readonly name: "spender_";
|
|
174
145
|
readonly type: "address";
|
|
175
146
|
}, {
|
|
176
147
|
readonly internalType: "uint256";
|
|
177
|
-
readonly name: "
|
|
148
|
+
readonly name: "subtractedValue_";
|
|
178
149
|
readonly type: "uint256";
|
|
179
150
|
}];
|
|
180
151
|
readonly name: "decreaseAllowance";
|
|
@@ -185,14 +156,48 @@ export declare const TetherUSD_jsonAbi: readonly [{
|
|
|
185
156
|
}];
|
|
186
157
|
readonly stateMutability: "nonpayable";
|
|
187
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";
|
|
188
193
|
}, {
|
|
189
194
|
readonly inputs: readonly [{
|
|
190
195
|
readonly internalType: "address";
|
|
191
|
-
readonly name: "
|
|
196
|
+
readonly name: "spender_";
|
|
192
197
|
readonly type: "address";
|
|
193
198
|
}, {
|
|
194
199
|
readonly internalType: "uint256";
|
|
195
|
-
readonly name: "
|
|
200
|
+
readonly name: "addedValue_";
|
|
196
201
|
readonly type: "uint256";
|
|
197
202
|
}];
|
|
198
203
|
readonly name: "increaseAllowance";
|
|
@@ -203,14 +208,48 @@ export declare const TetherUSD_jsonAbi: readonly [{
|
|
|
203
208
|
}];
|
|
204
209
|
readonly stateMutability: "nonpayable";
|
|
205
210
|
readonly type: "function";
|
|
211
|
+
}, {
|
|
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";
|
|
240
|
+
}];
|
|
241
|
+
readonly name: "initialize";
|
|
242
|
+
readonly outputs: readonly [];
|
|
243
|
+
readonly stateMutability: "nonpayable";
|
|
244
|
+
readonly type: "function";
|
|
206
245
|
}, {
|
|
207
246
|
readonly inputs: readonly [{
|
|
208
247
|
readonly internalType: "address";
|
|
209
|
-
readonly name: "
|
|
248
|
+
readonly name: "account_";
|
|
210
249
|
readonly type: "address";
|
|
211
250
|
}, {
|
|
212
251
|
readonly internalType: "uint256";
|
|
213
|
-
readonly name: "
|
|
252
|
+
readonly name: "amount_";
|
|
214
253
|
readonly type: "uint256";
|
|
215
254
|
}];
|
|
216
255
|
readonly name: "mint";
|
|
@@ -227,6 +266,30 @@ export declare const TetherUSD_jsonAbi: readonly [{
|
|
|
227
266
|
}];
|
|
228
267
|
readonly stateMutability: "view";
|
|
229
268
|
readonly type: "function";
|
|
269
|
+
}, {
|
|
270
|
+
readonly inputs: readonly [];
|
|
271
|
+
readonly name: "nativeContract";
|
|
272
|
+
readonly outputs: readonly [{
|
|
273
|
+
readonly internalType: "bytes32";
|
|
274
|
+
readonly name: "";
|
|
275
|
+
readonly type: "bytes32";
|
|
276
|
+
}];
|
|
277
|
+
readonly stateMutability: "view";
|
|
278
|
+
readonly type: "function";
|
|
279
|
+
}, {
|
|
280
|
+
readonly inputs: readonly [{
|
|
281
|
+
readonly internalType: "address";
|
|
282
|
+
readonly name: "owner_";
|
|
283
|
+
readonly type: "address";
|
|
284
|
+
}];
|
|
285
|
+
readonly name: "nonces";
|
|
286
|
+
readonly outputs: readonly [{
|
|
287
|
+
readonly internalType: "uint256";
|
|
288
|
+
readonly name: "";
|
|
289
|
+
readonly type: "uint256";
|
|
290
|
+
}];
|
|
291
|
+
readonly stateMutability: "view";
|
|
292
|
+
readonly type: "function";
|
|
230
293
|
}, {
|
|
231
294
|
readonly inputs: readonly [];
|
|
232
295
|
readonly name: "owner";
|
|
@@ -240,20 +303,34 @@ export declare const TetherUSD_jsonAbi: readonly [{
|
|
|
240
303
|
}, {
|
|
241
304
|
readonly inputs: readonly [{
|
|
242
305
|
readonly internalType: "address";
|
|
243
|
-
readonly name: "
|
|
306
|
+
readonly name: "owner_";
|
|
307
|
+
readonly type: "address";
|
|
308
|
+
}, {
|
|
309
|
+
readonly internalType: "address";
|
|
310
|
+
readonly name: "spender_";
|
|
244
311
|
readonly type: "address";
|
|
245
312
|
}, {
|
|
246
313
|
readonly internalType: "uint256";
|
|
247
|
-
readonly name: "
|
|
314
|
+
readonly name: "value_";
|
|
248
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";
|
|
249
332
|
}];
|
|
250
|
-
readonly name: "
|
|
251
|
-
readonly outputs: readonly [];
|
|
252
|
-
readonly stateMutability: "nonpayable";
|
|
253
|
-
readonly type: "function";
|
|
254
|
-
}, {
|
|
255
|
-
readonly inputs: readonly [];
|
|
256
|
-
readonly name: "renounceOwnership";
|
|
333
|
+
readonly name: "permit";
|
|
257
334
|
readonly outputs: readonly [];
|
|
258
335
|
readonly stateMutability: "nonpayable";
|
|
259
336
|
readonly type: "function";
|
|
@@ -280,11 +357,11 @@ export declare const TetherUSD_jsonAbi: readonly [{
|
|
|
280
357
|
}, {
|
|
281
358
|
readonly inputs: readonly [{
|
|
282
359
|
readonly internalType: "address";
|
|
283
|
-
readonly name: "
|
|
360
|
+
readonly name: "recipient_";
|
|
284
361
|
readonly type: "address";
|
|
285
362
|
}, {
|
|
286
363
|
readonly internalType: "uint256";
|
|
287
|
-
readonly name: "
|
|
364
|
+
readonly name: "amount_";
|
|
288
365
|
readonly type: "uint256";
|
|
289
366
|
}];
|
|
290
367
|
readonly name: "transfer";
|
|
@@ -298,15 +375,15 @@ export declare const TetherUSD_jsonAbi: readonly [{
|
|
|
298
375
|
}, {
|
|
299
376
|
readonly inputs: readonly [{
|
|
300
377
|
readonly internalType: "address";
|
|
301
|
-
readonly name: "
|
|
378
|
+
readonly name: "sender_";
|
|
302
379
|
readonly type: "address";
|
|
303
380
|
}, {
|
|
304
381
|
readonly internalType: "address";
|
|
305
|
-
readonly name: "
|
|
382
|
+
readonly name: "recipient_";
|
|
306
383
|
readonly type: "address";
|
|
307
384
|
}, {
|
|
308
385
|
readonly internalType: "uint256";
|
|
309
|
-
readonly name: "
|
|
386
|
+
readonly name: "amount_";
|
|
310
387
|
readonly type: "uint256";
|
|
311
388
|
}];
|
|
312
389
|
readonly name: "transferFrom";
|
|
@@ -319,25 +396,33 @@ export declare const TetherUSD_jsonAbi: readonly [{
|
|
|
319
396
|
readonly type: "function";
|
|
320
397
|
}, {
|
|
321
398
|
readonly inputs: readonly [{
|
|
322
|
-
readonly internalType: "
|
|
323
|
-
readonly name: "
|
|
324
|
-
readonly type: "
|
|
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";
|
|
325
410
|
}];
|
|
326
|
-
readonly name: "
|
|
411
|
+
readonly name: "updateDetails";
|
|
327
412
|
readonly outputs: readonly [];
|
|
328
413
|
readonly stateMutability: "nonpayable";
|
|
329
414
|
readonly type: "function";
|
|
330
415
|
}];
|
|
331
416
|
/**
|
|
332
|
-
* Type-safe ABI for
|
|
417
|
+
* Type-safe ABI for TokenImplementation_json
|
|
333
418
|
*/
|
|
334
|
-
export type
|
|
419
|
+
export type TokenImplementation_jsonAbi = typeof TokenImplementation_jsonAbi;
|
|
335
420
|
/**
|
|
336
|
-
* Contract instance type for
|
|
421
|
+
* Contract instance type for TokenImplementation_json
|
|
337
422
|
*/
|
|
338
|
-
export type
|
|
423
|
+
export type TokenImplementation_jsonContract = any;
|
|
339
424
|
/**
|
|
340
|
-
*
|
|
425
|
+
* TokenImplementation_json Contract Class
|
|
341
426
|
*
|
|
342
427
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
343
428
|
*
|
|
@@ -345,12 +430,12 @@ export type TetherUSD_jsonContract = any;
|
|
|
345
430
|
* ```typescript
|
|
346
431
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
347
432
|
* import { mainnet } from 'viem/chains';
|
|
348
|
-
* import {
|
|
433
|
+
* import { TokenImplementation_json } from 'TokenImplementation_json';
|
|
349
434
|
*
|
|
350
435
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
351
436
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
352
437
|
*
|
|
353
|
-
* const contract = new
|
|
438
|
+
* const contract = new TokenImplementation_json('0x...', { publicClient, walletClient });
|
|
354
439
|
*
|
|
355
440
|
* // Read functions
|
|
356
441
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -368,7 +453,7 @@ export type TetherUSD_jsonContract = any;
|
|
|
368
453
|
* });
|
|
369
454
|
* ```
|
|
370
455
|
*/
|
|
371
|
-
export declare class
|
|
456
|
+
export declare class TokenImplementation_json {
|
|
372
457
|
private contract;
|
|
373
458
|
private contractAddress;
|
|
374
459
|
private publicClient;
|
|
@@ -383,37 +468,52 @@ export declare class TetherUSD_json {
|
|
|
383
468
|
/**
|
|
384
469
|
* Get the underlying viem contract instance
|
|
385
470
|
*/
|
|
386
|
-
getContract():
|
|
471
|
+
getContract(): TokenImplementation_jsonContract;
|
|
387
472
|
/**
|
|
388
|
-
*
|
|
473
|
+
* DOMAIN_SEPARATOR
|
|
389
474
|
* view
|
|
390
475
|
*/
|
|
391
|
-
|
|
476
|
+
DOMAIN_SEPARATOR(): Promise<`0x${string}`>;
|
|
392
477
|
/**
|
|
393
|
-
*
|
|
478
|
+
* allowance
|
|
394
479
|
* view
|
|
395
480
|
*/
|
|
396
|
-
|
|
481
|
+
allowance(owner_: `0x${string}`, spender_: `0x${string}`): Promise<bigint>;
|
|
397
482
|
/**
|
|
398
|
-
*
|
|
483
|
+
* balanceOf
|
|
399
484
|
* view
|
|
400
485
|
*/
|
|
401
|
-
|
|
486
|
+
balanceOf(account_: `0x${string}`): Promise<bigint>;
|
|
402
487
|
/**
|
|
403
|
-
*
|
|
488
|
+
* chainId
|
|
404
489
|
* view
|
|
405
490
|
*/
|
|
406
|
-
|
|
491
|
+
chainId(): Promise<bigint>;
|
|
407
492
|
/**
|
|
408
493
|
* decimals
|
|
409
494
|
* view
|
|
410
495
|
*/
|
|
411
496
|
decimals(): Promise<bigint>;
|
|
497
|
+
/**
|
|
498
|
+
* eip712Domain
|
|
499
|
+
* view
|
|
500
|
+
*/
|
|
501
|
+
eip712Domain(): Promise<[`0x${string}`, string, string, bigint, `0x${string}`, `0x${string}`, bigint[]]>;
|
|
412
502
|
/**
|
|
413
503
|
* name
|
|
414
504
|
* view
|
|
415
505
|
*/
|
|
416
506
|
name(): Promise<string>;
|
|
507
|
+
/**
|
|
508
|
+
* nativeContract
|
|
509
|
+
* view
|
|
510
|
+
*/
|
|
511
|
+
nativeContract(): Promise<`0x${string}`>;
|
|
512
|
+
/**
|
|
513
|
+
* nonces
|
|
514
|
+
* view
|
|
515
|
+
*/
|
|
516
|
+
nonces(owner_: `0x${string}`): Promise<bigint>;
|
|
417
517
|
/**
|
|
418
518
|
* owner
|
|
419
519
|
* view
|
|
@@ -434,7 +534,24 @@ export declare class TetherUSD_json {
|
|
|
434
534
|
* nonpayable
|
|
435
535
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
436
536
|
*/
|
|
437
|
-
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?: {
|
|
438
555
|
accessList?: import('viem').AccessList;
|
|
439
556
|
authorizationList?: import('viem').AuthorizationList;
|
|
440
557
|
chain?: import('viem').Chain | null;
|
|
@@ -451,7 +568,7 @@ export declare class TetherUSD_json {
|
|
|
451
568
|
* nonpayable
|
|
452
569
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
453
570
|
*/
|
|
454
|
-
decreaseAllowance(
|
|
571
|
+
decreaseAllowance(spender_: `0x${string}`, subtractedValue_: bigint, options?: {
|
|
455
572
|
accessList?: import('viem').AccessList;
|
|
456
573
|
authorizationList?: import('viem').AuthorizationList;
|
|
457
574
|
chain?: import('viem').Chain | null;
|
|
@@ -468,7 +585,7 @@ export declare class TetherUSD_json {
|
|
|
468
585
|
* nonpayable
|
|
469
586
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
470
587
|
*/
|
|
471
|
-
increaseAllowance(
|
|
588
|
+
increaseAllowance(spender_: `0x${string}`, addedValue_: bigint, options?: {
|
|
472
589
|
accessList?: import('viem').AccessList;
|
|
473
590
|
authorizationList?: import('viem').AuthorizationList;
|
|
474
591
|
chain?: import('viem').Chain | null;
|
|
@@ -481,11 +598,11 @@ export declare class TetherUSD_json {
|
|
|
481
598
|
value?: bigint;
|
|
482
599
|
}): Promise<`0x${string}`>;
|
|
483
600
|
/**
|
|
484
|
-
*
|
|
601
|
+
* initialize
|
|
485
602
|
* nonpayable
|
|
486
603
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
487
604
|
*/
|
|
488
|
-
|
|
605
|
+
initialize(name_: string, symbol_: string, decimals_: bigint, sequence_: bigint, owner_: `0x${string}`, chainId_: bigint, nativeContract_: `0x${string}`, options?: {
|
|
489
606
|
accessList?: import('viem').AccessList;
|
|
490
607
|
authorizationList?: import('viem').AuthorizationList;
|
|
491
608
|
chain?: import('viem').Chain | null;
|
|
@@ -498,11 +615,11 @@ export declare class TetherUSD_json {
|
|
|
498
615
|
value?: bigint;
|
|
499
616
|
}): Promise<`0x${string}`>;
|
|
500
617
|
/**
|
|
501
|
-
*
|
|
618
|
+
* mint
|
|
502
619
|
* nonpayable
|
|
503
620
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
504
621
|
*/
|
|
505
|
-
|
|
622
|
+
mint(account_: `0x${string}`, amount_: bigint, options?: {
|
|
506
623
|
accessList?: import('viem').AccessList;
|
|
507
624
|
authorizationList?: import('viem').AuthorizationList;
|
|
508
625
|
chain?: import('viem').Chain | null;
|
|
@@ -515,11 +632,11 @@ export declare class TetherUSD_json {
|
|
|
515
632
|
value?: bigint;
|
|
516
633
|
}): Promise<`0x${string}`>;
|
|
517
634
|
/**
|
|
518
|
-
*
|
|
635
|
+
* permit
|
|
519
636
|
* nonpayable
|
|
520
637
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
521
638
|
*/
|
|
522
|
-
|
|
639
|
+
permit(owner_: `0x${string}`, spender_: `0x${string}`, value_: bigint, deadline_: bigint, v_: bigint, r_: `0x${string}`, s_: `0x${string}`, options?: {
|
|
523
640
|
accessList?: import('viem').AccessList;
|
|
524
641
|
authorizationList?: import('viem').AuthorizationList;
|
|
525
642
|
chain?: import('viem').Chain | null;
|
|
@@ -536,7 +653,7 @@ export declare class TetherUSD_json {
|
|
|
536
653
|
* nonpayable
|
|
537
654
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
538
655
|
*/
|
|
539
|
-
transfer(
|
|
656
|
+
transfer(recipient_: `0x${string}`, amount_: bigint, options?: {
|
|
540
657
|
accessList?: import('viem').AccessList;
|
|
541
658
|
authorizationList?: import('viem').AuthorizationList;
|
|
542
659
|
chain?: import('viem').Chain | null;
|
|
@@ -553,7 +670,7 @@ export declare class TetherUSD_json {
|
|
|
553
670
|
* nonpayable
|
|
554
671
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
555
672
|
*/
|
|
556
|
-
transferFrom(
|
|
673
|
+
transferFrom(sender_: `0x${string}`, recipient_: `0x${string}`, amount_: bigint, options?: {
|
|
557
674
|
accessList?: import('viem').AccessList;
|
|
558
675
|
authorizationList?: import('viem').AuthorizationList;
|
|
559
676
|
chain?: import('viem').Chain | null;
|
|
@@ -566,11 +683,11 @@ export declare class TetherUSD_json {
|
|
|
566
683
|
value?: bigint;
|
|
567
684
|
}): Promise<`0x${string}`>;
|
|
568
685
|
/**
|
|
569
|
-
*
|
|
686
|
+
* updateDetails
|
|
570
687
|
* nonpayable
|
|
571
688
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
572
689
|
*/
|
|
573
|
-
|
|
690
|
+
updateDetails(name_: string, symbol_: string, sequence_: bigint, options?: {
|
|
574
691
|
accessList?: import('viem').AccessList;
|
|
575
692
|
authorizationList?: import('viem').AuthorizationList;
|
|
576
693
|
chain?: import('viem').Chain | null;
|
|
@@ -596,7 +713,7 @@ export declare class TetherUSD_json {
|
|
|
596
713
|
* Returns gas estimate and result without sending transaction
|
|
597
714
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
598
715
|
*/
|
|
599
|
-
approve(
|
|
716
|
+
approve(spender_: `0x${string}`, amount_: bigint, options?: {
|
|
600
717
|
accessList?: import("viem").AccessList;
|
|
601
718
|
authorizationList?: import("viem").AuthorizationList;
|
|
602
719
|
chain?: import("viem").Chain | null;
|
|
@@ -608,12 +725,29 @@ export declare class TetherUSD_json {
|
|
|
608
725
|
nonce?: number;
|
|
609
726
|
value?: bigint;
|
|
610
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>;
|
|
611
745
|
/**
|
|
612
746
|
* Simulate decreaseAllowance
|
|
613
747
|
* Returns gas estimate and result without sending transaction
|
|
614
748
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
615
749
|
*/
|
|
616
|
-
decreaseAllowance(
|
|
750
|
+
decreaseAllowance(spender_: `0x${string}`, subtractedValue_: bigint, options?: {
|
|
617
751
|
accessList?: import("viem").AccessList;
|
|
618
752
|
authorizationList?: import("viem").AuthorizationList;
|
|
619
753
|
chain?: import("viem").Chain | null;
|
|
@@ -630,7 +764,7 @@ export declare class TetherUSD_json {
|
|
|
630
764
|
* Returns gas estimate and result without sending transaction
|
|
631
765
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
632
766
|
*/
|
|
633
|
-
increaseAllowance(
|
|
767
|
+
increaseAllowance(spender_: `0x${string}`, addedValue_: bigint, options?: {
|
|
634
768
|
accessList?: import("viem").AccessList;
|
|
635
769
|
authorizationList?: import("viem").AuthorizationList;
|
|
636
770
|
chain?: import("viem").Chain | null;
|
|
@@ -643,11 +777,11 @@ export declare class TetherUSD_json {
|
|
|
643
777
|
value?: bigint;
|
|
644
778
|
}): Promise<boolean>;
|
|
645
779
|
/**
|
|
646
|
-
* Simulate
|
|
780
|
+
* Simulate initialize
|
|
647
781
|
* Returns gas estimate and result without sending transaction
|
|
648
782
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
649
783
|
*/
|
|
650
|
-
|
|
784
|
+
initialize(name_: string, symbol_: string, decimals_: bigint, sequence_: bigint, owner_: `0x${string}`, chainId_: bigint, nativeContract_: `0x${string}`, options?: {
|
|
651
785
|
accessList?: import("viem").AccessList;
|
|
652
786
|
authorizationList?: import("viem").AuthorizationList;
|
|
653
787
|
chain?: import("viem").Chain | null;
|
|
@@ -660,11 +794,11 @@ export declare class TetherUSD_json {
|
|
|
660
794
|
value?: bigint;
|
|
661
795
|
}): Promise<void>;
|
|
662
796
|
/**
|
|
663
|
-
* Simulate
|
|
797
|
+
* Simulate mint
|
|
664
798
|
* Returns gas estimate and result without sending transaction
|
|
665
799
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
666
800
|
*/
|
|
667
|
-
|
|
801
|
+
mint(account_: `0x${string}`, amount_: bigint, options?: {
|
|
668
802
|
accessList?: import("viem").AccessList;
|
|
669
803
|
authorizationList?: import("viem").AuthorizationList;
|
|
670
804
|
chain?: import("viem").Chain | null;
|
|
@@ -677,11 +811,11 @@ export declare class TetherUSD_json {
|
|
|
677
811
|
value?: bigint;
|
|
678
812
|
}): Promise<void>;
|
|
679
813
|
/**
|
|
680
|
-
* Simulate
|
|
814
|
+
* Simulate permit
|
|
681
815
|
* Returns gas estimate and result without sending transaction
|
|
682
816
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
683
817
|
*/
|
|
684
|
-
|
|
818
|
+
permit(owner_: `0x${string}`, spender_: `0x${string}`, value_: bigint, deadline_: bigint, v_: bigint, r_: `0x${string}`, s_: `0x${string}`, options?: {
|
|
685
819
|
accessList?: import("viem").AccessList;
|
|
686
820
|
authorizationList?: import("viem").AuthorizationList;
|
|
687
821
|
chain?: import("viem").Chain | null;
|
|
@@ -698,7 +832,7 @@ export declare class TetherUSD_json {
|
|
|
698
832
|
* Returns gas estimate and result without sending transaction
|
|
699
833
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
700
834
|
*/
|
|
701
|
-
transfer(
|
|
835
|
+
transfer(recipient_: `0x${string}`, amount_: bigint, options?: {
|
|
702
836
|
accessList?: import("viem").AccessList;
|
|
703
837
|
authorizationList?: import("viem").AuthorizationList;
|
|
704
838
|
chain?: import("viem").Chain | null;
|
|
@@ -715,7 +849,7 @@ export declare class TetherUSD_json {
|
|
|
715
849
|
* Returns gas estimate and result without sending transaction
|
|
716
850
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
717
851
|
*/
|
|
718
|
-
transferFrom(
|
|
852
|
+
transferFrom(sender_: `0x${string}`, recipient_: `0x${string}`, amount_: bigint, options?: {
|
|
719
853
|
accessList?: import("viem").AccessList;
|
|
720
854
|
authorizationList?: import("viem").AuthorizationList;
|
|
721
855
|
chain?: import("viem").Chain | null;
|
|
@@ -728,11 +862,11 @@ export declare class TetherUSD_json {
|
|
|
728
862
|
value?: bigint;
|
|
729
863
|
}): Promise<boolean>;
|
|
730
864
|
/**
|
|
731
|
-
* Simulate
|
|
865
|
+
* Simulate updateDetails
|
|
732
866
|
* Returns gas estimate and result without sending transaction
|
|
733
867
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
734
868
|
*/
|
|
735
|
-
|
|
869
|
+
updateDetails(name_: string, symbol_: string, sequence_: bigint, options?: {
|
|
736
870
|
accessList?: import("viem").AccessList;
|
|
737
871
|
authorizationList?: import("viem").AuthorizationList;
|
|
738
872
|
chain?: import("viem").Chain | null;
|
|
@@ -772,19 +906,6 @@ export declare class TetherUSD_json {
|
|
|
772
906
|
owner: `0x${string}`;
|
|
773
907
|
spender: `0x${string}`;
|
|
774
908
|
}) => () => void;
|
|
775
|
-
/**
|
|
776
|
-
* Watch OwnershipTransferred events
|
|
777
|
-
* @param callback Function to call when event is emitted
|
|
778
|
-
* @param filter Optional filter for indexed parameters
|
|
779
|
-
* @returns Unwatch function to stop listening
|
|
780
|
-
*/
|
|
781
|
-
OwnershipTransferred: (callback: (event: {
|
|
782
|
-
previousOwner: `0x${string}`;
|
|
783
|
-
newOwner: `0x${string}`;
|
|
784
|
-
}) => void, filter?: {
|
|
785
|
-
previousOwner: `0x${string}`;
|
|
786
|
-
newOwner: `0x${string}`;
|
|
787
|
-
}) => () => void;
|
|
788
909
|
/**
|
|
789
910
|
* Watch Transfer events
|
|
790
911
|
* @param callback Function to call when event is emitted
|