@gitmyabi/usd 1.0.6 → 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 +4 -4
- package/contracts/{MusdtMintable_json.d.ts → UltimateTokenOwnable_json.d.ts} +480 -233
- package/contracts/{MusdtMintable_json.js → UltimateTokenOwnable_json.js} +482 -273
- package/contracts/{MusdtMintable_json.ts → UltimateTokenOwnable_json.ts} +588 -285
- 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,37 +1,127 @@
|
|
|
1
1
|
import type { Abi, Address, PublicClient, WalletClient, GetContractReturnType } from 'viem';
|
|
2
2
|
import { getContract } from 'viem';
|
|
3
3
|
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* AuthInfo struct type
|
|
7
|
+
*/
|
|
8
|
+
export type AuthInfo = {
|
|
9
|
+
owner: `0x${string}`;
|
|
10
|
+
};
|
|
11
|
+
|
|
4
12
|
/**
|
|
5
|
-
*
|
|
13
|
+
* TokenInfo struct type
|
|
14
|
+
*/
|
|
15
|
+
export type TokenInfo = {
|
|
16
|
+
name: string;
|
|
17
|
+
symbol: string;
|
|
18
|
+
decimals: bigint;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* SupplyInfo struct type
|
|
23
|
+
*/
|
|
24
|
+
export type SupplyInfo = {
|
|
25
|
+
mintTarget: `0x${string}`;
|
|
26
|
+
initialSupply: bigint;
|
|
27
|
+
maxSupply: bigint;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* UltimateTokenOwnable_json ABI
|
|
6
31
|
*
|
|
7
32
|
* This ABI is typed using viem's type system for full type safety.
|
|
8
33
|
*/
|
|
9
|
-
export const
|
|
34
|
+
export const UltimateTokenOwnable_jsonAbi = [
|
|
35
|
+
{
|
|
36
|
+
"inputs": [],
|
|
37
|
+
"name": "AllowanceOverflow",
|
|
38
|
+
"type": "error"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"inputs": [],
|
|
42
|
+
"name": "AllowanceUnderflow",
|
|
43
|
+
"type": "error"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"inputs": [],
|
|
47
|
+
"name": "AlreadyInitialized",
|
|
48
|
+
"type": "error"
|
|
49
|
+
},
|
|
10
50
|
{
|
|
11
51
|
"inputs": [
|
|
12
52
|
{
|
|
13
|
-
"internalType": "
|
|
14
|
-
"name": "
|
|
15
|
-
"type": "
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"internalType": "string",
|
|
19
|
-
"name": "symbol_",
|
|
20
|
-
"type": "string"
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"internalType": "string",
|
|
24
|
-
"name": "logoURI_",
|
|
25
|
-
"type": "string"
|
|
53
|
+
"internalType": "uint256",
|
|
54
|
+
"name": "increasedSupply",
|
|
55
|
+
"type": "uint256"
|
|
26
56
|
},
|
|
27
57
|
{
|
|
28
|
-
"internalType": "
|
|
29
|
-
"name": "
|
|
30
|
-
"type": "
|
|
58
|
+
"internalType": "uint256",
|
|
59
|
+
"name": "maxSupply",
|
|
60
|
+
"type": "uint256"
|
|
31
61
|
}
|
|
32
62
|
],
|
|
33
|
-
"
|
|
34
|
-
"type": "
|
|
63
|
+
"name": "ERC20ExceededCap",
|
|
64
|
+
"type": "error"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"inputs": [],
|
|
68
|
+
"name": "ERC20TransferPaused",
|
|
69
|
+
"type": "error"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"inputs": [],
|
|
73
|
+
"name": "InsufficientAllowance",
|
|
74
|
+
"type": "error"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"inputs": [],
|
|
78
|
+
"name": "InsufficientBalance",
|
|
79
|
+
"type": "error"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"inputs": [],
|
|
83
|
+
"name": "InvalidInitialization",
|
|
84
|
+
"type": "error"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"inputs": [],
|
|
88
|
+
"name": "InvalidPermit",
|
|
89
|
+
"type": "error"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"inputs": [],
|
|
93
|
+
"name": "NewOwnerIsZeroAddress",
|
|
94
|
+
"type": "error"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"inputs": [],
|
|
98
|
+
"name": "NoHandoverRequest",
|
|
99
|
+
"type": "error"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"inputs": [],
|
|
103
|
+
"name": "NotInitializing",
|
|
104
|
+
"type": "error"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"inputs": [],
|
|
108
|
+
"name": "Permit2AllowanceIsFixedAtInfinity",
|
|
109
|
+
"type": "error"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"inputs": [],
|
|
113
|
+
"name": "PermitExpired",
|
|
114
|
+
"type": "error"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"inputs": [],
|
|
118
|
+
"name": "TotalSupplyOverflow",
|
|
119
|
+
"type": "error"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"inputs": [],
|
|
123
|
+
"name": "Unauthorized",
|
|
124
|
+
"type": "error"
|
|
35
125
|
},
|
|
36
126
|
{
|
|
37
127
|
"anonymous": false,
|
|
@@ -51,7 +141,7 @@ export const MusdtMintable_jsonAbi = [
|
|
|
51
141
|
{
|
|
52
142
|
"indexed": false,
|
|
53
143
|
"internalType": "uint256",
|
|
54
|
-
"name": "
|
|
144
|
+
"name": "amount",
|
|
55
145
|
"type": "uint256"
|
|
56
146
|
}
|
|
57
147
|
],
|
|
@@ -63,37 +153,12 @@ export const MusdtMintable_jsonAbi = [
|
|
|
63
153
|
"inputs": [
|
|
64
154
|
{
|
|
65
155
|
"indexed": false,
|
|
66
|
-
"internalType": "
|
|
67
|
-
"name": "
|
|
68
|
-
"type": "
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
"indexed": false,
|
|
72
|
-
"internalType": "string",
|
|
73
|
-
"name": "newURI",
|
|
74
|
-
"type": "string"
|
|
75
|
-
}
|
|
76
|
-
],
|
|
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"
|
|
156
|
+
"internalType": "uint64",
|
|
157
|
+
"name": "version",
|
|
158
|
+
"type": "uint64"
|
|
94
159
|
}
|
|
95
160
|
],
|
|
96
|
-
"name": "
|
|
161
|
+
"name": "Initialized",
|
|
97
162
|
"type": "event"
|
|
98
163
|
},
|
|
99
164
|
{
|
|
@@ -102,55 +167,43 @@ export const MusdtMintable_jsonAbi = [
|
|
|
102
167
|
{
|
|
103
168
|
"indexed": true,
|
|
104
169
|
"internalType": "address",
|
|
105
|
-
"name": "
|
|
106
|
-
"type": "address"
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
"indexed": true,
|
|
110
|
-
"internalType": "address",
|
|
111
|
-
"name": "newOwner",
|
|
170
|
+
"name": "pendingOwner",
|
|
112
171
|
"type": "address"
|
|
113
172
|
}
|
|
114
173
|
],
|
|
115
|
-
"name": "
|
|
174
|
+
"name": "OwnershipHandoverCanceled",
|
|
116
175
|
"type": "event"
|
|
117
176
|
},
|
|
118
177
|
{
|
|
119
178
|
"anonymous": false,
|
|
120
179
|
"inputs": [
|
|
121
180
|
{
|
|
122
|
-
"indexed":
|
|
123
|
-
"internalType": "
|
|
124
|
-
"name": "
|
|
125
|
-
"type": "
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
"indexed": false,
|
|
129
|
-
"internalType": "string",
|
|
130
|
-
"name": "newSymbol",
|
|
131
|
-
"type": "string"
|
|
181
|
+
"indexed": true,
|
|
182
|
+
"internalType": "address",
|
|
183
|
+
"name": "pendingOwner",
|
|
184
|
+
"type": "address"
|
|
132
185
|
}
|
|
133
186
|
],
|
|
134
|
-
"name": "
|
|
187
|
+
"name": "OwnershipHandoverRequested",
|
|
135
188
|
"type": "event"
|
|
136
189
|
},
|
|
137
190
|
{
|
|
138
191
|
"anonymous": false,
|
|
139
192
|
"inputs": [
|
|
140
193
|
{
|
|
141
|
-
"indexed":
|
|
142
|
-
"internalType": "
|
|
143
|
-
"name": "
|
|
144
|
-
"type": "
|
|
194
|
+
"indexed": true,
|
|
195
|
+
"internalType": "address",
|
|
196
|
+
"name": "oldOwner",
|
|
197
|
+
"type": "address"
|
|
145
198
|
},
|
|
146
199
|
{
|
|
147
|
-
"indexed":
|
|
148
|
-
"internalType": "
|
|
149
|
-
"name": "
|
|
150
|
-
"type": "
|
|
200
|
+
"indexed": true,
|
|
201
|
+
"internalType": "address",
|
|
202
|
+
"name": "newOwner",
|
|
203
|
+
"type": "address"
|
|
151
204
|
}
|
|
152
205
|
],
|
|
153
|
-
"name": "
|
|
206
|
+
"name": "OwnershipTransferred",
|
|
154
207
|
"type": "event"
|
|
155
208
|
},
|
|
156
209
|
{
|
|
@@ -171,18 +224,31 @@ export const MusdtMintable_jsonAbi = [
|
|
|
171
224
|
{
|
|
172
225
|
"indexed": false,
|
|
173
226
|
"internalType": "uint256",
|
|
174
|
-
"name": "
|
|
227
|
+
"name": "amount",
|
|
175
228
|
"type": "uint256"
|
|
176
229
|
}
|
|
177
230
|
],
|
|
178
231
|
"name": "Transfer",
|
|
179
232
|
"type": "event"
|
|
180
233
|
},
|
|
234
|
+
{
|
|
235
|
+
"inputs": [],
|
|
236
|
+
"name": "DOMAIN_SEPARATOR",
|
|
237
|
+
"outputs": [
|
|
238
|
+
{
|
|
239
|
+
"internalType": "bytes32",
|
|
240
|
+
"name": "result",
|
|
241
|
+
"type": "bytes32"
|
|
242
|
+
}
|
|
243
|
+
],
|
|
244
|
+
"stateMutability": "view",
|
|
245
|
+
"type": "function"
|
|
246
|
+
},
|
|
181
247
|
{
|
|
182
248
|
"inputs": [
|
|
183
249
|
{
|
|
184
250
|
"internalType": "address",
|
|
185
|
-
"name": "
|
|
251
|
+
"name": "owner",
|
|
186
252
|
"type": "address"
|
|
187
253
|
},
|
|
188
254
|
{
|
|
@@ -195,7 +261,7 @@ export const MusdtMintable_jsonAbi = [
|
|
|
195
261
|
"outputs": [
|
|
196
262
|
{
|
|
197
263
|
"internalType": "uint256",
|
|
198
|
-
"name": "",
|
|
264
|
+
"name": "result",
|
|
199
265
|
"type": "uint256"
|
|
200
266
|
}
|
|
201
267
|
],
|
|
@@ -211,7 +277,7 @@ export const MusdtMintable_jsonAbi = [
|
|
|
211
277
|
},
|
|
212
278
|
{
|
|
213
279
|
"internalType": "uint256",
|
|
214
|
-
"name": "
|
|
280
|
+
"name": "amount",
|
|
215
281
|
"type": "uint256"
|
|
216
282
|
}
|
|
217
283
|
],
|
|
@@ -230,7 +296,7 @@ export const MusdtMintable_jsonAbi = [
|
|
|
230
296
|
"inputs": [
|
|
231
297
|
{
|
|
232
298
|
"internalType": "address",
|
|
233
|
-
"name": "
|
|
299
|
+
"name": "owner",
|
|
234
300
|
"type": "address"
|
|
235
301
|
}
|
|
236
302
|
],
|
|
@@ -238,7 +304,7 @@ export const MusdtMintable_jsonAbi = [
|
|
|
238
304
|
"outputs": [
|
|
239
305
|
{
|
|
240
306
|
"internalType": "uint256",
|
|
241
|
-
"name": "",
|
|
307
|
+
"name": "result",
|
|
242
308
|
"type": "uint256"
|
|
243
309
|
}
|
|
244
310
|
],
|
|
@@ -246,74 +312,130 @@ export const MusdtMintable_jsonAbi = [
|
|
|
246
312
|
"type": "function"
|
|
247
313
|
},
|
|
248
314
|
{
|
|
249
|
-
"inputs": [
|
|
250
|
-
"name": "decimals",
|
|
251
|
-
"outputs": [
|
|
315
|
+
"inputs": [
|
|
252
316
|
{
|
|
253
|
-
"internalType": "
|
|
254
|
-
"name": "",
|
|
255
|
-
"type": "
|
|
317
|
+
"internalType": "uint256",
|
|
318
|
+
"name": "value",
|
|
319
|
+
"type": "uint256"
|
|
256
320
|
}
|
|
257
321
|
],
|
|
258
|
-
"
|
|
322
|
+
"name": "burn",
|
|
323
|
+
"outputs": [],
|
|
324
|
+
"stateMutability": "nonpayable",
|
|
325
|
+
"type": "function"
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"inputs": [],
|
|
329
|
+
"name": "cancelOwnershipHandover",
|
|
330
|
+
"outputs": [],
|
|
331
|
+
"stateMutability": "payable",
|
|
259
332
|
"type": "function"
|
|
260
333
|
},
|
|
261
334
|
{
|
|
262
335
|
"inputs": [
|
|
263
336
|
{
|
|
264
337
|
"internalType": "address",
|
|
265
|
-
"name": "
|
|
338
|
+
"name": "pendingOwner",
|
|
266
339
|
"type": "address"
|
|
267
|
-
},
|
|
268
|
-
{
|
|
269
|
-
"internalType": "uint256",
|
|
270
|
-
"name": "subtractedValue",
|
|
271
|
-
"type": "uint256"
|
|
272
340
|
}
|
|
273
341
|
],
|
|
274
|
-
"name": "
|
|
342
|
+
"name": "completeOwnershipHandover",
|
|
343
|
+
"outputs": [],
|
|
344
|
+
"stateMutability": "payable",
|
|
345
|
+
"type": "function"
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"inputs": [],
|
|
349
|
+
"name": "decimals",
|
|
275
350
|
"outputs": [
|
|
276
351
|
{
|
|
277
|
-
"internalType": "
|
|
352
|
+
"internalType": "uint8",
|
|
278
353
|
"name": "",
|
|
279
|
-
"type": "
|
|
354
|
+
"type": "uint8"
|
|
280
355
|
}
|
|
281
356
|
],
|
|
357
|
+
"stateMutability": "view",
|
|
358
|
+
"type": "function"
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
"inputs": [],
|
|
362
|
+
"name": "disableInitializer",
|
|
363
|
+
"outputs": [],
|
|
282
364
|
"stateMutability": "nonpayable",
|
|
283
365
|
"type": "function"
|
|
284
366
|
},
|
|
285
367
|
{
|
|
286
368
|
"inputs": [
|
|
287
369
|
{
|
|
288
|
-
"
|
|
289
|
-
|
|
290
|
-
|
|
370
|
+
"components": [
|
|
371
|
+
{
|
|
372
|
+
"internalType": "address",
|
|
373
|
+
"name": "owner",
|
|
374
|
+
"type": "address"
|
|
375
|
+
}
|
|
376
|
+
],
|
|
377
|
+
"internalType": "struct AuthInfo",
|
|
378
|
+
"name": "authInfo",
|
|
379
|
+
"type": "tuple"
|
|
291
380
|
},
|
|
292
381
|
{
|
|
293
|
-
"
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
382
|
+
"components": [
|
|
383
|
+
{
|
|
384
|
+
"internalType": "string",
|
|
385
|
+
"name": "name",
|
|
386
|
+
"type": "string"
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
"internalType": "string",
|
|
390
|
+
"name": "symbol",
|
|
391
|
+
"type": "string"
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
"internalType": "uint8",
|
|
395
|
+
"name": "decimals",
|
|
396
|
+
"type": "uint8"
|
|
397
|
+
}
|
|
398
|
+
],
|
|
399
|
+
"internalType": "struct TokenInfo",
|
|
400
|
+
"name": "tokenInfo",
|
|
401
|
+
"type": "tuple"
|
|
402
|
+
},
|
|
300
403
|
{
|
|
301
|
-
"
|
|
302
|
-
|
|
303
|
-
|
|
404
|
+
"components": [
|
|
405
|
+
{
|
|
406
|
+
"internalType": "address",
|
|
407
|
+
"name": "mintTarget",
|
|
408
|
+
"type": "address"
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
"internalType": "uint256",
|
|
412
|
+
"name": "initialSupply",
|
|
413
|
+
"type": "uint256"
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
"internalType": "uint256",
|
|
417
|
+
"name": "maxSupply",
|
|
418
|
+
"type": "uint256"
|
|
419
|
+
}
|
|
420
|
+
],
|
|
421
|
+
"internalType": "struct SupplyInfo",
|
|
422
|
+
"name": "supplyInfo",
|
|
423
|
+
"type": "tuple"
|
|
304
424
|
}
|
|
305
425
|
],
|
|
426
|
+
"name": "initialize",
|
|
427
|
+
"outputs": [],
|
|
306
428
|
"stateMutability": "nonpayable",
|
|
307
429
|
"type": "function"
|
|
308
430
|
},
|
|
309
431
|
{
|
|
310
432
|
"inputs": [],
|
|
311
|
-
"name": "
|
|
433
|
+
"name": "maxSupply",
|
|
312
434
|
"outputs": [
|
|
313
435
|
{
|
|
314
|
-
"internalType": "
|
|
436
|
+
"internalType": "uint256",
|
|
315
437
|
"name": "",
|
|
316
|
-
"type": "
|
|
438
|
+
"type": "uint256"
|
|
317
439
|
}
|
|
318
440
|
],
|
|
319
441
|
"stateMutability": "view",
|
|
@@ -328,18 +450,12 @@ export const MusdtMintable_jsonAbi = [
|
|
|
328
450
|
},
|
|
329
451
|
{
|
|
330
452
|
"internalType": "uint256",
|
|
331
|
-
"name": "
|
|
453
|
+
"name": "amount",
|
|
332
454
|
"type": "uint256"
|
|
333
455
|
}
|
|
334
456
|
],
|
|
335
457
|
"name": "mint",
|
|
336
|
-
"outputs": [
|
|
337
|
-
{
|
|
338
|
-
"internalType": "bool",
|
|
339
|
-
"name": "",
|
|
340
|
-
"type": "bool"
|
|
341
|
-
}
|
|
342
|
-
],
|
|
458
|
+
"outputs": [],
|
|
343
459
|
"stateMutability": "nonpayable",
|
|
344
460
|
"type": "function"
|
|
345
461
|
},
|
|
@@ -356,13 +472,32 @@ export const MusdtMintable_jsonAbi = [
|
|
|
356
472
|
"stateMutability": "view",
|
|
357
473
|
"type": "function"
|
|
358
474
|
},
|
|
475
|
+
{
|
|
476
|
+
"inputs": [
|
|
477
|
+
{
|
|
478
|
+
"internalType": "address",
|
|
479
|
+
"name": "owner",
|
|
480
|
+
"type": "address"
|
|
481
|
+
}
|
|
482
|
+
],
|
|
483
|
+
"name": "nonces",
|
|
484
|
+
"outputs": [
|
|
485
|
+
{
|
|
486
|
+
"internalType": "uint256",
|
|
487
|
+
"name": "result",
|
|
488
|
+
"type": "uint256"
|
|
489
|
+
}
|
|
490
|
+
],
|
|
491
|
+
"stateMutability": "view",
|
|
492
|
+
"type": "function"
|
|
493
|
+
},
|
|
359
494
|
{
|
|
360
495
|
"inputs": [],
|
|
361
496
|
"name": "owner",
|
|
362
497
|
"outputs": [
|
|
363
498
|
{
|
|
364
499
|
"internalType": "address",
|
|
365
|
-
"name": "",
|
|
500
|
+
"name": "result",
|
|
366
501
|
"type": "address"
|
|
367
502
|
}
|
|
368
503
|
],
|
|
@@ -372,71 +507,108 @@ export const MusdtMintable_jsonAbi = [
|
|
|
372
507
|
{
|
|
373
508
|
"inputs": [
|
|
374
509
|
{
|
|
375
|
-
"internalType": "
|
|
376
|
-
"name": "
|
|
377
|
-
"type": "
|
|
510
|
+
"internalType": "address",
|
|
511
|
+
"name": "pendingOwner",
|
|
512
|
+
"type": "address"
|
|
378
513
|
}
|
|
379
514
|
],
|
|
380
|
-
"name": "
|
|
381
|
-
"outputs": [
|
|
382
|
-
|
|
515
|
+
"name": "ownershipHandoverExpiresAt",
|
|
516
|
+
"outputs": [
|
|
517
|
+
{
|
|
518
|
+
"internalType": "uint256",
|
|
519
|
+
"name": "result",
|
|
520
|
+
"type": "uint256"
|
|
521
|
+
}
|
|
522
|
+
],
|
|
523
|
+
"stateMutability": "view",
|
|
383
524
|
"type": "function"
|
|
384
525
|
},
|
|
385
526
|
{
|
|
386
|
-
"inputs": [
|
|
527
|
+
"inputs": [],
|
|
528
|
+
"name": "paused",
|
|
529
|
+
"outputs": [
|
|
387
530
|
{
|
|
388
|
-
"internalType": "
|
|
389
|
-
"name": "
|
|
390
|
-
"type": "
|
|
531
|
+
"internalType": "bool",
|
|
532
|
+
"name": "",
|
|
533
|
+
"type": "bool"
|
|
391
534
|
}
|
|
392
535
|
],
|
|
393
|
-
"
|
|
394
|
-
"outputs": [],
|
|
395
|
-
"stateMutability": "nonpayable",
|
|
536
|
+
"stateMutability": "view",
|
|
396
537
|
"type": "function"
|
|
397
538
|
},
|
|
398
539
|
{
|
|
399
540
|
"inputs": [
|
|
400
541
|
{
|
|
401
|
-
"internalType": "
|
|
402
|
-
"name": "
|
|
403
|
-
"type": "
|
|
542
|
+
"internalType": "address",
|
|
543
|
+
"name": "owner",
|
|
544
|
+
"type": "address"
|
|
545
|
+
},
|
|
546
|
+
{
|
|
547
|
+
"internalType": "address",
|
|
548
|
+
"name": "spender",
|
|
549
|
+
"type": "address"
|
|
550
|
+
},
|
|
551
|
+
{
|
|
552
|
+
"internalType": "uint256",
|
|
553
|
+
"name": "value",
|
|
554
|
+
"type": "uint256"
|
|
555
|
+
},
|
|
556
|
+
{
|
|
557
|
+
"internalType": "uint256",
|
|
558
|
+
"name": "deadline",
|
|
559
|
+
"type": "uint256"
|
|
560
|
+
},
|
|
561
|
+
{
|
|
562
|
+
"internalType": "uint8",
|
|
563
|
+
"name": "v",
|
|
564
|
+
"type": "uint8"
|
|
565
|
+
},
|
|
566
|
+
{
|
|
567
|
+
"internalType": "bytes32",
|
|
568
|
+
"name": "r",
|
|
569
|
+
"type": "bytes32"
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
"internalType": "bytes32",
|
|
573
|
+
"name": "s",
|
|
574
|
+
"type": "bytes32"
|
|
404
575
|
}
|
|
405
576
|
],
|
|
406
|
-
"name": "
|
|
577
|
+
"name": "permit",
|
|
407
578
|
"outputs": [],
|
|
408
579
|
"stateMutability": "nonpayable",
|
|
409
580
|
"type": "function"
|
|
410
581
|
},
|
|
411
582
|
{
|
|
412
|
-
"inputs": [
|
|
413
|
-
|
|
414
|
-
"internalType": "string",
|
|
415
|
-
"name": "newURI",
|
|
416
|
-
"type": "string"
|
|
417
|
-
}
|
|
418
|
-
],
|
|
419
|
-
"name": "setTokenURI",
|
|
583
|
+
"inputs": [],
|
|
584
|
+
"name": "renounceOwnership",
|
|
420
585
|
"outputs": [],
|
|
421
|
-
"stateMutability": "
|
|
586
|
+
"stateMutability": "payable",
|
|
422
587
|
"type": "function"
|
|
423
588
|
},
|
|
424
589
|
{
|
|
425
590
|
"inputs": [],
|
|
426
|
-
"name": "
|
|
427
|
-
"outputs": [
|
|
591
|
+
"name": "requestOwnershipHandover",
|
|
592
|
+
"outputs": [],
|
|
593
|
+
"stateMutability": "payable",
|
|
594
|
+
"type": "function"
|
|
595
|
+
},
|
|
596
|
+
{
|
|
597
|
+
"inputs": [
|
|
428
598
|
{
|
|
429
|
-
"internalType": "
|
|
430
|
-
"name": "",
|
|
431
|
-
"type": "
|
|
599
|
+
"internalType": "bool",
|
|
600
|
+
"name": "_paused",
|
|
601
|
+
"type": "bool"
|
|
432
602
|
}
|
|
433
603
|
],
|
|
434
|
-
"
|
|
604
|
+
"name": "setTransferPaused",
|
|
605
|
+
"outputs": [],
|
|
606
|
+
"stateMutability": "nonpayable",
|
|
435
607
|
"type": "function"
|
|
436
608
|
},
|
|
437
609
|
{
|
|
438
610
|
"inputs": [],
|
|
439
|
-
"name": "
|
|
611
|
+
"name": "symbol",
|
|
440
612
|
"outputs": [
|
|
441
613
|
{
|
|
442
614
|
"internalType": "string",
|
|
@@ -453,7 +625,7 @@ export const MusdtMintable_jsonAbi = [
|
|
|
453
625
|
"outputs": [
|
|
454
626
|
{
|
|
455
627
|
"internalType": "uint256",
|
|
456
|
-
"name": "",
|
|
628
|
+
"name": "result",
|
|
457
629
|
"type": "uint256"
|
|
458
630
|
}
|
|
459
631
|
],
|
|
@@ -469,7 +641,7 @@ export const MusdtMintable_jsonAbi = [
|
|
|
469
641
|
},
|
|
470
642
|
{
|
|
471
643
|
"internalType": "uint256",
|
|
472
|
-
"name": "
|
|
644
|
+
"name": "amount",
|
|
473
645
|
"type": "uint256"
|
|
474
646
|
}
|
|
475
647
|
],
|
|
@@ -498,7 +670,7 @@ export const MusdtMintable_jsonAbi = [
|
|
|
498
670
|
},
|
|
499
671
|
{
|
|
500
672
|
"internalType": "uint256",
|
|
501
|
-
"name": "
|
|
673
|
+
"name": "amount",
|
|
502
674
|
"type": "uint256"
|
|
503
675
|
}
|
|
504
676
|
],
|
|
@@ -523,25 +695,25 @@ export const MusdtMintable_jsonAbi = [
|
|
|
523
695
|
],
|
|
524
696
|
"name": "transferOwnership",
|
|
525
697
|
"outputs": [],
|
|
526
|
-
"stateMutability": "
|
|
698
|
+
"stateMutability": "payable",
|
|
527
699
|
"type": "function"
|
|
528
700
|
}
|
|
529
701
|
] as const satisfies Abi;
|
|
530
702
|
|
|
531
703
|
/**
|
|
532
|
-
* Type-safe ABI for
|
|
704
|
+
* Type-safe ABI for UltimateTokenOwnable_json
|
|
533
705
|
*/
|
|
534
|
-
export type
|
|
706
|
+
export type UltimateTokenOwnable_jsonAbi = typeof UltimateTokenOwnable_jsonAbi;
|
|
535
707
|
|
|
536
708
|
/**
|
|
537
|
-
* Contract instance type for
|
|
709
|
+
* Contract instance type for UltimateTokenOwnable_json
|
|
538
710
|
*/
|
|
539
711
|
// Use any for contract type to avoid complex viem type issues
|
|
540
712
|
// The runtime behavior is type-safe through viem's ABI typing
|
|
541
|
-
export type
|
|
713
|
+
export type UltimateTokenOwnable_jsonContract = any;
|
|
542
714
|
|
|
543
715
|
/**
|
|
544
|
-
*
|
|
716
|
+
* UltimateTokenOwnable_json Contract Class
|
|
545
717
|
*
|
|
546
718
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
547
719
|
*
|
|
@@ -549,12 +721,12 @@ export type MusdtMintable_jsonContract = any;
|
|
|
549
721
|
* ```typescript
|
|
550
722
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
551
723
|
* import { mainnet } from 'viem/chains';
|
|
552
|
-
* import {
|
|
724
|
+
* import { UltimateTokenOwnable_json } from 'UltimateTokenOwnable_json';
|
|
553
725
|
*
|
|
554
726
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
555
727
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
556
728
|
*
|
|
557
|
-
* const contract = new
|
|
729
|
+
* const contract = new UltimateTokenOwnable_json('0x...', { publicClient, walletClient });
|
|
558
730
|
*
|
|
559
731
|
* // Read functions
|
|
560
732
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -572,8 +744,8 @@ export type MusdtMintable_jsonContract = any;
|
|
|
572
744
|
* });
|
|
573
745
|
* ```
|
|
574
746
|
*/
|
|
575
|
-
export class
|
|
576
|
-
private contract:
|
|
747
|
+
export class UltimateTokenOwnable_json {
|
|
748
|
+
private contract: UltimateTokenOwnable_jsonContract;
|
|
577
749
|
private contractAddress: Address;
|
|
578
750
|
private publicClient: PublicClient;
|
|
579
751
|
|
|
@@ -588,7 +760,7 @@ export class MusdtMintable_json {
|
|
|
588
760
|
this.publicClient = clients.publicClient;
|
|
589
761
|
this.contract = getContract({
|
|
590
762
|
address,
|
|
591
|
-
abi:
|
|
763
|
+
abi: UltimateTokenOwnable_jsonAbi,
|
|
592
764
|
client: {
|
|
593
765
|
public: clients.publicClient,
|
|
594
766
|
wallet: clients.walletClient,
|
|
@@ -606,24 +778,32 @@ export class MusdtMintable_json {
|
|
|
606
778
|
/**
|
|
607
779
|
* Get the underlying viem contract instance
|
|
608
780
|
*/
|
|
609
|
-
getContract():
|
|
781
|
+
getContract(): UltimateTokenOwnable_jsonContract {
|
|
610
782
|
return this.contract;
|
|
611
783
|
}
|
|
612
784
|
|
|
785
|
+
/**
|
|
786
|
+
* DOMAIN_SEPARATOR
|
|
787
|
+
* view
|
|
788
|
+
*/
|
|
789
|
+
async DOMAIN_SEPARATOR(): Promise<`0x${string}`> {
|
|
790
|
+
return this.contract.read.DOMAIN_SEPARATOR() as Promise<`0x${string}`>;
|
|
791
|
+
}
|
|
792
|
+
|
|
613
793
|
/**
|
|
614
794
|
* allowance
|
|
615
795
|
* view
|
|
616
796
|
*/
|
|
617
|
-
async allowance(
|
|
618
|
-
return this.contract.read.allowance([
|
|
797
|
+
async allowance(owner: `0x${string}`, spender: `0x${string}`): Promise<bigint> {
|
|
798
|
+
return this.contract.read.allowance([owner, spender] as const) as Promise<bigint>;
|
|
619
799
|
}
|
|
620
800
|
|
|
621
801
|
/**
|
|
622
802
|
* balanceOf
|
|
623
803
|
* view
|
|
624
804
|
*/
|
|
625
|
-
async balanceOf(
|
|
626
|
-
return this.contract.read.balanceOf([
|
|
805
|
+
async balanceOf(owner: `0x${string}`): Promise<bigint> {
|
|
806
|
+
return this.contract.read.balanceOf([owner] as const) as Promise<bigint>;
|
|
627
807
|
}
|
|
628
808
|
|
|
629
809
|
/**
|
|
@@ -635,11 +815,11 @@ export class MusdtMintable_json {
|
|
|
635
815
|
}
|
|
636
816
|
|
|
637
817
|
/**
|
|
638
|
-
*
|
|
818
|
+
* maxSupply
|
|
639
819
|
* view
|
|
640
820
|
*/
|
|
641
|
-
async
|
|
642
|
-
return this.contract.read.
|
|
821
|
+
async maxSupply(): Promise<bigint> {
|
|
822
|
+
return this.contract.read.maxSupply() as Promise<bigint>;
|
|
643
823
|
}
|
|
644
824
|
|
|
645
825
|
/**
|
|
@@ -650,6 +830,14 @@ export class MusdtMintable_json {
|
|
|
650
830
|
return this.contract.read.name() as Promise<string>;
|
|
651
831
|
}
|
|
652
832
|
|
|
833
|
+
/**
|
|
834
|
+
* nonces
|
|
835
|
+
* view
|
|
836
|
+
*/
|
|
837
|
+
async nonces(owner: `0x${string}`): Promise<bigint> {
|
|
838
|
+
return this.contract.read.nonces([owner] as const) as Promise<bigint>;
|
|
839
|
+
}
|
|
840
|
+
|
|
653
841
|
/**
|
|
654
842
|
* owner
|
|
655
843
|
* view
|
|
@@ -659,19 +847,27 @@ export class MusdtMintable_json {
|
|
|
659
847
|
}
|
|
660
848
|
|
|
661
849
|
/**
|
|
662
|
-
*
|
|
850
|
+
* ownershipHandoverExpiresAt
|
|
663
851
|
* view
|
|
664
852
|
*/
|
|
665
|
-
async
|
|
666
|
-
return this.contract.read.
|
|
853
|
+
async ownershipHandoverExpiresAt(pendingOwner: `0x${string}`): Promise<bigint> {
|
|
854
|
+
return this.contract.read.ownershipHandoverExpiresAt([pendingOwner] as const) as Promise<bigint>;
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
/**
|
|
858
|
+
* paused
|
|
859
|
+
* view
|
|
860
|
+
*/
|
|
861
|
+
async paused(): Promise<boolean> {
|
|
862
|
+
return this.contract.read.paused() as Promise<boolean>;
|
|
667
863
|
}
|
|
668
864
|
|
|
669
865
|
/**
|
|
670
|
-
*
|
|
866
|
+
* symbol
|
|
671
867
|
* view
|
|
672
868
|
*/
|
|
673
|
-
async
|
|
674
|
-
return this.contract.read.
|
|
869
|
+
async symbol(): Promise<string> {
|
|
870
|
+
return this.contract.read.symbol() as Promise<string>;
|
|
675
871
|
}
|
|
676
872
|
|
|
677
873
|
/**
|
|
@@ -687,7 +883,7 @@ export class MusdtMintable_json {
|
|
|
687
883
|
* nonpayable
|
|
688
884
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
689
885
|
*/
|
|
690
|
-
async approve(spender: `0x${string}`,
|
|
886
|
+
async approve(spender: `0x${string}`, amount: bigint, options?: {
|
|
691
887
|
accessList?: import('viem').AccessList;
|
|
692
888
|
authorizationList?: import('viem').AuthorizationList;
|
|
693
889
|
chain?: import('viem').Chain | null;
|
|
@@ -702,15 +898,15 @@ export class MusdtMintable_json {
|
|
|
702
898
|
if (!this.contract.write) {
|
|
703
899
|
throw new Error('Wallet client is required for write operations');
|
|
704
900
|
}
|
|
705
|
-
return this.contract.write.approve([spender,
|
|
901
|
+
return this.contract.write.approve([spender, amount] as const, options) as Promise<`0x${string}`>;
|
|
706
902
|
}
|
|
707
903
|
|
|
708
904
|
/**
|
|
709
|
-
*
|
|
905
|
+
* burn
|
|
710
906
|
* nonpayable
|
|
711
907
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
712
908
|
*/
|
|
713
|
-
async
|
|
909
|
+
async burn(value: bigint, options?: {
|
|
714
910
|
accessList?: import('viem').AccessList;
|
|
715
911
|
authorizationList?: import('viem').AuthorizationList;
|
|
716
912
|
chain?: import('viem').Chain | null;
|
|
@@ -725,15 +921,15 @@ export class MusdtMintable_json {
|
|
|
725
921
|
if (!this.contract.write) {
|
|
726
922
|
throw new Error('Wallet client is required for write operations');
|
|
727
923
|
}
|
|
728
|
-
return this.contract.write.
|
|
924
|
+
return this.contract.write.burn([value] as const, options) as Promise<`0x${string}`>;
|
|
729
925
|
}
|
|
730
926
|
|
|
731
927
|
/**
|
|
732
|
-
*
|
|
733
|
-
*
|
|
928
|
+
* cancelOwnershipHandover
|
|
929
|
+
* payable
|
|
734
930
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
735
931
|
*/
|
|
736
|
-
async
|
|
932
|
+
async cancelOwnershipHandover(options?: {
|
|
737
933
|
accessList?: import('viem').AccessList;
|
|
738
934
|
authorizationList?: import('viem').AuthorizationList;
|
|
739
935
|
chain?: import('viem').Chain | null;
|
|
@@ -748,15 +944,38 @@ export class MusdtMintable_json {
|
|
|
748
944
|
if (!this.contract.write) {
|
|
749
945
|
throw new Error('Wallet client is required for write operations');
|
|
750
946
|
}
|
|
751
|
-
return this.contract.write.
|
|
947
|
+
return this.contract.write.cancelOwnershipHandover(options) as Promise<`0x${string}`>;
|
|
752
948
|
}
|
|
753
949
|
|
|
754
950
|
/**
|
|
755
|
-
*
|
|
951
|
+
* completeOwnershipHandover
|
|
952
|
+
* payable
|
|
953
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
954
|
+
*/
|
|
955
|
+
async completeOwnershipHandover(pendingOwner: `0x${string}`, options?: {
|
|
956
|
+
accessList?: import('viem').AccessList;
|
|
957
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
958
|
+
chain?: import('viem').Chain | null;
|
|
959
|
+
dataSuffix?: `0x${string}`;
|
|
960
|
+
gas?: bigint;
|
|
961
|
+
gasPrice?: bigint;
|
|
962
|
+
maxFeePerGas?: bigint;
|
|
963
|
+
maxPriorityFeePerGas?: bigint;
|
|
964
|
+
nonce?: number;
|
|
965
|
+
value?: bigint;
|
|
966
|
+
}): Promise<`0x${string}`> {
|
|
967
|
+
if (!this.contract.write) {
|
|
968
|
+
throw new Error('Wallet client is required for write operations');
|
|
969
|
+
}
|
|
970
|
+
return this.contract.write.completeOwnershipHandover([pendingOwner] as const, options) as Promise<`0x${string}`>;
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
/**
|
|
974
|
+
* disableInitializer
|
|
756
975
|
* nonpayable
|
|
757
976
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
758
977
|
*/
|
|
759
|
-
async
|
|
978
|
+
async disableInitializer(options?: {
|
|
760
979
|
accessList?: import('viem').AccessList;
|
|
761
980
|
authorizationList?: import('viem').AuthorizationList;
|
|
762
981
|
chain?: import('viem').Chain | null;
|
|
@@ -771,15 +990,15 @@ export class MusdtMintable_json {
|
|
|
771
990
|
if (!this.contract.write) {
|
|
772
991
|
throw new Error('Wallet client is required for write operations');
|
|
773
992
|
}
|
|
774
|
-
return this.contract.write.
|
|
993
|
+
return this.contract.write.disableInitializer(options) as Promise<`0x${string}`>;
|
|
775
994
|
}
|
|
776
995
|
|
|
777
996
|
/**
|
|
778
|
-
*
|
|
997
|
+
* initialize
|
|
779
998
|
* nonpayable
|
|
780
999
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
781
1000
|
*/
|
|
782
|
-
async
|
|
1001
|
+
async initialize(authInfo: AuthInfo, tokenInfo: TokenInfo, supplyInfo: SupplyInfo, options?: {
|
|
783
1002
|
accessList?: import('viem').AccessList;
|
|
784
1003
|
authorizationList?: import('viem').AuthorizationList;
|
|
785
1004
|
chain?: import('viem').Chain | null;
|
|
@@ -794,15 +1013,15 @@ export class MusdtMintable_json {
|
|
|
794
1013
|
if (!this.contract.write) {
|
|
795
1014
|
throw new Error('Wallet client is required for write operations');
|
|
796
1015
|
}
|
|
797
|
-
return this.contract.write.
|
|
1016
|
+
return this.contract.write.initialize([authInfo, tokenInfo, supplyInfo] as const, options) as Promise<`0x${string}`>;
|
|
798
1017
|
}
|
|
799
1018
|
|
|
800
1019
|
/**
|
|
801
|
-
*
|
|
1020
|
+
* mint
|
|
802
1021
|
* nonpayable
|
|
803
1022
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
804
1023
|
*/
|
|
805
|
-
async
|
|
1024
|
+
async mint(to: `0x${string}`, amount: bigint, options?: {
|
|
806
1025
|
accessList?: import('viem').AccessList;
|
|
807
1026
|
authorizationList?: import('viem').AuthorizationList;
|
|
808
1027
|
chain?: import('viem').Chain | null;
|
|
@@ -817,15 +1036,15 @@ export class MusdtMintable_json {
|
|
|
817
1036
|
if (!this.contract.write) {
|
|
818
1037
|
throw new Error('Wallet client is required for write operations');
|
|
819
1038
|
}
|
|
820
|
-
return this.contract.write.
|
|
1039
|
+
return this.contract.write.mint([to, amount] as const, options) as Promise<`0x${string}`>;
|
|
821
1040
|
}
|
|
822
1041
|
|
|
823
1042
|
/**
|
|
824
|
-
*
|
|
1043
|
+
* permit
|
|
825
1044
|
* nonpayable
|
|
826
1045
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
827
1046
|
*/
|
|
828
|
-
async
|
|
1047
|
+
async permit(owner: `0x${string}`, spender: `0x${string}`, value: bigint, deadline: bigint, v: bigint, r: `0x${string}`, s: `0x${string}`, options?: {
|
|
829
1048
|
accessList?: import('viem').AccessList;
|
|
830
1049
|
authorizationList?: import('viem').AuthorizationList;
|
|
831
1050
|
chain?: import('viem').Chain | null;
|
|
@@ -840,15 +1059,61 @@ export class MusdtMintable_json {
|
|
|
840
1059
|
if (!this.contract.write) {
|
|
841
1060
|
throw new Error('Wallet client is required for write operations');
|
|
842
1061
|
}
|
|
843
|
-
return this.contract.write.
|
|
1062
|
+
return this.contract.write.permit([owner, spender, value, deadline, v, r, s] as const, options) as Promise<`0x${string}`>;
|
|
844
1063
|
}
|
|
845
1064
|
|
|
846
1065
|
/**
|
|
847
|
-
*
|
|
1066
|
+
* renounceOwnership
|
|
1067
|
+
* payable
|
|
1068
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1069
|
+
*/
|
|
1070
|
+
async renounceOwnership(options?: {
|
|
1071
|
+
accessList?: import('viem').AccessList;
|
|
1072
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1073
|
+
chain?: import('viem').Chain | null;
|
|
1074
|
+
dataSuffix?: `0x${string}`;
|
|
1075
|
+
gas?: bigint;
|
|
1076
|
+
gasPrice?: bigint;
|
|
1077
|
+
maxFeePerGas?: bigint;
|
|
1078
|
+
maxPriorityFeePerGas?: bigint;
|
|
1079
|
+
nonce?: number;
|
|
1080
|
+
value?: bigint;
|
|
1081
|
+
}): Promise<`0x${string}`> {
|
|
1082
|
+
if (!this.contract.write) {
|
|
1083
|
+
throw new Error('Wallet client is required for write operations');
|
|
1084
|
+
}
|
|
1085
|
+
return this.contract.write.renounceOwnership(options) as Promise<`0x${string}`>;
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
/**
|
|
1089
|
+
* requestOwnershipHandover
|
|
1090
|
+
* payable
|
|
1091
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1092
|
+
*/
|
|
1093
|
+
async requestOwnershipHandover(options?: {
|
|
1094
|
+
accessList?: import('viem').AccessList;
|
|
1095
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1096
|
+
chain?: import('viem').Chain | null;
|
|
1097
|
+
dataSuffix?: `0x${string}`;
|
|
1098
|
+
gas?: bigint;
|
|
1099
|
+
gasPrice?: bigint;
|
|
1100
|
+
maxFeePerGas?: bigint;
|
|
1101
|
+
maxPriorityFeePerGas?: bigint;
|
|
1102
|
+
nonce?: number;
|
|
1103
|
+
value?: bigint;
|
|
1104
|
+
}): Promise<`0x${string}`> {
|
|
1105
|
+
if (!this.contract.write) {
|
|
1106
|
+
throw new Error('Wallet client is required for write operations');
|
|
1107
|
+
}
|
|
1108
|
+
return this.contract.write.requestOwnershipHandover(options) as Promise<`0x${string}`>;
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1111
|
+
/**
|
|
1112
|
+
* setTransferPaused
|
|
848
1113
|
* nonpayable
|
|
849
1114
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
850
1115
|
*/
|
|
851
|
-
async
|
|
1116
|
+
async setTransferPaused(_paused: boolean, options?: {
|
|
852
1117
|
accessList?: import('viem').AccessList;
|
|
853
1118
|
authorizationList?: import('viem').AuthorizationList;
|
|
854
1119
|
chain?: import('viem').Chain | null;
|
|
@@ -863,7 +1128,7 @@ export class MusdtMintable_json {
|
|
|
863
1128
|
if (!this.contract.write) {
|
|
864
1129
|
throw new Error('Wallet client is required for write operations');
|
|
865
1130
|
}
|
|
866
|
-
return this.contract.write.
|
|
1131
|
+
return this.contract.write.setTransferPaused([_paused] as const, options) as Promise<`0x${string}`>;
|
|
867
1132
|
}
|
|
868
1133
|
|
|
869
1134
|
/**
|
|
@@ -871,7 +1136,7 @@ export class MusdtMintable_json {
|
|
|
871
1136
|
* nonpayable
|
|
872
1137
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
873
1138
|
*/
|
|
874
|
-
async transfer(to: `0x${string}`,
|
|
1139
|
+
async transfer(to: `0x${string}`, amount: bigint, options?: {
|
|
875
1140
|
accessList?: import('viem').AccessList;
|
|
876
1141
|
authorizationList?: import('viem').AuthorizationList;
|
|
877
1142
|
chain?: import('viem').Chain | null;
|
|
@@ -886,7 +1151,7 @@ export class MusdtMintable_json {
|
|
|
886
1151
|
if (!this.contract.write) {
|
|
887
1152
|
throw new Error('Wallet client is required for write operations');
|
|
888
1153
|
}
|
|
889
|
-
return this.contract.write.transfer([to,
|
|
1154
|
+
return this.contract.write.transfer([to, amount] as const, options) as Promise<`0x${string}`>;
|
|
890
1155
|
}
|
|
891
1156
|
|
|
892
1157
|
/**
|
|
@@ -894,7 +1159,7 @@ export class MusdtMintable_json {
|
|
|
894
1159
|
* nonpayable
|
|
895
1160
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
896
1161
|
*/
|
|
897
|
-
async transferFrom(from: `0x${string}`, to: `0x${string}`,
|
|
1162
|
+
async transferFrom(from: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
|
|
898
1163
|
accessList?: import('viem').AccessList;
|
|
899
1164
|
authorizationList?: import('viem').AuthorizationList;
|
|
900
1165
|
chain?: import('viem').Chain | null;
|
|
@@ -909,12 +1174,12 @@ export class MusdtMintable_json {
|
|
|
909
1174
|
if (!this.contract.write) {
|
|
910
1175
|
throw new Error('Wallet client is required for write operations');
|
|
911
1176
|
}
|
|
912
|
-
return this.contract.write.transferFrom([from, to,
|
|
1177
|
+
return this.contract.write.transferFrom([from, to, amount] as const, options) as Promise<`0x${string}`>;
|
|
913
1178
|
}
|
|
914
1179
|
|
|
915
1180
|
/**
|
|
916
1181
|
* transferOwnership
|
|
917
|
-
*
|
|
1182
|
+
* payable
|
|
918
1183
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
919
1184
|
*/
|
|
920
1185
|
async transferOwnership(newOwner: `0x${string}`, options?: {
|
|
@@ -956,7 +1221,7 @@ export class MusdtMintable_json {
|
|
|
956
1221
|
* Returns gas estimate and result without sending transaction
|
|
957
1222
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
958
1223
|
*/
|
|
959
|
-
async approve(spender: `0x${string}`,
|
|
1224
|
+
async approve(spender: `0x${string}`, amount: bigint, options?: {
|
|
960
1225
|
accessList?: import('viem').AccessList;
|
|
961
1226
|
authorizationList?: import('viem').AuthorizationList;
|
|
962
1227
|
chain?: import('viem').Chain | null;
|
|
@@ -968,14 +1233,14 @@ export class MusdtMintable_json {
|
|
|
968
1233
|
nonce?: number;
|
|
969
1234
|
value?: bigint;
|
|
970
1235
|
}): Promise<boolean> {
|
|
971
|
-
return contract.simulate.approve([spender,
|
|
1236
|
+
return contract.simulate.approve([spender, amount] as const, options) as Promise<boolean>;
|
|
972
1237
|
},
|
|
973
1238
|
/**
|
|
974
|
-
* Simulate
|
|
1239
|
+
* Simulate burn
|
|
975
1240
|
* Returns gas estimate and result without sending transaction
|
|
976
1241
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
977
1242
|
*/
|
|
978
|
-
async
|
|
1243
|
+
async burn(value: bigint, options?: {
|
|
979
1244
|
accessList?: import('viem').AccessList;
|
|
980
1245
|
authorizationList?: import('viem').AuthorizationList;
|
|
981
1246
|
chain?: import('viem').Chain | null;
|
|
@@ -986,15 +1251,15 @@ export class MusdtMintable_json {
|
|
|
986
1251
|
maxPriorityFeePerGas?: bigint;
|
|
987
1252
|
nonce?: number;
|
|
988
1253
|
value?: bigint;
|
|
989
|
-
}): Promise<
|
|
990
|
-
return contract.simulate.
|
|
1254
|
+
}): Promise<void> {
|
|
1255
|
+
return contract.simulate.burn([value] as const, options) as Promise<void>;
|
|
991
1256
|
},
|
|
992
1257
|
/**
|
|
993
|
-
* Simulate
|
|
1258
|
+
* Simulate cancelOwnershipHandover
|
|
994
1259
|
* Returns gas estimate and result without sending transaction
|
|
995
1260
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
996
1261
|
*/
|
|
997
|
-
async
|
|
1262
|
+
async cancelOwnershipHandover(options?: {
|
|
998
1263
|
accessList?: import('viem').AccessList;
|
|
999
1264
|
authorizationList?: import('viem').AuthorizationList;
|
|
1000
1265
|
chain?: import('viem').Chain | null;
|
|
@@ -1005,15 +1270,72 @@ export class MusdtMintable_json {
|
|
|
1005
1270
|
maxPriorityFeePerGas?: bigint;
|
|
1006
1271
|
nonce?: number;
|
|
1007
1272
|
value?: bigint;
|
|
1008
|
-
}): Promise<
|
|
1009
|
-
return contract.simulate.
|
|
1273
|
+
}): Promise<void> {
|
|
1274
|
+
return contract.simulate.cancelOwnershipHandover(options) as Promise<void>;
|
|
1275
|
+
},
|
|
1276
|
+
/**
|
|
1277
|
+
* Simulate completeOwnershipHandover
|
|
1278
|
+
* Returns gas estimate and result without sending transaction
|
|
1279
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1280
|
+
*/
|
|
1281
|
+
async completeOwnershipHandover(pendingOwner: `0x${string}`, options?: {
|
|
1282
|
+
accessList?: import('viem').AccessList;
|
|
1283
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1284
|
+
chain?: import('viem').Chain | null;
|
|
1285
|
+
dataSuffix?: `0x${string}`;
|
|
1286
|
+
gas?: bigint;
|
|
1287
|
+
gasPrice?: bigint;
|
|
1288
|
+
maxFeePerGas?: bigint;
|
|
1289
|
+
maxPriorityFeePerGas?: bigint;
|
|
1290
|
+
nonce?: number;
|
|
1291
|
+
value?: bigint;
|
|
1292
|
+
}): Promise<void> {
|
|
1293
|
+
return contract.simulate.completeOwnershipHandover([pendingOwner] as const, options) as Promise<void>;
|
|
1294
|
+
},
|
|
1295
|
+
/**
|
|
1296
|
+
* Simulate disableInitializer
|
|
1297
|
+
* Returns gas estimate and result without sending transaction
|
|
1298
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1299
|
+
*/
|
|
1300
|
+
async disableInitializer(options?: {
|
|
1301
|
+
accessList?: import('viem').AccessList;
|
|
1302
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1303
|
+
chain?: import('viem').Chain | null;
|
|
1304
|
+
dataSuffix?: `0x${string}`;
|
|
1305
|
+
gas?: bigint;
|
|
1306
|
+
gasPrice?: bigint;
|
|
1307
|
+
maxFeePerGas?: bigint;
|
|
1308
|
+
maxPriorityFeePerGas?: bigint;
|
|
1309
|
+
nonce?: number;
|
|
1310
|
+
value?: bigint;
|
|
1311
|
+
}): Promise<void> {
|
|
1312
|
+
return contract.simulate.disableInitializer(options) as Promise<void>;
|
|
1313
|
+
},
|
|
1314
|
+
/**
|
|
1315
|
+
* Simulate initialize
|
|
1316
|
+
* Returns gas estimate and result without sending transaction
|
|
1317
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1318
|
+
*/
|
|
1319
|
+
async initialize(authInfo: AuthInfo, tokenInfo: TokenInfo, supplyInfo: SupplyInfo, options?: {
|
|
1320
|
+
accessList?: import('viem').AccessList;
|
|
1321
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1322
|
+
chain?: import('viem').Chain | null;
|
|
1323
|
+
dataSuffix?: `0x${string}`;
|
|
1324
|
+
gas?: bigint;
|
|
1325
|
+
gasPrice?: bigint;
|
|
1326
|
+
maxFeePerGas?: bigint;
|
|
1327
|
+
maxPriorityFeePerGas?: bigint;
|
|
1328
|
+
nonce?: number;
|
|
1329
|
+
value?: bigint;
|
|
1330
|
+
}): Promise<void> {
|
|
1331
|
+
return contract.simulate.initialize([authInfo, tokenInfo, supplyInfo] as const, options) as Promise<void>;
|
|
1010
1332
|
},
|
|
1011
1333
|
/**
|
|
1012
1334
|
* Simulate mint
|
|
1013
1335
|
* Returns gas estimate and result without sending transaction
|
|
1014
1336
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1015
1337
|
*/
|
|
1016
|
-
async mint(to: `0x${string}`,
|
|
1338
|
+
async mint(to: `0x${string}`, amount: bigint, options?: {
|
|
1017
1339
|
accessList?: import('viem').AccessList;
|
|
1018
1340
|
authorizationList?: import('viem').AuthorizationList;
|
|
1019
1341
|
chain?: import('viem').Chain | null;
|
|
@@ -1024,15 +1346,15 @@ export class MusdtMintable_json {
|
|
|
1024
1346
|
maxPriorityFeePerGas?: bigint;
|
|
1025
1347
|
nonce?: number;
|
|
1026
1348
|
value?: bigint;
|
|
1027
|
-
}): Promise<
|
|
1028
|
-
return contract.simulate.mint([to,
|
|
1349
|
+
}): Promise<void> {
|
|
1350
|
+
return contract.simulate.mint([to, amount] as const, options) as Promise<void>;
|
|
1029
1351
|
},
|
|
1030
1352
|
/**
|
|
1031
|
-
* Simulate
|
|
1353
|
+
* Simulate permit
|
|
1032
1354
|
* Returns gas estimate and result without sending transaction
|
|
1033
1355
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1034
1356
|
*/
|
|
1035
|
-
async
|
|
1357
|
+
async permit(owner: `0x${string}`, spender: `0x${string}`, value: bigint, deadline: bigint, v: bigint, r: `0x${string}`, s: `0x${string}`, options?: {
|
|
1036
1358
|
accessList?: import('viem').AccessList;
|
|
1037
1359
|
authorizationList?: import('viem').AuthorizationList;
|
|
1038
1360
|
chain?: import('viem').Chain | null;
|
|
@@ -1044,14 +1366,14 @@ export class MusdtMintable_json {
|
|
|
1044
1366
|
nonce?: number;
|
|
1045
1367
|
value?: bigint;
|
|
1046
1368
|
}): Promise<void> {
|
|
1047
|
-
return contract.simulate.
|
|
1369
|
+
return contract.simulate.permit([owner, spender, value, deadline, v, r, s] as const, options) as Promise<void>;
|
|
1048
1370
|
},
|
|
1049
1371
|
/**
|
|
1050
|
-
* Simulate
|
|
1372
|
+
* Simulate renounceOwnership
|
|
1051
1373
|
* Returns gas estimate and result without sending transaction
|
|
1052
1374
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1053
1375
|
*/
|
|
1054
|
-
async
|
|
1376
|
+
async renounceOwnership(options?: {
|
|
1055
1377
|
accessList?: import('viem').AccessList;
|
|
1056
1378
|
authorizationList?: import('viem').AuthorizationList;
|
|
1057
1379
|
chain?: import('viem').Chain | null;
|
|
@@ -1063,14 +1385,14 @@ export class MusdtMintable_json {
|
|
|
1063
1385
|
nonce?: number;
|
|
1064
1386
|
value?: bigint;
|
|
1065
1387
|
}): Promise<void> {
|
|
1066
|
-
return contract.simulate.
|
|
1388
|
+
return contract.simulate.renounceOwnership(options) as Promise<void>;
|
|
1067
1389
|
},
|
|
1068
1390
|
/**
|
|
1069
|
-
* Simulate
|
|
1391
|
+
* Simulate requestOwnershipHandover
|
|
1070
1392
|
* Returns gas estimate and result without sending transaction
|
|
1071
1393
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1072
1394
|
*/
|
|
1073
|
-
async
|
|
1395
|
+
async requestOwnershipHandover(options?: {
|
|
1074
1396
|
accessList?: import('viem').AccessList;
|
|
1075
1397
|
authorizationList?: import('viem').AuthorizationList;
|
|
1076
1398
|
chain?: import('viem').Chain | null;
|
|
@@ -1082,14 +1404,14 @@ export class MusdtMintable_json {
|
|
|
1082
1404
|
nonce?: number;
|
|
1083
1405
|
value?: bigint;
|
|
1084
1406
|
}): Promise<void> {
|
|
1085
|
-
return contract.simulate.
|
|
1407
|
+
return contract.simulate.requestOwnershipHandover(options) as Promise<void>;
|
|
1086
1408
|
},
|
|
1087
1409
|
/**
|
|
1088
|
-
* Simulate
|
|
1410
|
+
* Simulate setTransferPaused
|
|
1089
1411
|
* Returns gas estimate and result without sending transaction
|
|
1090
1412
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1091
1413
|
*/
|
|
1092
|
-
async
|
|
1414
|
+
async setTransferPaused(_paused: boolean, options?: {
|
|
1093
1415
|
accessList?: import('viem').AccessList;
|
|
1094
1416
|
authorizationList?: import('viem').AuthorizationList;
|
|
1095
1417
|
chain?: import('viem').Chain | null;
|
|
@@ -1101,14 +1423,14 @@ export class MusdtMintable_json {
|
|
|
1101
1423
|
nonce?: number;
|
|
1102
1424
|
value?: bigint;
|
|
1103
1425
|
}): Promise<void> {
|
|
1104
|
-
return contract.simulate.
|
|
1426
|
+
return contract.simulate.setTransferPaused([_paused] as const, options) as Promise<void>;
|
|
1105
1427
|
},
|
|
1106
1428
|
/**
|
|
1107
1429
|
* Simulate transfer
|
|
1108
1430
|
* Returns gas estimate and result without sending transaction
|
|
1109
1431
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1110
1432
|
*/
|
|
1111
|
-
async transfer(to: `0x${string}`,
|
|
1433
|
+
async transfer(to: `0x${string}`, amount: bigint, options?: {
|
|
1112
1434
|
accessList?: import('viem').AccessList;
|
|
1113
1435
|
authorizationList?: import('viem').AuthorizationList;
|
|
1114
1436
|
chain?: import('viem').Chain | null;
|
|
@@ -1120,14 +1442,14 @@ export class MusdtMintable_json {
|
|
|
1120
1442
|
nonce?: number;
|
|
1121
1443
|
value?: bigint;
|
|
1122
1444
|
}): Promise<boolean> {
|
|
1123
|
-
return contract.simulate.transfer([to,
|
|
1445
|
+
return contract.simulate.transfer([to, amount] as const, options) as Promise<boolean>;
|
|
1124
1446
|
},
|
|
1125
1447
|
/**
|
|
1126
1448
|
* Simulate transferFrom
|
|
1127
1449
|
* Returns gas estimate and result without sending transaction
|
|
1128
1450
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1129
1451
|
*/
|
|
1130
|
-
async transferFrom(from: `0x${string}`, to: `0x${string}`,
|
|
1452
|
+
async transferFrom(from: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
|
|
1131
1453
|
accessList?: import('viem').AccessList;
|
|
1132
1454
|
authorizationList?: import('viem').AuthorizationList;
|
|
1133
1455
|
chain?: import('viem').Chain | null;
|
|
@@ -1139,7 +1461,7 @@ export class MusdtMintable_json {
|
|
|
1139
1461
|
nonce?: number;
|
|
1140
1462
|
value?: bigint;
|
|
1141
1463
|
}): Promise<boolean> {
|
|
1142
|
-
return contract.simulate.transferFrom([from, to,
|
|
1464
|
+
return contract.simulate.transferFrom([from, to, amount] as const, options) as Promise<boolean>;
|
|
1143
1465
|
},
|
|
1144
1466
|
/**
|
|
1145
1467
|
* Simulate transferOwnership
|
|
@@ -1183,10 +1505,10 @@ export class MusdtMintable_json {
|
|
|
1183
1505
|
* @param filter Optional filter for indexed parameters
|
|
1184
1506
|
* @returns Unwatch function to stop listening
|
|
1185
1507
|
*/
|
|
1186
|
-
Approval: (callback: (event: { owner: `0x${string}`; spender: `0x${string}`;
|
|
1508
|
+
Approval: (callback: (event: { owner: `0x${string}`; spender: `0x${string}`; amount: bigint }) => void, filter?: { owner: `0x${string}`; spender: `0x${string}` }) => {
|
|
1187
1509
|
return this.publicClient.watchContractEvent({
|
|
1188
1510
|
address: this.contractAddress,
|
|
1189
|
-
abi:
|
|
1511
|
+
abi: UltimateTokenOwnable_jsonAbi,
|
|
1190
1512
|
eventName: 'Approval',
|
|
1191
1513
|
args: filter,
|
|
1192
1514
|
onLogs: (logs: any[]) => {
|
|
@@ -1197,16 +1519,16 @@ export class MusdtMintable_json {
|
|
|
1197
1519
|
}) as () => void;
|
|
1198
1520
|
},
|
|
1199
1521
|
/**
|
|
1200
|
-
* Watch
|
|
1522
|
+
* Watch Initialized events
|
|
1201
1523
|
* @param callback Function to call when event is emitted
|
|
1202
1524
|
* @param filter Optional filter for indexed parameters
|
|
1203
1525
|
* @returns Unwatch function to stop listening
|
|
1204
1526
|
*/
|
|
1205
|
-
|
|
1527
|
+
Initialized: (callback: (event: { version: bigint }) => void) => {
|
|
1206
1528
|
return this.publicClient.watchContractEvent({
|
|
1207
1529
|
address: this.contractAddress,
|
|
1208
|
-
abi:
|
|
1209
|
-
eventName: '
|
|
1530
|
+
abi: UltimateTokenOwnable_jsonAbi,
|
|
1531
|
+
eventName: 'Initialized',
|
|
1210
1532
|
|
|
1211
1533
|
onLogs: (logs: any[]) => {
|
|
1212
1534
|
logs.forEach((log: any) => {
|
|
@@ -1216,35 +1538,16 @@ export class MusdtMintable_json {
|
|
|
1216
1538
|
}) as () => void;
|
|
1217
1539
|
},
|
|
1218
1540
|
/**
|
|
1219
|
-
* Watch
|
|
1541
|
+
* Watch OwnershipHandoverCanceled events
|
|
1220
1542
|
* @param callback Function to call when event is emitted
|
|
1221
1543
|
* @param filter Optional filter for indexed parameters
|
|
1222
1544
|
* @returns Unwatch function to stop listening
|
|
1223
1545
|
*/
|
|
1224
|
-
|
|
1546
|
+
OwnershipHandoverCanceled: (callback: (event: { pendingOwner: `0x${string}` }) => void, filter?: { pendingOwner: `0x${string}` }) => {
|
|
1225
1547
|
return this.publicClient.watchContractEvent({
|
|
1226
1548
|
address: this.contractAddress,
|
|
1227
|
-
abi:
|
|
1228
|
-
eventName: '
|
|
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',
|
|
1549
|
+
abi: UltimateTokenOwnable_jsonAbi,
|
|
1550
|
+
eventName: 'OwnershipHandoverCanceled',
|
|
1248
1551
|
args: filter,
|
|
1249
1552
|
onLogs: (logs: any[]) => {
|
|
1250
1553
|
logs.forEach((log: any) => {
|
|
@@ -1254,17 +1557,17 @@ export class MusdtMintable_json {
|
|
|
1254
1557
|
}) as () => void;
|
|
1255
1558
|
},
|
|
1256
1559
|
/**
|
|
1257
|
-
* Watch
|
|
1560
|
+
* Watch OwnershipHandoverRequested events
|
|
1258
1561
|
* @param callback Function to call when event is emitted
|
|
1259
1562
|
* @param filter Optional filter for indexed parameters
|
|
1260
1563
|
* @returns Unwatch function to stop listening
|
|
1261
1564
|
*/
|
|
1262
|
-
|
|
1565
|
+
OwnershipHandoverRequested: (callback: (event: { pendingOwner: `0x${string}` }) => void, filter?: { pendingOwner: `0x${string}` }) => {
|
|
1263
1566
|
return this.publicClient.watchContractEvent({
|
|
1264
1567
|
address: this.contractAddress,
|
|
1265
|
-
abi:
|
|
1266
|
-
eventName: '
|
|
1267
|
-
|
|
1568
|
+
abi: UltimateTokenOwnable_jsonAbi,
|
|
1569
|
+
eventName: 'OwnershipHandoverRequested',
|
|
1570
|
+
args: filter,
|
|
1268
1571
|
onLogs: (logs: any[]) => {
|
|
1269
1572
|
logs.forEach((log: any) => {
|
|
1270
1573
|
callback(log.args as any);
|
|
@@ -1273,17 +1576,17 @@ export class MusdtMintable_json {
|
|
|
1273
1576
|
}) as () => void;
|
|
1274
1577
|
},
|
|
1275
1578
|
/**
|
|
1276
|
-
* Watch
|
|
1579
|
+
* Watch OwnershipTransferred events
|
|
1277
1580
|
* @param callback Function to call when event is emitted
|
|
1278
1581
|
* @param filter Optional filter for indexed parameters
|
|
1279
1582
|
* @returns Unwatch function to stop listening
|
|
1280
1583
|
*/
|
|
1281
|
-
|
|
1584
|
+
OwnershipTransferred: (callback: (event: { oldOwner: `0x${string}`; newOwner: `0x${string}` }) => void, filter?: { oldOwner: `0x${string}`; newOwner: `0x${string}` }) => {
|
|
1282
1585
|
return this.publicClient.watchContractEvent({
|
|
1283
1586
|
address: this.contractAddress,
|
|
1284
|
-
abi:
|
|
1285
|
-
eventName: '
|
|
1286
|
-
|
|
1587
|
+
abi: UltimateTokenOwnable_jsonAbi,
|
|
1588
|
+
eventName: 'OwnershipTransferred',
|
|
1589
|
+
args: filter,
|
|
1287
1590
|
onLogs: (logs: any[]) => {
|
|
1288
1591
|
logs.forEach((log: any) => {
|
|
1289
1592
|
callback(log.args as any);
|
|
@@ -1297,10 +1600,10 @@ export class MusdtMintable_json {
|
|
|
1297
1600
|
* @param filter Optional filter for indexed parameters
|
|
1298
1601
|
* @returns Unwatch function to stop listening
|
|
1299
1602
|
*/
|
|
1300
|
-
Transfer: (callback: (event: { from: `0x${string}`; to: `0x${string}`;
|
|
1603
|
+
Transfer: (callback: (event: { from: `0x${string}`; to: `0x${string}`; amount: bigint }) => void, filter?: { from: `0x${string}`; to: `0x${string}` }) => {
|
|
1301
1604
|
return this.publicClient.watchContractEvent({
|
|
1302
1605
|
address: this.contractAddress,
|
|
1303
|
-
abi:
|
|
1606
|
+
abi: UltimateTokenOwnable_jsonAbi,
|
|
1304
1607
|
eventName: 'Transfer',
|
|
1305
1608
|
args: filter,
|
|
1306
1609
|
onLogs: (logs: any[]) => {
|