@gitmyabi/usd 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/contracts/{StandardToken_json.d.ts → MusdtMintable_json.d.ts} +379 -104
- package/contracts/{StandardToken_json.js → MusdtMintable_json.js} +422 -124
- package/contracts/{StandardToken_json.ts → MusdtMintable_json.ts} +503 -131
- package/contracts/index.d.ts +2 -2
- package/contracts/index.js +4 -4
- package/contracts/index.ts +2 -2
- package/package.json +3 -3
|
@@ -1,11 +1,27 @@
|
|
|
1
1
|
import type { Address, PublicClient, WalletClient } from 'viem';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* MusdtMintable_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 [
|
|
7
|
+
export declare const MusdtMintable_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: "string";
|
|
18
|
+
readonly name: "logoURI_";
|
|
19
|
+
readonly type: "string";
|
|
20
|
+
}, {
|
|
21
|
+
readonly internalType: "string";
|
|
22
|
+
readonly name: "tokenURI_";
|
|
23
|
+
readonly type: "string";
|
|
24
|
+
}];
|
|
9
25
|
readonly stateMutability: "nonpayable";
|
|
10
26
|
readonly type: "constructor";
|
|
11
27
|
}, {
|
|
@@ -32,11 +48,76 @@ export declare const StandardToken_jsonAbi: readonly [{
|
|
|
32
48
|
readonly anonymous: false;
|
|
33
49
|
readonly inputs: readonly [{
|
|
34
50
|
readonly indexed: false;
|
|
35
|
-
readonly internalType: "
|
|
36
|
-
readonly name: "
|
|
37
|
-
readonly type: "
|
|
51
|
+
readonly internalType: "string";
|
|
52
|
+
readonly name: "previousURI";
|
|
53
|
+
readonly type: "string";
|
|
54
|
+
}, {
|
|
55
|
+
readonly indexed: false;
|
|
56
|
+
readonly internalType: "string";
|
|
57
|
+
readonly name: "newURI";
|
|
58
|
+
readonly type: "string";
|
|
59
|
+
}];
|
|
60
|
+
readonly name: "LogoURIChanged";
|
|
61
|
+
readonly type: "event";
|
|
62
|
+
}, {
|
|
63
|
+
readonly anonymous: false;
|
|
64
|
+
readonly inputs: readonly [{
|
|
65
|
+
readonly indexed: false;
|
|
66
|
+
readonly internalType: "string";
|
|
67
|
+
readonly name: "previousName";
|
|
68
|
+
readonly type: "string";
|
|
69
|
+
}, {
|
|
70
|
+
readonly indexed: false;
|
|
71
|
+
readonly internalType: "string";
|
|
72
|
+
readonly name: "newName";
|
|
73
|
+
readonly type: "string";
|
|
74
|
+
}];
|
|
75
|
+
readonly name: "NameChanged";
|
|
76
|
+
readonly type: "event";
|
|
77
|
+
}, {
|
|
78
|
+
readonly anonymous: false;
|
|
79
|
+
readonly inputs: readonly [{
|
|
80
|
+
readonly indexed: true;
|
|
81
|
+
readonly internalType: "address";
|
|
82
|
+
readonly name: "previousOwner";
|
|
83
|
+
readonly type: "address";
|
|
84
|
+
}, {
|
|
85
|
+
readonly indexed: true;
|
|
86
|
+
readonly internalType: "address";
|
|
87
|
+
readonly name: "newOwner";
|
|
88
|
+
readonly type: "address";
|
|
89
|
+
}];
|
|
90
|
+
readonly name: "OwnershipTransferred";
|
|
91
|
+
readonly type: "event";
|
|
92
|
+
}, {
|
|
93
|
+
readonly anonymous: false;
|
|
94
|
+
readonly inputs: readonly [{
|
|
95
|
+
readonly indexed: false;
|
|
96
|
+
readonly internalType: "string";
|
|
97
|
+
readonly name: "previousSymbol";
|
|
98
|
+
readonly type: "string";
|
|
99
|
+
}, {
|
|
100
|
+
readonly indexed: false;
|
|
101
|
+
readonly internalType: "string";
|
|
102
|
+
readonly name: "newSymbol";
|
|
103
|
+
readonly type: "string";
|
|
38
104
|
}];
|
|
39
|
-
readonly name: "
|
|
105
|
+
readonly name: "SymbolChanged";
|
|
106
|
+
readonly type: "event";
|
|
107
|
+
}, {
|
|
108
|
+
readonly anonymous: false;
|
|
109
|
+
readonly inputs: readonly [{
|
|
110
|
+
readonly indexed: false;
|
|
111
|
+
readonly internalType: "string";
|
|
112
|
+
readonly name: "previousURI";
|
|
113
|
+
readonly type: "string";
|
|
114
|
+
}, {
|
|
115
|
+
readonly indexed: false;
|
|
116
|
+
readonly internalType: "string";
|
|
117
|
+
readonly name: "newURI";
|
|
118
|
+
readonly type: "string";
|
|
119
|
+
}];
|
|
120
|
+
readonly name: "TokenURIChanged";
|
|
40
121
|
readonly type: "event";
|
|
41
122
|
}, {
|
|
42
123
|
readonly anonymous: false;
|
|
@@ -61,7 +142,7 @@ export declare const StandardToken_jsonAbi: readonly [{
|
|
|
61
142
|
}, {
|
|
62
143
|
readonly inputs: readonly [{
|
|
63
144
|
readonly internalType: "address";
|
|
64
|
-
readonly name: "
|
|
145
|
+
readonly name: "owner_";
|
|
65
146
|
readonly type: "address";
|
|
66
147
|
}, {
|
|
67
148
|
readonly internalType: "address";
|
|
@@ -83,7 +164,7 @@ export declare const StandardToken_jsonAbi: readonly [{
|
|
|
83
164
|
readonly type: "address";
|
|
84
165
|
}, {
|
|
85
166
|
readonly internalType: "uint256";
|
|
86
|
-
readonly name: "
|
|
167
|
+
readonly name: "value";
|
|
87
168
|
readonly type: "uint256";
|
|
88
169
|
}];
|
|
89
170
|
readonly name: "approve";
|
|
@@ -97,7 +178,7 @@ export declare const StandardToken_jsonAbi: readonly [{
|
|
|
97
178
|
}, {
|
|
98
179
|
readonly inputs: readonly [{
|
|
99
180
|
readonly internalType: "address";
|
|
100
|
-
readonly name: "
|
|
181
|
+
readonly name: "who";
|
|
101
182
|
readonly type: "address";
|
|
102
183
|
}];
|
|
103
184
|
readonly name: "balanceOf";
|
|
@@ -108,30 +189,6 @@ export declare const StandardToken_jsonAbi: readonly [{
|
|
|
108
189
|
}];
|
|
109
190
|
readonly stateMutability: "view";
|
|
110
191
|
readonly type: "function";
|
|
111
|
-
}, {
|
|
112
|
-
readonly inputs: readonly [{
|
|
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 internalType: "address";
|
|
124
|
-
readonly name: "account";
|
|
125
|
-
readonly type: "address";
|
|
126
|
-
}, {
|
|
127
|
-
readonly internalType: "uint256";
|
|
128
|
-
readonly name: "amount";
|
|
129
|
-
readonly type: "uint256";
|
|
130
|
-
}];
|
|
131
|
-
readonly name: "burnFrom";
|
|
132
|
-
readonly outputs: readonly [];
|
|
133
|
-
readonly stateMutability: "nonpayable";
|
|
134
|
-
readonly type: "function";
|
|
135
192
|
}, {
|
|
136
193
|
readonly inputs: readonly [];
|
|
137
194
|
readonly name: "decimals";
|
|
@@ -152,7 +209,7 @@ export declare const StandardToken_jsonAbi: readonly [{
|
|
|
152
209
|
readonly name: "subtractedValue";
|
|
153
210
|
readonly type: "uint256";
|
|
154
211
|
}];
|
|
155
|
-
readonly name: "
|
|
212
|
+
readonly name: "decreaseApproval";
|
|
156
213
|
readonly outputs: readonly [{
|
|
157
214
|
readonly internalType: "bool";
|
|
158
215
|
readonly name: "";
|
|
@@ -170,7 +227,7 @@ export declare const StandardToken_jsonAbi: readonly [{
|
|
|
170
227
|
readonly name: "addedValue";
|
|
171
228
|
readonly type: "uint256";
|
|
172
229
|
}];
|
|
173
|
-
readonly name: "
|
|
230
|
+
readonly name: "increaseApproval";
|
|
174
231
|
readonly outputs: readonly [{
|
|
175
232
|
readonly internalType: "bool";
|
|
176
233
|
readonly name: "";
|
|
@@ -178,45 +235,97 @@ export declare const StandardToken_jsonAbi: readonly [{
|
|
|
178
235
|
}];
|
|
179
236
|
readonly stateMutability: "nonpayable";
|
|
180
237
|
readonly type: "function";
|
|
238
|
+
}, {
|
|
239
|
+
readonly inputs: readonly [];
|
|
240
|
+
readonly name: "logoURI";
|
|
241
|
+
readonly outputs: readonly [{
|
|
242
|
+
readonly internalType: "string";
|
|
243
|
+
readonly name: "";
|
|
244
|
+
readonly type: "string";
|
|
245
|
+
}];
|
|
246
|
+
readonly stateMutability: "view";
|
|
247
|
+
readonly type: "function";
|
|
181
248
|
}, {
|
|
182
249
|
readonly inputs: readonly [{
|
|
183
250
|
readonly internalType: "address";
|
|
184
|
-
readonly name: "
|
|
251
|
+
readonly name: "to";
|
|
185
252
|
readonly type: "address";
|
|
186
|
-
}, {
|
|
187
|
-
readonly internalType: "string";
|
|
188
|
-
readonly name: "_name";
|
|
189
|
-
readonly type: "string";
|
|
190
|
-
}, {
|
|
191
|
-
readonly internalType: "string";
|
|
192
|
-
readonly name: "_symbol";
|
|
193
|
-
readonly type: "string";
|
|
194
|
-
}, {
|
|
195
|
-
readonly internalType: "uint8";
|
|
196
|
-
readonly name: "_decimals";
|
|
197
|
-
readonly type: "uint8";
|
|
198
253
|
}, {
|
|
199
254
|
readonly internalType: "uint256";
|
|
200
|
-
readonly name: "
|
|
255
|
+
readonly name: "value";
|
|
201
256
|
readonly type: "uint256";
|
|
202
257
|
}];
|
|
203
|
-
readonly name: "
|
|
204
|
-
readonly outputs: readonly [
|
|
258
|
+
readonly name: "mint";
|
|
259
|
+
readonly outputs: readonly [{
|
|
260
|
+
readonly internalType: "bool";
|
|
261
|
+
readonly name: "";
|
|
262
|
+
readonly type: "bool";
|
|
263
|
+
}];
|
|
205
264
|
readonly stateMutability: "nonpayable";
|
|
206
265
|
readonly type: "function";
|
|
207
266
|
}, {
|
|
208
267
|
readonly inputs: readonly [];
|
|
209
|
-
readonly name: "
|
|
268
|
+
readonly name: "name";
|
|
210
269
|
readonly outputs: readonly [{
|
|
211
|
-
readonly internalType: "
|
|
270
|
+
readonly internalType: "string";
|
|
212
271
|
readonly name: "";
|
|
213
|
-
readonly type: "
|
|
272
|
+
readonly type: "string";
|
|
214
273
|
}];
|
|
215
274
|
readonly stateMutability: "view";
|
|
216
275
|
readonly type: "function";
|
|
217
276
|
}, {
|
|
218
277
|
readonly inputs: readonly [];
|
|
219
|
-
readonly name: "
|
|
278
|
+
readonly name: "owner";
|
|
279
|
+
readonly outputs: readonly [{
|
|
280
|
+
readonly internalType: "address";
|
|
281
|
+
readonly name: "";
|
|
282
|
+
readonly type: "address";
|
|
283
|
+
}];
|
|
284
|
+
readonly stateMutability: "view";
|
|
285
|
+
readonly type: "function";
|
|
286
|
+
}, {
|
|
287
|
+
readonly inputs: readonly [{
|
|
288
|
+
readonly internalType: "string";
|
|
289
|
+
readonly name: "newURI";
|
|
290
|
+
readonly type: "string";
|
|
291
|
+
}];
|
|
292
|
+
readonly name: "setLogoURI";
|
|
293
|
+
readonly outputs: readonly [];
|
|
294
|
+
readonly stateMutability: "nonpayable";
|
|
295
|
+
readonly type: "function";
|
|
296
|
+
}, {
|
|
297
|
+
readonly inputs: readonly [{
|
|
298
|
+
readonly internalType: "string";
|
|
299
|
+
readonly name: "newName";
|
|
300
|
+
readonly type: "string";
|
|
301
|
+
}];
|
|
302
|
+
readonly name: "setName";
|
|
303
|
+
readonly outputs: readonly [];
|
|
304
|
+
readonly stateMutability: "nonpayable";
|
|
305
|
+
readonly type: "function";
|
|
306
|
+
}, {
|
|
307
|
+
readonly inputs: readonly [{
|
|
308
|
+
readonly internalType: "string";
|
|
309
|
+
readonly name: "newSymbol";
|
|
310
|
+
readonly type: "string";
|
|
311
|
+
}];
|
|
312
|
+
readonly name: "setSymbol";
|
|
313
|
+
readonly outputs: readonly [];
|
|
314
|
+
readonly stateMutability: "nonpayable";
|
|
315
|
+
readonly type: "function";
|
|
316
|
+
}, {
|
|
317
|
+
readonly inputs: readonly [{
|
|
318
|
+
readonly internalType: "string";
|
|
319
|
+
readonly name: "newURI";
|
|
320
|
+
readonly type: "string";
|
|
321
|
+
}];
|
|
322
|
+
readonly name: "setTokenURI";
|
|
323
|
+
readonly outputs: readonly [];
|
|
324
|
+
readonly stateMutability: "nonpayable";
|
|
325
|
+
readonly type: "function";
|
|
326
|
+
}, {
|
|
327
|
+
readonly inputs: readonly [];
|
|
328
|
+
readonly name: "symbol";
|
|
220
329
|
readonly outputs: readonly [{
|
|
221
330
|
readonly internalType: "string";
|
|
222
331
|
readonly name: "";
|
|
@@ -226,7 +335,7 @@ export declare const StandardToken_jsonAbi: readonly [{
|
|
|
226
335
|
readonly type: "function";
|
|
227
336
|
}, {
|
|
228
337
|
readonly inputs: readonly [];
|
|
229
|
-
readonly name: "
|
|
338
|
+
readonly name: "tokenURI";
|
|
230
339
|
readonly outputs: readonly [{
|
|
231
340
|
readonly internalType: "string";
|
|
232
341
|
readonly name: "";
|
|
@@ -251,7 +360,7 @@ export declare const StandardToken_jsonAbi: readonly [{
|
|
|
251
360
|
readonly type: "address";
|
|
252
361
|
}, {
|
|
253
362
|
readonly internalType: "uint256";
|
|
254
|
-
readonly name: "
|
|
363
|
+
readonly name: "value";
|
|
255
364
|
readonly type: "uint256";
|
|
256
365
|
}];
|
|
257
366
|
readonly name: "transfer";
|
|
@@ -273,7 +382,7 @@ export declare const StandardToken_jsonAbi: readonly [{
|
|
|
273
382
|
readonly type: "address";
|
|
274
383
|
}, {
|
|
275
384
|
readonly internalType: "uint256";
|
|
276
|
-
readonly name: "
|
|
385
|
+
readonly name: "value";
|
|
277
386
|
readonly type: "uint256";
|
|
278
387
|
}];
|
|
279
388
|
readonly name: "transferFrom";
|
|
@@ -284,17 +393,27 @@ export declare const StandardToken_jsonAbi: readonly [{
|
|
|
284
393
|
}];
|
|
285
394
|
readonly stateMutability: "nonpayable";
|
|
286
395
|
readonly type: "function";
|
|
396
|
+
}, {
|
|
397
|
+
readonly inputs: readonly [{
|
|
398
|
+
readonly internalType: "address";
|
|
399
|
+
readonly name: "newOwner";
|
|
400
|
+
readonly type: "address";
|
|
401
|
+
}];
|
|
402
|
+
readonly name: "transferOwnership";
|
|
403
|
+
readonly outputs: readonly [];
|
|
404
|
+
readonly stateMutability: "nonpayable";
|
|
405
|
+
readonly type: "function";
|
|
287
406
|
}];
|
|
288
407
|
/**
|
|
289
|
-
* Type-safe ABI for
|
|
408
|
+
* Type-safe ABI for MusdtMintable_json
|
|
290
409
|
*/
|
|
291
|
-
export type
|
|
410
|
+
export type MusdtMintable_jsonAbi = typeof MusdtMintable_jsonAbi;
|
|
292
411
|
/**
|
|
293
|
-
* Contract instance type for
|
|
412
|
+
* Contract instance type for MusdtMintable_json
|
|
294
413
|
*/
|
|
295
|
-
export type
|
|
414
|
+
export type MusdtMintable_jsonContract = any;
|
|
296
415
|
/**
|
|
297
|
-
*
|
|
416
|
+
* MusdtMintable_json Contract Class
|
|
298
417
|
*
|
|
299
418
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
300
419
|
*
|
|
@@ -302,12 +421,12 @@ export type StandardToken_jsonContract = any;
|
|
|
302
421
|
* ```typescript
|
|
303
422
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
304
423
|
* import { mainnet } from 'viem/chains';
|
|
305
|
-
* import {
|
|
424
|
+
* import { MusdtMintable_json } from 'MusdtMintable_json';
|
|
306
425
|
*
|
|
307
426
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
308
427
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
309
428
|
*
|
|
310
|
-
* const contract = new
|
|
429
|
+
* const contract = new MusdtMintable_json('0x...', { publicClient, walletClient });
|
|
311
430
|
*
|
|
312
431
|
* // Read functions
|
|
313
432
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -325,7 +444,7 @@ export type StandardToken_jsonContract = any;
|
|
|
325
444
|
* });
|
|
326
445
|
* ```
|
|
327
446
|
*/
|
|
328
|
-
export declare class
|
|
447
|
+
export declare class MusdtMintable_json {
|
|
329
448
|
private contract;
|
|
330
449
|
private contractAddress;
|
|
331
450
|
private publicClient;
|
|
@@ -340,37 +459,47 @@ export declare class StandardToken_json {
|
|
|
340
459
|
/**
|
|
341
460
|
* Get the underlying viem contract instance
|
|
342
461
|
*/
|
|
343
|
-
getContract():
|
|
462
|
+
getContract(): MusdtMintable_jsonContract;
|
|
344
463
|
/**
|
|
345
464
|
* allowance
|
|
346
465
|
* view
|
|
347
466
|
*/
|
|
348
|
-
allowance(
|
|
467
|
+
allowance(owner_: `0x${string}`, spender: `0x${string}`): Promise<bigint>;
|
|
349
468
|
/**
|
|
350
469
|
* balanceOf
|
|
351
470
|
* view
|
|
352
471
|
*/
|
|
353
|
-
balanceOf(
|
|
472
|
+
balanceOf(who: `0x${string}`): Promise<bigint>;
|
|
354
473
|
/**
|
|
355
474
|
* decimals
|
|
356
475
|
* view
|
|
357
476
|
*/
|
|
358
477
|
decimals(): Promise<bigint>;
|
|
359
478
|
/**
|
|
360
|
-
*
|
|
479
|
+
* logoURI
|
|
361
480
|
* view
|
|
362
481
|
*/
|
|
363
|
-
|
|
482
|
+
logoURI(): Promise<string>;
|
|
364
483
|
/**
|
|
365
484
|
* name
|
|
366
485
|
* view
|
|
367
486
|
*/
|
|
368
487
|
name(): Promise<string>;
|
|
488
|
+
/**
|
|
489
|
+
* owner
|
|
490
|
+
* view
|
|
491
|
+
*/
|
|
492
|
+
owner(): Promise<`0x${string}`>;
|
|
369
493
|
/**
|
|
370
494
|
* symbol
|
|
371
495
|
* view
|
|
372
496
|
*/
|
|
373
497
|
symbol(): Promise<string>;
|
|
498
|
+
/**
|
|
499
|
+
* tokenURI
|
|
500
|
+
* view
|
|
501
|
+
*/
|
|
502
|
+
tokenURI(): Promise<string>;
|
|
374
503
|
/**
|
|
375
504
|
* totalSupply
|
|
376
505
|
* view
|
|
@@ -381,7 +510,41 @@ export declare class StandardToken_json {
|
|
|
381
510
|
* nonpayable
|
|
382
511
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
383
512
|
*/
|
|
384
|
-
approve(spender: `0x${string}`,
|
|
513
|
+
approve(spender: `0x${string}`, value: bigint, options?: {
|
|
514
|
+
accessList?: import('viem').AccessList;
|
|
515
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
516
|
+
chain?: import('viem').Chain | null;
|
|
517
|
+
dataSuffix?: `0x${string}`;
|
|
518
|
+
gas?: bigint;
|
|
519
|
+
gasPrice?: bigint;
|
|
520
|
+
maxFeePerGas?: bigint;
|
|
521
|
+
maxPriorityFeePerGas?: bigint;
|
|
522
|
+
nonce?: number;
|
|
523
|
+
value?: bigint;
|
|
524
|
+
}): Promise<`0x${string}`>;
|
|
525
|
+
/**
|
|
526
|
+
* decreaseApproval
|
|
527
|
+
* nonpayable
|
|
528
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
529
|
+
*/
|
|
530
|
+
decreaseApproval(spender: `0x${string}`, subtractedValue: bigint, options?: {
|
|
531
|
+
accessList?: import('viem').AccessList;
|
|
532
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
533
|
+
chain?: import('viem').Chain | null;
|
|
534
|
+
dataSuffix?: `0x${string}`;
|
|
535
|
+
gas?: bigint;
|
|
536
|
+
gasPrice?: bigint;
|
|
537
|
+
maxFeePerGas?: bigint;
|
|
538
|
+
maxPriorityFeePerGas?: bigint;
|
|
539
|
+
nonce?: number;
|
|
540
|
+
value?: bigint;
|
|
541
|
+
}): Promise<`0x${string}`>;
|
|
542
|
+
/**
|
|
543
|
+
* increaseApproval
|
|
544
|
+
* nonpayable
|
|
545
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
546
|
+
*/
|
|
547
|
+
increaseApproval(spender: `0x${string}`, addedValue: bigint, options?: {
|
|
385
548
|
accessList?: import('viem').AccessList;
|
|
386
549
|
authorizationList?: import('viem').AuthorizationList;
|
|
387
550
|
chain?: import('viem').Chain | null;
|
|
@@ -394,11 +557,11 @@ export declare class StandardToken_json {
|
|
|
394
557
|
value?: bigint;
|
|
395
558
|
}): Promise<`0x${string}`>;
|
|
396
559
|
/**
|
|
397
|
-
*
|
|
560
|
+
* mint
|
|
398
561
|
* nonpayable
|
|
399
562
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
400
563
|
*/
|
|
401
|
-
|
|
564
|
+
mint(to: `0x${string}`, value: bigint, options?: {
|
|
402
565
|
accessList?: import('viem').AccessList;
|
|
403
566
|
authorizationList?: import('viem').AuthorizationList;
|
|
404
567
|
chain?: import('viem').Chain | null;
|
|
@@ -411,11 +574,11 @@ export declare class StandardToken_json {
|
|
|
411
574
|
value?: bigint;
|
|
412
575
|
}): Promise<`0x${string}`>;
|
|
413
576
|
/**
|
|
414
|
-
*
|
|
577
|
+
* setLogoURI
|
|
415
578
|
* nonpayable
|
|
416
579
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
417
580
|
*/
|
|
418
|
-
|
|
581
|
+
setLogoURI(newURI: string, options?: {
|
|
419
582
|
accessList?: import('viem').AccessList;
|
|
420
583
|
authorizationList?: import('viem').AuthorizationList;
|
|
421
584
|
chain?: import('viem').Chain | null;
|
|
@@ -428,11 +591,11 @@ export declare class StandardToken_json {
|
|
|
428
591
|
value?: bigint;
|
|
429
592
|
}): Promise<`0x${string}`>;
|
|
430
593
|
/**
|
|
431
|
-
*
|
|
594
|
+
* setName
|
|
432
595
|
* nonpayable
|
|
433
596
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
434
597
|
*/
|
|
435
|
-
|
|
598
|
+
setName(newName: string, options?: {
|
|
436
599
|
accessList?: import('viem').AccessList;
|
|
437
600
|
authorizationList?: import('viem').AuthorizationList;
|
|
438
601
|
chain?: import('viem').Chain | null;
|
|
@@ -445,11 +608,11 @@ export declare class StandardToken_json {
|
|
|
445
608
|
value?: bigint;
|
|
446
609
|
}): Promise<`0x${string}`>;
|
|
447
610
|
/**
|
|
448
|
-
*
|
|
611
|
+
* setSymbol
|
|
449
612
|
* nonpayable
|
|
450
613
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
451
614
|
*/
|
|
452
|
-
|
|
615
|
+
setSymbol(newSymbol: string, options?: {
|
|
453
616
|
accessList?: import('viem').AccessList;
|
|
454
617
|
authorizationList?: import('viem').AuthorizationList;
|
|
455
618
|
chain?: import('viem').Chain | null;
|
|
@@ -462,11 +625,11 @@ export declare class StandardToken_json {
|
|
|
462
625
|
value?: bigint;
|
|
463
626
|
}): Promise<`0x${string}`>;
|
|
464
627
|
/**
|
|
465
|
-
*
|
|
628
|
+
* setTokenURI
|
|
466
629
|
* nonpayable
|
|
467
630
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
468
631
|
*/
|
|
469
|
-
|
|
632
|
+
setTokenURI(newURI: string, options?: {
|
|
470
633
|
accessList?: import('viem').AccessList;
|
|
471
634
|
authorizationList?: import('viem').AuthorizationList;
|
|
472
635
|
chain?: import('viem').Chain | null;
|
|
@@ -483,7 +646,7 @@ export declare class StandardToken_json {
|
|
|
483
646
|
* nonpayable
|
|
484
647
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
485
648
|
*/
|
|
486
|
-
transfer(to: `0x${string}`,
|
|
649
|
+
transfer(to: `0x${string}`, value: bigint, options?: {
|
|
487
650
|
accessList?: import('viem').AccessList;
|
|
488
651
|
authorizationList?: import('viem').AuthorizationList;
|
|
489
652
|
chain?: import('viem').Chain | null;
|
|
@@ -500,7 +663,24 @@ export declare class StandardToken_json {
|
|
|
500
663
|
* nonpayable
|
|
501
664
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
502
665
|
*/
|
|
503
|
-
transferFrom(from: `0x${string}`, to: `0x${string}`,
|
|
666
|
+
transferFrom(from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
|
|
667
|
+
accessList?: import('viem').AccessList;
|
|
668
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
669
|
+
chain?: import('viem').Chain | null;
|
|
670
|
+
dataSuffix?: `0x${string}`;
|
|
671
|
+
gas?: bigint;
|
|
672
|
+
gasPrice?: bigint;
|
|
673
|
+
maxFeePerGas?: bigint;
|
|
674
|
+
maxPriorityFeePerGas?: bigint;
|
|
675
|
+
nonce?: number;
|
|
676
|
+
value?: bigint;
|
|
677
|
+
}): Promise<`0x${string}`>;
|
|
678
|
+
/**
|
|
679
|
+
* transferOwnership
|
|
680
|
+
* nonpayable
|
|
681
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
682
|
+
*/
|
|
683
|
+
transferOwnership(newOwner: `0x${string}`, options?: {
|
|
504
684
|
accessList?: import('viem').AccessList;
|
|
505
685
|
authorizationList?: import('viem').AuthorizationList;
|
|
506
686
|
chain?: import('viem').Chain | null;
|
|
@@ -526,7 +706,7 @@ export declare class StandardToken_json {
|
|
|
526
706
|
* Returns gas estimate and result without sending transaction
|
|
527
707
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
528
708
|
*/
|
|
529
|
-
approve(spender: `0x${string}`,
|
|
709
|
+
approve(spender: `0x${string}`, value: bigint, options?: {
|
|
530
710
|
accessList?: import("viem").AccessList;
|
|
531
711
|
authorizationList?: import("viem").AuthorizationList;
|
|
532
712
|
chain?: import("viem").Chain | null;
|
|
@@ -539,11 +719,11 @@ export declare class StandardToken_json {
|
|
|
539
719
|
value?: bigint;
|
|
540
720
|
}): Promise<boolean>;
|
|
541
721
|
/**
|
|
542
|
-
* Simulate
|
|
722
|
+
* Simulate decreaseApproval
|
|
543
723
|
* Returns gas estimate and result without sending transaction
|
|
544
724
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
545
725
|
*/
|
|
546
|
-
|
|
726
|
+
decreaseApproval(spender: `0x${string}`, subtractedValue: bigint, options?: {
|
|
547
727
|
accessList?: import("viem").AccessList;
|
|
548
728
|
authorizationList?: import("viem").AuthorizationList;
|
|
549
729
|
chain?: import("viem").Chain | null;
|
|
@@ -554,13 +734,13 @@ export declare class StandardToken_json {
|
|
|
554
734
|
maxPriorityFeePerGas?: bigint;
|
|
555
735
|
nonce?: number;
|
|
556
736
|
value?: bigint;
|
|
557
|
-
}): Promise<
|
|
737
|
+
}): Promise<boolean>;
|
|
558
738
|
/**
|
|
559
|
-
* Simulate
|
|
739
|
+
* Simulate increaseApproval
|
|
560
740
|
* Returns gas estimate and result without sending transaction
|
|
561
741
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
562
742
|
*/
|
|
563
|
-
|
|
743
|
+
increaseApproval(spender: `0x${string}`, addedValue: bigint, options?: {
|
|
564
744
|
accessList?: import("viem").AccessList;
|
|
565
745
|
authorizationList?: import("viem").AuthorizationList;
|
|
566
746
|
chain?: import("viem").Chain | null;
|
|
@@ -571,13 +751,13 @@ export declare class StandardToken_json {
|
|
|
571
751
|
maxPriorityFeePerGas?: bigint;
|
|
572
752
|
nonce?: number;
|
|
573
753
|
value?: bigint;
|
|
574
|
-
}): Promise<
|
|
754
|
+
}): Promise<boolean>;
|
|
575
755
|
/**
|
|
576
|
-
* Simulate
|
|
756
|
+
* Simulate mint
|
|
577
757
|
* Returns gas estimate and result without sending transaction
|
|
578
758
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
579
759
|
*/
|
|
580
|
-
|
|
760
|
+
mint(to: `0x${string}`, value: bigint, options?: {
|
|
581
761
|
accessList?: import("viem").AccessList;
|
|
582
762
|
authorizationList?: import("viem").AuthorizationList;
|
|
583
763
|
chain?: import("viem").Chain | null;
|
|
@@ -590,11 +770,11 @@ export declare class StandardToken_json {
|
|
|
590
770
|
value?: bigint;
|
|
591
771
|
}): Promise<boolean>;
|
|
592
772
|
/**
|
|
593
|
-
* Simulate
|
|
773
|
+
* Simulate setLogoURI
|
|
594
774
|
* Returns gas estimate and result without sending transaction
|
|
595
775
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
596
776
|
*/
|
|
597
|
-
|
|
777
|
+
setLogoURI(newURI: string, options?: {
|
|
598
778
|
accessList?: import("viem").AccessList;
|
|
599
779
|
authorizationList?: import("viem").AuthorizationList;
|
|
600
780
|
chain?: import("viem").Chain | null;
|
|
@@ -605,13 +785,47 @@ export declare class StandardToken_json {
|
|
|
605
785
|
maxPriorityFeePerGas?: bigint;
|
|
606
786
|
nonce?: number;
|
|
607
787
|
value?: bigint;
|
|
608
|
-
}): Promise<
|
|
788
|
+
}): Promise<void>;
|
|
789
|
+
/**
|
|
790
|
+
* Simulate setName
|
|
791
|
+
* Returns gas estimate and result without sending transaction
|
|
792
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
793
|
+
*/
|
|
794
|
+
setName(newName: string, options?: {
|
|
795
|
+
accessList?: import("viem").AccessList;
|
|
796
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
797
|
+
chain?: import("viem").Chain | null;
|
|
798
|
+
dataSuffix?: `0x${string}`;
|
|
799
|
+
gas?: bigint;
|
|
800
|
+
gasPrice?: bigint;
|
|
801
|
+
maxFeePerGas?: bigint;
|
|
802
|
+
maxPriorityFeePerGas?: bigint;
|
|
803
|
+
nonce?: number;
|
|
804
|
+
value?: bigint;
|
|
805
|
+
}): Promise<void>;
|
|
609
806
|
/**
|
|
610
|
-
* Simulate
|
|
807
|
+
* Simulate setSymbol
|
|
611
808
|
* Returns gas estimate and result without sending transaction
|
|
612
809
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
613
810
|
*/
|
|
614
|
-
|
|
811
|
+
setSymbol(newSymbol: string, options?: {
|
|
812
|
+
accessList?: import("viem").AccessList;
|
|
813
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
814
|
+
chain?: import("viem").Chain | null;
|
|
815
|
+
dataSuffix?: `0x${string}`;
|
|
816
|
+
gas?: bigint;
|
|
817
|
+
gasPrice?: bigint;
|
|
818
|
+
maxFeePerGas?: bigint;
|
|
819
|
+
maxPriorityFeePerGas?: bigint;
|
|
820
|
+
nonce?: number;
|
|
821
|
+
value?: bigint;
|
|
822
|
+
}): Promise<void>;
|
|
823
|
+
/**
|
|
824
|
+
* Simulate setTokenURI
|
|
825
|
+
* Returns gas estimate and result without sending transaction
|
|
826
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
827
|
+
*/
|
|
828
|
+
setTokenURI(newURI: string, options?: {
|
|
615
829
|
accessList?: import("viem").AccessList;
|
|
616
830
|
authorizationList?: import("viem").AuthorizationList;
|
|
617
831
|
chain?: import("viem").Chain | null;
|
|
@@ -628,7 +842,7 @@ export declare class StandardToken_json {
|
|
|
628
842
|
* Returns gas estimate and result without sending transaction
|
|
629
843
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
630
844
|
*/
|
|
631
|
-
transfer(to: `0x${string}`,
|
|
845
|
+
transfer(to: `0x${string}`, value: bigint, options?: {
|
|
632
846
|
accessList?: import("viem").AccessList;
|
|
633
847
|
authorizationList?: import("viem").AuthorizationList;
|
|
634
848
|
chain?: import("viem").Chain | null;
|
|
@@ -645,7 +859,7 @@ export declare class StandardToken_json {
|
|
|
645
859
|
* Returns gas estimate and result without sending transaction
|
|
646
860
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
647
861
|
*/
|
|
648
|
-
transferFrom(from: `0x${string}`, to: `0x${string}`,
|
|
862
|
+
transferFrom(from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
|
|
649
863
|
accessList?: import("viem").AccessList;
|
|
650
864
|
authorizationList?: import("viem").AuthorizationList;
|
|
651
865
|
chain?: import("viem").Chain | null;
|
|
@@ -657,6 +871,23 @@ export declare class StandardToken_json {
|
|
|
657
871
|
nonce?: number;
|
|
658
872
|
value?: bigint;
|
|
659
873
|
}): Promise<boolean>;
|
|
874
|
+
/**
|
|
875
|
+
* Simulate transferOwnership
|
|
876
|
+
* Returns gas estimate and result without sending transaction
|
|
877
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
878
|
+
*/
|
|
879
|
+
transferOwnership(newOwner: `0x${string}`, options?: {
|
|
880
|
+
accessList?: import("viem").AccessList;
|
|
881
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
882
|
+
chain?: import("viem").Chain | null;
|
|
883
|
+
dataSuffix?: `0x${string}`;
|
|
884
|
+
gas?: bigint;
|
|
885
|
+
gasPrice?: bigint;
|
|
886
|
+
maxFeePerGas?: bigint;
|
|
887
|
+
maxPriorityFeePerGas?: bigint;
|
|
888
|
+
nonce?: number;
|
|
889
|
+
value?: bigint;
|
|
890
|
+
}): Promise<void>;
|
|
660
891
|
};
|
|
661
892
|
/**
|
|
662
893
|
* Watch contract events
|
|
@@ -686,13 +917,57 @@ export declare class StandardToken_json {
|
|
|
686
917
|
spender: `0x${string}`;
|
|
687
918
|
}) => () => void;
|
|
688
919
|
/**
|
|
689
|
-
* Watch
|
|
920
|
+
* Watch LogoURIChanged events
|
|
921
|
+
* @param callback Function to call when event is emitted
|
|
922
|
+
* @param filter Optional filter for indexed parameters
|
|
923
|
+
* @returns Unwatch function to stop listening
|
|
924
|
+
*/
|
|
925
|
+
LogoURIChanged: (callback: (event: {
|
|
926
|
+
previousURI: string;
|
|
927
|
+
newURI: string;
|
|
928
|
+
}) => void) => () => void;
|
|
929
|
+
/**
|
|
930
|
+
* Watch NameChanged events
|
|
931
|
+
* @param callback Function to call when event is emitted
|
|
932
|
+
* @param filter Optional filter for indexed parameters
|
|
933
|
+
* @returns Unwatch function to stop listening
|
|
934
|
+
*/
|
|
935
|
+
NameChanged: (callback: (event: {
|
|
936
|
+
previousName: string;
|
|
937
|
+
newName: string;
|
|
938
|
+
}) => void) => () => void;
|
|
939
|
+
/**
|
|
940
|
+
* Watch OwnershipTransferred events
|
|
941
|
+
* @param callback Function to call when event is emitted
|
|
942
|
+
* @param filter Optional filter for indexed parameters
|
|
943
|
+
* @returns Unwatch function to stop listening
|
|
944
|
+
*/
|
|
945
|
+
OwnershipTransferred: (callback: (event: {
|
|
946
|
+
previousOwner: `0x${string}`;
|
|
947
|
+
newOwner: `0x${string}`;
|
|
948
|
+
}) => void, filter?: {
|
|
949
|
+
previousOwner: `0x${string}`;
|
|
950
|
+
newOwner: `0x${string}`;
|
|
951
|
+
}) => () => void;
|
|
952
|
+
/**
|
|
953
|
+
* Watch SymbolChanged events
|
|
954
|
+
* @param callback Function to call when event is emitted
|
|
955
|
+
* @param filter Optional filter for indexed parameters
|
|
956
|
+
* @returns Unwatch function to stop listening
|
|
957
|
+
*/
|
|
958
|
+
SymbolChanged: (callback: (event: {
|
|
959
|
+
previousSymbol: string;
|
|
960
|
+
newSymbol: string;
|
|
961
|
+
}) => void) => () => void;
|
|
962
|
+
/**
|
|
963
|
+
* Watch TokenURIChanged events
|
|
690
964
|
* @param callback Function to call when event is emitted
|
|
691
965
|
* @param filter Optional filter for indexed parameters
|
|
692
966
|
* @returns Unwatch function to stop listening
|
|
693
967
|
*/
|
|
694
|
-
|
|
695
|
-
|
|
968
|
+
TokenURIChanged: (callback: (event: {
|
|
969
|
+
previousURI: string;
|
|
970
|
+
newURI: string;
|
|
696
971
|
}) => void) => () => void;
|
|
697
972
|
/**
|
|
698
973
|
* Watch Transfer events
|