@gitmyabi/usdt 1.0.5 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/contracts/{TokenImplementation_json.d.ts → MyToken_json.d.ts} +121 -354
- package/contracts/{TokenImplementation_json.js → MyToken_json.js} +156 -382
- package/contracts/{TokenImplementation_json.ts → MyToken_json.ts} +160 -458
- package/contracts/index.d.ts +2 -4
- package/contracts/index.js +4 -7
- package/contracts/index.ts +2 -4
- package/package.json +3 -3
- package/contracts/BridgeToken_json.d.ts +0 -169
- package/contracts/BridgeToken_json.js +0 -221
- package/contracts/BridgeToken_json.ts +0 -251
|
@@ -1,10 +1,34 @@
|
|
|
1
1
|
import type { Address, PublicClient, WalletClient } from 'viem';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* MyToken_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 MyToken_jsonAbi: readonly [{
|
|
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: "_cap";
|
|
19
|
+
readonly type: "uint256";
|
|
20
|
+
}, {
|
|
21
|
+
readonly internalType: "uint256";
|
|
22
|
+
readonly name: "_initialSupply";
|
|
23
|
+
readonly type: "uint256";
|
|
24
|
+
}, {
|
|
25
|
+
readonly internalType: "string";
|
|
26
|
+
readonly name: "_logoURI";
|
|
27
|
+
readonly type: "string";
|
|
28
|
+
}];
|
|
29
|
+
readonly stateMutability: "nonpayable";
|
|
30
|
+
readonly type: "constructor";
|
|
31
|
+
}, {
|
|
8
32
|
readonly anonymous: false;
|
|
9
33
|
readonly inputs: readonly [{
|
|
10
34
|
readonly indexed: true;
|
|
@@ -24,6 +48,21 @@ export declare const TokenImplementation_jsonAbi: readonly [{
|
|
|
24
48
|
}];
|
|
25
49
|
readonly name: "Approval";
|
|
26
50
|
readonly type: "event";
|
|
51
|
+
}, {
|
|
52
|
+
readonly anonymous: false;
|
|
53
|
+
readonly inputs: readonly [{
|
|
54
|
+
readonly indexed: true;
|
|
55
|
+
readonly internalType: "address";
|
|
56
|
+
readonly name: "previousOwner";
|
|
57
|
+
readonly type: "address";
|
|
58
|
+
}, {
|
|
59
|
+
readonly indexed: true;
|
|
60
|
+
readonly internalType: "address";
|
|
61
|
+
readonly name: "newOwner";
|
|
62
|
+
readonly type: "address";
|
|
63
|
+
}];
|
|
64
|
+
readonly name: "OwnershipTransferred";
|
|
65
|
+
readonly type: "event";
|
|
27
66
|
}, {
|
|
28
67
|
readonly anonymous: false;
|
|
29
68
|
readonly inputs: readonly [{
|
|
@@ -44,24 +83,14 @@ export declare const TokenImplementation_jsonAbi: readonly [{
|
|
|
44
83
|
}];
|
|
45
84
|
readonly name: "Transfer";
|
|
46
85
|
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";
|
|
57
86
|
}, {
|
|
58
87
|
readonly inputs: readonly [{
|
|
59
88
|
readonly internalType: "address";
|
|
60
|
-
readonly name: "
|
|
89
|
+
readonly name: "";
|
|
61
90
|
readonly type: "address";
|
|
62
91
|
}, {
|
|
63
92
|
readonly internalType: "address";
|
|
64
|
-
readonly name: "
|
|
93
|
+
readonly name: "";
|
|
65
94
|
readonly type: "address";
|
|
66
95
|
}];
|
|
67
96
|
readonly name: "allowance";
|
|
@@ -75,11 +104,11 @@ export declare const TokenImplementation_jsonAbi: readonly [{
|
|
|
75
104
|
}, {
|
|
76
105
|
readonly inputs: readonly [{
|
|
77
106
|
readonly internalType: "address";
|
|
78
|
-
readonly name: "
|
|
107
|
+
readonly name: "spender";
|
|
79
108
|
readonly type: "address";
|
|
80
109
|
}, {
|
|
81
110
|
readonly internalType: "uint256";
|
|
82
|
-
readonly name: "
|
|
111
|
+
readonly name: "value";
|
|
83
112
|
readonly type: "uint256";
|
|
84
113
|
}];
|
|
85
114
|
readonly name: "approve";
|
|
@@ -93,7 +122,7 @@ export declare const TokenImplementation_jsonAbi: readonly [{
|
|
|
93
122
|
}, {
|
|
94
123
|
readonly inputs: readonly [{
|
|
95
124
|
readonly internalType: "address";
|
|
96
|
-
readonly name: "
|
|
125
|
+
readonly name: "";
|
|
97
126
|
readonly type: "address";
|
|
98
127
|
}];
|
|
99
128
|
readonly name: "balanceOf";
|
|
@@ -104,27 +133,13 @@ export declare const TokenImplementation_jsonAbi: readonly [{
|
|
|
104
133
|
}];
|
|
105
134
|
readonly stateMutability: "view";
|
|
106
135
|
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
136
|
}, {
|
|
122
137
|
readonly inputs: readonly [];
|
|
123
|
-
readonly name: "
|
|
138
|
+
readonly name: "cap";
|
|
124
139
|
readonly outputs: readonly [{
|
|
125
|
-
readonly internalType: "
|
|
140
|
+
readonly internalType: "uint256";
|
|
126
141
|
readonly name: "";
|
|
127
|
-
readonly type: "
|
|
142
|
+
readonly type: "uint256";
|
|
128
143
|
}];
|
|
129
144
|
readonly stateMutability: "view";
|
|
130
145
|
readonly type: "function";
|
|
@@ -138,118 +153,24 @@ export declare const TokenImplementation_jsonAbi: readonly [{
|
|
|
138
153
|
}];
|
|
139
154
|
readonly stateMutability: "view";
|
|
140
155
|
readonly type: "function";
|
|
141
|
-
}, {
|
|
142
|
-
readonly inputs: readonly [{
|
|
143
|
-
readonly internalType: "address";
|
|
144
|
-
readonly name: "spender_";
|
|
145
|
-
readonly type: "address";
|
|
146
|
-
}, {
|
|
147
|
-
readonly internalType: "uint256";
|
|
148
|
-
readonly name: "subtractedValue_";
|
|
149
|
-
readonly type: "uint256";
|
|
150
|
-
}];
|
|
151
|
-
readonly name: "decreaseAllowance";
|
|
152
|
-
readonly outputs: readonly [{
|
|
153
|
-
readonly internalType: "bool";
|
|
154
|
-
readonly name: "";
|
|
155
|
-
readonly type: "bool";
|
|
156
|
-
}];
|
|
157
|
-
readonly stateMutability: "nonpayable";
|
|
158
|
-
readonly type: "function";
|
|
159
156
|
}, {
|
|
160
157
|
readonly inputs: readonly [];
|
|
161
|
-
readonly name: "
|
|
158
|
+
readonly name: "logoURI";
|
|
162
159
|
readonly outputs: readonly [{
|
|
163
|
-
readonly internalType: "bytes1";
|
|
164
|
-
readonly name: "domainFields";
|
|
165
|
-
readonly type: "bytes1";
|
|
166
|
-
}, {
|
|
167
160
|
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";
|
|
193
|
-
}, {
|
|
194
|
-
readonly inputs: readonly [{
|
|
195
|
-
readonly internalType: "address";
|
|
196
|
-
readonly name: "spender_";
|
|
197
|
-
readonly type: "address";
|
|
198
|
-
}, {
|
|
199
|
-
readonly internalType: "uint256";
|
|
200
|
-
readonly name: "addedValue_";
|
|
201
|
-
readonly type: "uint256";
|
|
202
|
-
}];
|
|
203
|
-
readonly name: "increaseAllowance";
|
|
204
|
-
readonly outputs: readonly [{
|
|
205
|
-
readonly internalType: "bool";
|
|
206
161
|
readonly name: "";
|
|
207
|
-
readonly type: "bool";
|
|
208
|
-
}];
|
|
209
|
-
readonly stateMutability: "nonpayable";
|
|
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
162
|
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
163
|
}];
|
|
241
|
-
readonly
|
|
242
|
-
readonly outputs: readonly [];
|
|
243
|
-
readonly stateMutability: "nonpayable";
|
|
164
|
+
readonly stateMutability: "view";
|
|
244
165
|
readonly type: "function";
|
|
245
166
|
}, {
|
|
246
167
|
readonly inputs: readonly [{
|
|
247
168
|
readonly internalType: "address";
|
|
248
|
-
readonly name: "
|
|
169
|
+
readonly name: "to";
|
|
249
170
|
readonly type: "address";
|
|
250
171
|
}, {
|
|
251
172
|
readonly internalType: "uint256";
|
|
252
|
-
readonly name: "
|
|
173
|
+
readonly name: "amount";
|
|
253
174
|
readonly type: "uint256";
|
|
254
175
|
}];
|
|
255
176
|
readonly name: "mint";
|
|
@@ -268,69 +189,27 @@ export declare const TokenImplementation_jsonAbi: readonly [{
|
|
|
268
189
|
readonly type: "function";
|
|
269
190
|
}, {
|
|
270
191
|
readonly inputs: readonly [];
|
|
271
|
-
readonly name: "
|
|
192
|
+
readonly name: "owner";
|
|
272
193
|
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
194
|
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
195
|
readonly name: "";
|
|
289
|
-
readonly type: "
|
|
196
|
+
readonly type: "address";
|
|
290
197
|
}];
|
|
291
198
|
readonly stateMutability: "view";
|
|
292
199
|
readonly type: "function";
|
|
293
200
|
}, {
|
|
294
201
|
readonly inputs: readonly [];
|
|
295
|
-
readonly name: "
|
|
296
|
-
readonly outputs: readonly [
|
|
297
|
-
|
|
298
|
-
readonly name: "";
|
|
299
|
-
readonly type: "address";
|
|
300
|
-
}];
|
|
301
|
-
readonly stateMutability: "view";
|
|
202
|
+
readonly name: "renounceOwnership";
|
|
203
|
+
readonly outputs: readonly [];
|
|
204
|
+
readonly stateMutability: "nonpayable";
|
|
302
205
|
readonly type: "function";
|
|
303
206
|
}, {
|
|
304
207
|
readonly inputs: readonly [{
|
|
305
|
-
readonly internalType: "
|
|
306
|
-
readonly name: "
|
|
307
|
-
readonly type: "
|
|
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";
|
|
208
|
+
readonly internalType: "string";
|
|
209
|
+
readonly name: "_logoURI";
|
|
210
|
+
readonly type: "string";
|
|
332
211
|
}];
|
|
333
|
-
readonly name: "
|
|
212
|
+
readonly name: "setLogoURI";
|
|
334
213
|
readonly outputs: readonly [];
|
|
335
214
|
readonly stateMutability: "nonpayable";
|
|
336
215
|
readonly type: "function";
|
|
@@ -357,11 +236,11 @@ export declare const TokenImplementation_jsonAbi: readonly [{
|
|
|
357
236
|
}, {
|
|
358
237
|
readonly inputs: readonly [{
|
|
359
238
|
readonly internalType: "address";
|
|
360
|
-
readonly name: "
|
|
239
|
+
readonly name: "to";
|
|
361
240
|
readonly type: "address";
|
|
362
241
|
}, {
|
|
363
242
|
readonly internalType: "uint256";
|
|
364
|
-
readonly name: "
|
|
243
|
+
readonly name: "value";
|
|
365
244
|
readonly type: "uint256";
|
|
366
245
|
}];
|
|
367
246
|
readonly name: "transfer";
|
|
@@ -375,15 +254,15 @@ export declare const TokenImplementation_jsonAbi: readonly [{
|
|
|
375
254
|
}, {
|
|
376
255
|
readonly inputs: readonly [{
|
|
377
256
|
readonly internalType: "address";
|
|
378
|
-
readonly name: "
|
|
257
|
+
readonly name: "from";
|
|
379
258
|
readonly type: "address";
|
|
380
259
|
}, {
|
|
381
260
|
readonly internalType: "address";
|
|
382
|
-
readonly name: "
|
|
261
|
+
readonly name: "to";
|
|
383
262
|
readonly type: "address";
|
|
384
263
|
}, {
|
|
385
264
|
readonly internalType: "uint256";
|
|
386
|
-
readonly name: "
|
|
265
|
+
readonly name: "value";
|
|
387
266
|
readonly type: "uint256";
|
|
388
267
|
}];
|
|
389
268
|
readonly name: "transferFrom";
|
|
@@ -396,33 +275,25 @@ export declare const TokenImplementation_jsonAbi: readonly [{
|
|
|
396
275
|
readonly type: "function";
|
|
397
276
|
}, {
|
|
398
277
|
readonly inputs: readonly [{
|
|
399
|
-
readonly internalType: "
|
|
400
|
-
readonly name: "
|
|
401
|
-
readonly type: "
|
|
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";
|
|
278
|
+
readonly internalType: "address";
|
|
279
|
+
readonly name: "newOwner";
|
|
280
|
+
readonly type: "address";
|
|
410
281
|
}];
|
|
411
|
-
readonly name: "
|
|
282
|
+
readonly name: "transferOwnership";
|
|
412
283
|
readonly outputs: readonly [];
|
|
413
284
|
readonly stateMutability: "nonpayable";
|
|
414
285
|
readonly type: "function";
|
|
415
286
|
}];
|
|
416
287
|
/**
|
|
417
|
-
* Type-safe ABI for
|
|
288
|
+
* Type-safe ABI for MyToken_json
|
|
418
289
|
*/
|
|
419
|
-
export type
|
|
290
|
+
export type MyToken_jsonAbi = typeof MyToken_jsonAbi;
|
|
420
291
|
/**
|
|
421
|
-
* Contract instance type for
|
|
292
|
+
* Contract instance type for MyToken_json
|
|
422
293
|
*/
|
|
423
|
-
export type
|
|
294
|
+
export type MyToken_jsonContract = any;
|
|
424
295
|
/**
|
|
425
|
-
*
|
|
296
|
+
* MyToken_json Contract Class
|
|
426
297
|
*
|
|
427
298
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
428
299
|
*
|
|
@@ -430,12 +301,12 @@ export type TokenImplementation_jsonContract = any;
|
|
|
430
301
|
* ```typescript
|
|
431
302
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
432
303
|
* import { mainnet } from 'viem/chains';
|
|
433
|
-
* import {
|
|
304
|
+
* import { MyToken_json } from 'MyToken_json';
|
|
434
305
|
*
|
|
435
306
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
436
307
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
437
308
|
*
|
|
438
|
-
* const contract = new
|
|
309
|
+
* const contract = new MyToken_json('0x...', { publicClient, walletClient });
|
|
439
310
|
*
|
|
440
311
|
* // Read functions
|
|
441
312
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -453,7 +324,7 @@ export type TokenImplementation_jsonContract = any;
|
|
|
453
324
|
* });
|
|
454
325
|
* ```
|
|
455
326
|
*/
|
|
456
|
-
export declare class
|
|
327
|
+
export declare class MyToken_json {
|
|
457
328
|
private contract;
|
|
458
329
|
private contractAddress;
|
|
459
330
|
private publicClient;
|
|
@@ -468,52 +339,37 @@ export declare class TokenImplementation_json {
|
|
|
468
339
|
/**
|
|
469
340
|
* Get the underlying viem contract instance
|
|
470
341
|
*/
|
|
471
|
-
getContract():
|
|
472
|
-
/**
|
|
473
|
-
* DOMAIN_SEPARATOR
|
|
474
|
-
* view
|
|
475
|
-
*/
|
|
476
|
-
DOMAIN_SEPARATOR(): Promise<`0x${string}`>;
|
|
342
|
+
getContract(): MyToken_jsonContract;
|
|
477
343
|
/**
|
|
478
344
|
* allowance
|
|
479
345
|
* view
|
|
480
346
|
*/
|
|
481
|
-
allowance(
|
|
347
|
+
allowance(arg0: `0x${string}`, arg1: `0x${string}`): Promise<bigint>;
|
|
482
348
|
/**
|
|
483
349
|
* balanceOf
|
|
484
350
|
* view
|
|
485
351
|
*/
|
|
486
|
-
balanceOf(
|
|
352
|
+
balanceOf(arg0: `0x${string}`): Promise<bigint>;
|
|
487
353
|
/**
|
|
488
|
-
*
|
|
354
|
+
* cap
|
|
489
355
|
* view
|
|
490
356
|
*/
|
|
491
|
-
|
|
357
|
+
cap(): Promise<bigint>;
|
|
492
358
|
/**
|
|
493
359
|
* decimals
|
|
494
360
|
* view
|
|
495
361
|
*/
|
|
496
362
|
decimals(): Promise<bigint>;
|
|
497
363
|
/**
|
|
498
|
-
*
|
|
364
|
+
* logoURI
|
|
499
365
|
* view
|
|
500
366
|
*/
|
|
501
|
-
|
|
367
|
+
logoURI(): Promise<string>;
|
|
502
368
|
/**
|
|
503
369
|
* name
|
|
504
370
|
* view
|
|
505
371
|
*/
|
|
506
372
|
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>;
|
|
517
373
|
/**
|
|
518
374
|
* owner
|
|
519
375
|
* view
|
|
@@ -534,7 +390,7 @@ export declare class TokenImplementation_json {
|
|
|
534
390
|
* nonpayable
|
|
535
391
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
536
392
|
*/
|
|
537
|
-
approve(
|
|
393
|
+
approve(spender: `0x${string}`, value: bigint, options?: {
|
|
538
394
|
accessList?: import('viem').AccessList;
|
|
539
395
|
authorizationList?: import('viem').AuthorizationList;
|
|
540
396
|
chain?: import('viem').Chain | null;
|
|
@@ -547,62 +403,11 @@ export declare class TokenImplementation_json {
|
|
|
547
403
|
value?: bigint;
|
|
548
404
|
}): Promise<`0x${string}`>;
|
|
549
405
|
/**
|
|
550
|
-
*
|
|
551
|
-
* nonpayable
|
|
552
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
553
|
-
*/
|
|
554
|
-
burn(account_: `0x${string}`, amount_: bigint, options?: {
|
|
555
|
-
accessList?: import('viem').AccessList;
|
|
556
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
557
|
-
chain?: import('viem').Chain | null;
|
|
558
|
-
dataSuffix?: `0x${string}`;
|
|
559
|
-
gas?: bigint;
|
|
560
|
-
gasPrice?: bigint;
|
|
561
|
-
maxFeePerGas?: bigint;
|
|
562
|
-
maxPriorityFeePerGas?: bigint;
|
|
563
|
-
nonce?: number;
|
|
564
|
-
value?: bigint;
|
|
565
|
-
}): Promise<`0x${string}`>;
|
|
566
|
-
/**
|
|
567
|
-
* decreaseAllowance
|
|
568
|
-
* nonpayable
|
|
569
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
570
|
-
*/
|
|
571
|
-
decreaseAllowance(spender_: `0x${string}`, subtractedValue_: bigint, options?: {
|
|
572
|
-
accessList?: import('viem').AccessList;
|
|
573
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
574
|
-
chain?: import('viem').Chain | null;
|
|
575
|
-
dataSuffix?: `0x${string}`;
|
|
576
|
-
gas?: bigint;
|
|
577
|
-
gasPrice?: bigint;
|
|
578
|
-
maxFeePerGas?: bigint;
|
|
579
|
-
maxPriorityFeePerGas?: bigint;
|
|
580
|
-
nonce?: number;
|
|
581
|
-
value?: bigint;
|
|
582
|
-
}): Promise<`0x${string}`>;
|
|
583
|
-
/**
|
|
584
|
-
* increaseAllowance
|
|
585
|
-
* nonpayable
|
|
586
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
587
|
-
*/
|
|
588
|
-
increaseAllowance(spender_: `0x${string}`, addedValue_: bigint, options?: {
|
|
589
|
-
accessList?: import('viem').AccessList;
|
|
590
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
591
|
-
chain?: import('viem').Chain | null;
|
|
592
|
-
dataSuffix?: `0x${string}`;
|
|
593
|
-
gas?: bigint;
|
|
594
|
-
gasPrice?: bigint;
|
|
595
|
-
maxFeePerGas?: bigint;
|
|
596
|
-
maxPriorityFeePerGas?: bigint;
|
|
597
|
-
nonce?: number;
|
|
598
|
-
value?: bigint;
|
|
599
|
-
}): Promise<`0x${string}`>;
|
|
600
|
-
/**
|
|
601
|
-
* initialize
|
|
406
|
+
* mint
|
|
602
407
|
* nonpayable
|
|
603
408
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
604
409
|
*/
|
|
605
|
-
|
|
410
|
+
mint(to: `0x${string}`, amount: bigint, options?: {
|
|
606
411
|
accessList?: import('viem').AccessList;
|
|
607
412
|
authorizationList?: import('viem').AuthorizationList;
|
|
608
413
|
chain?: import('viem').Chain | null;
|
|
@@ -615,11 +420,11 @@ export declare class TokenImplementation_json {
|
|
|
615
420
|
value?: bigint;
|
|
616
421
|
}): Promise<`0x${string}`>;
|
|
617
422
|
/**
|
|
618
|
-
*
|
|
423
|
+
* renounceOwnership
|
|
619
424
|
* nonpayable
|
|
620
425
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
621
426
|
*/
|
|
622
|
-
|
|
427
|
+
renounceOwnership(options?: {
|
|
623
428
|
accessList?: import('viem').AccessList;
|
|
624
429
|
authorizationList?: import('viem').AuthorizationList;
|
|
625
430
|
chain?: import('viem').Chain | null;
|
|
@@ -632,11 +437,11 @@ export declare class TokenImplementation_json {
|
|
|
632
437
|
value?: bigint;
|
|
633
438
|
}): Promise<`0x${string}`>;
|
|
634
439
|
/**
|
|
635
|
-
*
|
|
440
|
+
* setLogoURI
|
|
636
441
|
* nonpayable
|
|
637
442
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
638
443
|
*/
|
|
639
|
-
|
|
444
|
+
setLogoURI(_logoURI: string, options?: {
|
|
640
445
|
accessList?: import('viem').AccessList;
|
|
641
446
|
authorizationList?: import('viem').AuthorizationList;
|
|
642
447
|
chain?: import('viem').Chain | null;
|
|
@@ -653,7 +458,7 @@ export declare class TokenImplementation_json {
|
|
|
653
458
|
* nonpayable
|
|
654
459
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
655
460
|
*/
|
|
656
|
-
transfer(
|
|
461
|
+
transfer(to: `0x${string}`, value: bigint, options?: {
|
|
657
462
|
accessList?: import('viem').AccessList;
|
|
658
463
|
authorizationList?: import('viem').AuthorizationList;
|
|
659
464
|
chain?: import('viem').Chain | null;
|
|
@@ -670,7 +475,7 @@ export declare class TokenImplementation_json {
|
|
|
670
475
|
* nonpayable
|
|
671
476
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
672
477
|
*/
|
|
673
|
-
transferFrom(
|
|
478
|
+
transferFrom(from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
|
|
674
479
|
accessList?: import('viem').AccessList;
|
|
675
480
|
authorizationList?: import('viem').AuthorizationList;
|
|
676
481
|
chain?: import('viem').Chain | null;
|
|
@@ -683,11 +488,11 @@ export declare class TokenImplementation_json {
|
|
|
683
488
|
value?: bigint;
|
|
684
489
|
}): Promise<`0x${string}`>;
|
|
685
490
|
/**
|
|
686
|
-
*
|
|
491
|
+
* transferOwnership
|
|
687
492
|
* nonpayable
|
|
688
493
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
689
494
|
*/
|
|
690
|
-
|
|
495
|
+
transferOwnership(newOwner: `0x${string}`, options?: {
|
|
691
496
|
accessList?: import('viem').AccessList;
|
|
692
497
|
authorizationList?: import('viem').AuthorizationList;
|
|
693
498
|
chain?: import('viem').Chain | null;
|
|
@@ -713,41 +518,7 @@ export declare class TokenImplementation_json {
|
|
|
713
518
|
* Returns gas estimate and result without sending transaction
|
|
714
519
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
715
520
|
*/
|
|
716
|
-
approve(
|
|
717
|
-
accessList?: import("viem").AccessList;
|
|
718
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
719
|
-
chain?: import("viem").Chain | null;
|
|
720
|
-
dataSuffix?: `0x${string}`;
|
|
721
|
-
gas?: bigint;
|
|
722
|
-
gasPrice?: bigint;
|
|
723
|
-
maxFeePerGas?: bigint;
|
|
724
|
-
maxPriorityFeePerGas?: bigint;
|
|
725
|
-
nonce?: number;
|
|
726
|
-
value?: bigint;
|
|
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>;
|
|
745
|
-
/**
|
|
746
|
-
* Simulate decreaseAllowance
|
|
747
|
-
* Returns gas estimate and result without sending transaction
|
|
748
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
749
|
-
*/
|
|
750
|
-
decreaseAllowance(spender_: `0x${string}`, subtractedValue_: bigint, options?: {
|
|
521
|
+
approve(spender: `0x${string}`, value: bigint, options?: {
|
|
751
522
|
accessList?: import("viem").AccessList;
|
|
752
523
|
authorizationList?: import("viem").AuthorizationList;
|
|
753
524
|
chain?: import("viem").Chain | null;
|
|
@@ -760,28 +531,11 @@ export declare class TokenImplementation_json {
|
|
|
760
531
|
value?: bigint;
|
|
761
532
|
}): Promise<boolean>;
|
|
762
533
|
/**
|
|
763
|
-
* Simulate
|
|
764
|
-
* Returns gas estimate and result without sending transaction
|
|
765
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
766
|
-
*/
|
|
767
|
-
increaseAllowance(spender_: `0x${string}`, addedValue_: bigint, options?: {
|
|
768
|
-
accessList?: import("viem").AccessList;
|
|
769
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
770
|
-
chain?: import("viem").Chain | null;
|
|
771
|
-
dataSuffix?: `0x${string}`;
|
|
772
|
-
gas?: bigint;
|
|
773
|
-
gasPrice?: bigint;
|
|
774
|
-
maxFeePerGas?: bigint;
|
|
775
|
-
maxPriorityFeePerGas?: bigint;
|
|
776
|
-
nonce?: number;
|
|
777
|
-
value?: bigint;
|
|
778
|
-
}): Promise<boolean>;
|
|
779
|
-
/**
|
|
780
|
-
* Simulate initialize
|
|
534
|
+
* Simulate mint
|
|
781
535
|
* Returns gas estimate and result without sending transaction
|
|
782
536
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
783
537
|
*/
|
|
784
|
-
|
|
538
|
+
mint(to: `0x${string}`, amount: bigint, options?: {
|
|
785
539
|
accessList?: import("viem").AccessList;
|
|
786
540
|
authorizationList?: import("viem").AuthorizationList;
|
|
787
541
|
chain?: import("viem").Chain | null;
|
|
@@ -794,11 +548,11 @@ export declare class TokenImplementation_json {
|
|
|
794
548
|
value?: bigint;
|
|
795
549
|
}): Promise<void>;
|
|
796
550
|
/**
|
|
797
|
-
* Simulate
|
|
551
|
+
* Simulate renounceOwnership
|
|
798
552
|
* Returns gas estimate and result without sending transaction
|
|
799
553
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
800
554
|
*/
|
|
801
|
-
|
|
555
|
+
renounceOwnership(options?: {
|
|
802
556
|
accessList?: import("viem").AccessList;
|
|
803
557
|
authorizationList?: import("viem").AuthorizationList;
|
|
804
558
|
chain?: import("viem").Chain | null;
|
|
@@ -811,11 +565,11 @@ export declare class TokenImplementation_json {
|
|
|
811
565
|
value?: bigint;
|
|
812
566
|
}): Promise<void>;
|
|
813
567
|
/**
|
|
814
|
-
* Simulate
|
|
568
|
+
* Simulate setLogoURI
|
|
815
569
|
* Returns gas estimate and result without sending transaction
|
|
816
570
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
817
571
|
*/
|
|
818
|
-
|
|
572
|
+
setLogoURI(_logoURI: string, options?: {
|
|
819
573
|
accessList?: import("viem").AccessList;
|
|
820
574
|
authorizationList?: import("viem").AuthorizationList;
|
|
821
575
|
chain?: import("viem").Chain | null;
|
|
@@ -832,7 +586,7 @@ export declare class TokenImplementation_json {
|
|
|
832
586
|
* Returns gas estimate and result without sending transaction
|
|
833
587
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
834
588
|
*/
|
|
835
|
-
transfer(
|
|
589
|
+
transfer(to: `0x${string}`, value: bigint, options?: {
|
|
836
590
|
accessList?: import("viem").AccessList;
|
|
837
591
|
authorizationList?: import("viem").AuthorizationList;
|
|
838
592
|
chain?: import("viem").Chain | null;
|
|
@@ -849,7 +603,7 @@ export declare class TokenImplementation_json {
|
|
|
849
603
|
* Returns gas estimate and result without sending transaction
|
|
850
604
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
851
605
|
*/
|
|
852
|
-
transferFrom(
|
|
606
|
+
transferFrom(from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
|
|
853
607
|
accessList?: import("viem").AccessList;
|
|
854
608
|
authorizationList?: import("viem").AuthorizationList;
|
|
855
609
|
chain?: import("viem").Chain | null;
|
|
@@ -862,11 +616,11 @@ export declare class TokenImplementation_json {
|
|
|
862
616
|
value?: bigint;
|
|
863
617
|
}): Promise<boolean>;
|
|
864
618
|
/**
|
|
865
|
-
* Simulate
|
|
619
|
+
* Simulate transferOwnership
|
|
866
620
|
* Returns gas estimate and result without sending transaction
|
|
867
621
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
868
622
|
*/
|
|
869
|
-
|
|
623
|
+
transferOwnership(newOwner: `0x${string}`, options?: {
|
|
870
624
|
accessList?: import("viem").AccessList;
|
|
871
625
|
authorizationList?: import("viem").AuthorizationList;
|
|
872
626
|
chain?: import("viem").Chain | null;
|
|
@@ -906,6 +660,19 @@ export declare class TokenImplementation_json {
|
|
|
906
660
|
owner: `0x${string}`;
|
|
907
661
|
spender: `0x${string}`;
|
|
908
662
|
}) => () => void;
|
|
663
|
+
/**
|
|
664
|
+
* Watch OwnershipTransferred events
|
|
665
|
+
* @param callback Function to call when event is emitted
|
|
666
|
+
* @param filter Optional filter for indexed parameters
|
|
667
|
+
* @returns Unwatch function to stop listening
|
|
668
|
+
*/
|
|
669
|
+
OwnershipTransferred: (callback: (event: {
|
|
670
|
+
previousOwner: `0x${string}`;
|
|
671
|
+
newOwner: `0x${string}`;
|
|
672
|
+
}) => void, filter?: {
|
|
673
|
+
previousOwner: `0x${string}`;
|
|
674
|
+
newOwner: `0x${string}`;
|
|
675
|
+
}) => () => void;
|
|
909
676
|
/**
|
|
910
677
|
* Watch Transfer events
|
|
911
678
|
* @param callback Function to call when event is emitted
|