@gitmyabi/eusd 1.0.0
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 +108 -0
- package/contracts/BeaconProxy_json.d.ts +152 -0
- package/contracts/BeaconProxy_json.js +191 -0
- package/contracts/BeaconProxy_json.ts +220 -0
- package/contracts/Stablecoin_json.d.ts +2313 -0
- package/contracts/Stablecoin_json.js +2541 -0
- package/contracts/Stablecoin_json.ts +3071 -0
- package/contracts/index.d.ts +4 -0
- package/contracts/index.js +10 -0
- package/contracts/index.ts +5 -0
- package/index.d.ts +1 -0
- package/index.js +19 -0
- package/package.json +43 -0
|
@@ -0,0 +1,2541 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Stablecoin_json = exports.Stablecoin_jsonAbi = void 0;
|
|
4
|
+
const viem_1 = require("viem");
|
|
5
|
+
/**
|
|
6
|
+
* Stablecoin_json ABI
|
|
7
|
+
*
|
|
8
|
+
* This ABI is typed using viem's type system for full type safety.
|
|
9
|
+
*/
|
|
10
|
+
exports.Stablecoin_jsonAbi = [
|
|
11
|
+
{
|
|
12
|
+
"inputs": [],
|
|
13
|
+
"stateMutability": "nonpayable",
|
|
14
|
+
"type": "constructor"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"inputs": [],
|
|
18
|
+
"name": "AccessControlBadConfirmation",
|
|
19
|
+
"type": "error"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"inputs": [
|
|
23
|
+
{
|
|
24
|
+
"internalType": "address",
|
|
25
|
+
"name": "account",
|
|
26
|
+
"type": "address"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"internalType": "bytes32",
|
|
30
|
+
"name": "neededRole",
|
|
31
|
+
"type": "bytes32"
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"name": "AccessControlUnauthorizedAccount",
|
|
35
|
+
"type": "error"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"inputs": [
|
|
39
|
+
{
|
|
40
|
+
"internalType": "address",
|
|
41
|
+
"name": "user",
|
|
42
|
+
"type": "address"
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"name": "AlreadyBlacklisted",
|
|
46
|
+
"type": "error"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"inputs": [],
|
|
50
|
+
"name": "AuthorizationAlreadyUsed",
|
|
51
|
+
"type": "error"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"inputs": [],
|
|
55
|
+
"name": "AuthorizationExpired",
|
|
56
|
+
"type": "error"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"inputs": [],
|
|
60
|
+
"name": "AuthorizationNotYetValid",
|
|
61
|
+
"type": "error"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"inputs": [
|
|
65
|
+
{
|
|
66
|
+
"internalType": "address",
|
|
67
|
+
"name": "account",
|
|
68
|
+
"type": "address"
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
"name": "Blacklisted",
|
|
72
|
+
"type": "error"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"inputs": [],
|
|
76
|
+
"name": "CallerMustBePayee",
|
|
77
|
+
"type": "error"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"inputs": [],
|
|
81
|
+
"name": "ECDSAInvalidSignature",
|
|
82
|
+
"type": "error"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"inputs": [
|
|
86
|
+
{
|
|
87
|
+
"internalType": "uint256",
|
|
88
|
+
"name": "length",
|
|
89
|
+
"type": "uint256"
|
|
90
|
+
}
|
|
91
|
+
],
|
|
92
|
+
"name": "ECDSAInvalidSignatureLength",
|
|
93
|
+
"type": "error"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"inputs": [
|
|
97
|
+
{
|
|
98
|
+
"internalType": "bytes32",
|
|
99
|
+
"name": "s",
|
|
100
|
+
"type": "bytes32"
|
|
101
|
+
}
|
|
102
|
+
],
|
|
103
|
+
"name": "ECDSAInvalidSignatureS",
|
|
104
|
+
"type": "error"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"inputs": [
|
|
108
|
+
{
|
|
109
|
+
"internalType": "address",
|
|
110
|
+
"name": "spender",
|
|
111
|
+
"type": "address"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"internalType": "uint256",
|
|
115
|
+
"name": "allowance",
|
|
116
|
+
"type": "uint256"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"internalType": "uint256",
|
|
120
|
+
"name": "needed",
|
|
121
|
+
"type": "uint256"
|
|
122
|
+
}
|
|
123
|
+
],
|
|
124
|
+
"name": "ERC20InsufficientAllowance",
|
|
125
|
+
"type": "error"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"inputs": [
|
|
129
|
+
{
|
|
130
|
+
"internalType": "address",
|
|
131
|
+
"name": "sender",
|
|
132
|
+
"type": "address"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"internalType": "uint256",
|
|
136
|
+
"name": "balance",
|
|
137
|
+
"type": "uint256"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"internalType": "uint256",
|
|
141
|
+
"name": "needed",
|
|
142
|
+
"type": "uint256"
|
|
143
|
+
}
|
|
144
|
+
],
|
|
145
|
+
"name": "ERC20InsufficientBalance",
|
|
146
|
+
"type": "error"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"inputs": [
|
|
150
|
+
{
|
|
151
|
+
"internalType": "address",
|
|
152
|
+
"name": "approver",
|
|
153
|
+
"type": "address"
|
|
154
|
+
}
|
|
155
|
+
],
|
|
156
|
+
"name": "ERC20InvalidApprover",
|
|
157
|
+
"type": "error"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"inputs": [
|
|
161
|
+
{
|
|
162
|
+
"internalType": "address",
|
|
163
|
+
"name": "receiver",
|
|
164
|
+
"type": "address"
|
|
165
|
+
}
|
|
166
|
+
],
|
|
167
|
+
"name": "ERC20InvalidReceiver",
|
|
168
|
+
"type": "error"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"inputs": [
|
|
172
|
+
{
|
|
173
|
+
"internalType": "address",
|
|
174
|
+
"name": "sender",
|
|
175
|
+
"type": "address"
|
|
176
|
+
}
|
|
177
|
+
],
|
|
178
|
+
"name": "ERC20InvalidSender",
|
|
179
|
+
"type": "error"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"inputs": [
|
|
183
|
+
{
|
|
184
|
+
"internalType": "address",
|
|
185
|
+
"name": "spender",
|
|
186
|
+
"type": "address"
|
|
187
|
+
}
|
|
188
|
+
],
|
|
189
|
+
"name": "ERC20InvalidSpender",
|
|
190
|
+
"type": "error"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"inputs": [
|
|
194
|
+
{
|
|
195
|
+
"internalType": "uint256",
|
|
196
|
+
"name": "deadline",
|
|
197
|
+
"type": "uint256"
|
|
198
|
+
}
|
|
199
|
+
],
|
|
200
|
+
"name": "ERC2612ExpiredSignature",
|
|
201
|
+
"type": "error"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"inputs": [
|
|
205
|
+
{
|
|
206
|
+
"internalType": "address",
|
|
207
|
+
"name": "signer",
|
|
208
|
+
"type": "address"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"internalType": "address",
|
|
212
|
+
"name": "owner",
|
|
213
|
+
"type": "address"
|
|
214
|
+
}
|
|
215
|
+
],
|
|
216
|
+
"name": "ERC2612InvalidSigner",
|
|
217
|
+
"type": "error"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"inputs": [],
|
|
221
|
+
"name": "EnforcedPause",
|
|
222
|
+
"type": "error"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"inputs": [],
|
|
226
|
+
"name": "ExpectedPause",
|
|
227
|
+
"type": "error"
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"inputs": [
|
|
231
|
+
{
|
|
232
|
+
"internalType": "address",
|
|
233
|
+
"name": "account",
|
|
234
|
+
"type": "address"
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"internalType": "uint256",
|
|
238
|
+
"name": "currentNonce",
|
|
239
|
+
"type": "uint256"
|
|
240
|
+
}
|
|
241
|
+
],
|
|
242
|
+
"name": "InvalidAccountNonce",
|
|
243
|
+
"type": "error"
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"inputs": [],
|
|
247
|
+
"name": "InvalidInitialization",
|
|
248
|
+
"type": "error"
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"inputs": [],
|
|
252
|
+
"name": "InvalidSignature",
|
|
253
|
+
"type": "error"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"inputs": [
|
|
257
|
+
{
|
|
258
|
+
"internalType": "address",
|
|
259
|
+
"name": "user",
|
|
260
|
+
"type": "address"
|
|
261
|
+
}
|
|
262
|
+
],
|
|
263
|
+
"name": "NotBlacklisted",
|
|
264
|
+
"type": "error"
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"inputs": [],
|
|
268
|
+
"name": "NotInitializing",
|
|
269
|
+
"type": "error"
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"inputs": [
|
|
273
|
+
{
|
|
274
|
+
"internalType": "address",
|
|
275
|
+
"name": "token",
|
|
276
|
+
"type": "address"
|
|
277
|
+
}
|
|
278
|
+
],
|
|
279
|
+
"name": "SafeERC20FailedOperation",
|
|
280
|
+
"type": "error"
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"inputs": [],
|
|
284
|
+
"name": "ZeroAddress",
|
|
285
|
+
"type": "error"
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"anonymous": false,
|
|
289
|
+
"inputs": [
|
|
290
|
+
{
|
|
291
|
+
"indexed": true,
|
|
292
|
+
"internalType": "address",
|
|
293
|
+
"name": "user",
|
|
294
|
+
"type": "address"
|
|
295
|
+
}
|
|
296
|
+
],
|
|
297
|
+
"name": "AddedBlacklist",
|
|
298
|
+
"type": "event"
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"anonymous": false,
|
|
302
|
+
"inputs": [
|
|
303
|
+
{
|
|
304
|
+
"indexed": true,
|
|
305
|
+
"internalType": "address",
|
|
306
|
+
"name": "owner",
|
|
307
|
+
"type": "address"
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"indexed": true,
|
|
311
|
+
"internalType": "address",
|
|
312
|
+
"name": "spender",
|
|
313
|
+
"type": "address"
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"indexed": false,
|
|
317
|
+
"internalType": "uint256",
|
|
318
|
+
"name": "value",
|
|
319
|
+
"type": "uint256"
|
|
320
|
+
}
|
|
321
|
+
],
|
|
322
|
+
"name": "Approval",
|
|
323
|
+
"type": "event"
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"anonymous": false,
|
|
327
|
+
"inputs": [
|
|
328
|
+
{
|
|
329
|
+
"indexed": true,
|
|
330
|
+
"internalType": "address",
|
|
331
|
+
"name": "authorizer",
|
|
332
|
+
"type": "address"
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
"indexed": true,
|
|
336
|
+
"internalType": "bytes32",
|
|
337
|
+
"name": "nonce",
|
|
338
|
+
"type": "bytes32"
|
|
339
|
+
}
|
|
340
|
+
],
|
|
341
|
+
"name": "AuthorizationCanceled",
|
|
342
|
+
"type": "event"
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
"anonymous": false,
|
|
346
|
+
"inputs": [
|
|
347
|
+
{
|
|
348
|
+
"indexed": true,
|
|
349
|
+
"internalType": "address",
|
|
350
|
+
"name": "authorizer",
|
|
351
|
+
"type": "address"
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
"indexed": true,
|
|
355
|
+
"internalType": "bytes32",
|
|
356
|
+
"name": "nonce",
|
|
357
|
+
"type": "bytes32"
|
|
358
|
+
}
|
|
359
|
+
],
|
|
360
|
+
"name": "AuthorizationUsed",
|
|
361
|
+
"type": "event"
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
"anonymous": false,
|
|
365
|
+
"inputs": [],
|
|
366
|
+
"name": "EIP712DomainChanged",
|
|
367
|
+
"type": "event"
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
"anonymous": false,
|
|
371
|
+
"inputs": [
|
|
372
|
+
{
|
|
373
|
+
"indexed": false,
|
|
374
|
+
"internalType": "uint64",
|
|
375
|
+
"name": "version",
|
|
376
|
+
"type": "uint64"
|
|
377
|
+
}
|
|
378
|
+
],
|
|
379
|
+
"name": "Initialized",
|
|
380
|
+
"type": "event"
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
"anonymous": false,
|
|
384
|
+
"inputs": [
|
|
385
|
+
{
|
|
386
|
+
"indexed": false,
|
|
387
|
+
"internalType": "address",
|
|
388
|
+
"name": "account",
|
|
389
|
+
"type": "address"
|
|
390
|
+
}
|
|
391
|
+
],
|
|
392
|
+
"name": "Paused",
|
|
393
|
+
"type": "event"
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
"anonymous": false,
|
|
397
|
+
"inputs": [
|
|
398
|
+
{
|
|
399
|
+
"indexed": true,
|
|
400
|
+
"internalType": "address",
|
|
401
|
+
"name": "user",
|
|
402
|
+
"type": "address"
|
|
403
|
+
}
|
|
404
|
+
],
|
|
405
|
+
"name": "RemovedBlacklist",
|
|
406
|
+
"type": "event"
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
"anonymous": false,
|
|
410
|
+
"inputs": [
|
|
411
|
+
{
|
|
412
|
+
"indexed": true,
|
|
413
|
+
"internalType": "bytes32",
|
|
414
|
+
"name": "role",
|
|
415
|
+
"type": "bytes32"
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
"indexed": true,
|
|
419
|
+
"internalType": "bytes32",
|
|
420
|
+
"name": "previousAdminRole",
|
|
421
|
+
"type": "bytes32"
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
"indexed": true,
|
|
425
|
+
"internalType": "bytes32",
|
|
426
|
+
"name": "newAdminRole",
|
|
427
|
+
"type": "bytes32"
|
|
428
|
+
}
|
|
429
|
+
],
|
|
430
|
+
"name": "RoleAdminChanged",
|
|
431
|
+
"type": "event"
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
"anonymous": false,
|
|
435
|
+
"inputs": [
|
|
436
|
+
{
|
|
437
|
+
"indexed": true,
|
|
438
|
+
"internalType": "bytes32",
|
|
439
|
+
"name": "role",
|
|
440
|
+
"type": "bytes32"
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
"indexed": true,
|
|
444
|
+
"internalType": "address",
|
|
445
|
+
"name": "account",
|
|
446
|
+
"type": "address"
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
"indexed": true,
|
|
450
|
+
"internalType": "address",
|
|
451
|
+
"name": "sender",
|
|
452
|
+
"type": "address"
|
|
453
|
+
}
|
|
454
|
+
],
|
|
455
|
+
"name": "RoleGranted",
|
|
456
|
+
"type": "event"
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
"anonymous": false,
|
|
460
|
+
"inputs": [
|
|
461
|
+
{
|
|
462
|
+
"indexed": true,
|
|
463
|
+
"internalType": "bytes32",
|
|
464
|
+
"name": "role",
|
|
465
|
+
"type": "bytes32"
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
"indexed": true,
|
|
469
|
+
"internalType": "address",
|
|
470
|
+
"name": "account",
|
|
471
|
+
"type": "address"
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
"indexed": true,
|
|
475
|
+
"internalType": "address",
|
|
476
|
+
"name": "sender",
|
|
477
|
+
"type": "address"
|
|
478
|
+
}
|
|
479
|
+
],
|
|
480
|
+
"name": "RoleRevoked",
|
|
481
|
+
"type": "event"
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
"anonymous": false,
|
|
485
|
+
"inputs": [
|
|
486
|
+
{
|
|
487
|
+
"indexed": true,
|
|
488
|
+
"internalType": "address",
|
|
489
|
+
"name": "from",
|
|
490
|
+
"type": "address"
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
"indexed": true,
|
|
494
|
+
"internalType": "address",
|
|
495
|
+
"name": "to",
|
|
496
|
+
"type": "address"
|
|
497
|
+
},
|
|
498
|
+
{
|
|
499
|
+
"indexed": false,
|
|
500
|
+
"internalType": "uint256",
|
|
501
|
+
"name": "value",
|
|
502
|
+
"type": "uint256"
|
|
503
|
+
}
|
|
504
|
+
],
|
|
505
|
+
"name": "Transfer",
|
|
506
|
+
"type": "event"
|
|
507
|
+
},
|
|
508
|
+
{
|
|
509
|
+
"anonymous": false,
|
|
510
|
+
"inputs": [
|
|
511
|
+
{
|
|
512
|
+
"indexed": false,
|
|
513
|
+
"internalType": "address",
|
|
514
|
+
"name": "account",
|
|
515
|
+
"type": "address"
|
|
516
|
+
}
|
|
517
|
+
],
|
|
518
|
+
"name": "Unpaused",
|
|
519
|
+
"type": "event"
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
"inputs": [],
|
|
523
|
+
"name": "BLACKLISTER_ROLE",
|
|
524
|
+
"outputs": [
|
|
525
|
+
{
|
|
526
|
+
"internalType": "bytes32",
|
|
527
|
+
"name": "",
|
|
528
|
+
"type": "bytes32"
|
|
529
|
+
}
|
|
530
|
+
],
|
|
531
|
+
"stateMutability": "view",
|
|
532
|
+
"type": "function"
|
|
533
|
+
},
|
|
534
|
+
{
|
|
535
|
+
"inputs": [],
|
|
536
|
+
"name": "BURNER_ROLE",
|
|
537
|
+
"outputs": [
|
|
538
|
+
{
|
|
539
|
+
"internalType": "bytes32",
|
|
540
|
+
"name": "",
|
|
541
|
+
"type": "bytes32"
|
|
542
|
+
}
|
|
543
|
+
],
|
|
544
|
+
"stateMutability": "view",
|
|
545
|
+
"type": "function"
|
|
546
|
+
},
|
|
547
|
+
{
|
|
548
|
+
"inputs": [],
|
|
549
|
+
"name": "CANCEL_AUTHORIZATION_TYPEHASH",
|
|
550
|
+
"outputs": [
|
|
551
|
+
{
|
|
552
|
+
"internalType": "bytes32",
|
|
553
|
+
"name": "",
|
|
554
|
+
"type": "bytes32"
|
|
555
|
+
}
|
|
556
|
+
],
|
|
557
|
+
"stateMutability": "view",
|
|
558
|
+
"type": "function"
|
|
559
|
+
},
|
|
560
|
+
{
|
|
561
|
+
"inputs": [],
|
|
562
|
+
"name": "DEFAULT_ADMIN_ROLE",
|
|
563
|
+
"outputs": [
|
|
564
|
+
{
|
|
565
|
+
"internalType": "bytes32",
|
|
566
|
+
"name": "",
|
|
567
|
+
"type": "bytes32"
|
|
568
|
+
}
|
|
569
|
+
],
|
|
570
|
+
"stateMutability": "view",
|
|
571
|
+
"type": "function"
|
|
572
|
+
},
|
|
573
|
+
{
|
|
574
|
+
"inputs": [],
|
|
575
|
+
"name": "DOMAIN_SEPARATOR",
|
|
576
|
+
"outputs": [
|
|
577
|
+
{
|
|
578
|
+
"internalType": "bytes32",
|
|
579
|
+
"name": "",
|
|
580
|
+
"type": "bytes32"
|
|
581
|
+
}
|
|
582
|
+
],
|
|
583
|
+
"stateMutability": "view",
|
|
584
|
+
"type": "function"
|
|
585
|
+
},
|
|
586
|
+
{
|
|
587
|
+
"inputs": [],
|
|
588
|
+
"name": "MINTER_ROLE",
|
|
589
|
+
"outputs": [
|
|
590
|
+
{
|
|
591
|
+
"internalType": "bytes32",
|
|
592
|
+
"name": "",
|
|
593
|
+
"type": "bytes32"
|
|
594
|
+
}
|
|
595
|
+
],
|
|
596
|
+
"stateMutability": "view",
|
|
597
|
+
"type": "function"
|
|
598
|
+
},
|
|
599
|
+
{
|
|
600
|
+
"inputs": [],
|
|
601
|
+
"name": "PAUSER_ROLE",
|
|
602
|
+
"outputs": [
|
|
603
|
+
{
|
|
604
|
+
"internalType": "bytes32",
|
|
605
|
+
"name": "",
|
|
606
|
+
"type": "bytes32"
|
|
607
|
+
}
|
|
608
|
+
],
|
|
609
|
+
"stateMutability": "view",
|
|
610
|
+
"type": "function"
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
"inputs": [],
|
|
614
|
+
"name": "PERMIT_TYPEHASH",
|
|
615
|
+
"outputs": [
|
|
616
|
+
{
|
|
617
|
+
"internalType": "bytes32",
|
|
618
|
+
"name": "",
|
|
619
|
+
"type": "bytes32"
|
|
620
|
+
}
|
|
621
|
+
],
|
|
622
|
+
"stateMutability": "view",
|
|
623
|
+
"type": "function"
|
|
624
|
+
},
|
|
625
|
+
{
|
|
626
|
+
"inputs": [],
|
|
627
|
+
"name": "RECEIVE_WITH_AUTHORIZATION_TYPEHASH",
|
|
628
|
+
"outputs": [
|
|
629
|
+
{
|
|
630
|
+
"internalType": "bytes32",
|
|
631
|
+
"name": "",
|
|
632
|
+
"type": "bytes32"
|
|
633
|
+
}
|
|
634
|
+
],
|
|
635
|
+
"stateMutability": "view",
|
|
636
|
+
"type": "function"
|
|
637
|
+
},
|
|
638
|
+
{
|
|
639
|
+
"inputs": [],
|
|
640
|
+
"name": "SUPPORT_ROLE",
|
|
641
|
+
"outputs": [
|
|
642
|
+
{
|
|
643
|
+
"internalType": "bytes32",
|
|
644
|
+
"name": "",
|
|
645
|
+
"type": "bytes32"
|
|
646
|
+
}
|
|
647
|
+
],
|
|
648
|
+
"stateMutability": "view",
|
|
649
|
+
"type": "function"
|
|
650
|
+
},
|
|
651
|
+
{
|
|
652
|
+
"inputs": [],
|
|
653
|
+
"name": "TRANSFER_WITH_AUTHORIZATION_TYPEHASH",
|
|
654
|
+
"outputs": [
|
|
655
|
+
{
|
|
656
|
+
"internalType": "bytes32",
|
|
657
|
+
"name": "",
|
|
658
|
+
"type": "bytes32"
|
|
659
|
+
}
|
|
660
|
+
],
|
|
661
|
+
"stateMutability": "view",
|
|
662
|
+
"type": "function"
|
|
663
|
+
},
|
|
664
|
+
{
|
|
665
|
+
"inputs": [],
|
|
666
|
+
"name": "UNPAUSER_ROLE",
|
|
667
|
+
"outputs": [
|
|
668
|
+
{
|
|
669
|
+
"internalType": "bytes32",
|
|
670
|
+
"name": "",
|
|
671
|
+
"type": "bytes32"
|
|
672
|
+
}
|
|
673
|
+
],
|
|
674
|
+
"stateMutability": "view",
|
|
675
|
+
"type": "function"
|
|
676
|
+
},
|
|
677
|
+
{
|
|
678
|
+
"inputs": [],
|
|
679
|
+
"name": "WALLET_CODEHASH_A",
|
|
680
|
+
"outputs": [
|
|
681
|
+
{
|
|
682
|
+
"internalType": "bytes32",
|
|
683
|
+
"name": "",
|
|
684
|
+
"type": "bytes32"
|
|
685
|
+
}
|
|
686
|
+
],
|
|
687
|
+
"stateMutability": "view",
|
|
688
|
+
"type": "function"
|
|
689
|
+
},
|
|
690
|
+
{
|
|
691
|
+
"inputs": [],
|
|
692
|
+
"name": "WALLET_CODEHASH_B",
|
|
693
|
+
"outputs": [
|
|
694
|
+
{
|
|
695
|
+
"internalType": "bytes32",
|
|
696
|
+
"name": "",
|
|
697
|
+
"type": "bytes32"
|
|
698
|
+
}
|
|
699
|
+
],
|
|
700
|
+
"stateMutability": "view",
|
|
701
|
+
"type": "function"
|
|
702
|
+
},
|
|
703
|
+
{
|
|
704
|
+
"inputs": [],
|
|
705
|
+
"name": "WALLET_CODEHASH_C",
|
|
706
|
+
"outputs": [
|
|
707
|
+
{
|
|
708
|
+
"internalType": "bytes32",
|
|
709
|
+
"name": "",
|
|
710
|
+
"type": "bytes32"
|
|
711
|
+
}
|
|
712
|
+
],
|
|
713
|
+
"stateMutability": "view",
|
|
714
|
+
"type": "function"
|
|
715
|
+
},
|
|
716
|
+
{
|
|
717
|
+
"inputs": [],
|
|
718
|
+
"name": "WALLET_CODEHASH_D",
|
|
719
|
+
"outputs": [
|
|
720
|
+
{
|
|
721
|
+
"internalType": "bytes32",
|
|
722
|
+
"name": "",
|
|
723
|
+
"type": "bytes32"
|
|
724
|
+
}
|
|
725
|
+
],
|
|
726
|
+
"stateMutability": "view",
|
|
727
|
+
"type": "function"
|
|
728
|
+
},
|
|
729
|
+
{
|
|
730
|
+
"inputs": [
|
|
731
|
+
{
|
|
732
|
+
"internalType": "address",
|
|
733
|
+
"name": "user",
|
|
734
|
+
"type": "address"
|
|
735
|
+
}
|
|
736
|
+
],
|
|
737
|
+
"name": "addBlackList",
|
|
738
|
+
"outputs": [],
|
|
739
|
+
"stateMutability": "nonpayable",
|
|
740
|
+
"type": "function"
|
|
741
|
+
},
|
|
742
|
+
{
|
|
743
|
+
"inputs": [
|
|
744
|
+
{
|
|
745
|
+
"internalType": "address",
|
|
746
|
+
"name": "owner",
|
|
747
|
+
"type": "address"
|
|
748
|
+
},
|
|
749
|
+
{
|
|
750
|
+
"internalType": "address",
|
|
751
|
+
"name": "spender",
|
|
752
|
+
"type": "address"
|
|
753
|
+
}
|
|
754
|
+
],
|
|
755
|
+
"name": "allowance",
|
|
756
|
+
"outputs": [
|
|
757
|
+
{
|
|
758
|
+
"internalType": "uint256",
|
|
759
|
+
"name": "",
|
|
760
|
+
"type": "uint256"
|
|
761
|
+
}
|
|
762
|
+
],
|
|
763
|
+
"stateMutability": "view",
|
|
764
|
+
"type": "function"
|
|
765
|
+
},
|
|
766
|
+
{
|
|
767
|
+
"inputs": [
|
|
768
|
+
{
|
|
769
|
+
"internalType": "address",
|
|
770
|
+
"name": "spender",
|
|
771
|
+
"type": "address"
|
|
772
|
+
},
|
|
773
|
+
{
|
|
774
|
+
"internalType": "uint256",
|
|
775
|
+
"name": "value",
|
|
776
|
+
"type": "uint256"
|
|
777
|
+
}
|
|
778
|
+
],
|
|
779
|
+
"name": "approve",
|
|
780
|
+
"outputs": [
|
|
781
|
+
{
|
|
782
|
+
"internalType": "bool",
|
|
783
|
+
"name": "",
|
|
784
|
+
"type": "bool"
|
|
785
|
+
}
|
|
786
|
+
],
|
|
787
|
+
"stateMutability": "nonpayable",
|
|
788
|
+
"type": "function"
|
|
789
|
+
},
|
|
790
|
+
{
|
|
791
|
+
"inputs": [
|
|
792
|
+
{
|
|
793
|
+
"internalType": "address",
|
|
794
|
+
"name": "authorizer",
|
|
795
|
+
"type": "address"
|
|
796
|
+
},
|
|
797
|
+
{
|
|
798
|
+
"internalType": "bytes32",
|
|
799
|
+
"name": "nonce",
|
|
800
|
+
"type": "bytes32"
|
|
801
|
+
}
|
|
802
|
+
],
|
|
803
|
+
"name": "authorizationState",
|
|
804
|
+
"outputs": [
|
|
805
|
+
{
|
|
806
|
+
"internalType": "bool",
|
|
807
|
+
"name": "",
|
|
808
|
+
"type": "bool"
|
|
809
|
+
}
|
|
810
|
+
],
|
|
811
|
+
"stateMutability": "view",
|
|
812
|
+
"type": "function"
|
|
813
|
+
},
|
|
814
|
+
{
|
|
815
|
+
"inputs": [
|
|
816
|
+
{
|
|
817
|
+
"internalType": "address",
|
|
818
|
+
"name": "account",
|
|
819
|
+
"type": "address"
|
|
820
|
+
}
|
|
821
|
+
],
|
|
822
|
+
"name": "balanceOf",
|
|
823
|
+
"outputs": [
|
|
824
|
+
{
|
|
825
|
+
"internalType": "uint256",
|
|
826
|
+
"name": "",
|
|
827
|
+
"type": "uint256"
|
|
828
|
+
}
|
|
829
|
+
],
|
|
830
|
+
"stateMutability": "view",
|
|
831
|
+
"type": "function"
|
|
832
|
+
},
|
|
833
|
+
{
|
|
834
|
+
"inputs": [
|
|
835
|
+
{
|
|
836
|
+
"internalType": "address",
|
|
837
|
+
"name": "user",
|
|
838
|
+
"type": "address"
|
|
839
|
+
}
|
|
840
|
+
],
|
|
841
|
+
"name": "blacklisted",
|
|
842
|
+
"outputs": [
|
|
843
|
+
{
|
|
844
|
+
"internalType": "bool",
|
|
845
|
+
"name": "",
|
|
846
|
+
"type": "bool"
|
|
847
|
+
}
|
|
848
|
+
],
|
|
849
|
+
"stateMutability": "view",
|
|
850
|
+
"type": "function"
|
|
851
|
+
},
|
|
852
|
+
{
|
|
853
|
+
"inputs": [
|
|
854
|
+
{
|
|
855
|
+
"internalType": "uint256",
|
|
856
|
+
"name": "value",
|
|
857
|
+
"type": "uint256"
|
|
858
|
+
}
|
|
859
|
+
],
|
|
860
|
+
"name": "burn",
|
|
861
|
+
"outputs": [],
|
|
862
|
+
"stateMutability": "nonpayable",
|
|
863
|
+
"type": "function"
|
|
864
|
+
},
|
|
865
|
+
{
|
|
866
|
+
"inputs": [
|
|
867
|
+
{
|
|
868
|
+
"internalType": "address",
|
|
869
|
+
"name": "account",
|
|
870
|
+
"type": "address"
|
|
871
|
+
},
|
|
872
|
+
{
|
|
873
|
+
"internalType": "uint256",
|
|
874
|
+
"name": "value",
|
|
875
|
+
"type": "uint256"
|
|
876
|
+
}
|
|
877
|
+
],
|
|
878
|
+
"name": "burnFrom",
|
|
879
|
+
"outputs": [],
|
|
880
|
+
"stateMutability": "nonpayable",
|
|
881
|
+
"type": "function"
|
|
882
|
+
},
|
|
883
|
+
{
|
|
884
|
+
"inputs": [
|
|
885
|
+
{
|
|
886
|
+
"internalType": "address",
|
|
887
|
+
"name": "authorizer",
|
|
888
|
+
"type": "address"
|
|
889
|
+
},
|
|
890
|
+
{
|
|
891
|
+
"internalType": "bytes32",
|
|
892
|
+
"name": "nonce",
|
|
893
|
+
"type": "bytes32"
|
|
894
|
+
},
|
|
895
|
+
{
|
|
896
|
+
"internalType": "uint8",
|
|
897
|
+
"name": "v",
|
|
898
|
+
"type": "uint8"
|
|
899
|
+
},
|
|
900
|
+
{
|
|
901
|
+
"internalType": "bytes32",
|
|
902
|
+
"name": "r",
|
|
903
|
+
"type": "bytes32"
|
|
904
|
+
},
|
|
905
|
+
{
|
|
906
|
+
"internalType": "bytes32",
|
|
907
|
+
"name": "s",
|
|
908
|
+
"type": "bytes32"
|
|
909
|
+
}
|
|
910
|
+
],
|
|
911
|
+
"name": "cancelAuthorization",
|
|
912
|
+
"outputs": [],
|
|
913
|
+
"stateMutability": "nonpayable",
|
|
914
|
+
"type": "function"
|
|
915
|
+
},
|
|
916
|
+
{
|
|
917
|
+
"inputs": [
|
|
918
|
+
{
|
|
919
|
+
"internalType": "address",
|
|
920
|
+
"name": "authorizer",
|
|
921
|
+
"type": "address"
|
|
922
|
+
},
|
|
923
|
+
{
|
|
924
|
+
"internalType": "bytes32",
|
|
925
|
+
"name": "nonce",
|
|
926
|
+
"type": "bytes32"
|
|
927
|
+
},
|
|
928
|
+
{
|
|
929
|
+
"internalType": "bytes",
|
|
930
|
+
"name": "signature",
|
|
931
|
+
"type": "bytes"
|
|
932
|
+
}
|
|
933
|
+
],
|
|
934
|
+
"name": "cancelAuthorization",
|
|
935
|
+
"outputs": [],
|
|
936
|
+
"stateMutability": "nonpayable",
|
|
937
|
+
"type": "function"
|
|
938
|
+
},
|
|
939
|
+
{
|
|
940
|
+
"inputs": [],
|
|
941
|
+
"name": "decimals",
|
|
942
|
+
"outputs": [
|
|
943
|
+
{
|
|
944
|
+
"internalType": "uint8",
|
|
945
|
+
"name": "",
|
|
946
|
+
"type": "uint8"
|
|
947
|
+
}
|
|
948
|
+
],
|
|
949
|
+
"stateMutability": "view",
|
|
950
|
+
"type": "function"
|
|
951
|
+
},
|
|
952
|
+
{
|
|
953
|
+
"inputs": [],
|
|
954
|
+
"name": "eip712Domain",
|
|
955
|
+
"outputs": [
|
|
956
|
+
{
|
|
957
|
+
"internalType": "bytes1",
|
|
958
|
+
"name": "fields",
|
|
959
|
+
"type": "bytes1"
|
|
960
|
+
},
|
|
961
|
+
{
|
|
962
|
+
"internalType": "string",
|
|
963
|
+
"name": "name",
|
|
964
|
+
"type": "string"
|
|
965
|
+
},
|
|
966
|
+
{
|
|
967
|
+
"internalType": "string",
|
|
968
|
+
"name": "version",
|
|
969
|
+
"type": "string"
|
|
970
|
+
},
|
|
971
|
+
{
|
|
972
|
+
"internalType": "uint256",
|
|
973
|
+
"name": "chainId",
|
|
974
|
+
"type": "uint256"
|
|
975
|
+
},
|
|
976
|
+
{
|
|
977
|
+
"internalType": "address",
|
|
978
|
+
"name": "verifyingContract",
|
|
979
|
+
"type": "address"
|
|
980
|
+
},
|
|
981
|
+
{
|
|
982
|
+
"internalType": "bytes32",
|
|
983
|
+
"name": "salt",
|
|
984
|
+
"type": "bytes32"
|
|
985
|
+
},
|
|
986
|
+
{
|
|
987
|
+
"internalType": "uint256[]",
|
|
988
|
+
"name": "extensions",
|
|
989
|
+
"type": "uint256[]"
|
|
990
|
+
}
|
|
991
|
+
],
|
|
992
|
+
"stateMutability": "view",
|
|
993
|
+
"type": "function"
|
|
994
|
+
},
|
|
995
|
+
{
|
|
996
|
+
"inputs": [
|
|
997
|
+
{
|
|
998
|
+
"internalType": "contract IERC20",
|
|
999
|
+
"name": "token",
|
|
1000
|
+
"type": "address"
|
|
1001
|
+
},
|
|
1002
|
+
{
|
|
1003
|
+
"internalType": "address",
|
|
1004
|
+
"name": "destination",
|
|
1005
|
+
"type": "address"
|
|
1006
|
+
},
|
|
1007
|
+
{
|
|
1008
|
+
"internalType": "uint256",
|
|
1009
|
+
"name": "amount",
|
|
1010
|
+
"type": "uint256"
|
|
1011
|
+
}
|
|
1012
|
+
],
|
|
1013
|
+
"name": "erc20Rescue",
|
|
1014
|
+
"outputs": [],
|
|
1015
|
+
"stateMutability": "nonpayable",
|
|
1016
|
+
"type": "function"
|
|
1017
|
+
},
|
|
1018
|
+
{
|
|
1019
|
+
"inputs": [
|
|
1020
|
+
{
|
|
1021
|
+
"internalType": "bytes32",
|
|
1022
|
+
"name": "role",
|
|
1023
|
+
"type": "bytes32"
|
|
1024
|
+
}
|
|
1025
|
+
],
|
|
1026
|
+
"name": "getRoleAdmin",
|
|
1027
|
+
"outputs": [
|
|
1028
|
+
{
|
|
1029
|
+
"internalType": "bytes32",
|
|
1030
|
+
"name": "",
|
|
1031
|
+
"type": "bytes32"
|
|
1032
|
+
}
|
|
1033
|
+
],
|
|
1034
|
+
"stateMutability": "view",
|
|
1035
|
+
"type": "function"
|
|
1036
|
+
},
|
|
1037
|
+
{
|
|
1038
|
+
"inputs": [
|
|
1039
|
+
{
|
|
1040
|
+
"internalType": "bytes32",
|
|
1041
|
+
"name": "role",
|
|
1042
|
+
"type": "bytes32"
|
|
1043
|
+
},
|
|
1044
|
+
{
|
|
1045
|
+
"internalType": "address",
|
|
1046
|
+
"name": "account",
|
|
1047
|
+
"type": "address"
|
|
1048
|
+
}
|
|
1049
|
+
],
|
|
1050
|
+
"name": "grantRole",
|
|
1051
|
+
"outputs": [],
|
|
1052
|
+
"stateMutability": "nonpayable",
|
|
1053
|
+
"type": "function"
|
|
1054
|
+
},
|
|
1055
|
+
{
|
|
1056
|
+
"inputs": [
|
|
1057
|
+
{
|
|
1058
|
+
"internalType": "bytes32",
|
|
1059
|
+
"name": "role",
|
|
1060
|
+
"type": "bytes32"
|
|
1061
|
+
},
|
|
1062
|
+
{
|
|
1063
|
+
"internalType": "address",
|
|
1064
|
+
"name": "account",
|
|
1065
|
+
"type": "address"
|
|
1066
|
+
}
|
|
1067
|
+
],
|
|
1068
|
+
"name": "hasRole",
|
|
1069
|
+
"outputs": [
|
|
1070
|
+
{
|
|
1071
|
+
"internalType": "bool",
|
|
1072
|
+
"name": "",
|
|
1073
|
+
"type": "bool"
|
|
1074
|
+
}
|
|
1075
|
+
],
|
|
1076
|
+
"stateMutability": "view",
|
|
1077
|
+
"type": "function"
|
|
1078
|
+
},
|
|
1079
|
+
{
|
|
1080
|
+
"inputs": [
|
|
1081
|
+
{
|
|
1082
|
+
"internalType": "string",
|
|
1083
|
+
"name": "name_",
|
|
1084
|
+
"type": "string"
|
|
1085
|
+
},
|
|
1086
|
+
{
|
|
1087
|
+
"internalType": "string",
|
|
1088
|
+
"name": "symbol_",
|
|
1089
|
+
"type": "string"
|
|
1090
|
+
},
|
|
1091
|
+
{
|
|
1092
|
+
"internalType": "uint8",
|
|
1093
|
+
"name": "decimals_",
|
|
1094
|
+
"type": "uint8"
|
|
1095
|
+
}
|
|
1096
|
+
],
|
|
1097
|
+
"name": "initialize",
|
|
1098
|
+
"outputs": [],
|
|
1099
|
+
"stateMutability": "nonpayable",
|
|
1100
|
+
"type": "function"
|
|
1101
|
+
},
|
|
1102
|
+
{
|
|
1103
|
+
"inputs": [
|
|
1104
|
+
{
|
|
1105
|
+
"internalType": "address",
|
|
1106
|
+
"name": "candidate",
|
|
1107
|
+
"type": "address"
|
|
1108
|
+
}
|
|
1109
|
+
],
|
|
1110
|
+
"name": "isTelcoinWallet",
|
|
1111
|
+
"outputs": [
|
|
1112
|
+
{
|
|
1113
|
+
"internalType": "bool",
|
|
1114
|
+
"name": "",
|
|
1115
|
+
"type": "bool"
|
|
1116
|
+
}
|
|
1117
|
+
],
|
|
1118
|
+
"stateMutability": "view",
|
|
1119
|
+
"type": "function"
|
|
1120
|
+
},
|
|
1121
|
+
{
|
|
1122
|
+
"inputs": [
|
|
1123
|
+
{
|
|
1124
|
+
"internalType": "uint256",
|
|
1125
|
+
"name": "value",
|
|
1126
|
+
"type": "uint256"
|
|
1127
|
+
}
|
|
1128
|
+
],
|
|
1129
|
+
"name": "mint",
|
|
1130
|
+
"outputs": [],
|
|
1131
|
+
"stateMutability": "nonpayable",
|
|
1132
|
+
"type": "function"
|
|
1133
|
+
},
|
|
1134
|
+
{
|
|
1135
|
+
"inputs": [
|
|
1136
|
+
{
|
|
1137
|
+
"internalType": "address",
|
|
1138
|
+
"name": "account",
|
|
1139
|
+
"type": "address"
|
|
1140
|
+
},
|
|
1141
|
+
{
|
|
1142
|
+
"internalType": "uint256",
|
|
1143
|
+
"name": "value",
|
|
1144
|
+
"type": "uint256"
|
|
1145
|
+
}
|
|
1146
|
+
],
|
|
1147
|
+
"name": "mintTo",
|
|
1148
|
+
"outputs": [],
|
|
1149
|
+
"stateMutability": "nonpayable",
|
|
1150
|
+
"type": "function"
|
|
1151
|
+
},
|
|
1152
|
+
{
|
|
1153
|
+
"inputs": [],
|
|
1154
|
+
"name": "name",
|
|
1155
|
+
"outputs": [
|
|
1156
|
+
{
|
|
1157
|
+
"internalType": "string",
|
|
1158
|
+
"name": "",
|
|
1159
|
+
"type": "string"
|
|
1160
|
+
}
|
|
1161
|
+
],
|
|
1162
|
+
"stateMutability": "view",
|
|
1163
|
+
"type": "function"
|
|
1164
|
+
},
|
|
1165
|
+
{
|
|
1166
|
+
"inputs": [
|
|
1167
|
+
{
|
|
1168
|
+
"internalType": "address",
|
|
1169
|
+
"name": "owner",
|
|
1170
|
+
"type": "address"
|
|
1171
|
+
}
|
|
1172
|
+
],
|
|
1173
|
+
"name": "nonces",
|
|
1174
|
+
"outputs": [
|
|
1175
|
+
{
|
|
1176
|
+
"internalType": "uint256",
|
|
1177
|
+
"name": "",
|
|
1178
|
+
"type": "uint256"
|
|
1179
|
+
}
|
|
1180
|
+
],
|
|
1181
|
+
"stateMutability": "view",
|
|
1182
|
+
"type": "function"
|
|
1183
|
+
},
|
|
1184
|
+
{
|
|
1185
|
+
"inputs": [],
|
|
1186
|
+
"name": "pause",
|
|
1187
|
+
"outputs": [],
|
|
1188
|
+
"stateMutability": "nonpayable",
|
|
1189
|
+
"type": "function"
|
|
1190
|
+
},
|
|
1191
|
+
{
|
|
1192
|
+
"inputs": [],
|
|
1193
|
+
"name": "paused",
|
|
1194
|
+
"outputs": [
|
|
1195
|
+
{
|
|
1196
|
+
"internalType": "bool",
|
|
1197
|
+
"name": "",
|
|
1198
|
+
"type": "bool"
|
|
1199
|
+
}
|
|
1200
|
+
],
|
|
1201
|
+
"stateMutability": "view",
|
|
1202
|
+
"type": "function"
|
|
1203
|
+
},
|
|
1204
|
+
{
|
|
1205
|
+
"inputs": [
|
|
1206
|
+
{
|
|
1207
|
+
"internalType": "address",
|
|
1208
|
+
"name": "owner_",
|
|
1209
|
+
"type": "address"
|
|
1210
|
+
},
|
|
1211
|
+
{
|
|
1212
|
+
"internalType": "address",
|
|
1213
|
+
"name": "spender",
|
|
1214
|
+
"type": "address"
|
|
1215
|
+
},
|
|
1216
|
+
{
|
|
1217
|
+
"internalType": "uint256",
|
|
1218
|
+
"name": "value",
|
|
1219
|
+
"type": "uint256"
|
|
1220
|
+
},
|
|
1221
|
+
{
|
|
1222
|
+
"internalType": "uint256",
|
|
1223
|
+
"name": "deadline",
|
|
1224
|
+
"type": "uint256"
|
|
1225
|
+
},
|
|
1226
|
+
{
|
|
1227
|
+
"internalType": "bytes",
|
|
1228
|
+
"name": "signature",
|
|
1229
|
+
"type": "bytes"
|
|
1230
|
+
}
|
|
1231
|
+
],
|
|
1232
|
+
"name": "permit",
|
|
1233
|
+
"outputs": [],
|
|
1234
|
+
"stateMutability": "nonpayable",
|
|
1235
|
+
"type": "function"
|
|
1236
|
+
},
|
|
1237
|
+
{
|
|
1238
|
+
"inputs": [
|
|
1239
|
+
{
|
|
1240
|
+
"internalType": "address",
|
|
1241
|
+
"name": "owner",
|
|
1242
|
+
"type": "address"
|
|
1243
|
+
},
|
|
1244
|
+
{
|
|
1245
|
+
"internalType": "address",
|
|
1246
|
+
"name": "spender",
|
|
1247
|
+
"type": "address"
|
|
1248
|
+
},
|
|
1249
|
+
{
|
|
1250
|
+
"internalType": "uint256",
|
|
1251
|
+
"name": "value",
|
|
1252
|
+
"type": "uint256"
|
|
1253
|
+
},
|
|
1254
|
+
{
|
|
1255
|
+
"internalType": "uint256",
|
|
1256
|
+
"name": "deadline",
|
|
1257
|
+
"type": "uint256"
|
|
1258
|
+
},
|
|
1259
|
+
{
|
|
1260
|
+
"internalType": "uint8",
|
|
1261
|
+
"name": "v",
|
|
1262
|
+
"type": "uint8"
|
|
1263
|
+
},
|
|
1264
|
+
{
|
|
1265
|
+
"internalType": "bytes32",
|
|
1266
|
+
"name": "r",
|
|
1267
|
+
"type": "bytes32"
|
|
1268
|
+
},
|
|
1269
|
+
{
|
|
1270
|
+
"internalType": "bytes32",
|
|
1271
|
+
"name": "s",
|
|
1272
|
+
"type": "bytes32"
|
|
1273
|
+
}
|
|
1274
|
+
],
|
|
1275
|
+
"name": "permit",
|
|
1276
|
+
"outputs": [],
|
|
1277
|
+
"stateMutability": "nonpayable",
|
|
1278
|
+
"type": "function"
|
|
1279
|
+
},
|
|
1280
|
+
{
|
|
1281
|
+
"inputs": [
|
|
1282
|
+
{
|
|
1283
|
+
"internalType": "address",
|
|
1284
|
+
"name": "from",
|
|
1285
|
+
"type": "address"
|
|
1286
|
+
},
|
|
1287
|
+
{
|
|
1288
|
+
"internalType": "address",
|
|
1289
|
+
"name": "to",
|
|
1290
|
+
"type": "address"
|
|
1291
|
+
},
|
|
1292
|
+
{
|
|
1293
|
+
"internalType": "uint256",
|
|
1294
|
+
"name": "value",
|
|
1295
|
+
"type": "uint256"
|
|
1296
|
+
},
|
|
1297
|
+
{
|
|
1298
|
+
"internalType": "uint256",
|
|
1299
|
+
"name": "validAfter",
|
|
1300
|
+
"type": "uint256"
|
|
1301
|
+
},
|
|
1302
|
+
{
|
|
1303
|
+
"internalType": "uint256",
|
|
1304
|
+
"name": "validBefore",
|
|
1305
|
+
"type": "uint256"
|
|
1306
|
+
},
|
|
1307
|
+
{
|
|
1308
|
+
"internalType": "bytes32",
|
|
1309
|
+
"name": "nonce",
|
|
1310
|
+
"type": "bytes32"
|
|
1311
|
+
},
|
|
1312
|
+
{
|
|
1313
|
+
"internalType": "bytes",
|
|
1314
|
+
"name": "signature",
|
|
1315
|
+
"type": "bytes"
|
|
1316
|
+
}
|
|
1317
|
+
],
|
|
1318
|
+
"name": "receiveWithAuthorization",
|
|
1319
|
+
"outputs": [],
|
|
1320
|
+
"stateMutability": "nonpayable",
|
|
1321
|
+
"type": "function"
|
|
1322
|
+
},
|
|
1323
|
+
{
|
|
1324
|
+
"inputs": [
|
|
1325
|
+
{
|
|
1326
|
+
"internalType": "address",
|
|
1327
|
+
"name": "from",
|
|
1328
|
+
"type": "address"
|
|
1329
|
+
},
|
|
1330
|
+
{
|
|
1331
|
+
"internalType": "address",
|
|
1332
|
+
"name": "to",
|
|
1333
|
+
"type": "address"
|
|
1334
|
+
},
|
|
1335
|
+
{
|
|
1336
|
+
"internalType": "uint256",
|
|
1337
|
+
"name": "value",
|
|
1338
|
+
"type": "uint256"
|
|
1339
|
+
},
|
|
1340
|
+
{
|
|
1341
|
+
"internalType": "uint256",
|
|
1342
|
+
"name": "validAfter",
|
|
1343
|
+
"type": "uint256"
|
|
1344
|
+
},
|
|
1345
|
+
{
|
|
1346
|
+
"internalType": "uint256",
|
|
1347
|
+
"name": "validBefore",
|
|
1348
|
+
"type": "uint256"
|
|
1349
|
+
},
|
|
1350
|
+
{
|
|
1351
|
+
"internalType": "bytes32",
|
|
1352
|
+
"name": "nonce",
|
|
1353
|
+
"type": "bytes32"
|
|
1354
|
+
},
|
|
1355
|
+
{
|
|
1356
|
+
"internalType": "uint8",
|
|
1357
|
+
"name": "v",
|
|
1358
|
+
"type": "uint8"
|
|
1359
|
+
},
|
|
1360
|
+
{
|
|
1361
|
+
"internalType": "bytes32",
|
|
1362
|
+
"name": "r",
|
|
1363
|
+
"type": "bytes32"
|
|
1364
|
+
},
|
|
1365
|
+
{
|
|
1366
|
+
"internalType": "bytes32",
|
|
1367
|
+
"name": "s",
|
|
1368
|
+
"type": "bytes32"
|
|
1369
|
+
}
|
|
1370
|
+
],
|
|
1371
|
+
"name": "receiveWithAuthorization",
|
|
1372
|
+
"outputs": [],
|
|
1373
|
+
"stateMutability": "nonpayable",
|
|
1374
|
+
"type": "function"
|
|
1375
|
+
},
|
|
1376
|
+
{
|
|
1377
|
+
"inputs": [
|
|
1378
|
+
{
|
|
1379
|
+
"internalType": "address",
|
|
1380
|
+
"name": "user",
|
|
1381
|
+
"type": "address"
|
|
1382
|
+
}
|
|
1383
|
+
],
|
|
1384
|
+
"name": "removeBlackList",
|
|
1385
|
+
"outputs": [],
|
|
1386
|
+
"stateMutability": "nonpayable",
|
|
1387
|
+
"type": "function"
|
|
1388
|
+
},
|
|
1389
|
+
{
|
|
1390
|
+
"inputs": [
|
|
1391
|
+
{
|
|
1392
|
+
"internalType": "bytes32",
|
|
1393
|
+
"name": "role",
|
|
1394
|
+
"type": "bytes32"
|
|
1395
|
+
},
|
|
1396
|
+
{
|
|
1397
|
+
"internalType": "address",
|
|
1398
|
+
"name": "callerConfirmation",
|
|
1399
|
+
"type": "address"
|
|
1400
|
+
}
|
|
1401
|
+
],
|
|
1402
|
+
"name": "renounceRole",
|
|
1403
|
+
"outputs": [],
|
|
1404
|
+
"stateMutability": "nonpayable",
|
|
1405
|
+
"type": "function"
|
|
1406
|
+
},
|
|
1407
|
+
{
|
|
1408
|
+
"inputs": [
|
|
1409
|
+
{
|
|
1410
|
+
"internalType": "bytes32",
|
|
1411
|
+
"name": "role",
|
|
1412
|
+
"type": "bytes32"
|
|
1413
|
+
},
|
|
1414
|
+
{
|
|
1415
|
+
"internalType": "address",
|
|
1416
|
+
"name": "account",
|
|
1417
|
+
"type": "address"
|
|
1418
|
+
}
|
|
1419
|
+
],
|
|
1420
|
+
"name": "revokeRole",
|
|
1421
|
+
"outputs": [],
|
|
1422
|
+
"stateMutability": "nonpayable",
|
|
1423
|
+
"type": "function"
|
|
1424
|
+
},
|
|
1425
|
+
{
|
|
1426
|
+
"inputs": [
|
|
1427
|
+
{
|
|
1428
|
+
"internalType": "bytes4",
|
|
1429
|
+
"name": "interfaceId",
|
|
1430
|
+
"type": "bytes4"
|
|
1431
|
+
}
|
|
1432
|
+
],
|
|
1433
|
+
"name": "supportsInterface",
|
|
1434
|
+
"outputs": [
|
|
1435
|
+
{
|
|
1436
|
+
"internalType": "bool",
|
|
1437
|
+
"name": "",
|
|
1438
|
+
"type": "bool"
|
|
1439
|
+
}
|
|
1440
|
+
],
|
|
1441
|
+
"stateMutability": "view",
|
|
1442
|
+
"type": "function"
|
|
1443
|
+
},
|
|
1444
|
+
{
|
|
1445
|
+
"inputs": [],
|
|
1446
|
+
"name": "symbol",
|
|
1447
|
+
"outputs": [
|
|
1448
|
+
{
|
|
1449
|
+
"internalType": "string",
|
|
1450
|
+
"name": "",
|
|
1451
|
+
"type": "string"
|
|
1452
|
+
}
|
|
1453
|
+
],
|
|
1454
|
+
"stateMutability": "view",
|
|
1455
|
+
"type": "function"
|
|
1456
|
+
},
|
|
1457
|
+
{
|
|
1458
|
+
"inputs": [],
|
|
1459
|
+
"name": "totalSupply",
|
|
1460
|
+
"outputs": [
|
|
1461
|
+
{
|
|
1462
|
+
"internalType": "uint256",
|
|
1463
|
+
"name": "",
|
|
1464
|
+
"type": "uint256"
|
|
1465
|
+
}
|
|
1466
|
+
],
|
|
1467
|
+
"stateMutability": "view",
|
|
1468
|
+
"type": "function"
|
|
1469
|
+
},
|
|
1470
|
+
{
|
|
1471
|
+
"inputs": [
|
|
1472
|
+
{
|
|
1473
|
+
"internalType": "address",
|
|
1474
|
+
"name": "to",
|
|
1475
|
+
"type": "address"
|
|
1476
|
+
},
|
|
1477
|
+
{
|
|
1478
|
+
"internalType": "uint256",
|
|
1479
|
+
"name": "value",
|
|
1480
|
+
"type": "uint256"
|
|
1481
|
+
}
|
|
1482
|
+
],
|
|
1483
|
+
"name": "transfer",
|
|
1484
|
+
"outputs": [
|
|
1485
|
+
{
|
|
1486
|
+
"internalType": "bool",
|
|
1487
|
+
"name": "",
|
|
1488
|
+
"type": "bool"
|
|
1489
|
+
}
|
|
1490
|
+
],
|
|
1491
|
+
"stateMutability": "nonpayable",
|
|
1492
|
+
"type": "function"
|
|
1493
|
+
},
|
|
1494
|
+
{
|
|
1495
|
+
"inputs": [
|
|
1496
|
+
{
|
|
1497
|
+
"internalType": "address",
|
|
1498
|
+
"name": "from",
|
|
1499
|
+
"type": "address"
|
|
1500
|
+
},
|
|
1501
|
+
{
|
|
1502
|
+
"internalType": "address",
|
|
1503
|
+
"name": "to",
|
|
1504
|
+
"type": "address"
|
|
1505
|
+
},
|
|
1506
|
+
{
|
|
1507
|
+
"internalType": "uint256",
|
|
1508
|
+
"name": "value",
|
|
1509
|
+
"type": "uint256"
|
|
1510
|
+
}
|
|
1511
|
+
],
|
|
1512
|
+
"name": "transferFrom",
|
|
1513
|
+
"outputs": [
|
|
1514
|
+
{
|
|
1515
|
+
"internalType": "bool",
|
|
1516
|
+
"name": "",
|
|
1517
|
+
"type": "bool"
|
|
1518
|
+
}
|
|
1519
|
+
],
|
|
1520
|
+
"stateMutability": "nonpayable",
|
|
1521
|
+
"type": "function"
|
|
1522
|
+
},
|
|
1523
|
+
{
|
|
1524
|
+
"inputs": [
|
|
1525
|
+
{
|
|
1526
|
+
"internalType": "address",
|
|
1527
|
+
"name": "from",
|
|
1528
|
+
"type": "address"
|
|
1529
|
+
},
|
|
1530
|
+
{
|
|
1531
|
+
"internalType": "address",
|
|
1532
|
+
"name": "to",
|
|
1533
|
+
"type": "address"
|
|
1534
|
+
},
|
|
1535
|
+
{
|
|
1536
|
+
"internalType": "uint256",
|
|
1537
|
+
"name": "value",
|
|
1538
|
+
"type": "uint256"
|
|
1539
|
+
},
|
|
1540
|
+
{
|
|
1541
|
+
"internalType": "uint256",
|
|
1542
|
+
"name": "validAfter",
|
|
1543
|
+
"type": "uint256"
|
|
1544
|
+
},
|
|
1545
|
+
{
|
|
1546
|
+
"internalType": "uint256",
|
|
1547
|
+
"name": "validBefore",
|
|
1548
|
+
"type": "uint256"
|
|
1549
|
+
},
|
|
1550
|
+
{
|
|
1551
|
+
"internalType": "bytes32",
|
|
1552
|
+
"name": "nonce",
|
|
1553
|
+
"type": "bytes32"
|
|
1554
|
+
},
|
|
1555
|
+
{
|
|
1556
|
+
"internalType": "bytes",
|
|
1557
|
+
"name": "signature",
|
|
1558
|
+
"type": "bytes"
|
|
1559
|
+
}
|
|
1560
|
+
],
|
|
1561
|
+
"name": "transferWithAuthorization",
|
|
1562
|
+
"outputs": [],
|
|
1563
|
+
"stateMutability": "nonpayable",
|
|
1564
|
+
"type": "function"
|
|
1565
|
+
},
|
|
1566
|
+
{
|
|
1567
|
+
"inputs": [
|
|
1568
|
+
{
|
|
1569
|
+
"internalType": "address",
|
|
1570
|
+
"name": "from",
|
|
1571
|
+
"type": "address"
|
|
1572
|
+
},
|
|
1573
|
+
{
|
|
1574
|
+
"internalType": "address",
|
|
1575
|
+
"name": "to",
|
|
1576
|
+
"type": "address"
|
|
1577
|
+
},
|
|
1578
|
+
{
|
|
1579
|
+
"internalType": "uint256",
|
|
1580
|
+
"name": "value",
|
|
1581
|
+
"type": "uint256"
|
|
1582
|
+
},
|
|
1583
|
+
{
|
|
1584
|
+
"internalType": "uint256",
|
|
1585
|
+
"name": "validAfter",
|
|
1586
|
+
"type": "uint256"
|
|
1587
|
+
},
|
|
1588
|
+
{
|
|
1589
|
+
"internalType": "uint256",
|
|
1590
|
+
"name": "validBefore",
|
|
1591
|
+
"type": "uint256"
|
|
1592
|
+
},
|
|
1593
|
+
{
|
|
1594
|
+
"internalType": "bytes32",
|
|
1595
|
+
"name": "nonce",
|
|
1596
|
+
"type": "bytes32"
|
|
1597
|
+
},
|
|
1598
|
+
{
|
|
1599
|
+
"internalType": "uint8",
|
|
1600
|
+
"name": "v",
|
|
1601
|
+
"type": "uint8"
|
|
1602
|
+
},
|
|
1603
|
+
{
|
|
1604
|
+
"internalType": "bytes32",
|
|
1605
|
+
"name": "r",
|
|
1606
|
+
"type": "bytes32"
|
|
1607
|
+
},
|
|
1608
|
+
{
|
|
1609
|
+
"internalType": "bytes32",
|
|
1610
|
+
"name": "s",
|
|
1611
|
+
"type": "bytes32"
|
|
1612
|
+
}
|
|
1613
|
+
],
|
|
1614
|
+
"name": "transferWithAuthorization",
|
|
1615
|
+
"outputs": [],
|
|
1616
|
+
"stateMutability": "nonpayable",
|
|
1617
|
+
"type": "function"
|
|
1618
|
+
},
|
|
1619
|
+
{
|
|
1620
|
+
"inputs": [],
|
|
1621
|
+
"name": "unpause",
|
|
1622
|
+
"outputs": [],
|
|
1623
|
+
"stateMutability": "nonpayable",
|
|
1624
|
+
"type": "function"
|
|
1625
|
+
}
|
|
1626
|
+
];
|
|
1627
|
+
/**
|
|
1628
|
+
* Stablecoin_json Contract Class
|
|
1629
|
+
*
|
|
1630
|
+
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
1631
|
+
*
|
|
1632
|
+
* @example
|
|
1633
|
+
* ```typescript
|
|
1634
|
+
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
1635
|
+
* import { mainnet } from 'viem/chains';
|
|
1636
|
+
* import { Stablecoin_json } from 'Stablecoin_json';
|
|
1637
|
+
*
|
|
1638
|
+
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
1639
|
+
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
1640
|
+
*
|
|
1641
|
+
* const contract = new Stablecoin_json('0x...', { publicClient, walletClient });
|
|
1642
|
+
*
|
|
1643
|
+
* // Read functions
|
|
1644
|
+
* const result = await contract.balanceOf('0x...');
|
|
1645
|
+
*
|
|
1646
|
+
* // Write functions
|
|
1647
|
+
* const hash = await contract.transfer('0x...', 1000n);
|
|
1648
|
+
*
|
|
1649
|
+
* // Simulate transactions (dry-run)
|
|
1650
|
+
* const simulation = await contract.simulate.transfer('0x...', 1000n);
|
|
1651
|
+
* console.log('Gas estimate:', simulation.request.gas);
|
|
1652
|
+
*
|
|
1653
|
+
* // Watch events
|
|
1654
|
+
* const unwatch = contract.watch.Transfer((event) => {
|
|
1655
|
+
* console.log('Transfer event:', event);
|
|
1656
|
+
* });
|
|
1657
|
+
* ```
|
|
1658
|
+
*/
|
|
1659
|
+
class Stablecoin_json {
|
|
1660
|
+
constructor(address, clients) {
|
|
1661
|
+
this.contractAddress = address;
|
|
1662
|
+
this.publicClient = clients.publicClient;
|
|
1663
|
+
this.contract = (0, viem_1.getContract)({
|
|
1664
|
+
address,
|
|
1665
|
+
abi: exports.Stablecoin_jsonAbi,
|
|
1666
|
+
client: {
|
|
1667
|
+
public: clients.publicClient,
|
|
1668
|
+
wallet: clients.walletClient,
|
|
1669
|
+
},
|
|
1670
|
+
});
|
|
1671
|
+
}
|
|
1672
|
+
/**
|
|
1673
|
+
* Get the contract address
|
|
1674
|
+
*/
|
|
1675
|
+
get address() {
|
|
1676
|
+
return this.contractAddress;
|
|
1677
|
+
}
|
|
1678
|
+
/**
|
|
1679
|
+
* Get the underlying viem contract instance
|
|
1680
|
+
*/
|
|
1681
|
+
getContract() {
|
|
1682
|
+
return this.contract;
|
|
1683
|
+
}
|
|
1684
|
+
/**
|
|
1685
|
+
* BLACKLISTER_ROLE
|
|
1686
|
+
* view
|
|
1687
|
+
*/
|
|
1688
|
+
async BLACKLISTER_ROLE() {
|
|
1689
|
+
return this.contract.read.BLACKLISTER_ROLE();
|
|
1690
|
+
}
|
|
1691
|
+
/**
|
|
1692
|
+
* BURNER_ROLE
|
|
1693
|
+
* view
|
|
1694
|
+
*/
|
|
1695
|
+
async BURNER_ROLE() {
|
|
1696
|
+
return this.contract.read.BURNER_ROLE();
|
|
1697
|
+
}
|
|
1698
|
+
/**
|
|
1699
|
+
* CANCEL_AUTHORIZATION_TYPEHASH
|
|
1700
|
+
* view
|
|
1701
|
+
*/
|
|
1702
|
+
async CANCEL_AUTHORIZATION_TYPEHASH() {
|
|
1703
|
+
return this.contract.read.CANCEL_AUTHORIZATION_TYPEHASH();
|
|
1704
|
+
}
|
|
1705
|
+
/**
|
|
1706
|
+
* DEFAULT_ADMIN_ROLE
|
|
1707
|
+
* view
|
|
1708
|
+
*/
|
|
1709
|
+
async DEFAULT_ADMIN_ROLE() {
|
|
1710
|
+
return this.contract.read.DEFAULT_ADMIN_ROLE();
|
|
1711
|
+
}
|
|
1712
|
+
/**
|
|
1713
|
+
* DOMAIN_SEPARATOR
|
|
1714
|
+
* view
|
|
1715
|
+
*/
|
|
1716
|
+
async DOMAIN_SEPARATOR() {
|
|
1717
|
+
return this.contract.read.DOMAIN_SEPARATOR();
|
|
1718
|
+
}
|
|
1719
|
+
/**
|
|
1720
|
+
* MINTER_ROLE
|
|
1721
|
+
* view
|
|
1722
|
+
*/
|
|
1723
|
+
async MINTER_ROLE() {
|
|
1724
|
+
return this.contract.read.MINTER_ROLE();
|
|
1725
|
+
}
|
|
1726
|
+
/**
|
|
1727
|
+
* PAUSER_ROLE
|
|
1728
|
+
* view
|
|
1729
|
+
*/
|
|
1730
|
+
async PAUSER_ROLE() {
|
|
1731
|
+
return this.contract.read.PAUSER_ROLE();
|
|
1732
|
+
}
|
|
1733
|
+
/**
|
|
1734
|
+
* PERMIT_TYPEHASH
|
|
1735
|
+
* view
|
|
1736
|
+
*/
|
|
1737
|
+
async PERMIT_TYPEHASH() {
|
|
1738
|
+
return this.contract.read.PERMIT_TYPEHASH();
|
|
1739
|
+
}
|
|
1740
|
+
/**
|
|
1741
|
+
* RECEIVE_WITH_AUTHORIZATION_TYPEHASH
|
|
1742
|
+
* view
|
|
1743
|
+
*/
|
|
1744
|
+
async RECEIVE_WITH_AUTHORIZATION_TYPEHASH() {
|
|
1745
|
+
return this.contract.read.RECEIVE_WITH_AUTHORIZATION_TYPEHASH();
|
|
1746
|
+
}
|
|
1747
|
+
/**
|
|
1748
|
+
* SUPPORT_ROLE
|
|
1749
|
+
* view
|
|
1750
|
+
*/
|
|
1751
|
+
async SUPPORT_ROLE() {
|
|
1752
|
+
return this.contract.read.SUPPORT_ROLE();
|
|
1753
|
+
}
|
|
1754
|
+
/**
|
|
1755
|
+
* TRANSFER_WITH_AUTHORIZATION_TYPEHASH
|
|
1756
|
+
* view
|
|
1757
|
+
*/
|
|
1758
|
+
async TRANSFER_WITH_AUTHORIZATION_TYPEHASH() {
|
|
1759
|
+
return this.contract.read.TRANSFER_WITH_AUTHORIZATION_TYPEHASH();
|
|
1760
|
+
}
|
|
1761
|
+
/**
|
|
1762
|
+
* UNPAUSER_ROLE
|
|
1763
|
+
* view
|
|
1764
|
+
*/
|
|
1765
|
+
async UNPAUSER_ROLE() {
|
|
1766
|
+
return this.contract.read.UNPAUSER_ROLE();
|
|
1767
|
+
}
|
|
1768
|
+
/**
|
|
1769
|
+
* WALLET_CODEHASH_A
|
|
1770
|
+
* view
|
|
1771
|
+
*/
|
|
1772
|
+
async WALLET_CODEHASH_A() {
|
|
1773
|
+
return this.contract.read.WALLET_CODEHASH_A();
|
|
1774
|
+
}
|
|
1775
|
+
/**
|
|
1776
|
+
* WALLET_CODEHASH_B
|
|
1777
|
+
* view
|
|
1778
|
+
*/
|
|
1779
|
+
async WALLET_CODEHASH_B() {
|
|
1780
|
+
return this.contract.read.WALLET_CODEHASH_B();
|
|
1781
|
+
}
|
|
1782
|
+
/**
|
|
1783
|
+
* WALLET_CODEHASH_C
|
|
1784
|
+
* view
|
|
1785
|
+
*/
|
|
1786
|
+
async WALLET_CODEHASH_C() {
|
|
1787
|
+
return this.contract.read.WALLET_CODEHASH_C();
|
|
1788
|
+
}
|
|
1789
|
+
/**
|
|
1790
|
+
* WALLET_CODEHASH_D
|
|
1791
|
+
* view
|
|
1792
|
+
*/
|
|
1793
|
+
async WALLET_CODEHASH_D() {
|
|
1794
|
+
return this.contract.read.WALLET_CODEHASH_D();
|
|
1795
|
+
}
|
|
1796
|
+
/**
|
|
1797
|
+
* allowance
|
|
1798
|
+
* view
|
|
1799
|
+
*/
|
|
1800
|
+
async allowance(owner, spender) {
|
|
1801
|
+
return this.contract.read.allowance([owner, spender]);
|
|
1802
|
+
}
|
|
1803
|
+
/**
|
|
1804
|
+
* authorizationState
|
|
1805
|
+
* view
|
|
1806
|
+
*/
|
|
1807
|
+
async authorizationState(authorizer, nonce) {
|
|
1808
|
+
return this.contract.read.authorizationState([authorizer, nonce]);
|
|
1809
|
+
}
|
|
1810
|
+
/**
|
|
1811
|
+
* balanceOf
|
|
1812
|
+
* view
|
|
1813
|
+
*/
|
|
1814
|
+
async balanceOf(account) {
|
|
1815
|
+
return this.contract.read.balanceOf([account]);
|
|
1816
|
+
}
|
|
1817
|
+
/**
|
|
1818
|
+
* blacklisted
|
|
1819
|
+
* view
|
|
1820
|
+
*/
|
|
1821
|
+
async blacklisted(user) {
|
|
1822
|
+
return this.contract.read.blacklisted([user]);
|
|
1823
|
+
}
|
|
1824
|
+
/**
|
|
1825
|
+
* decimals
|
|
1826
|
+
* view
|
|
1827
|
+
*/
|
|
1828
|
+
async decimals() {
|
|
1829
|
+
return this.contract.read.decimals();
|
|
1830
|
+
}
|
|
1831
|
+
/**
|
|
1832
|
+
* eip712Domain
|
|
1833
|
+
* view
|
|
1834
|
+
*/
|
|
1835
|
+
async eip712Domain() {
|
|
1836
|
+
return this.contract.read.eip712Domain();
|
|
1837
|
+
}
|
|
1838
|
+
/**
|
|
1839
|
+
* getRoleAdmin
|
|
1840
|
+
* view
|
|
1841
|
+
*/
|
|
1842
|
+
async getRoleAdmin(role) {
|
|
1843
|
+
return this.contract.read.getRoleAdmin([role]);
|
|
1844
|
+
}
|
|
1845
|
+
/**
|
|
1846
|
+
* hasRole
|
|
1847
|
+
* view
|
|
1848
|
+
*/
|
|
1849
|
+
async hasRole(role, account) {
|
|
1850
|
+
return this.contract.read.hasRole([role, account]);
|
|
1851
|
+
}
|
|
1852
|
+
/**
|
|
1853
|
+
* isTelcoinWallet
|
|
1854
|
+
* view
|
|
1855
|
+
*/
|
|
1856
|
+
async isTelcoinWallet(candidate) {
|
|
1857
|
+
return this.contract.read.isTelcoinWallet([candidate]);
|
|
1858
|
+
}
|
|
1859
|
+
/**
|
|
1860
|
+
* name
|
|
1861
|
+
* view
|
|
1862
|
+
*/
|
|
1863
|
+
async name() {
|
|
1864
|
+
return this.contract.read.name();
|
|
1865
|
+
}
|
|
1866
|
+
/**
|
|
1867
|
+
* nonces
|
|
1868
|
+
* view
|
|
1869
|
+
*/
|
|
1870
|
+
async nonces(owner) {
|
|
1871
|
+
return this.contract.read.nonces([owner]);
|
|
1872
|
+
}
|
|
1873
|
+
/**
|
|
1874
|
+
* paused
|
|
1875
|
+
* view
|
|
1876
|
+
*/
|
|
1877
|
+
async paused() {
|
|
1878
|
+
return this.contract.read.paused();
|
|
1879
|
+
}
|
|
1880
|
+
/**
|
|
1881
|
+
* supportsInterface
|
|
1882
|
+
* view
|
|
1883
|
+
*/
|
|
1884
|
+
async supportsInterface(interfaceId) {
|
|
1885
|
+
return this.contract.read.supportsInterface([interfaceId]);
|
|
1886
|
+
}
|
|
1887
|
+
/**
|
|
1888
|
+
* symbol
|
|
1889
|
+
* view
|
|
1890
|
+
*/
|
|
1891
|
+
async symbol() {
|
|
1892
|
+
return this.contract.read.symbol();
|
|
1893
|
+
}
|
|
1894
|
+
/**
|
|
1895
|
+
* totalSupply
|
|
1896
|
+
* view
|
|
1897
|
+
*/
|
|
1898
|
+
async totalSupply() {
|
|
1899
|
+
return this.contract.read.totalSupply();
|
|
1900
|
+
}
|
|
1901
|
+
/**
|
|
1902
|
+
* addBlackList
|
|
1903
|
+
* nonpayable
|
|
1904
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1905
|
+
*/
|
|
1906
|
+
async addBlackList(user, options) {
|
|
1907
|
+
if (!this.contract.write) {
|
|
1908
|
+
throw new Error('Wallet client is required for write operations');
|
|
1909
|
+
}
|
|
1910
|
+
return this.contract.write.addBlackList([user], options);
|
|
1911
|
+
}
|
|
1912
|
+
/**
|
|
1913
|
+
* approve
|
|
1914
|
+
* nonpayable
|
|
1915
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1916
|
+
*/
|
|
1917
|
+
async approve(spender, value, options) {
|
|
1918
|
+
if (!this.contract.write) {
|
|
1919
|
+
throw new Error('Wallet client is required for write operations');
|
|
1920
|
+
}
|
|
1921
|
+
return this.contract.write.approve([spender, value], options);
|
|
1922
|
+
}
|
|
1923
|
+
/**
|
|
1924
|
+
* burn
|
|
1925
|
+
* nonpayable
|
|
1926
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1927
|
+
*/
|
|
1928
|
+
async burn(value, options) {
|
|
1929
|
+
if (!this.contract.write) {
|
|
1930
|
+
throw new Error('Wallet client is required for write operations');
|
|
1931
|
+
}
|
|
1932
|
+
return this.contract.write.burn([value], options);
|
|
1933
|
+
}
|
|
1934
|
+
/**
|
|
1935
|
+
* burnFrom
|
|
1936
|
+
* nonpayable
|
|
1937
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1938
|
+
*/
|
|
1939
|
+
async burnFrom(account, value, options) {
|
|
1940
|
+
if (!this.contract.write) {
|
|
1941
|
+
throw new Error('Wallet client is required for write operations');
|
|
1942
|
+
}
|
|
1943
|
+
return this.contract.write.burnFrom([account, value], options);
|
|
1944
|
+
}
|
|
1945
|
+
async cancelAuthorization(...args) {
|
|
1946
|
+
if (!this.contract.write) {
|
|
1947
|
+
throw new Error('Wallet client is required for write operations');
|
|
1948
|
+
}
|
|
1949
|
+
return this.contract.write.cancelAuthorization(args);
|
|
1950
|
+
}
|
|
1951
|
+
/**
|
|
1952
|
+
* erc20Rescue
|
|
1953
|
+
* nonpayable
|
|
1954
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1955
|
+
*/
|
|
1956
|
+
async erc20Rescue(token, destination, amount, options) {
|
|
1957
|
+
if (!this.contract.write) {
|
|
1958
|
+
throw new Error('Wallet client is required for write operations');
|
|
1959
|
+
}
|
|
1960
|
+
return this.contract.write.erc20Rescue([token, destination, amount], options);
|
|
1961
|
+
}
|
|
1962
|
+
/**
|
|
1963
|
+
* grantRole
|
|
1964
|
+
* nonpayable
|
|
1965
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1966
|
+
*/
|
|
1967
|
+
async grantRole(role, account, options) {
|
|
1968
|
+
if (!this.contract.write) {
|
|
1969
|
+
throw new Error('Wallet client is required for write operations');
|
|
1970
|
+
}
|
|
1971
|
+
return this.contract.write.grantRole([role, account], options);
|
|
1972
|
+
}
|
|
1973
|
+
/**
|
|
1974
|
+
* initialize
|
|
1975
|
+
* nonpayable
|
|
1976
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1977
|
+
*/
|
|
1978
|
+
async initialize(name_, symbol_, decimals_, options) {
|
|
1979
|
+
if (!this.contract.write) {
|
|
1980
|
+
throw new Error('Wallet client is required for write operations');
|
|
1981
|
+
}
|
|
1982
|
+
return this.contract.write.initialize([name_, symbol_, decimals_], options);
|
|
1983
|
+
}
|
|
1984
|
+
/**
|
|
1985
|
+
* mint
|
|
1986
|
+
* nonpayable
|
|
1987
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1988
|
+
*/
|
|
1989
|
+
async mint(value, options) {
|
|
1990
|
+
if (!this.contract.write) {
|
|
1991
|
+
throw new Error('Wallet client is required for write operations');
|
|
1992
|
+
}
|
|
1993
|
+
return this.contract.write.mint([value], options);
|
|
1994
|
+
}
|
|
1995
|
+
/**
|
|
1996
|
+
* mintTo
|
|
1997
|
+
* nonpayable
|
|
1998
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1999
|
+
*/
|
|
2000
|
+
async mintTo(account, value, options) {
|
|
2001
|
+
if (!this.contract.write) {
|
|
2002
|
+
throw new Error('Wallet client is required for write operations');
|
|
2003
|
+
}
|
|
2004
|
+
return this.contract.write.mintTo([account, value], options);
|
|
2005
|
+
}
|
|
2006
|
+
/**
|
|
2007
|
+
* pause
|
|
2008
|
+
* nonpayable
|
|
2009
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2010
|
+
*/
|
|
2011
|
+
async pause(options) {
|
|
2012
|
+
if (!this.contract.write) {
|
|
2013
|
+
throw new Error('Wallet client is required for write operations');
|
|
2014
|
+
}
|
|
2015
|
+
return this.contract.write.pause(options);
|
|
2016
|
+
}
|
|
2017
|
+
async permit(...args) {
|
|
2018
|
+
if (!this.contract.write) {
|
|
2019
|
+
throw new Error('Wallet client is required for write operations');
|
|
2020
|
+
}
|
|
2021
|
+
return this.contract.write.permit(args);
|
|
2022
|
+
}
|
|
2023
|
+
async receiveWithAuthorization(...args) {
|
|
2024
|
+
if (!this.contract.write) {
|
|
2025
|
+
throw new Error('Wallet client is required for write operations');
|
|
2026
|
+
}
|
|
2027
|
+
return this.contract.write.receiveWithAuthorization(args);
|
|
2028
|
+
}
|
|
2029
|
+
/**
|
|
2030
|
+
* removeBlackList
|
|
2031
|
+
* nonpayable
|
|
2032
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2033
|
+
*/
|
|
2034
|
+
async removeBlackList(user, options) {
|
|
2035
|
+
if (!this.contract.write) {
|
|
2036
|
+
throw new Error('Wallet client is required for write operations');
|
|
2037
|
+
}
|
|
2038
|
+
return this.contract.write.removeBlackList([user], options);
|
|
2039
|
+
}
|
|
2040
|
+
/**
|
|
2041
|
+
* renounceRole
|
|
2042
|
+
* nonpayable
|
|
2043
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2044
|
+
*/
|
|
2045
|
+
async renounceRole(role, callerConfirmation, options) {
|
|
2046
|
+
if (!this.contract.write) {
|
|
2047
|
+
throw new Error('Wallet client is required for write operations');
|
|
2048
|
+
}
|
|
2049
|
+
return this.contract.write.renounceRole([role, callerConfirmation], options);
|
|
2050
|
+
}
|
|
2051
|
+
/**
|
|
2052
|
+
* revokeRole
|
|
2053
|
+
* nonpayable
|
|
2054
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2055
|
+
*/
|
|
2056
|
+
async revokeRole(role, account, options) {
|
|
2057
|
+
if (!this.contract.write) {
|
|
2058
|
+
throw new Error('Wallet client is required for write operations');
|
|
2059
|
+
}
|
|
2060
|
+
return this.contract.write.revokeRole([role, account], options);
|
|
2061
|
+
}
|
|
2062
|
+
/**
|
|
2063
|
+
* transfer
|
|
2064
|
+
* nonpayable
|
|
2065
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2066
|
+
*/
|
|
2067
|
+
async transfer(to, value, options) {
|
|
2068
|
+
if (!this.contract.write) {
|
|
2069
|
+
throw new Error('Wallet client is required for write operations');
|
|
2070
|
+
}
|
|
2071
|
+
return this.contract.write.transfer([to, value], options);
|
|
2072
|
+
}
|
|
2073
|
+
/**
|
|
2074
|
+
* transferFrom
|
|
2075
|
+
* nonpayable
|
|
2076
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2077
|
+
*/
|
|
2078
|
+
async transferFrom(from, to, value, options) {
|
|
2079
|
+
if (!this.contract.write) {
|
|
2080
|
+
throw new Error('Wallet client is required for write operations');
|
|
2081
|
+
}
|
|
2082
|
+
return this.contract.write.transferFrom([from, to, value], options);
|
|
2083
|
+
}
|
|
2084
|
+
async transferWithAuthorization(...args) {
|
|
2085
|
+
if (!this.contract.write) {
|
|
2086
|
+
throw new Error('Wallet client is required for write operations');
|
|
2087
|
+
}
|
|
2088
|
+
return this.contract.write.transferWithAuthorization(args);
|
|
2089
|
+
}
|
|
2090
|
+
/**
|
|
2091
|
+
* unpause
|
|
2092
|
+
* nonpayable
|
|
2093
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2094
|
+
*/
|
|
2095
|
+
async unpause(options) {
|
|
2096
|
+
if (!this.contract.write) {
|
|
2097
|
+
throw new Error('Wallet client is required for write operations');
|
|
2098
|
+
}
|
|
2099
|
+
return this.contract.write.unpause(options);
|
|
2100
|
+
}
|
|
2101
|
+
/**
|
|
2102
|
+
* Simulate contract write operations (dry-run without sending transaction)
|
|
2103
|
+
*
|
|
2104
|
+
* @example
|
|
2105
|
+
* const result = await contract.simulate.transfer('0x...', 1000n);
|
|
2106
|
+
* console.log('Gas estimate:', result.request.gas);
|
|
2107
|
+
* console.log('Would succeed:', result.result);
|
|
2108
|
+
*/
|
|
2109
|
+
get simulate() {
|
|
2110
|
+
const contract = this.contract;
|
|
2111
|
+
if (!contract.simulate) {
|
|
2112
|
+
throw new Error('Public client is required for simulation');
|
|
2113
|
+
}
|
|
2114
|
+
return {
|
|
2115
|
+
/**
|
|
2116
|
+
* Simulate addBlackList
|
|
2117
|
+
* Returns gas estimate and result without sending transaction
|
|
2118
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2119
|
+
*/
|
|
2120
|
+
async addBlackList(user, options) {
|
|
2121
|
+
return contract.simulate.addBlackList([user], options);
|
|
2122
|
+
},
|
|
2123
|
+
/**
|
|
2124
|
+
* Simulate approve
|
|
2125
|
+
* Returns gas estimate and result without sending transaction
|
|
2126
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2127
|
+
*/
|
|
2128
|
+
async approve(spender, value, options) {
|
|
2129
|
+
return contract.simulate.approve([spender, value], options);
|
|
2130
|
+
},
|
|
2131
|
+
/**
|
|
2132
|
+
* Simulate burn
|
|
2133
|
+
* Returns gas estimate and result without sending transaction
|
|
2134
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2135
|
+
*/
|
|
2136
|
+
async burn(value, options) {
|
|
2137
|
+
return contract.simulate.burn([value], options);
|
|
2138
|
+
},
|
|
2139
|
+
/**
|
|
2140
|
+
* Simulate burnFrom
|
|
2141
|
+
* Returns gas estimate and result without sending transaction
|
|
2142
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2143
|
+
*/
|
|
2144
|
+
async burnFrom(account, value, options) {
|
|
2145
|
+
return contract.simulate.burnFrom([account, value], options);
|
|
2146
|
+
},
|
|
2147
|
+
/**
|
|
2148
|
+
* Simulate cancelAuthorization
|
|
2149
|
+
* Returns gas estimate and result without sending transaction
|
|
2150
|
+
* Supports multiple overloads: (address, bytes32, uint8, bytes32, bytes32), (address, bytes32, bytes)
|
|
2151
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2152
|
+
*/
|
|
2153
|
+
async cancelAuthorization(...args) {
|
|
2154
|
+
return contract.simulate.cancelAuthorization(args);
|
|
2155
|
+
},
|
|
2156
|
+
/**
|
|
2157
|
+
* Simulate erc20Rescue
|
|
2158
|
+
* Returns gas estimate and result without sending transaction
|
|
2159
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2160
|
+
*/
|
|
2161
|
+
async erc20Rescue(token, destination, amount, options) {
|
|
2162
|
+
return contract.simulate.erc20Rescue([token, destination, amount], options);
|
|
2163
|
+
},
|
|
2164
|
+
/**
|
|
2165
|
+
* Simulate grantRole
|
|
2166
|
+
* Returns gas estimate and result without sending transaction
|
|
2167
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2168
|
+
*/
|
|
2169
|
+
async grantRole(role, account, options) {
|
|
2170
|
+
return contract.simulate.grantRole([role, account], options);
|
|
2171
|
+
},
|
|
2172
|
+
/**
|
|
2173
|
+
* Simulate initialize
|
|
2174
|
+
* Returns gas estimate and result without sending transaction
|
|
2175
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2176
|
+
*/
|
|
2177
|
+
async initialize(name_, symbol_, decimals_, options) {
|
|
2178
|
+
return contract.simulate.initialize([name_, symbol_, decimals_], options);
|
|
2179
|
+
},
|
|
2180
|
+
/**
|
|
2181
|
+
* Simulate mint
|
|
2182
|
+
* Returns gas estimate and result without sending transaction
|
|
2183
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2184
|
+
*/
|
|
2185
|
+
async mint(value, options) {
|
|
2186
|
+
return contract.simulate.mint([value], options);
|
|
2187
|
+
},
|
|
2188
|
+
/**
|
|
2189
|
+
* Simulate mintTo
|
|
2190
|
+
* Returns gas estimate and result without sending transaction
|
|
2191
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2192
|
+
*/
|
|
2193
|
+
async mintTo(account, value, options) {
|
|
2194
|
+
return contract.simulate.mintTo([account, value], options);
|
|
2195
|
+
},
|
|
2196
|
+
/**
|
|
2197
|
+
* Simulate pause
|
|
2198
|
+
* Returns gas estimate and result without sending transaction
|
|
2199
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2200
|
+
*/
|
|
2201
|
+
async pause(options) {
|
|
2202
|
+
return contract.simulate.pause(options);
|
|
2203
|
+
},
|
|
2204
|
+
/**
|
|
2205
|
+
* Simulate permit
|
|
2206
|
+
* Returns gas estimate and result without sending transaction
|
|
2207
|
+
* Supports multiple overloads: (address, address, uint256, uint256, bytes), (address, address, uint256, uint256, uint8, bytes32, bytes32)
|
|
2208
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2209
|
+
*/
|
|
2210
|
+
async permit(...args) {
|
|
2211
|
+
return contract.simulate.permit(args);
|
|
2212
|
+
},
|
|
2213
|
+
/**
|
|
2214
|
+
* Simulate receiveWithAuthorization
|
|
2215
|
+
* Returns gas estimate and result without sending transaction
|
|
2216
|
+
* Supports multiple overloads: (address, address, uint256, uint256, uint256, bytes32, bytes), (address, address, uint256, uint256, uint256, bytes32, uint8, bytes32, bytes32)
|
|
2217
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2218
|
+
*/
|
|
2219
|
+
async receiveWithAuthorization(...args) {
|
|
2220
|
+
return contract.simulate.receiveWithAuthorization(args);
|
|
2221
|
+
},
|
|
2222
|
+
/**
|
|
2223
|
+
* Simulate removeBlackList
|
|
2224
|
+
* Returns gas estimate and result without sending transaction
|
|
2225
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2226
|
+
*/
|
|
2227
|
+
async removeBlackList(user, options) {
|
|
2228
|
+
return contract.simulate.removeBlackList([user], options);
|
|
2229
|
+
},
|
|
2230
|
+
/**
|
|
2231
|
+
* Simulate renounceRole
|
|
2232
|
+
* Returns gas estimate and result without sending transaction
|
|
2233
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2234
|
+
*/
|
|
2235
|
+
async renounceRole(role, callerConfirmation, options) {
|
|
2236
|
+
return contract.simulate.renounceRole([role, callerConfirmation], options);
|
|
2237
|
+
},
|
|
2238
|
+
/**
|
|
2239
|
+
* Simulate revokeRole
|
|
2240
|
+
* Returns gas estimate and result without sending transaction
|
|
2241
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2242
|
+
*/
|
|
2243
|
+
async revokeRole(role, account, options) {
|
|
2244
|
+
return contract.simulate.revokeRole([role, account], options);
|
|
2245
|
+
},
|
|
2246
|
+
/**
|
|
2247
|
+
* Simulate transfer
|
|
2248
|
+
* Returns gas estimate and result without sending transaction
|
|
2249
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2250
|
+
*/
|
|
2251
|
+
async transfer(to, value, options) {
|
|
2252
|
+
return contract.simulate.transfer([to, value], options);
|
|
2253
|
+
},
|
|
2254
|
+
/**
|
|
2255
|
+
* Simulate transferFrom
|
|
2256
|
+
* Returns gas estimate and result without sending transaction
|
|
2257
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2258
|
+
*/
|
|
2259
|
+
async transferFrom(from, to, value, options) {
|
|
2260
|
+
return contract.simulate.transferFrom([from, to, value], options);
|
|
2261
|
+
},
|
|
2262
|
+
/**
|
|
2263
|
+
* Simulate transferWithAuthorization
|
|
2264
|
+
* Returns gas estimate and result without sending transaction
|
|
2265
|
+
* Supports multiple overloads: (address, address, uint256, uint256, uint256, bytes32, bytes), (address, address, uint256, uint256, uint256, bytes32, uint8, bytes32, bytes32)
|
|
2266
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2267
|
+
*/
|
|
2268
|
+
async transferWithAuthorization(...args) {
|
|
2269
|
+
return contract.simulate.transferWithAuthorization(args);
|
|
2270
|
+
},
|
|
2271
|
+
/**
|
|
2272
|
+
* Simulate unpause
|
|
2273
|
+
* Returns gas estimate and result without sending transaction
|
|
2274
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2275
|
+
*/
|
|
2276
|
+
async unpause(options) {
|
|
2277
|
+
return contract.simulate.unpause(options);
|
|
2278
|
+
}
|
|
2279
|
+
};
|
|
2280
|
+
}
|
|
2281
|
+
/**
|
|
2282
|
+
* Watch contract events
|
|
2283
|
+
*
|
|
2284
|
+
* @example
|
|
2285
|
+
* // Watch all Transfer events
|
|
2286
|
+
* const unwatch = contract.watch.Transfer((event) => {
|
|
2287
|
+
* console.log('Transfer:', event);
|
|
2288
|
+
* });
|
|
2289
|
+
*
|
|
2290
|
+
* // Stop watching
|
|
2291
|
+
* unwatch();
|
|
2292
|
+
*/
|
|
2293
|
+
get watch() {
|
|
2294
|
+
return {
|
|
2295
|
+
/**
|
|
2296
|
+
* Watch AddedBlacklist events
|
|
2297
|
+
* @param callback Function to call when event is emitted
|
|
2298
|
+
* @param filter Optional filter for indexed parameters
|
|
2299
|
+
* @returns Unwatch function to stop listening
|
|
2300
|
+
*/
|
|
2301
|
+
AddedBlacklist: (callback, filter) => {
|
|
2302
|
+
return this.publicClient.watchContractEvent({
|
|
2303
|
+
address: this.contractAddress,
|
|
2304
|
+
abi: exports.Stablecoin_jsonAbi,
|
|
2305
|
+
eventName: 'AddedBlacklist',
|
|
2306
|
+
args: filter,
|
|
2307
|
+
onLogs: (logs) => {
|
|
2308
|
+
logs.forEach((log) => {
|
|
2309
|
+
callback(log.args);
|
|
2310
|
+
});
|
|
2311
|
+
},
|
|
2312
|
+
});
|
|
2313
|
+
},
|
|
2314
|
+
/**
|
|
2315
|
+
* Watch Approval events
|
|
2316
|
+
* @param callback Function to call when event is emitted
|
|
2317
|
+
* @param filter Optional filter for indexed parameters
|
|
2318
|
+
* @returns Unwatch function to stop listening
|
|
2319
|
+
*/
|
|
2320
|
+
Approval: (callback, filter) => {
|
|
2321
|
+
return this.publicClient.watchContractEvent({
|
|
2322
|
+
address: this.contractAddress,
|
|
2323
|
+
abi: exports.Stablecoin_jsonAbi,
|
|
2324
|
+
eventName: 'Approval',
|
|
2325
|
+
args: filter,
|
|
2326
|
+
onLogs: (logs) => {
|
|
2327
|
+
logs.forEach((log) => {
|
|
2328
|
+
callback(log.args);
|
|
2329
|
+
});
|
|
2330
|
+
},
|
|
2331
|
+
});
|
|
2332
|
+
},
|
|
2333
|
+
/**
|
|
2334
|
+
* Watch AuthorizationCanceled events
|
|
2335
|
+
* @param callback Function to call when event is emitted
|
|
2336
|
+
* @param filter Optional filter for indexed parameters
|
|
2337
|
+
* @returns Unwatch function to stop listening
|
|
2338
|
+
*/
|
|
2339
|
+
AuthorizationCanceled: (callback, filter) => {
|
|
2340
|
+
return this.publicClient.watchContractEvent({
|
|
2341
|
+
address: this.contractAddress,
|
|
2342
|
+
abi: exports.Stablecoin_jsonAbi,
|
|
2343
|
+
eventName: 'AuthorizationCanceled',
|
|
2344
|
+
args: filter,
|
|
2345
|
+
onLogs: (logs) => {
|
|
2346
|
+
logs.forEach((log) => {
|
|
2347
|
+
callback(log.args);
|
|
2348
|
+
});
|
|
2349
|
+
},
|
|
2350
|
+
});
|
|
2351
|
+
},
|
|
2352
|
+
/**
|
|
2353
|
+
* Watch AuthorizationUsed events
|
|
2354
|
+
* @param callback Function to call when event is emitted
|
|
2355
|
+
* @param filter Optional filter for indexed parameters
|
|
2356
|
+
* @returns Unwatch function to stop listening
|
|
2357
|
+
*/
|
|
2358
|
+
AuthorizationUsed: (callback, filter) => {
|
|
2359
|
+
return this.publicClient.watchContractEvent({
|
|
2360
|
+
address: this.contractAddress,
|
|
2361
|
+
abi: exports.Stablecoin_jsonAbi,
|
|
2362
|
+
eventName: 'AuthorizationUsed',
|
|
2363
|
+
args: filter,
|
|
2364
|
+
onLogs: (logs) => {
|
|
2365
|
+
logs.forEach((log) => {
|
|
2366
|
+
callback(log.args);
|
|
2367
|
+
});
|
|
2368
|
+
},
|
|
2369
|
+
});
|
|
2370
|
+
},
|
|
2371
|
+
/**
|
|
2372
|
+
* Watch EIP712DomainChanged events
|
|
2373
|
+
* @param callback Function to call when event is emitted
|
|
2374
|
+
* @param filter Optional filter for indexed parameters
|
|
2375
|
+
* @returns Unwatch function to stop listening
|
|
2376
|
+
*/
|
|
2377
|
+
EIP712DomainChanged: (callback) => {
|
|
2378
|
+
return this.publicClient.watchContractEvent({
|
|
2379
|
+
address: this.contractAddress,
|
|
2380
|
+
abi: exports.Stablecoin_jsonAbi,
|
|
2381
|
+
eventName: 'EIP712DomainChanged',
|
|
2382
|
+
onLogs: (logs) => {
|
|
2383
|
+
logs.forEach((log) => {
|
|
2384
|
+
callback(log.args);
|
|
2385
|
+
});
|
|
2386
|
+
},
|
|
2387
|
+
});
|
|
2388
|
+
},
|
|
2389
|
+
/**
|
|
2390
|
+
* Watch Initialized events
|
|
2391
|
+
* @param callback Function to call when event is emitted
|
|
2392
|
+
* @param filter Optional filter for indexed parameters
|
|
2393
|
+
* @returns Unwatch function to stop listening
|
|
2394
|
+
*/
|
|
2395
|
+
Initialized: (callback) => {
|
|
2396
|
+
return this.publicClient.watchContractEvent({
|
|
2397
|
+
address: this.contractAddress,
|
|
2398
|
+
abi: exports.Stablecoin_jsonAbi,
|
|
2399
|
+
eventName: 'Initialized',
|
|
2400
|
+
onLogs: (logs) => {
|
|
2401
|
+
logs.forEach((log) => {
|
|
2402
|
+
callback(log.args);
|
|
2403
|
+
});
|
|
2404
|
+
},
|
|
2405
|
+
});
|
|
2406
|
+
},
|
|
2407
|
+
/**
|
|
2408
|
+
* Watch Paused events
|
|
2409
|
+
* @param callback Function to call when event is emitted
|
|
2410
|
+
* @param filter Optional filter for indexed parameters
|
|
2411
|
+
* @returns Unwatch function to stop listening
|
|
2412
|
+
*/
|
|
2413
|
+
Paused: (callback) => {
|
|
2414
|
+
return this.publicClient.watchContractEvent({
|
|
2415
|
+
address: this.contractAddress,
|
|
2416
|
+
abi: exports.Stablecoin_jsonAbi,
|
|
2417
|
+
eventName: 'Paused',
|
|
2418
|
+
onLogs: (logs) => {
|
|
2419
|
+
logs.forEach((log) => {
|
|
2420
|
+
callback(log.args);
|
|
2421
|
+
});
|
|
2422
|
+
},
|
|
2423
|
+
});
|
|
2424
|
+
},
|
|
2425
|
+
/**
|
|
2426
|
+
* Watch RemovedBlacklist events
|
|
2427
|
+
* @param callback Function to call when event is emitted
|
|
2428
|
+
* @param filter Optional filter for indexed parameters
|
|
2429
|
+
* @returns Unwatch function to stop listening
|
|
2430
|
+
*/
|
|
2431
|
+
RemovedBlacklist: (callback, filter) => {
|
|
2432
|
+
return this.publicClient.watchContractEvent({
|
|
2433
|
+
address: this.contractAddress,
|
|
2434
|
+
abi: exports.Stablecoin_jsonAbi,
|
|
2435
|
+
eventName: 'RemovedBlacklist',
|
|
2436
|
+
args: filter,
|
|
2437
|
+
onLogs: (logs) => {
|
|
2438
|
+
logs.forEach((log) => {
|
|
2439
|
+
callback(log.args);
|
|
2440
|
+
});
|
|
2441
|
+
},
|
|
2442
|
+
});
|
|
2443
|
+
},
|
|
2444
|
+
/**
|
|
2445
|
+
* Watch RoleAdminChanged events
|
|
2446
|
+
* @param callback Function to call when event is emitted
|
|
2447
|
+
* @param filter Optional filter for indexed parameters
|
|
2448
|
+
* @returns Unwatch function to stop listening
|
|
2449
|
+
*/
|
|
2450
|
+
RoleAdminChanged: (callback, filter) => {
|
|
2451
|
+
return this.publicClient.watchContractEvent({
|
|
2452
|
+
address: this.contractAddress,
|
|
2453
|
+
abi: exports.Stablecoin_jsonAbi,
|
|
2454
|
+
eventName: 'RoleAdminChanged',
|
|
2455
|
+
args: filter,
|
|
2456
|
+
onLogs: (logs) => {
|
|
2457
|
+
logs.forEach((log) => {
|
|
2458
|
+
callback(log.args);
|
|
2459
|
+
});
|
|
2460
|
+
},
|
|
2461
|
+
});
|
|
2462
|
+
},
|
|
2463
|
+
/**
|
|
2464
|
+
* Watch RoleGranted events
|
|
2465
|
+
* @param callback Function to call when event is emitted
|
|
2466
|
+
* @param filter Optional filter for indexed parameters
|
|
2467
|
+
* @returns Unwatch function to stop listening
|
|
2468
|
+
*/
|
|
2469
|
+
RoleGranted: (callback, filter) => {
|
|
2470
|
+
return this.publicClient.watchContractEvent({
|
|
2471
|
+
address: this.contractAddress,
|
|
2472
|
+
abi: exports.Stablecoin_jsonAbi,
|
|
2473
|
+
eventName: 'RoleGranted',
|
|
2474
|
+
args: filter,
|
|
2475
|
+
onLogs: (logs) => {
|
|
2476
|
+
logs.forEach((log) => {
|
|
2477
|
+
callback(log.args);
|
|
2478
|
+
});
|
|
2479
|
+
},
|
|
2480
|
+
});
|
|
2481
|
+
},
|
|
2482
|
+
/**
|
|
2483
|
+
* Watch RoleRevoked events
|
|
2484
|
+
* @param callback Function to call when event is emitted
|
|
2485
|
+
* @param filter Optional filter for indexed parameters
|
|
2486
|
+
* @returns Unwatch function to stop listening
|
|
2487
|
+
*/
|
|
2488
|
+
RoleRevoked: (callback, filter) => {
|
|
2489
|
+
return this.publicClient.watchContractEvent({
|
|
2490
|
+
address: this.contractAddress,
|
|
2491
|
+
abi: exports.Stablecoin_jsonAbi,
|
|
2492
|
+
eventName: 'RoleRevoked',
|
|
2493
|
+
args: filter,
|
|
2494
|
+
onLogs: (logs) => {
|
|
2495
|
+
logs.forEach((log) => {
|
|
2496
|
+
callback(log.args);
|
|
2497
|
+
});
|
|
2498
|
+
},
|
|
2499
|
+
});
|
|
2500
|
+
},
|
|
2501
|
+
/**
|
|
2502
|
+
* Watch Transfer events
|
|
2503
|
+
* @param callback Function to call when event is emitted
|
|
2504
|
+
* @param filter Optional filter for indexed parameters
|
|
2505
|
+
* @returns Unwatch function to stop listening
|
|
2506
|
+
*/
|
|
2507
|
+
Transfer: (callback, filter) => {
|
|
2508
|
+
return this.publicClient.watchContractEvent({
|
|
2509
|
+
address: this.contractAddress,
|
|
2510
|
+
abi: exports.Stablecoin_jsonAbi,
|
|
2511
|
+
eventName: 'Transfer',
|
|
2512
|
+
args: filter,
|
|
2513
|
+
onLogs: (logs) => {
|
|
2514
|
+
logs.forEach((log) => {
|
|
2515
|
+
callback(log.args);
|
|
2516
|
+
});
|
|
2517
|
+
},
|
|
2518
|
+
});
|
|
2519
|
+
},
|
|
2520
|
+
/**
|
|
2521
|
+
* Watch Unpaused events
|
|
2522
|
+
* @param callback Function to call when event is emitted
|
|
2523
|
+
* @param filter Optional filter for indexed parameters
|
|
2524
|
+
* @returns Unwatch function to stop listening
|
|
2525
|
+
*/
|
|
2526
|
+
Unpaused: (callback) => {
|
|
2527
|
+
return this.publicClient.watchContractEvent({
|
|
2528
|
+
address: this.contractAddress,
|
|
2529
|
+
abi: exports.Stablecoin_jsonAbi,
|
|
2530
|
+
eventName: 'Unpaused',
|
|
2531
|
+
onLogs: (logs) => {
|
|
2532
|
+
logs.forEach((log) => {
|
|
2533
|
+
callback(log.args);
|
|
2534
|
+
});
|
|
2535
|
+
},
|
|
2536
|
+
});
|
|
2537
|
+
}
|
|
2538
|
+
};
|
|
2539
|
+
}
|
|
2540
|
+
}
|
|
2541
|
+
exports.Stablecoin_json = Stablecoin_json;
|