@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
|
@@ -2,13 +2,34 @@ import type { Abi, Address, PublicClient, WalletClient, GetContractReturnType }
|
|
|
2
2
|
import { getContract } from 'viem';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* MusdtMintable_json ABI
|
|
6
6
|
*
|
|
7
7
|
* This ABI is typed using viem's type system for full type safety.
|
|
8
8
|
*/
|
|
9
|
-
export const
|
|
9
|
+
export const MusdtMintable_jsonAbi = [
|
|
10
10
|
{
|
|
11
|
-
"inputs": [
|
|
11
|
+
"inputs": [
|
|
12
|
+
{
|
|
13
|
+
"internalType": "string",
|
|
14
|
+
"name": "name_",
|
|
15
|
+
"type": "string"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"internalType": "string",
|
|
19
|
+
"name": "symbol_",
|
|
20
|
+
"type": "string"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"internalType": "string",
|
|
24
|
+
"name": "logoURI_",
|
|
25
|
+
"type": "string"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"internalType": "string",
|
|
29
|
+
"name": "tokenURI_",
|
|
30
|
+
"type": "string"
|
|
31
|
+
}
|
|
32
|
+
],
|
|
12
33
|
"stateMutability": "nonpayable",
|
|
13
34
|
"type": "constructor"
|
|
14
35
|
},
|
|
@@ -42,12 +63,94 @@ export const StandardToken_jsonAbi = [
|
|
|
42
63
|
"inputs": [
|
|
43
64
|
{
|
|
44
65
|
"indexed": false,
|
|
45
|
-
"internalType": "
|
|
46
|
-
"name": "
|
|
47
|
-
"type": "
|
|
66
|
+
"internalType": "string",
|
|
67
|
+
"name": "previousURI",
|
|
68
|
+
"type": "string"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"indexed": false,
|
|
72
|
+
"internalType": "string",
|
|
73
|
+
"name": "newURI",
|
|
74
|
+
"type": "string"
|
|
48
75
|
}
|
|
49
76
|
],
|
|
50
|
-
"name": "
|
|
77
|
+
"name": "LogoURIChanged",
|
|
78
|
+
"type": "event"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"anonymous": false,
|
|
82
|
+
"inputs": [
|
|
83
|
+
{
|
|
84
|
+
"indexed": false,
|
|
85
|
+
"internalType": "string",
|
|
86
|
+
"name": "previousName",
|
|
87
|
+
"type": "string"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"indexed": false,
|
|
91
|
+
"internalType": "string",
|
|
92
|
+
"name": "newName",
|
|
93
|
+
"type": "string"
|
|
94
|
+
}
|
|
95
|
+
],
|
|
96
|
+
"name": "NameChanged",
|
|
97
|
+
"type": "event"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"anonymous": false,
|
|
101
|
+
"inputs": [
|
|
102
|
+
{
|
|
103
|
+
"indexed": true,
|
|
104
|
+
"internalType": "address",
|
|
105
|
+
"name": "previousOwner",
|
|
106
|
+
"type": "address"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"indexed": true,
|
|
110
|
+
"internalType": "address",
|
|
111
|
+
"name": "newOwner",
|
|
112
|
+
"type": "address"
|
|
113
|
+
}
|
|
114
|
+
],
|
|
115
|
+
"name": "OwnershipTransferred",
|
|
116
|
+
"type": "event"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"anonymous": false,
|
|
120
|
+
"inputs": [
|
|
121
|
+
{
|
|
122
|
+
"indexed": false,
|
|
123
|
+
"internalType": "string",
|
|
124
|
+
"name": "previousSymbol",
|
|
125
|
+
"type": "string"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"indexed": false,
|
|
129
|
+
"internalType": "string",
|
|
130
|
+
"name": "newSymbol",
|
|
131
|
+
"type": "string"
|
|
132
|
+
}
|
|
133
|
+
],
|
|
134
|
+
"name": "SymbolChanged",
|
|
135
|
+
"type": "event"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"anonymous": false,
|
|
139
|
+
"inputs": [
|
|
140
|
+
{
|
|
141
|
+
"indexed": false,
|
|
142
|
+
"internalType": "string",
|
|
143
|
+
"name": "previousURI",
|
|
144
|
+
"type": "string"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"indexed": false,
|
|
148
|
+
"internalType": "string",
|
|
149
|
+
"name": "newURI",
|
|
150
|
+
"type": "string"
|
|
151
|
+
}
|
|
152
|
+
],
|
|
153
|
+
"name": "TokenURIChanged",
|
|
51
154
|
"type": "event"
|
|
52
155
|
},
|
|
53
156
|
{
|
|
@@ -79,7 +182,7 @@ export const StandardToken_jsonAbi = [
|
|
|
79
182
|
"inputs": [
|
|
80
183
|
{
|
|
81
184
|
"internalType": "address",
|
|
82
|
-
"name": "
|
|
185
|
+
"name": "owner_",
|
|
83
186
|
"type": "address"
|
|
84
187
|
},
|
|
85
188
|
{
|
|
@@ -108,7 +211,7 @@ export const StandardToken_jsonAbi = [
|
|
|
108
211
|
},
|
|
109
212
|
{
|
|
110
213
|
"internalType": "uint256",
|
|
111
|
-
"name": "
|
|
214
|
+
"name": "value",
|
|
112
215
|
"type": "uint256"
|
|
113
216
|
}
|
|
114
217
|
],
|
|
@@ -127,7 +230,7 @@ export const StandardToken_jsonAbi = [
|
|
|
127
230
|
"inputs": [
|
|
128
231
|
{
|
|
129
232
|
"internalType": "address",
|
|
130
|
-
"name": "
|
|
233
|
+
"name": "who",
|
|
131
234
|
"type": "address"
|
|
132
235
|
}
|
|
133
236
|
],
|
|
@@ -143,47 +246,40 @@ export const StandardToken_jsonAbi = [
|
|
|
143
246
|
"type": "function"
|
|
144
247
|
},
|
|
145
248
|
{
|
|
146
|
-
"inputs": [
|
|
249
|
+
"inputs": [],
|
|
250
|
+
"name": "decimals",
|
|
251
|
+
"outputs": [
|
|
147
252
|
{
|
|
148
|
-
"internalType": "
|
|
149
|
-
"name": "
|
|
150
|
-
"type": "
|
|
253
|
+
"internalType": "uint8",
|
|
254
|
+
"name": "",
|
|
255
|
+
"type": "uint8"
|
|
151
256
|
}
|
|
152
257
|
],
|
|
153
|
-
"
|
|
154
|
-
"outputs": [],
|
|
155
|
-
"stateMutability": "nonpayable",
|
|
258
|
+
"stateMutability": "view",
|
|
156
259
|
"type": "function"
|
|
157
260
|
},
|
|
158
261
|
{
|
|
159
262
|
"inputs": [
|
|
160
263
|
{
|
|
161
264
|
"internalType": "address",
|
|
162
|
-
"name": "
|
|
265
|
+
"name": "spender",
|
|
163
266
|
"type": "address"
|
|
164
267
|
},
|
|
165
268
|
{
|
|
166
269
|
"internalType": "uint256",
|
|
167
|
-
"name": "
|
|
270
|
+
"name": "subtractedValue",
|
|
168
271
|
"type": "uint256"
|
|
169
272
|
}
|
|
170
273
|
],
|
|
171
|
-
"name": "
|
|
172
|
-
"outputs": [],
|
|
173
|
-
"stateMutability": "nonpayable",
|
|
174
|
-
"type": "function"
|
|
175
|
-
},
|
|
176
|
-
{
|
|
177
|
-
"inputs": [],
|
|
178
|
-
"name": "decimals",
|
|
274
|
+
"name": "decreaseApproval",
|
|
179
275
|
"outputs": [
|
|
180
276
|
{
|
|
181
|
-
"internalType": "
|
|
277
|
+
"internalType": "bool",
|
|
182
278
|
"name": "",
|
|
183
|
-
"type": "
|
|
279
|
+
"type": "bool"
|
|
184
280
|
}
|
|
185
281
|
],
|
|
186
|
-
"stateMutability": "
|
|
282
|
+
"stateMutability": "nonpayable",
|
|
187
283
|
"type": "function"
|
|
188
284
|
},
|
|
189
285
|
{
|
|
@@ -195,11 +291,11 @@ export const StandardToken_jsonAbi = [
|
|
|
195
291
|
},
|
|
196
292
|
{
|
|
197
293
|
"internalType": "uint256",
|
|
198
|
-
"name": "
|
|
294
|
+
"name": "addedValue",
|
|
199
295
|
"type": "uint256"
|
|
200
296
|
}
|
|
201
297
|
],
|
|
202
|
-
"name": "
|
|
298
|
+
"name": "increaseApproval",
|
|
203
299
|
"outputs": [
|
|
204
300
|
{
|
|
205
301
|
"internalType": "bool",
|
|
@@ -210,20 +306,33 @@ export const StandardToken_jsonAbi = [
|
|
|
210
306
|
"stateMutability": "nonpayable",
|
|
211
307
|
"type": "function"
|
|
212
308
|
},
|
|
309
|
+
{
|
|
310
|
+
"inputs": [],
|
|
311
|
+
"name": "logoURI",
|
|
312
|
+
"outputs": [
|
|
313
|
+
{
|
|
314
|
+
"internalType": "string",
|
|
315
|
+
"name": "",
|
|
316
|
+
"type": "string"
|
|
317
|
+
}
|
|
318
|
+
],
|
|
319
|
+
"stateMutability": "view",
|
|
320
|
+
"type": "function"
|
|
321
|
+
},
|
|
213
322
|
{
|
|
214
323
|
"inputs": [
|
|
215
324
|
{
|
|
216
325
|
"internalType": "address",
|
|
217
|
-
"name": "
|
|
326
|
+
"name": "to",
|
|
218
327
|
"type": "address"
|
|
219
328
|
},
|
|
220
329
|
{
|
|
221
330
|
"internalType": "uint256",
|
|
222
|
-
"name": "
|
|
331
|
+
"name": "value",
|
|
223
332
|
"type": "uint256"
|
|
224
333
|
}
|
|
225
334
|
],
|
|
226
|
-
"name": "
|
|
335
|
+
"name": "mint",
|
|
227
336
|
"outputs": [
|
|
228
337
|
{
|
|
229
338
|
"internalType": "bool",
|
|
@@ -235,54 +344,86 @@ export const StandardToken_jsonAbi = [
|
|
|
235
344
|
"type": "function"
|
|
236
345
|
},
|
|
237
346
|
{
|
|
238
|
-
"inputs": [
|
|
347
|
+
"inputs": [],
|
|
348
|
+
"name": "name",
|
|
349
|
+
"outputs": [
|
|
350
|
+
{
|
|
351
|
+
"internalType": "string",
|
|
352
|
+
"name": "",
|
|
353
|
+
"type": "string"
|
|
354
|
+
}
|
|
355
|
+
],
|
|
356
|
+
"stateMutability": "view",
|
|
357
|
+
"type": "function"
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
"inputs": [],
|
|
361
|
+
"name": "owner",
|
|
362
|
+
"outputs": [
|
|
239
363
|
{
|
|
240
364
|
"internalType": "address",
|
|
241
|
-
"name": "
|
|
365
|
+
"name": "",
|
|
242
366
|
"type": "address"
|
|
243
|
-
}
|
|
367
|
+
}
|
|
368
|
+
],
|
|
369
|
+
"stateMutability": "view",
|
|
370
|
+
"type": "function"
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
"inputs": [
|
|
244
374
|
{
|
|
245
375
|
"internalType": "string",
|
|
246
|
-
"name": "
|
|
376
|
+
"name": "newURI",
|
|
247
377
|
"type": "string"
|
|
248
|
-
}
|
|
378
|
+
}
|
|
379
|
+
],
|
|
380
|
+
"name": "setLogoURI",
|
|
381
|
+
"outputs": [],
|
|
382
|
+
"stateMutability": "nonpayable",
|
|
383
|
+
"type": "function"
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
"inputs": [
|
|
249
387
|
{
|
|
250
388
|
"internalType": "string",
|
|
251
|
-
"name": "
|
|
389
|
+
"name": "newName",
|
|
252
390
|
"type": "string"
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
391
|
+
}
|
|
392
|
+
],
|
|
393
|
+
"name": "setName",
|
|
394
|
+
"outputs": [],
|
|
395
|
+
"stateMutability": "nonpayable",
|
|
396
|
+
"type": "function"
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
"inputs": [
|
|
259
400
|
{
|
|
260
|
-
"internalType": "
|
|
261
|
-
"name": "
|
|
262
|
-
"type": "
|
|
401
|
+
"internalType": "string",
|
|
402
|
+
"name": "newSymbol",
|
|
403
|
+
"type": "string"
|
|
263
404
|
}
|
|
264
405
|
],
|
|
265
|
-
"name": "
|
|
406
|
+
"name": "setSymbol",
|
|
266
407
|
"outputs": [],
|
|
267
408
|
"stateMutability": "nonpayable",
|
|
268
409
|
"type": "function"
|
|
269
410
|
},
|
|
270
411
|
{
|
|
271
|
-
"inputs": [
|
|
272
|
-
"name": "maxSupply",
|
|
273
|
-
"outputs": [
|
|
412
|
+
"inputs": [
|
|
274
413
|
{
|
|
275
|
-
"internalType": "
|
|
276
|
-
"name": "",
|
|
277
|
-
"type": "
|
|
414
|
+
"internalType": "string",
|
|
415
|
+
"name": "newURI",
|
|
416
|
+
"type": "string"
|
|
278
417
|
}
|
|
279
418
|
],
|
|
280
|
-
"
|
|
419
|
+
"name": "setTokenURI",
|
|
420
|
+
"outputs": [],
|
|
421
|
+
"stateMutability": "nonpayable",
|
|
281
422
|
"type": "function"
|
|
282
423
|
},
|
|
283
424
|
{
|
|
284
425
|
"inputs": [],
|
|
285
|
-
"name": "
|
|
426
|
+
"name": "symbol",
|
|
286
427
|
"outputs": [
|
|
287
428
|
{
|
|
288
429
|
"internalType": "string",
|
|
@@ -295,7 +436,7 @@ export const StandardToken_jsonAbi = [
|
|
|
295
436
|
},
|
|
296
437
|
{
|
|
297
438
|
"inputs": [],
|
|
298
|
-
"name": "
|
|
439
|
+
"name": "tokenURI",
|
|
299
440
|
"outputs": [
|
|
300
441
|
{
|
|
301
442
|
"internalType": "string",
|
|
@@ -328,7 +469,7 @@ export const StandardToken_jsonAbi = [
|
|
|
328
469
|
},
|
|
329
470
|
{
|
|
330
471
|
"internalType": "uint256",
|
|
331
|
-
"name": "
|
|
472
|
+
"name": "value",
|
|
332
473
|
"type": "uint256"
|
|
333
474
|
}
|
|
334
475
|
],
|
|
@@ -357,7 +498,7 @@ export const StandardToken_jsonAbi = [
|
|
|
357
498
|
},
|
|
358
499
|
{
|
|
359
500
|
"internalType": "uint256",
|
|
360
|
-
"name": "
|
|
501
|
+
"name": "value",
|
|
361
502
|
"type": "uint256"
|
|
362
503
|
}
|
|
363
504
|
],
|
|
@@ -371,23 +512,36 @@ export const StandardToken_jsonAbi = [
|
|
|
371
512
|
],
|
|
372
513
|
"stateMutability": "nonpayable",
|
|
373
514
|
"type": "function"
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
"inputs": [
|
|
518
|
+
{
|
|
519
|
+
"internalType": "address",
|
|
520
|
+
"name": "newOwner",
|
|
521
|
+
"type": "address"
|
|
522
|
+
}
|
|
523
|
+
],
|
|
524
|
+
"name": "transferOwnership",
|
|
525
|
+
"outputs": [],
|
|
526
|
+
"stateMutability": "nonpayable",
|
|
527
|
+
"type": "function"
|
|
374
528
|
}
|
|
375
529
|
] as const satisfies Abi;
|
|
376
530
|
|
|
377
531
|
/**
|
|
378
|
-
* Type-safe ABI for
|
|
532
|
+
* Type-safe ABI for MusdtMintable_json
|
|
379
533
|
*/
|
|
380
|
-
export type
|
|
534
|
+
export type MusdtMintable_jsonAbi = typeof MusdtMintable_jsonAbi;
|
|
381
535
|
|
|
382
536
|
/**
|
|
383
|
-
* Contract instance type for
|
|
537
|
+
* Contract instance type for MusdtMintable_json
|
|
384
538
|
*/
|
|
385
539
|
// Use any for contract type to avoid complex viem type issues
|
|
386
540
|
// The runtime behavior is type-safe through viem's ABI typing
|
|
387
|
-
export type
|
|
541
|
+
export type MusdtMintable_jsonContract = any;
|
|
388
542
|
|
|
389
543
|
/**
|
|
390
|
-
*
|
|
544
|
+
* MusdtMintable_json Contract Class
|
|
391
545
|
*
|
|
392
546
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
393
547
|
*
|
|
@@ -395,12 +549,12 @@ export type StandardToken_jsonContract = any;
|
|
|
395
549
|
* ```typescript
|
|
396
550
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
397
551
|
* import { mainnet } from 'viem/chains';
|
|
398
|
-
* import {
|
|
552
|
+
* import { MusdtMintable_json } from 'MusdtMintable_json';
|
|
399
553
|
*
|
|
400
554
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
401
555
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
402
556
|
*
|
|
403
|
-
* const contract = new
|
|
557
|
+
* const contract = new MusdtMintable_json('0x...', { publicClient, walletClient });
|
|
404
558
|
*
|
|
405
559
|
* // Read functions
|
|
406
560
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -418,8 +572,8 @@ export type StandardToken_jsonContract = any;
|
|
|
418
572
|
* });
|
|
419
573
|
* ```
|
|
420
574
|
*/
|
|
421
|
-
export class
|
|
422
|
-
private contract:
|
|
575
|
+
export class MusdtMintable_json {
|
|
576
|
+
private contract: MusdtMintable_jsonContract;
|
|
423
577
|
private contractAddress: Address;
|
|
424
578
|
private publicClient: PublicClient;
|
|
425
579
|
|
|
@@ -434,7 +588,7 @@ export class StandardToken_json {
|
|
|
434
588
|
this.publicClient = clients.publicClient;
|
|
435
589
|
this.contract = getContract({
|
|
436
590
|
address,
|
|
437
|
-
abi:
|
|
591
|
+
abi: MusdtMintable_jsonAbi,
|
|
438
592
|
client: {
|
|
439
593
|
public: clients.publicClient,
|
|
440
594
|
wallet: clients.walletClient,
|
|
@@ -452,7 +606,7 @@ export class StandardToken_json {
|
|
|
452
606
|
/**
|
|
453
607
|
* Get the underlying viem contract instance
|
|
454
608
|
*/
|
|
455
|
-
getContract():
|
|
609
|
+
getContract(): MusdtMintable_jsonContract {
|
|
456
610
|
return this.contract;
|
|
457
611
|
}
|
|
458
612
|
|
|
@@ -460,16 +614,16 @@ export class StandardToken_json {
|
|
|
460
614
|
* allowance
|
|
461
615
|
* view
|
|
462
616
|
*/
|
|
463
|
-
async allowance(
|
|
464
|
-
return this.contract.read.allowance([
|
|
617
|
+
async allowance(owner_: `0x${string}`, spender: `0x${string}`): Promise<bigint> {
|
|
618
|
+
return this.contract.read.allowance([owner_, spender] as const) as Promise<bigint>;
|
|
465
619
|
}
|
|
466
620
|
|
|
467
621
|
/**
|
|
468
622
|
* balanceOf
|
|
469
623
|
* view
|
|
470
624
|
*/
|
|
471
|
-
async balanceOf(
|
|
472
|
-
return this.contract.read.balanceOf([
|
|
625
|
+
async balanceOf(who: `0x${string}`): Promise<bigint> {
|
|
626
|
+
return this.contract.read.balanceOf([who] as const) as Promise<bigint>;
|
|
473
627
|
}
|
|
474
628
|
|
|
475
629
|
/**
|
|
@@ -481,11 +635,11 @@ export class StandardToken_json {
|
|
|
481
635
|
}
|
|
482
636
|
|
|
483
637
|
/**
|
|
484
|
-
*
|
|
638
|
+
* logoURI
|
|
485
639
|
* view
|
|
486
640
|
*/
|
|
487
|
-
async
|
|
488
|
-
return this.contract.read.
|
|
641
|
+
async logoURI(): Promise<string> {
|
|
642
|
+
return this.contract.read.logoURI() as Promise<string>;
|
|
489
643
|
}
|
|
490
644
|
|
|
491
645
|
/**
|
|
@@ -496,6 +650,14 @@ export class StandardToken_json {
|
|
|
496
650
|
return this.contract.read.name() as Promise<string>;
|
|
497
651
|
}
|
|
498
652
|
|
|
653
|
+
/**
|
|
654
|
+
* owner
|
|
655
|
+
* view
|
|
656
|
+
*/
|
|
657
|
+
async owner(): Promise<`0x${string}`> {
|
|
658
|
+
return this.contract.read.owner() as Promise<`0x${string}`>;
|
|
659
|
+
}
|
|
660
|
+
|
|
499
661
|
/**
|
|
500
662
|
* symbol
|
|
501
663
|
* view
|
|
@@ -504,6 +666,14 @@ export class StandardToken_json {
|
|
|
504
666
|
return this.contract.read.symbol() as Promise<string>;
|
|
505
667
|
}
|
|
506
668
|
|
|
669
|
+
/**
|
|
670
|
+
* tokenURI
|
|
671
|
+
* view
|
|
672
|
+
*/
|
|
673
|
+
async tokenURI(): Promise<string> {
|
|
674
|
+
return this.contract.read.tokenURI() as Promise<string>;
|
|
675
|
+
}
|
|
676
|
+
|
|
507
677
|
/**
|
|
508
678
|
* totalSupply
|
|
509
679
|
* view
|
|
@@ -517,7 +687,53 @@ export class StandardToken_json {
|
|
|
517
687
|
* nonpayable
|
|
518
688
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
519
689
|
*/
|
|
520
|
-
async approve(spender: `0x${string}`,
|
|
690
|
+
async approve(spender: `0x${string}`, value: bigint, options?: {
|
|
691
|
+
accessList?: import('viem').AccessList;
|
|
692
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
693
|
+
chain?: import('viem').Chain | null;
|
|
694
|
+
dataSuffix?: `0x${string}`;
|
|
695
|
+
gas?: bigint;
|
|
696
|
+
gasPrice?: bigint;
|
|
697
|
+
maxFeePerGas?: bigint;
|
|
698
|
+
maxPriorityFeePerGas?: bigint;
|
|
699
|
+
nonce?: number;
|
|
700
|
+
value?: bigint;
|
|
701
|
+
}): Promise<`0x${string}`> {
|
|
702
|
+
if (!this.contract.write) {
|
|
703
|
+
throw new Error('Wallet client is required for write operations');
|
|
704
|
+
}
|
|
705
|
+
return this.contract.write.approve([spender, value] as const, options) as Promise<`0x${string}`>;
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
/**
|
|
709
|
+
* decreaseApproval
|
|
710
|
+
* nonpayable
|
|
711
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
712
|
+
*/
|
|
713
|
+
async decreaseApproval(spender: `0x${string}`, subtractedValue: bigint, options?: {
|
|
714
|
+
accessList?: import('viem').AccessList;
|
|
715
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
716
|
+
chain?: import('viem').Chain | null;
|
|
717
|
+
dataSuffix?: `0x${string}`;
|
|
718
|
+
gas?: bigint;
|
|
719
|
+
gasPrice?: bigint;
|
|
720
|
+
maxFeePerGas?: bigint;
|
|
721
|
+
maxPriorityFeePerGas?: bigint;
|
|
722
|
+
nonce?: number;
|
|
723
|
+
value?: bigint;
|
|
724
|
+
}): Promise<`0x${string}`> {
|
|
725
|
+
if (!this.contract.write) {
|
|
726
|
+
throw new Error('Wallet client is required for write operations');
|
|
727
|
+
}
|
|
728
|
+
return this.contract.write.decreaseApproval([spender, subtractedValue] as const, options) as Promise<`0x${string}`>;
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
/**
|
|
732
|
+
* increaseApproval
|
|
733
|
+
* nonpayable
|
|
734
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
735
|
+
*/
|
|
736
|
+
async increaseApproval(spender: `0x${string}`, addedValue: bigint, options?: {
|
|
521
737
|
accessList?: import('viem').AccessList;
|
|
522
738
|
authorizationList?: import('viem').AuthorizationList;
|
|
523
739
|
chain?: import('viem').Chain | null;
|
|
@@ -532,15 +748,15 @@ export class StandardToken_json {
|
|
|
532
748
|
if (!this.contract.write) {
|
|
533
749
|
throw new Error('Wallet client is required for write operations');
|
|
534
750
|
}
|
|
535
|
-
return this.contract.write.
|
|
751
|
+
return this.contract.write.increaseApproval([spender, addedValue] as const, options) as Promise<`0x${string}`>;
|
|
536
752
|
}
|
|
537
753
|
|
|
538
754
|
/**
|
|
539
|
-
*
|
|
755
|
+
* mint
|
|
540
756
|
* nonpayable
|
|
541
757
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
542
758
|
*/
|
|
543
|
-
async
|
|
759
|
+
async mint(to: `0x${string}`, value: bigint, options?: {
|
|
544
760
|
accessList?: import('viem').AccessList;
|
|
545
761
|
authorizationList?: import('viem').AuthorizationList;
|
|
546
762
|
chain?: import('viem').Chain | null;
|
|
@@ -555,15 +771,15 @@ export class StandardToken_json {
|
|
|
555
771
|
if (!this.contract.write) {
|
|
556
772
|
throw new Error('Wallet client is required for write operations');
|
|
557
773
|
}
|
|
558
|
-
return this.contract.write.
|
|
774
|
+
return this.contract.write.mint([to, value] as const, options) as Promise<`0x${string}`>;
|
|
559
775
|
}
|
|
560
776
|
|
|
561
777
|
/**
|
|
562
|
-
*
|
|
778
|
+
* setLogoURI
|
|
563
779
|
* nonpayable
|
|
564
780
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
565
781
|
*/
|
|
566
|
-
async
|
|
782
|
+
async setLogoURI(newURI: string, options?: {
|
|
567
783
|
accessList?: import('viem').AccessList;
|
|
568
784
|
authorizationList?: import('viem').AuthorizationList;
|
|
569
785
|
chain?: import('viem').Chain | null;
|
|
@@ -578,15 +794,15 @@ export class StandardToken_json {
|
|
|
578
794
|
if (!this.contract.write) {
|
|
579
795
|
throw new Error('Wallet client is required for write operations');
|
|
580
796
|
}
|
|
581
|
-
return this.contract.write.
|
|
797
|
+
return this.contract.write.setLogoURI([newURI] as const, options) as Promise<`0x${string}`>;
|
|
582
798
|
}
|
|
583
799
|
|
|
584
800
|
/**
|
|
585
|
-
*
|
|
801
|
+
* setName
|
|
586
802
|
* nonpayable
|
|
587
803
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
588
804
|
*/
|
|
589
|
-
async
|
|
805
|
+
async setName(newName: string, options?: {
|
|
590
806
|
accessList?: import('viem').AccessList;
|
|
591
807
|
authorizationList?: import('viem').AuthorizationList;
|
|
592
808
|
chain?: import('viem').Chain | null;
|
|
@@ -601,15 +817,15 @@ export class StandardToken_json {
|
|
|
601
817
|
if (!this.contract.write) {
|
|
602
818
|
throw new Error('Wallet client is required for write operations');
|
|
603
819
|
}
|
|
604
|
-
return this.contract.write.
|
|
820
|
+
return this.contract.write.setName([newName] as const, options) as Promise<`0x${string}`>;
|
|
605
821
|
}
|
|
606
822
|
|
|
607
823
|
/**
|
|
608
|
-
*
|
|
824
|
+
* setSymbol
|
|
609
825
|
* nonpayable
|
|
610
826
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
611
827
|
*/
|
|
612
|
-
async
|
|
828
|
+
async setSymbol(newSymbol: string, options?: {
|
|
613
829
|
accessList?: import('viem').AccessList;
|
|
614
830
|
authorizationList?: import('viem').AuthorizationList;
|
|
615
831
|
chain?: import('viem').Chain | null;
|
|
@@ -624,15 +840,15 @@ export class StandardToken_json {
|
|
|
624
840
|
if (!this.contract.write) {
|
|
625
841
|
throw new Error('Wallet client is required for write operations');
|
|
626
842
|
}
|
|
627
|
-
return this.contract.write.
|
|
843
|
+
return this.contract.write.setSymbol([newSymbol] as const, options) as Promise<`0x${string}`>;
|
|
628
844
|
}
|
|
629
845
|
|
|
630
846
|
/**
|
|
631
|
-
*
|
|
847
|
+
* setTokenURI
|
|
632
848
|
* nonpayable
|
|
633
849
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
634
850
|
*/
|
|
635
|
-
async
|
|
851
|
+
async setTokenURI(newURI: string, options?: {
|
|
636
852
|
accessList?: import('viem').AccessList;
|
|
637
853
|
authorizationList?: import('viem').AuthorizationList;
|
|
638
854
|
chain?: import('viem').Chain | null;
|
|
@@ -647,7 +863,7 @@ export class StandardToken_json {
|
|
|
647
863
|
if (!this.contract.write) {
|
|
648
864
|
throw new Error('Wallet client is required for write operations');
|
|
649
865
|
}
|
|
650
|
-
return this.contract.write.
|
|
866
|
+
return this.contract.write.setTokenURI([newURI] as const, options) as Promise<`0x${string}`>;
|
|
651
867
|
}
|
|
652
868
|
|
|
653
869
|
/**
|
|
@@ -655,7 +871,7 @@ export class StandardToken_json {
|
|
|
655
871
|
* nonpayable
|
|
656
872
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
657
873
|
*/
|
|
658
|
-
async transfer(to: `0x${string}`,
|
|
874
|
+
async transfer(to: `0x${string}`, value: bigint, options?: {
|
|
659
875
|
accessList?: import('viem').AccessList;
|
|
660
876
|
authorizationList?: import('viem').AuthorizationList;
|
|
661
877
|
chain?: import('viem').Chain | null;
|
|
@@ -670,7 +886,7 @@ export class StandardToken_json {
|
|
|
670
886
|
if (!this.contract.write) {
|
|
671
887
|
throw new Error('Wallet client is required for write operations');
|
|
672
888
|
}
|
|
673
|
-
return this.contract.write.transfer([to,
|
|
889
|
+
return this.contract.write.transfer([to, value] as const, options) as Promise<`0x${string}`>;
|
|
674
890
|
}
|
|
675
891
|
|
|
676
892
|
/**
|
|
@@ -678,7 +894,30 @@ export class StandardToken_json {
|
|
|
678
894
|
* nonpayable
|
|
679
895
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
680
896
|
*/
|
|
681
|
-
async transferFrom(from: `0x${string}`, to: `0x${string}`,
|
|
897
|
+
async transferFrom(from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
|
|
898
|
+
accessList?: import('viem').AccessList;
|
|
899
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
900
|
+
chain?: import('viem').Chain | null;
|
|
901
|
+
dataSuffix?: `0x${string}`;
|
|
902
|
+
gas?: bigint;
|
|
903
|
+
gasPrice?: bigint;
|
|
904
|
+
maxFeePerGas?: bigint;
|
|
905
|
+
maxPriorityFeePerGas?: bigint;
|
|
906
|
+
nonce?: number;
|
|
907
|
+
value?: bigint;
|
|
908
|
+
}): Promise<`0x${string}`> {
|
|
909
|
+
if (!this.contract.write) {
|
|
910
|
+
throw new Error('Wallet client is required for write operations');
|
|
911
|
+
}
|
|
912
|
+
return this.contract.write.transferFrom([from, to, value] as const, options) as Promise<`0x${string}`>;
|
|
913
|
+
}
|
|
914
|
+
|
|
915
|
+
/**
|
|
916
|
+
* transferOwnership
|
|
917
|
+
* nonpayable
|
|
918
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
919
|
+
*/
|
|
920
|
+
async transferOwnership(newOwner: `0x${string}`, options?: {
|
|
682
921
|
accessList?: import('viem').AccessList;
|
|
683
922
|
authorizationList?: import('viem').AuthorizationList;
|
|
684
923
|
chain?: import('viem').Chain | null;
|
|
@@ -693,7 +932,7 @@ export class StandardToken_json {
|
|
|
693
932
|
if (!this.contract.write) {
|
|
694
933
|
throw new Error('Wallet client is required for write operations');
|
|
695
934
|
}
|
|
696
|
-
return this.contract.write.
|
|
935
|
+
return this.contract.write.transferOwnership([newOwner] as const, options) as Promise<`0x${string}`>;
|
|
697
936
|
}
|
|
698
937
|
|
|
699
938
|
|
|
@@ -717,7 +956,7 @@ export class StandardToken_json {
|
|
|
717
956
|
* Returns gas estimate and result without sending transaction
|
|
718
957
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
719
958
|
*/
|
|
720
|
-
async approve(spender: `0x${string}`,
|
|
959
|
+
async approve(spender: `0x${string}`, value: bigint, options?: {
|
|
721
960
|
accessList?: import('viem').AccessList;
|
|
722
961
|
authorizationList?: import('viem').AuthorizationList;
|
|
723
962
|
chain?: import('viem').Chain | null;
|
|
@@ -729,14 +968,14 @@ export class StandardToken_json {
|
|
|
729
968
|
nonce?: number;
|
|
730
969
|
value?: bigint;
|
|
731
970
|
}): Promise<boolean> {
|
|
732
|
-
return contract.simulate.approve([spender,
|
|
971
|
+
return contract.simulate.approve([spender, value] as const, options) as Promise<boolean>;
|
|
733
972
|
},
|
|
734
973
|
/**
|
|
735
|
-
* Simulate
|
|
974
|
+
* Simulate decreaseApproval
|
|
736
975
|
* Returns gas estimate and result without sending transaction
|
|
737
976
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
738
977
|
*/
|
|
739
|
-
async
|
|
978
|
+
async decreaseApproval(spender: `0x${string}`, subtractedValue: bigint, options?: {
|
|
740
979
|
accessList?: import('viem').AccessList;
|
|
741
980
|
authorizationList?: import('viem').AuthorizationList;
|
|
742
981
|
chain?: import('viem').Chain | null;
|
|
@@ -747,15 +986,15 @@ export class StandardToken_json {
|
|
|
747
986
|
maxPriorityFeePerGas?: bigint;
|
|
748
987
|
nonce?: number;
|
|
749
988
|
value?: bigint;
|
|
750
|
-
}): Promise<
|
|
751
|
-
return contract.simulate.
|
|
989
|
+
}): Promise<boolean> {
|
|
990
|
+
return contract.simulate.decreaseApproval([spender, subtractedValue] as const, options) as Promise<boolean>;
|
|
752
991
|
},
|
|
753
992
|
/**
|
|
754
|
-
* Simulate
|
|
993
|
+
* Simulate increaseApproval
|
|
755
994
|
* Returns gas estimate and result without sending transaction
|
|
756
995
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
757
996
|
*/
|
|
758
|
-
async
|
|
997
|
+
async increaseApproval(spender: `0x${string}`, addedValue: bigint, options?: {
|
|
759
998
|
accessList?: import('viem').AccessList;
|
|
760
999
|
authorizationList?: import('viem').AuthorizationList;
|
|
761
1000
|
chain?: import('viem').Chain | null;
|
|
@@ -766,15 +1005,15 @@ export class StandardToken_json {
|
|
|
766
1005
|
maxPriorityFeePerGas?: bigint;
|
|
767
1006
|
nonce?: number;
|
|
768
1007
|
value?: bigint;
|
|
769
|
-
}): Promise<
|
|
770
|
-
return contract.simulate.
|
|
1008
|
+
}): Promise<boolean> {
|
|
1009
|
+
return contract.simulate.increaseApproval([spender, addedValue] as const, options) as Promise<boolean>;
|
|
771
1010
|
},
|
|
772
1011
|
/**
|
|
773
|
-
* Simulate
|
|
1012
|
+
* Simulate mint
|
|
774
1013
|
* Returns gas estimate and result without sending transaction
|
|
775
1014
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
776
1015
|
*/
|
|
777
|
-
async
|
|
1016
|
+
async mint(to: `0x${string}`, value: bigint, options?: {
|
|
778
1017
|
accessList?: import('viem').AccessList;
|
|
779
1018
|
authorizationList?: import('viem').AuthorizationList;
|
|
780
1019
|
chain?: import('viem').Chain | null;
|
|
@@ -786,14 +1025,14 @@ export class StandardToken_json {
|
|
|
786
1025
|
nonce?: number;
|
|
787
1026
|
value?: bigint;
|
|
788
1027
|
}): Promise<boolean> {
|
|
789
|
-
return contract.simulate.
|
|
1028
|
+
return contract.simulate.mint([to, value] as const, options) as Promise<boolean>;
|
|
790
1029
|
},
|
|
791
1030
|
/**
|
|
792
|
-
* Simulate
|
|
1031
|
+
* Simulate setLogoURI
|
|
793
1032
|
* Returns gas estimate and result without sending transaction
|
|
794
1033
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
795
1034
|
*/
|
|
796
|
-
async
|
|
1035
|
+
async setLogoURI(newURI: string, options?: {
|
|
797
1036
|
accessList?: import('viem').AccessList;
|
|
798
1037
|
authorizationList?: import('viem').AuthorizationList;
|
|
799
1038
|
chain?: import('viem').Chain | null;
|
|
@@ -804,15 +1043,34 @@ export class StandardToken_json {
|
|
|
804
1043
|
maxPriorityFeePerGas?: bigint;
|
|
805
1044
|
nonce?: number;
|
|
806
1045
|
value?: bigint;
|
|
807
|
-
}): Promise<
|
|
808
|
-
return contract.simulate.
|
|
1046
|
+
}): Promise<void> {
|
|
1047
|
+
return contract.simulate.setLogoURI([newURI] as const, options) as Promise<void>;
|
|
1048
|
+
},
|
|
1049
|
+
/**
|
|
1050
|
+
* Simulate setName
|
|
1051
|
+
* Returns gas estimate and result without sending transaction
|
|
1052
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1053
|
+
*/
|
|
1054
|
+
async setName(newName: string, options?: {
|
|
1055
|
+
accessList?: import('viem').AccessList;
|
|
1056
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1057
|
+
chain?: import('viem').Chain | null;
|
|
1058
|
+
dataSuffix?: `0x${string}`;
|
|
1059
|
+
gas?: bigint;
|
|
1060
|
+
gasPrice?: bigint;
|
|
1061
|
+
maxFeePerGas?: bigint;
|
|
1062
|
+
maxPriorityFeePerGas?: bigint;
|
|
1063
|
+
nonce?: number;
|
|
1064
|
+
value?: bigint;
|
|
1065
|
+
}): Promise<void> {
|
|
1066
|
+
return contract.simulate.setName([newName] as const, options) as Promise<void>;
|
|
809
1067
|
},
|
|
810
1068
|
/**
|
|
811
|
-
* Simulate
|
|
1069
|
+
* Simulate setSymbol
|
|
812
1070
|
* Returns gas estimate and result without sending transaction
|
|
813
1071
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
814
1072
|
*/
|
|
815
|
-
async
|
|
1073
|
+
async setSymbol(newSymbol: string, options?: {
|
|
816
1074
|
accessList?: import('viem').AccessList;
|
|
817
1075
|
authorizationList?: import('viem').AuthorizationList;
|
|
818
1076
|
chain?: import('viem').Chain | null;
|
|
@@ -824,14 +1082,33 @@ export class StandardToken_json {
|
|
|
824
1082
|
nonce?: number;
|
|
825
1083
|
value?: bigint;
|
|
826
1084
|
}): Promise<void> {
|
|
827
|
-
return contract.simulate.
|
|
1085
|
+
return contract.simulate.setSymbol([newSymbol] as const, options) as Promise<void>;
|
|
1086
|
+
},
|
|
1087
|
+
/**
|
|
1088
|
+
* Simulate setTokenURI
|
|
1089
|
+
* Returns gas estimate and result without sending transaction
|
|
1090
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1091
|
+
*/
|
|
1092
|
+
async setTokenURI(newURI: string, options?: {
|
|
1093
|
+
accessList?: import('viem').AccessList;
|
|
1094
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1095
|
+
chain?: import('viem').Chain | null;
|
|
1096
|
+
dataSuffix?: `0x${string}`;
|
|
1097
|
+
gas?: bigint;
|
|
1098
|
+
gasPrice?: bigint;
|
|
1099
|
+
maxFeePerGas?: bigint;
|
|
1100
|
+
maxPriorityFeePerGas?: bigint;
|
|
1101
|
+
nonce?: number;
|
|
1102
|
+
value?: bigint;
|
|
1103
|
+
}): Promise<void> {
|
|
1104
|
+
return contract.simulate.setTokenURI([newURI] as const, options) as Promise<void>;
|
|
828
1105
|
},
|
|
829
1106
|
/**
|
|
830
1107
|
* Simulate transfer
|
|
831
1108
|
* Returns gas estimate and result without sending transaction
|
|
832
1109
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
833
1110
|
*/
|
|
834
|
-
async transfer(to: `0x${string}`,
|
|
1111
|
+
async transfer(to: `0x${string}`, value: bigint, options?: {
|
|
835
1112
|
accessList?: import('viem').AccessList;
|
|
836
1113
|
authorizationList?: import('viem').AuthorizationList;
|
|
837
1114
|
chain?: import('viem').Chain | null;
|
|
@@ -843,14 +1120,14 @@ export class StandardToken_json {
|
|
|
843
1120
|
nonce?: number;
|
|
844
1121
|
value?: bigint;
|
|
845
1122
|
}): Promise<boolean> {
|
|
846
|
-
return contract.simulate.transfer([to,
|
|
1123
|
+
return contract.simulate.transfer([to, value] as const, options) as Promise<boolean>;
|
|
847
1124
|
},
|
|
848
1125
|
/**
|
|
849
1126
|
* Simulate transferFrom
|
|
850
1127
|
* Returns gas estimate and result without sending transaction
|
|
851
1128
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
852
1129
|
*/
|
|
853
|
-
async transferFrom(from: `0x${string}`, to: `0x${string}`,
|
|
1130
|
+
async transferFrom(from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
|
|
854
1131
|
accessList?: import('viem').AccessList;
|
|
855
1132
|
authorizationList?: import('viem').AuthorizationList;
|
|
856
1133
|
chain?: import('viem').Chain | null;
|
|
@@ -862,7 +1139,26 @@ export class StandardToken_json {
|
|
|
862
1139
|
nonce?: number;
|
|
863
1140
|
value?: bigint;
|
|
864
1141
|
}): Promise<boolean> {
|
|
865
|
-
return contract.simulate.transferFrom([from, to,
|
|
1142
|
+
return contract.simulate.transferFrom([from, to, value] as const, options) as Promise<boolean>;
|
|
1143
|
+
},
|
|
1144
|
+
/**
|
|
1145
|
+
* Simulate transferOwnership
|
|
1146
|
+
* Returns gas estimate and result without sending transaction
|
|
1147
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1148
|
+
*/
|
|
1149
|
+
async transferOwnership(newOwner: `0x${string}`, options?: {
|
|
1150
|
+
accessList?: import('viem').AccessList;
|
|
1151
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1152
|
+
chain?: import('viem').Chain | null;
|
|
1153
|
+
dataSuffix?: `0x${string}`;
|
|
1154
|
+
gas?: bigint;
|
|
1155
|
+
gasPrice?: bigint;
|
|
1156
|
+
maxFeePerGas?: bigint;
|
|
1157
|
+
maxPriorityFeePerGas?: bigint;
|
|
1158
|
+
nonce?: number;
|
|
1159
|
+
value?: bigint;
|
|
1160
|
+
}): Promise<void> {
|
|
1161
|
+
return contract.simulate.transferOwnership([newOwner] as const, options) as Promise<void>;
|
|
866
1162
|
}
|
|
867
1163
|
};
|
|
868
1164
|
}
|
|
@@ -890,7 +1186,7 @@ export class StandardToken_json {
|
|
|
890
1186
|
Approval: (callback: (event: { owner: `0x${string}`; spender: `0x${string}`; value: bigint }) => void, filter?: { owner: `0x${string}`; spender: `0x${string}` }) => {
|
|
891
1187
|
return this.publicClient.watchContractEvent({
|
|
892
1188
|
address: this.contractAddress,
|
|
893
|
-
abi:
|
|
1189
|
+
abi: MusdtMintable_jsonAbi,
|
|
894
1190
|
eventName: 'Approval',
|
|
895
1191
|
args: filter,
|
|
896
1192
|
onLogs: (logs: any[]) => {
|
|
@@ -901,16 +1197,92 @@ export class StandardToken_json {
|
|
|
901
1197
|
}) as () => void;
|
|
902
1198
|
},
|
|
903
1199
|
/**
|
|
904
|
-
* Watch
|
|
1200
|
+
* Watch LogoURIChanged events
|
|
1201
|
+
* @param callback Function to call when event is emitted
|
|
1202
|
+
* @param filter Optional filter for indexed parameters
|
|
1203
|
+
* @returns Unwatch function to stop listening
|
|
1204
|
+
*/
|
|
1205
|
+
LogoURIChanged: (callback: (event: { previousURI: string; newURI: string }) => void) => {
|
|
1206
|
+
return this.publicClient.watchContractEvent({
|
|
1207
|
+
address: this.contractAddress,
|
|
1208
|
+
abi: MusdtMintable_jsonAbi,
|
|
1209
|
+
eventName: 'LogoURIChanged',
|
|
1210
|
+
|
|
1211
|
+
onLogs: (logs: any[]) => {
|
|
1212
|
+
logs.forEach((log: any) => {
|
|
1213
|
+
callback(log.args as any);
|
|
1214
|
+
});
|
|
1215
|
+
},
|
|
1216
|
+
}) as () => void;
|
|
1217
|
+
},
|
|
1218
|
+
/**
|
|
1219
|
+
* Watch NameChanged events
|
|
1220
|
+
* @param callback Function to call when event is emitted
|
|
1221
|
+
* @param filter Optional filter for indexed parameters
|
|
1222
|
+
* @returns Unwatch function to stop listening
|
|
1223
|
+
*/
|
|
1224
|
+
NameChanged: (callback: (event: { previousName: string; newName: string }) => void) => {
|
|
1225
|
+
return this.publicClient.watchContractEvent({
|
|
1226
|
+
address: this.contractAddress,
|
|
1227
|
+
abi: MusdtMintable_jsonAbi,
|
|
1228
|
+
eventName: 'NameChanged',
|
|
1229
|
+
|
|
1230
|
+
onLogs: (logs: any[]) => {
|
|
1231
|
+
logs.forEach((log: any) => {
|
|
1232
|
+
callback(log.args as any);
|
|
1233
|
+
});
|
|
1234
|
+
},
|
|
1235
|
+
}) as () => void;
|
|
1236
|
+
},
|
|
1237
|
+
/**
|
|
1238
|
+
* Watch OwnershipTransferred events
|
|
1239
|
+
* @param callback Function to call when event is emitted
|
|
1240
|
+
* @param filter Optional filter for indexed parameters
|
|
1241
|
+
* @returns Unwatch function to stop listening
|
|
1242
|
+
*/
|
|
1243
|
+
OwnershipTransferred: (callback: (event: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => void, filter?: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => {
|
|
1244
|
+
return this.publicClient.watchContractEvent({
|
|
1245
|
+
address: this.contractAddress,
|
|
1246
|
+
abi: MusdtMintable_jsonAbi,
|
|
1247
|
+
eventName: 'OwnershipTransferred',
|
|
1248
|
+
args: filter,
|
|
1249
|
+
onLogs: (logs: any[]) => {
|
|
1250
|
+
logs.forEach((log: any) => {
|
|
1251
|
+
callback(log.args as any);
|
|
1252
|
+
});
|
|
1253
|
+
},
|
|
1254
|
+
}) as () => void;
|
|
1255
|
+
},
|
|
1256
|
+
/**
|
|
1257
|
+
* Watch SymbolChanged events
|
|
1258
|
+
* @param callback Function to call when event is emitted
|
|
1259
|
+
* @param filter Optional filter for indexed parameters
|
|
1260
|
+
* @returns Unwatch function to stop listening
|
|
1261
|
+
*/
|
|
1262
|
+
SymbolChanged: (callback: (event: { previousSymbol: string; newSymbol: string }) => void) => {
|
|
1263
|
+
return this.publicClient.watchContractEvent({
|
|
1264
|
+
address: this.contractAddress,
|
|
1265
|
+
abi: MusdtMintable_jsonAbi,
|
|
1266
|
+
eventName: 'SymbolChanged',
|
|
1267
|
+
|
|
1268
|
+
onLogs: (logs: any[]) => {
|
|
1269
|
+
logs.forEach((log: any) => {
|
|
1270
|
+
callback(log.args as any);
|
|
1271
|
+
});
|
|
1272
|
+
},
|
|
1273
|
+
}) as () => void;
|
|
1274
|
+
},
|
|
1275
|
+
/**
|
|
1276
|
+
* Watch TokenURIChanged events
|
|
905
1277
|
* @param callback Function to call when event is emitted
|
|
906
1278
|
* @param filter Optional filter for indexed parameters
|
|
907
1279
|
* @returns Unwatch function to stop listening
|
|
908
1280
|
*/
|
|
909
|
-
|
|
1281
|
+
TokenURIChanged: (callback: (event: { previousURI: string; newURI: string }) => void) => {
|
|
910
1282
|
return this.publicClient.watchContractEvent({
|
|
911
1283
|
address: this.contractAddress,
|
|
912
|
-
abi:
|
|
913
|
-
eventName: '
|
|
1284
|
+
abi: MusdtMintable_jsonAbi,
|
|
1285
|
+
eventName: 'TokenURIChanged',
|
|
914
1286
|
|
|
915
1287
|
onLogs: (logs: any[]) => {
|
|
916
1288
|
logs.forEach((log: any) => {
|
|
@@ -928,7 +1300,7 @@ export class StandardToken_json {
|
|
|
928
1300
|
Transfer: (callback: (event: { from: `0x${string}`; to: `0x${string}`; value: bigint }) => void, filter?: { from: `0x${string}`; to: `0x${string}` }) => {
|
|
929
1301
|
return this.publicClient.watchContractEvent({
|
|
930
1302
|
address: this.contractAddress,
|
|
931
|
-
abi:
|
|
1303
|
+
abi: MusdtMintable_jsonAbi,
|
|
932
1304
|
eventName: 'Transfer',
|
|
933
1305
|
args: filter,
|
|
934
1306
|
onLogs: (logs: any[]) => {
|