@gitmyabi-stg/ausd 0.0.1
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/AgoraDollar.d.ts +4199 -0
- package/contracts/AgoraDollar.js +4435 -0
- package/contracts/AgoraDollar.ts +5590 -0
- package/contracts/AgoraDollarErc1967Proxy.d.ts +752 -0
- package/contracts/AgoraDollarErc1967Proxy.js +865 -0
- package/contracts/AgoraDollarErc1967Proxy.ts +1000 -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,4435 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AgoraDollar = exports.AgoraDollarAbi = void 0;
|
|
4
|
+
const viem_1 = require("viem");
|
|
5
|
+
/**
|
|
6
|
+
* AgoraDollar ABI
|
|
7
|
+
*
|
|
8
|
+
* This ABI is typed using viem's type system for full type safety.
|
|
9
|
+
*/
|
|
10
|
+
exports.AgoraDollarAbi = [
|
|
11
|
+
{
|
|
12
|
+
"inputs": [
|
|
13
|
+
{
|
|
14
|
+
"components": [
|
|
15
|
+
{
|
|
16
|
+
"internalType": "string",
|
|
17
|
+
"name": "name",
|
|
18
|
+
"type": "string"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"internalType": "string",
|
|
22
|
+
"name": "symbol",
|
|
23
|
+
"type": "string"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"internalType": "string",
|
|
27
|
+
"name": "eip712Name",
|
|
28
|
+
"type": "string"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"internalType": "string",
|
|
32
|
+
"name": "eip712Version",
|
|
33
|
+
"type": "string"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"internalType": "address",
|
|
37
|
+
"name": "proxyAddress",
|
|
38
|
+
"type": "address"
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
"internalType": "struct ConstructorParams",
|
|
42
|
+
"name": "_params",
|
|
43
|
+
"type": "tuple"
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
"stateMutability": "nonpayable",
|
|
47
|
+
"type": "constructor"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"inputs": [
|
|
51
|
+
{
|
|
52
|
+
"internalType": "address",
|
|
53
|
+
"name": "frozenAccount",
|
|
54
|
+
"type": "address"
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
"name": "AccountIsFrozen",
|
|
58
|
+
"type": "error"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"inputs": [],
|
|
62
|
+
"name": "AddressIsNotBurnerRole",
|
|
63
|
+
"type": "error"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"inputs": [],
|
|
67
|
+
"name": "AddressIsNotMinterRole",
|
|
68
|
+
"type": "error"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"inputs": [
|
|
72
|
+
{
|
|
73
|
+
"internalType": "string",
|
|
74
|
+
"name": "role",
|
|
75
|
+
"type": "string"
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
"name": "AddressIsNotRole",
|
|
79
|
+
"type": "error"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"inputs": [],
|
|
83
|
+
"name": "BridgingPaused",
|
|
84
|
+
"type": "error"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"inputs": [],
|
|
88
|
+
"name": "BurnFromPaused",
|
|
89
|
+
"type": "error"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"inputs": [
|
|
93
|
+
{
|
|
94
|
+
"internalType": "string",
|
|
95
|
+
"name": "role",
|
|
96
|
+
"type": "string"
|
|
97
|
+
}
|
|
98
|
+
],
|
|
99
|
+
"name": "CannotRemoveRoleWithMembers",
|
|
100
|
+
"type": "error"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"inputs": [],
|
|
104
|
+
"name": "CannotRevokeSelf",
|
|
105
|
+
"type": "error"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"inputs": [
|
|
109
|
+
{
|
|
110
|
+
"internalType": "address",
|
|
111
|
+
"name": "spender",
|
|
112
|
+
"type": "address"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"internalType": "uint256",
|
|
116
|
+
"name": "allowance",
|
|
117
|
+
"type": "uint256"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"internalType": "uint256",
|
|
121
|
+
"name": "needed",
|
|
122
|
+
"type": "uint256"
|
|
123
|
+
}
|
|
124
|
+
],
|
|
125
|
+
"name": "ERC20InsufficientAllowance",
|
|
126
|
+
"type": "error"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"inputs": [
|
|
130
|
+
{
|
|
131
|
+
"internalType": "address",
|
|
132
|
+
"name": "sender",
|
|
133
|
+
"type": "address"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"internalType": "uint256",
|
|
137
|
+
"name": "balance",
|
|
138
|
+
"type": "uint256"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"internalType": "uint256",
|
|
142
|
+
"name": "needed",
|
|
143
|
+
"type": "uint256"
|
|
144
|
+
}
|
|
145
|
+
],
|
|
146
|
+
"name": "ERC20InsufficientBalance",
|
|
147
|
+
"type": "error"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"inputs": [
|
|
151
|
+
{
|
|
152
|
+
"internalType": "address",
|
|
153
|
+
"name": "approver",
|
|
154
|
+
"type": "address"
|
|
155
|
+
}
|
|
156
|
+
],
|
|
157
|
+
"name": "ERC20InvalidApprover",
|
|
158
|
+
"type": "error"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"inputs": [
|
|
162
|
+
{
|
|
163
|
+
"internalType": "address",
|
|
164
|
+
"name": "receiver",
|
|
165
|
+
"type": "address"
|
|
166
|
+
}
|
|
167
|
+
],
|
|
168
|
+
"name": "ERC20InvalidReceiver",
|
|
169
|
+
"type": "error"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"inputs": [
|
|
173
|
+
{
|
|
174
|
+
"internalType": "address",
|
|
175
|
+
"name": "sender",
|
|
176
|
+
"type": "address"
|
|
177
|
+
}
|
|
178
|
+
],
|
|
179
|
+
"name": "ERC20InvalidSender",
|
|
180
|
+
"type": "error"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"inputs": [
|
|
184
|
+
{
|
|
185
|
+
"internalType": "address",
|
|
186
|
+
"name": "spender",
|
|
187
|
+
"type": "address"
|
|
188
|
+
}
|
|
189
|
+
],
|
|
190
|
+
"name": "ERC20InvalidSpender",
|
|
191
|
+
"type": "error"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"inputs": [
|
|
195
|
+
{
|
|
196
|
+
"internalType": "uint256",
|
|
197
|
+
"name": "deadline",
|
|
198
|
+
"type": "uint256"
|
|
199
|
+
}
|
|
200
|
+
],
|
|
201
|
+
"name": "Erc2612ExpiredSignature",
|
|
202
|
+
"type": "error"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"inputs": [],
|
|
206
|
+
"name": "Erc2612InvalidSignature",
|
|
207
|
+
"type": "error"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"inputs": [],
|
|
211
|
+
"name": "ExpiredAuthorization",
|
|
212
|
+
"type": "error"
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"inputs": [],
|
|
216
|
+
"name": "FreezingPaused",
|
|
217
|
+
"type": "error"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"inputs": [],
|
|
221
|
+
"name": "InvalidAuthorization",
|
|
222
|
+
"type": "error"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"inputs": [],
|
|
226
|
+
"name": "InvalidInitialization",
|
|
227
|
+
"type": "error"
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"inputs": [
|
|
231
|
+
{
|
|
232
|
+
"internalType": "address",
|
|
233
|
+
"name": "caller",
|
|
234
|
+
"type": "address"
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"internalType": "address",
|
|
238
|
+
"name": "payee",
|
|
239
|
+
"type": "address"
|
|
240
|
+
}
|
|
241
|
+
],
|
|
242
|
+
"name": "InvalidPayee",
|
|
243
|
+
"type": "error"
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"inputs": [],
|
|
247
|
+
"name": "InvalidShortString",
|
|
248
|
+
"type": "error"
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"inputs": [],
|
|
252
|
+
"name": "InvalidSignature",
|
|
253
|
+
"type": "error"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"inputs": [],
|
|
257
|
+
"name": "MintPaused",
|
|
258
|
+
"type": "error"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"inputs": [],
|
|
262
|
+
"name": "NotInitializing",
|
|
263
|
+
"type": "error"
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"inputs": [],
|
|
267
|
+
"name": "RateLimitExceeded",
|
|
268
|
+
"type": "error"
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"inputs": [
|
|
272
|
+
{
|
|
273
|
+
"internalType": "string",
|
|
274
|
+
"name": "role",
|
|
275
|
+
"type": "string"
|
|
276
|
+
}
|
|
277
|
+
],
|
|
278
|
+
"name": "RoleDoesNotExist",
|
|
279
|
+
"type": "error"
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"inputs": [],
|
|
283
|
+
"name": "RoleNameTooLong",
|
|
284
|
+
"type": "error"
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"inputs": [],
|
|
288
|
+
"name": "SignatureVerificationPaused",
|
|
289
|
+
"type": "error"
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"inputs": [
|
|
293
|
+
{
|
|
294
|
+
"internalType": "string",
|
|
295
|
+
"name": "str",
|
|
296
|
+
"type": "string"
|
|
297
|
+
}
|
|
298
|
+
],
|
|
299
|
+
"name": "StringTooLong",
|
|
300
|
+
"type": "error"
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"inputs": [],
|
|
304
|
+
"name": "UsedOrCanceledAuthorization",
|
|
305
|
+
"type": "error"
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"inputs": [],
|
|
309
|
+
"name": "ZeroAmount",
|
|
310
|
+
"type": "error"
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
"anonymous": false,
|
|
314
|
+
"inputs": [
|
|
315
|
+
{
|
|
316
|
+
"indexed": true,
|
|
317
|
+
"internalType": "address",
|
|
318
|
+
"name": "account",
|
|
319
|
+
"type": "address"
|
|
320
|
+
}
|
|
321
|
+
],
|
|
322
|
+
"name": "AccountFrozen",
|
|
323
|
+
"type": "event"
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"anonymous": false,
|
|
327
|
+
"inputs": [
|
|
328
|
+
{
|
|
329
|
+
"indexed": true,
|
|
330
|
+
"internalType": "address",
|
|
331
|
+
"name": "account",
|
|
332
|
+
"type": "address"
|
|
333
|
+
}
|
|
334
|
+
],
|
|
335
|
+
"name": "AccountUnfrozen",
|
|
336
|
+
"type": "event"
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
"anonymous": false,
|
|
340
|
+
"inputs": [
|
|
341
|
+
{
|
|
342
|
+
"indexed": true,
|
|
343
|
+
"internalType": "address",
|
|
344
|
+
"name": "owner",
|
|
345
|
+
"type": "address"
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"indexed": true,
|
|
349
|
+
"internalType": "address",
|
|
350
|
+
"name": "spender",
|
|
351
|
+
"type": "address"
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
"indexed": false,
|
|
355
|
+
"internalType": "uint256",
|
|
356
|
+
"name": "value",
|
|
357
|
+
"type": "uint256"
|
|
358
|
+
}
|
|
359
|
+
],
|
|
360
|
+
"name": "Approval",
|
|
361
|
+
"type": "event"
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
"anonymous": false,
|
|
365
|
+
"inputs": [
|
|
366
|
+
{
|
|
367
|
+
"indexed": true,
|
|
368
|
+
"internalType": "address",
|
|
369
|
+
"name": "authorizer",
|
|
370
|
+
"type": "address"
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
"indexed": true,
|
|
374
|
+
"internalType": "bytes32",
|
|
375
|
+
"name": "nonce",
|
|
376
|
+
"type": "bytes32"
|
|
377
|
+
}
|
|
378
|
+
],
|
|
379
|
+
"name": "AuthorizationCanceled",
|
|
380
|
+
"type": "event"
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
"anonymous": false,
|
|
384
|
+
"inputs": [
|
|
385
|
+
{
|
|
386
|
+
"indexed": true,
|
|
387
|
+
"internalType": "address",
|
|
388
|
+
"name": "authorizer",
|
|
389
|
+
"type": "address"
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
"indexed": true,
|
|
393
|
+
"internalType": "bytes32",
|
|
394
|
+
"name": "nonce",
|
|
395
|
+
"type": "bytes32"
|
|
396
|
+
}
|
|
397
|
+
],
|
|
398
|
+
"name": "AuthorizationUsed",
|
|
399
|
+
"type": "event"
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
"anonymous": false,
|
|
403
|
+
"inputs": [
|
|
404
|
+
{
|
|
405
|
+
"indexed": true,
|
|
406
|
+
"internalType": "address",
|
|
407
|
+
"name": "sender",
|
|
408
|
+
"type": "address"
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
"indexed": true,
|
|
412
|
+
"internalType": "address",
|
|
413
|
+
"name": "burnFrom",
|
|
414
|
+
"type": "address"
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
"indexed": false,
|
|
418
|
+
"internalType": "uint256",
|
|
419
|
+
"name": "value",
|
|
420
|
+
"type": "uint256"
|
|
421
|
+
}
|
|
422
|
+
],
|
|
423
|
+
"name": "Burned",
|
|
424
|
+
"type": "event"
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
"anonymous": false,
|
|
428
|
+
"inputs": [
|
|
429
|
+
{
|
|
430
|
+
"indexed": false,
|
|
431
|
+
"internalType": "uint64",
|
|
432
|
+
"name": "version",
|
|
433
|
+
"type": "uint64"
|
|
434
|
+
}
|
|
435
|
+
],
|
|
436
|
+
"name": "Initialized",
|
|
437
|
+
"type": "event"
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
"anonymous": false,
|
|
441
|
+
"inputs": [
|
|
442
|
+
{
|
|
443
|
+
"components": [
|
|
444
|
+
{
|
|
445
|
+
"internalType": "address",
|
|
446
|
+
"name": "minter",
|
|
447
|
+
"type": "address"
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
"internalType": "uint256",
|
|
451
|
+
"name": "limit",
|
|
452
|
+
"type": "uint256"
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
"internalType": "uint256",
|
|
456
|
+
"name": "window",
|
|
457
|
+
"type": "uint256"
|
|
458
|
+
}
|
|
459
|
+
],
|
|
460
|
+
"indexed": false,
|
|
461
|
+
"internalType": "struct AgoraDollarMintRateLimit.MintRateLimitConfig",
|
|
462
|
+
"name": "rateLimitConfig",
|
|
463
|
+
"type": "tuple"
|
|
464
|
+
}
|
|
465
|
+
],
|
|
466
|
+
"name": "MintRateLimitChanged",
|
|
467
|
+
"type": "event"
|
|
468
|
+
},
|
|
469
|
+
{
|
|
470
|
+
"anonymous": false,
|
|
471
|
+
"inputs": [
|
|
472
|
+
{
|
|
473
|
+
"indexed": true,
|
|
474
|
+
"internalType": "address",
|
|
475
|
+
"name": "sender",
|
|
476
|
+
"type": "address"
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
"indexed": true,
|
|
480
|
+
"internalType": "address",
|
|
481
|
+
"name": "receiver",
|
|
482
|
+
"type": "address"
|
|
483
|
+
},
|
|
484
|
+
{
|
|
485
|
+
"indexed": false,
|
|
486
|
+
"internalType": "uint256",
|
|
487
|
+
"name": "value",
|
|
488
|
+
"type": "uint256"
|
|
489
|
+
}
|
|
490
|
+
],
|
|
491
|
+
"name": "Minted",
|
|
492
|
+
"type": "event"
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
"anonymous": false,
|
|
496
|
+
"inputs": [
|
|
497
|
+
{
|
|
498
|
+
"indexed": true,
|
|
499
|
+
"internalType": "string",
|
|
500
|
+
"name": "role",
|
|
501
|
+
"type": "string"
|
|
502
|
+
},
|
|
503
|
+
{
|
|
504
|
+
"indexed": true,
|
|
505
|
+
"internalType": "address",
|
|
506
|
+
"name": "member",
|
|
507
|
+
"type": "address"
|
|
508
|
+
}
|
|
509
|
+
],
|
|
510
|
+
"name": "RoleAssigned",
|
|
511
|
+
"type": "event"
|
|
512
|
+
},
|
|
513
|
+
{
|
|
514
|
+
"anonymous": false,
|
|
515
|
+
"inputs": [
|
|
516
|
+
{
|
|
517
|
+
"indexed": true,
|
|
518
|
+
"internalType": "string",
|
|
519
|
+
"name": "role",
|
|
520
|
+
"type": "string"
|
|
521
|
+
},
|
|
522
|
+
{
|
|
523
|
+
"indexed": true,
|
|
524
|
+
"internalType": "address",
|
|
525
|
+
"name": "member",
|
|
526
|
+
"type": "address"
|
|
527
|
+
}
|
|
528
|
+
],
|
|
529
|
+
"name": "RoleRevoked",
|
|
530
|
+
"type": "event"
|
|
531
|
+
},
|
|
532
|
+
{
|
|
533
|
+
"anonymous": false,
|
|
534
|
+
"inputs": [
|
|
535
|
+
{
|
|
536
|
+
"indexed": false,
|
|
537
|
+
"internalType": "bool",
|
|
538
|
+
"name": "isPaused",
|
|
539
|
+
"type": "bool"
|
|
540
|
+
}
|
|
541
|
+
],
|
|
542
|
+
"name": "SetIsBridgingPaused",
|
|
543
|
+
"type": "event"
|
|
544
|
+
},
|
|
545
|
+
{
|
|
546
|
+
"anonymous": false,
|
|
547
|
+
"inputs": [
|
|
548
|
+
{
|
|
549
|
+
"indexed": false,
|
|
550
|
+
"internalType": "bool",
|
|
551
|
+
"name": "isPaused",
|
|
552
|
+
"type": "bool"
|
|
553
|
+
}
|
|
554
|
+
],
|
|
555
|
+
"name": "SetIsBurnFromPaused",
|
|
556
|
+
"type": "event"
|
|
557
|
+
},
|
|
558
|
+
{
|
|
559
|
+
"anonymous": false,
|
|
560
|
+
"inputs": [
|
|
561
|
+
{
|
|
562
|
+
"indexed": false,
|
|
563
|
+
"internalType": "bool",
|
|
564
|
+
"name": "isPaused",
|
|
565
|
+
"type": "bool"
|
|
566
|
+
}
|
|
567
|
+
],
|
|
568
|
+
"name": "SetIsFreezingPaused",
|
|
569
|
+
"type": "event"
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
"anonymous": false,
|
|
573
|
+
"inputs": [
|
|
574
|
+
{
|
|
575
|
+
"indexed": false,
|
|
576
|
+
"internalType": "bool",
|
|
577
|
+
"name": "isPaused",
|
|
578
|
+
"type": "bool"
|
|
579
|
+
}
|
|
580
|
+
],
|
|
581
|
+
"name": "SetIsMintPaused",
|
|
582
|
+
"type": "event"
|
|
583
|
+
},
|
|
584
|
+
{
|
|
585
|
+
"anonymous": false,
|
|
586
|
+
"inputs": [
|
|
587
|
+
{
|
|
588
|
+
"indexed": false,
|
|
589
|
+
"internalType": "bool",
|
|
590
|
+
"name": "isEnabled",
|
|
591
|
+
"type": "bool"
|
|
592
|
+
}
|
|
593
|
+
],
|
|
594
|
+
"name": "SetIsMsgSenderCheckEnabled",
|
|
595
|
+
"type": "event"
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
"anonymous": false,
|
|
599
|
+
"inputs": [
|
|
600
|
+
{
|
|
601
|
+
"indexed": false,
|
|
602
|
+
"internalType": "bool",
|
|
603
|
+
"name": "isUpgraded",
|
|
604
|
+
"type": "bool"
|
|
605
|
+
}
|
|
606
|
+
],
|
|
607
|
+
"name": "SetIsReceiveWithAuthorizationUpgraded",
|
|
608
|
+
"type": "event"
|
|
609
|
+
},
|
|
610
|
+
{
|
|
611
|
+
"anonymous": false,
|
|
612
|
+
"inputs": [
|
|
613
|
+
{
|
|
614
|
+
"indexed": false,
|
|
615
|
+
"internalType": "bool",
|
|
616
|
+
"name": "isPaused",
|
|
617
|
+
"type": "bool"
|
|
618
|
+
}
|
|
619
|
+
],
|
|
620
|
+
"name": "SetIsSignatureVerificationPaused",
|
|
621
|
+
"type": "event"
|
|
622
|
+
},
|
|
623
|
+
{
|
|
624
|
+
"anonymous": false,
|
|
625
|
+
"inputs": [
|
|
626
|
+
{
|
|
627
|
+
"indexed": false,
|
|
628
|
+
"internalType": "bool",
|
|
629
|
+
"name": "isUpgraded",
|
|
630
|
+
"type": "bool"
|
|
631
|
+
}
|
|
632
|
+
],
|
|
633
|
+
"name": "SetIsTransferFromUpgraded",
|
|
634
|
+
"type": "event"
|
|
635
|
+
},
|
|
636
|
+
{
|
|
637
|
+
"anonymous": false,
|
|
638
|
+
"inputs": [
|
|
639
|
+
{
|
|
640
|
+
"indexed": false,
|
|
641
|
+
"internalType": "bool",
|
|
642
|
+
"name": "isPaused",
|
|
643
|
+
"type": "bool"
|
|
644
|
+
}
|
|
645
|
+
],
|
|
646
|
+
"name": "SetIsTransferPaused",
|
|
647
|
+
"type": "event"
|
|
648
|
+
},
|
|
649
|
+
{
|
|
650
|
+
"anonymous": false,
|
|
651
|
+
"inputs": [
|
|
652
|
+
{
|
|
653
|
+
"indexed": false,
|
|
654
|
+
"internalType": "bool",
|
|
655
|
+
"name": "isUpgraded",
|
|
656
|
+
"type": "bool"
|
|
657
|
+
}
|
|
658
|
+
],
|
|
659
|
+
"name": "SetIsTransferUpgraded",
|
|
660
|
+
"type": "event"
|
|
661
|
+
},
|
|
662
|
+
{
|
|
663
|
+
"anonymous": false,
|
|
664
|
+
"inputs": [
|
|
665
|
+
{
|
|
666
|
+
"indexed": false,
|
|
667
|
+
"internalType": "bool",
|
|
668
|
+
"name": "isUpgraded",
|
|
669
|
+
"type": "bool"
|
|
670
|
+
}
|
|
671
|
+
],
|
|
672
|
+
"name": "SetIsTransferWithAuthorizationUpgraded",
|
|
673
|
+
"type": "event"
|
|
674
|
+
},
|
|
675
|
+
{
|
|
676
|
+
"anonymous": false,
|
|
677
|
+
"inputs": [
|
|
678
|
+
{
|
|
679
|
+
"indexed": true,
|
|
680
|
+
"internalType": "address",
|
|
681
|
+
"name": "from",
|
|
682
|
+
"type": "address"
|
|
683
|
+
},
|
|
684
|
+
{
|
|
685
|
+
"indexed": true,
|
|
686
|
+
"internalType": "address",
|
|
687
|
+
"name": "to",
|
|
688
|
+
"type": "address"
|
|
689
|
+
},
|
|
690
|
+
{
|
|
691
|
+
"indexed": false,
|
|
692
|
+
"internalType": "uint256",
|
|
693
|
+
"name": "value",
|
|
694
|
+
"type": "uint256"
|
|
695
|
+
}
|
|
696
|
+
],
|
|
697
|
+
"name": "Transfer",
|
|
698
|
+
"type": "event"
|
|
699
|
+
},
|
|
700
|
+
{
|
|
701
|
+
"inputs": [],
|
|
702
|
+
"name": "ACCESS_CONTROL_MANAGER_ROLE",
|
|
703
|
+
"outputs": [
|
|
704
|
+
{
|
|
705
|
+
"internalType": "string",
|
|
706
|
+
"name": "",
|
|
707
|
+
"type": "string"
|
|
708
|
+
}
|
|
709
|
+
],
|
|
710
|
+
"stateMutability": "view",
|
|
711
|
+
"type": "function"
|
|
712
|
+
},
|
|
713
|
+
{
|
|
714
|
+
"inputs": [],
|
|
715
|
+
"name": "AGORA_ACCESS_CONTROL_STORAGE_SLOT",
|
|
716
|
+
"outputs": [
|
|
717
|
+
{
|
|
718
|
+
"internalType": "bytes32",
|
|
719
|
+
"name": "",
|
|
720
|
+
"type": "bytes32"
|
|
721
|
+
}
|
|
722
|
+
],
|
|
723
|
+
"stateMutability": "view",
|
|
724
|
+
"type": "function"
|
|
725
|
+
},
|
|
726
|
+
{
|
|
727
|
+
"inputs": [],
|
|
728
|
+
"name": "BRIDGE_BURNER_ROLE",
|
|
729
|
+
"outputs": [
|
|
730
|
+
{
|
|
731
|
+
"internalType": "string",
|
|
732
|
+
"name": "",
|
|
733
|
+
"type": "string"
|
|
734
|
+
}
|
|
735
|
+
],
|
|
736
|
+
"stateMutability": "view",
|
|
737
|
+
"type": "function"
|
|
738
|
+
},
|
|
739
|
+
{
|
|
740
|
+
"inputs": [],
|
|
741
|
+
"name": "BRIDGE_MINTER_ROLE",
|
|
742
|
+
"outputs": [
|
|
743
|
+
{
|
|
744
|
+
"internalType": "string",
|
|
745
|
+
"name": "",
|
|
746
|
+
"type": "string"
|
|
747
|
+
}
|
|
748
|
+
],
|
|
749
|
+
"stateMutability": "view",
|
|
750
|
+
"type": "function"
|
|
751
|
+
},
|
|
752
|
+
{
|
|
753
|
+
"inputs": [],
|
|
754
|
+
"name": "BURNER_ROLE",
|
|
755
|
+
"outputs": [
|
|
756
|
+
{
|
|
757
|
+
"internalType": "string",
|
|
758
|
+
"name": "",
|
|
759
|
+
"type": "string"
|
|
760
|
+
}
|
|
761
|
+
],
|
|
762
|
+
"stateMutability": "view",
|
|
763
|
+
"type": "function"
|
|
764
|
+
},
|
|
765
|
+
{
|
|
766
|
+
"inputs": [],
|
|
767
|
+
"name": "CANCEL_AUTHORIZATION_TYPEHASH",
|
|
768
|
+
"outputs": [
|
|
769
|
+
{
|
|
770
|
+
"internalType": "bytes32",
|
|
771
|
+
"name": "",
|
|
772
|
+
"type": "bytes32"
|
|
773
|
+
}
|
|
774
|
+
],
|
|
775
|
+
"stateMutability": "pure",
|
|
776
|
+
"type": "function"
|
|
777
|
+
},
|
|
778
|
+
{
|
|
779
|
+
"inputs": [],
|
|
780
|
+
"name": "DOMAIN_SEPARATOR",
|
|
781
|
+
"outputs": [
|
|
782
|
+
{
|
|
783
|
+
"internalType": "bytes32",
|
|
784
|
+
"name": "_domainSeparator",
|
|
785
|
+
"type": "bytes32"
|
|
786
|
+
}
|
|
787
|
+
],
|
|
788
|
+
"stateMutability": "view",
|
|
789
|
+
"type": "function"
|
|
790
|
+
},
|
|
791
|
+
{
|
|
792
|
+
"inputs": [],
|
|
793
|
+
"name": "ERC20_CORE_STORAGE_SLOT",
|
|
794
|
+
"outputs": [
|
|
795
|
+
{
|
|
796
|
+
"internalType": "bytes32",
|
|
797
|
+
"name": "",
|
|
798
|
+
"type": "bytes32"
|
|
799
|
+
}
|
|
800
|
+
],
|
|
801
|
+
"stateMutability": "pure",
|
|
802
|
+
"type": "function"
|
|
803
|
+
},
|
|
804
|
+
{
|
|
805
|
+
"inputs": [],
|
|
806
|
+
"name": "ERC2612_STORAGE_SLOT",
|
|
807
|
+
"outputs": [
|
|
808
|
+
{
|
|
809
|
+
"internalType": "bytes32",
|
|
810
|
+
"name": "",
|
|
811
|
+
"type": "bytes32"
|
|
812
|
+
}
|
|
813
|
+
],
|
|
814
|
+
"stateMutability": "pure",
|
|
815
|
+
"type": "function"
|
|
816
|
+
},
|
|
817
|
+
{
|
|
818
|
+
"inputs": [],
|
|
819
|
+
"name": "FREEZER_ROLE",
|
|
820
|
+
"outputs": [
|
|
821
|
+
{
|
|
822
|
+
"internalType": "string",
|
|
823
|
+
"name": "",
|
|
824
|
+
"type": "string"
|
|
825
|
+
}
|
|
826
|
+
],
|
|
827
|
+
"stateMutability": "view",
|
|
828
|
+
"type": "function"
|
|
829
|
+
},
|
|
830
|
+
{
|
|
831
|
+
"inputs": [],
|
|
832
|
+
"name": "IS_BURN_FROM_PAUSED_BIT_POSITION",
|
|
833
|
+
"outputs": [
|
|
834
|
+
{
|
|
835
|
+
"internalType": "uint256",
|
|
836
|
+
"name": "",
|
|
837
|
+
"type": "uint256"
|
|
838
|
+
}
|
|
839
|
+
],
|
|
840
|
+
"stateMutability": "pure",
|
|
841
|
+
"type": "function"
|
|
842
|
+
},
|
|
843
|
+
{
|
|
844
|
+
"inputs": [],
|
|
845
|
+
"name": "IS_FREEZING_PAUSED_BIT_POSITION",
|
|
846
|
+
"outputs": [
|
|
847
|
+
{
|
|
848
|
+
"internalType": "uint256",
|
|
849
|
+
"name": "",
|
|
850
|
+
"type": "uint256"
|
|
851
|
+
}
|
|
852
|
+
],
|
|
853
|
+
"stateMutability": "pure",
|
|
854
|
+
"type": "function"
|
|
855
|
+
},
|
|
856
|
+
{
|
|
857
|
+
"inputs": [],
|
|
858
|
+
"name": "IS_MINT_PAUSED_BIT_POSITION",
|
|
859
|
+
"outputs": [
|
|
860
|
+
{
|
|
861
|
+
"internalType": "uint256",
|
|
862
|
+
"name": "",
|
|
863
|
+
"type": "uint256"
|
|
864
|
+
}
|
|
865
|
+
],
|
|
866
|
+
"stateMutability": "pure",
|
|
867
|
+
"type": "function"
|
|
868
|
+
},
|
|
869
|
+
{
|
|
870
|
+
"inputs": [],
|
|
871
|
+
"name": "IS_MSG_SENDER_FROZEN_CHECK_ENABLED_BIT_POSITION",
|
|
872
|
+
"outputs": [
|
|
873
|
+
{
|
|
874
|
+
"internalType": "uint256",
|
|
875
|
+
"name": "",
|
|
876
|
+
"type": "uint256"
|
|
877
|
+
}
|
|
878
|
+
],
|
|
879
|
+
"stateMutability": "pure",
|
|
880
|
+
"type": "function"
|
|
881
|
+
},
|
|
882
|
+
{
|
|
883
|
+
"inputs": [],
|
|
884
|
+
"name": "IS_RECEIVE_WITH_AUTHORIZATION_UPGRADED_BIT_POSITION",
|
|
885
|
+
"outputs": [
|
|
886
|
+
{
|
|
887
|
+
"internalType": "uint256",
|
|
888
|
+
"name": "",
|
|
889
|
+
"type": "uint256"
|
|
890
|
+
}
|
|
891
|
+
],
|
|
892
|
+
"stateMutability": "pure",
|
|
893
|
+
"type": "function"
|
|
894
|
+
},
|
|
895
|
+
{
|
|
896
|
+
"inputs": [],
|
|
897
|
+
"name": "IS_SIGNATURE_VERIFICATION_PAUSED_BIT_POSITION",
|
|
898
|
+
"outputs": [
|
|
899
|
+
{
|
|
900
|
+
"internalType": "uint256",
|
|
901
|
+
"name": "",
|
|
902
|
+
"type": "uint256"
|
|
903
|
+
}
|
|
904
|
+
],
|
|
905
|
+
"stateMutability": "pure",
|
|
906
|
+
"type": "function"
|
|
907
|
+
},
|
|
908
|
+
{
|
|
909
|
+
"inputs": [],
|
|
910
|
+
"name": "IS_TRANSFER_FROM_UPGRADED_BIT_POSITION",
|
|
911
|
+
"outputs": [
|
|
912
|
+
{
|
|
913
|
+
"internalType": "uint256",
|
|
914
|
+
"name": "",
|
|
915
|
+
"type": "uint256"
|
|
916
|
+
}
|
|
917
|
+
],
|
|
918
|
+
"stateMutability": "pure",
|
|
919
|
+
"type": "function"
|
|
920
|
+
},
|
|
921
|
+
{
|
|
922
|
+
"inputs": [],
|
|
923
|
+
"name": "IS_TRANSFER_PAUSED_BIT_POSITION",
|
|
924
|
+
"outputs": [
|
|
925
|
+
{
|
|
926
|
+
"internalType": "uint256",
|
|
927
|
+
"name": "",
|
|
928
|
+
"type": "uint256"
|
|
929
|
+
}
|
|
930
|
+
],
|
|
931
|
+
"stateMutability": "pure",
|
|
932
|
+
"type": "function"
|
|
933
|
+
},
|
|
934
|
+
{
|
|
935
|
+
"inputs": [],
|
|
936
|
+
"name": "IS_TRANSFER_UPGRADED_BIT_POSITION",
|
|
937
|
+
"outputs": [
|
|
938
|
+
{
|
|
939
|
+
"internalType": "uint256",
|
|
940
|
+
"name": "",
|
|
941
|
+
"type": "uint256"
|
|
942
|
+
}
|
|
943
|
+
],
|
|
944
|
+
"stateMutability": "pure",
|
|
945
|
+
"type": "function"
|
|
946
|
+
},
|
|
947
|
+
{
|
|
948
|
+
"inputs": [],
|
|
949
|
+
"name": "IS_TRANSFER_WITH_AUTHORIZATION_UPGRADED_BIT_POSITION",
|
|
950
|
+
"outputs": [
|
|
951
|
+
{
|
|
952
|
+
"internalType": "uint256",
|
|
953
|
+
"name": "",
|
|
954
|
+
"type": "uint256"
|
|
955
|
+
}
|
|
956
|
+
],
|
|
957
|
+
"stateMutability": "pure",
|
|
958
|
+
"type": "function"
|
|
959
|
+
},
|
|
960
|
+
{
|
|
961
|
+
"inputs": [],
|
|
962
|
+
"name": "MINTER_ROLE",
|
|
963
|
+
"outputs": [
|
|
964
|
+
{
|
|
965
|
+
"internalType": "string",
|
|
966
|
+
"name": "",
|
|
967
|
+
"type": "string"
|
|
968
|
+
}
|
|
969
|
+
],
|
|
970
|
+
"stateMutability": "view",
|
|
971
|
+
"type": "function"
|
|
972
|
+
},
|
|
973
|
+
{
|
|
974
|
+
"inputs": [],
|
|
975
|
+
"name": "PAUSER_ROLE",
|
|
976
|
+
"outputs": [
|
|
977
|
+
{
|
|
978
|
+
"internalType": "string",
|
|
979
|
+
"name": "",
|
|
980
|
+
"type": "string"
|
|
981
|
+
}
|
|
982
|
+
],
|
|
983
|
+
"stateMutability": "view",
|
|
984
|
+
"type": "function"
|
|
985
|
+
},
|
|
986
|
+
{
|
|
987
|
+
"inputs": [],
|
|
988
|
+
"name": "PERMIT_TYPEHASH",
|
|
989
|
+
"outputs": [
|
|
990
|
+
{
|
|
991
|
+
"internalType": "bytes32",
|
|
992
|
+
"name": "",
|
|
993
|
+
"type": "bytes32"
|
|
994
|
+
}
|
|
995
|
+
],
|
|
996
|
+
"stateMutability": "view",
|
|
997
|
+
"type": "function"
|
|
998
|
+
},
|
|
999
|
+
{
|
|
1000
|
+
"inputs": [],
|
|
1001
|
+
"name": "RATE_LIMIT_MANAGER_ROLE",
|
|
1002
|
+
"outputs": [
|
|
1003
|
+
{
|
|
1004
|
+
"internalType": "string",
|
|
1005
|
+
"name": "",
|
|
1006
|
+
"type": "string"
|
|
1007
|
+
}
|
|
1008
|
+
],
|
|
1009
|
+
"stateMutability": "view",
|
|
1010
|
+
"type": "function"
|
|
1011
|
+
},
|
|
1012
|
+
{
|
|
1013
|
+
"inputs": [],
|
|
1014
|
+
"name": "RECEIVE_WITH_AUTHORIZATION_TYPEHASH",
|
|
1015
|
+
"outputs": [
|
|
1016
|
+
{
|
|
1017
|
+
"internalType": "bytes32",
|
|
1018
|
+
"name": "",
|
|
1019
|
+
"type": "bytes32"
|
|
1020
|
+
}
|
|
1021
|
+
],
|
|
1022
|
+
"stateMutability": "pure",
|
|
1023
|
+
"type": "function"
|
|
1024
|
+
},
|
|
1025
|
+
{
|
|
1026
|
+
"inputs": [],
|
|
1027
|
+
"name": "TRANSFER_WITH_AUTHORIZATION_TYPEHASH",
|
|
1028
|
+
"outputs": [
|
|
1029
|
+
{
|
|
1030
|
+
"internalType": "bytes32",
|
|
1031
|
+
"name": "",
|
|
1032
|
+
"type": "bytes32"
|
|
1033
|
+
}
|
|
1034
|
+
],
|
|
1035
|
+
"stateMutability": "pure",
|
|
1036
|
+
"type": "function"
|
|
1037
|
+
},
|
|
1038
|
+
{
|
|
1039
|
+
"inputs": [
|
|
1040
|
+
{
|
|
1041
|
+
"internalType": "address",
|
|
1042
|
+
"name": "_account",
|
|
1043
|
+
"type": "address"
|
|
1044
|
+
}
|
|
1045
|
+
],
|
|
1046
|
+
"name": "accountData",
|
|
1047
|
+
"outputs": [
|
|
1048
|
+
{
|
|
1049
|
+
"components": [
|
|
1050
|
+
{
|
|
1051
|
+
"internalType": "bool",
|
|
1052
|
+
"name": "isFrozen",
|
|
1053
|
+
"type": "bool"
|
|
1054
|
+
},
|
|
1055
|
+
{
|
|
1056
|
+
"internalType": "uint248",
|
|
1057
|
+
"name": "balance",
|
|
1058
|
+
"type": "uint248"
|
|
1059
|
+
}
|
|
1060
|
+
],
|
|
1061
|
+
"internalType": "struct StorageLib.Erc20AccountData",
|
|
1062
|
+
"name": "",
|
|
1063
|
+
"type": "tuple"
|
|
1064
|
+
}
|
|
1065
|
+
],
|
|
1066
|
+
"stateMutability": "view",
|
|
1067
|
+
"type": "function"
|
|
1068
|
+
},
|
|
1069
|
+
{
|
|
1070
|
+
"inputs": [
|
|
1071
|
+
{
|
|
1072
|
+
"internalType": "address",
|
|
1073
|
+
"name": "_owner",
|
|
1074
|
+
"type": "address"
|
|
1075
|
+
},
|
|
1076
|
+
{
|
|
1077
|
+
"internalType": "address",
|
|
1078
|
+
"name": "_spender",
|
|
1079
|
+
"type": "address"
|
|
1080
|
+
}
|
|
1081
|
+
],
|
|
1082
|
+
"name": "allowance",
|
|
1083
|
+
"outputs": [
|
|
1084
|
+
{
|
|
1085
|
+
"internalType": "uint256",
|
|
1086
|
+
"name": "",
|
|
1087
|
+
"type": "uint256"
|
|
1088
|
+
}
|
|
1089
|
+
],
|
|
1090
|
+
"stateMutability": "view",
|
|
1091
|
+
"type": "function"
|
|
1092
|
+
},
|
|
1093
|
+
{
|
|
1094
|
+
"inputs": [
|
|
1095
|
+
{
|
|
1096
|
+
"internalType": "address",
|
|
1097
|
+
"name": "_spender",
|
|
1098
|
+
"type": "address"
|
|
1099
|
+
},
|
|
1100
|
+
{
|
|
1101
|
+
"internalType": "uint256",
|
|
1102
|
+
"name": "_value",
|
|
1103
|
+
"type": "uint256"
|
|
1104
|
+
}
|
|
1105
|
+
],
|
|
1106
|
+
"name": "approve",
|
|
1107
|
+
"outputs": [
|
|
1108
|
+
{
|
|
1109
|
+
"internalType": "bool",
|
|
1110
|
+
"name": "",
|
|
1111
|
+
"type": "bool"
|
|
1112
|
+
}
|
|
1113
|
+
],
|
|
1114
|
+
"stateMutability": "nonpayable",
|
|
1115
|
+
"type": "function"
|
|
1116
|
+
},
|
|
1117
|
+
{
|
|
1118
|
+
"inputs": [
|
|
1119
|
+
{
|
|
1120
|
+
"internalType": "address",
|
|
1121
|
+
"name": "_authorizer",
|
|
1122
|
+
"type": "address"
|
|
1123
|
+
},
|
|
1124
|
+
{
|
|
1125
|
+
"internalType": "bytes32",
|
|
1126
|
+
"name": "_nonce",
|
|
1127
|
+
"type": "bytes32"
|
|
1128
|
+
}
|
|
1129
|
+
],
|
|
1130
|
+
"name": "authorizationState",
|
|
1131
|
+
"outputs": [
|
|
1132
|
+
{
|
|
1133
|
+
"internalType": "bool",
|
|
1134
|
+
"name": "_isNonceUsed",
|
|
1135
|
+
"type": "bool"
|
|
1136
|
+
}
|
|
1137
|
+
],
|
|
1138
|
+
"stateMutability": "view",
|
|
1139
|
+
"type": "function"
|
|
1140
|
+
},
|
|
1141
|
+
{
|
|
1142
|
+
"inputs": [
|
|
1143
|
+
{
|
|
1144
|
+
"internalType": "address",
|
|
1145
|
+
"name": "_account",
|
|
1146
|
+
"type": "address"
|
|
1147
|
+
}
|
|
1148
|
+
],
|
|
1149
|
+
"name": "balanceOf",
|
|
1150
|
+
"outputs": [
|
|
1151
|
+
{
|
|
1152
|
+
"internalType": "uint256",
|
|
1153
|
+
"name": "",
|
|
1154
|
+
"type": "uint256"
|
|
1155
|
+
}
|
|
1156
|
+
],
|
|
1157
|
+
"stateMutability": "view",
|
|
1158
|
+
"type": "function"
|
|
1159
|
+
},
|
|
1160
|
+
{
|
|
1161
|
+
"inputs": [
|
|
1162
|
+
{
|
|
1163
|
+
"components": [
|
|
1164
|
+
{
|
|
1165
|
+
"internalType": "address",
|
|
1166
|
+
"name": "burnFromAddress",
|
|
1167
|
+
"type": "address"
|
|
1168
|
+
},
|
|
1169
|
+
{
|
|
1170
|
+
"internalType": "uint256",
|
|
1171
|
+
"name": "value",
|
|
1172
|
+
"type": "uint256"
|
|
1173
|
+
}
|
|
1174
|
+
],
|
|
1175
|
+
"internalType": "struct Erc20Privileged.BatchBurnFromParam[]",
|
|
1176
|
+
"name": "_burns",
|
|
1177
|
+
"type": "tuple[]"
|
|
1178
|
+
}
|
|
1179
|
+
],
|
|
1180
|
+
"name": "batchBurnFrom",
|
|
1181
|
+
"outputs": [],
|
|
1182
|
+
"stateMutability": "nonpayable",
|
|
1183
|
+
"type": "function"
|
|
1184
|
+
},
|
|
1185
|
+
{
|
|
1186
|
+
"inputs": [
|
|
1187
|
+
{
|
|
1188
|
+
"internalType": "address[]",
|
|
1189
|
+
"name": "_addresses",
|
|
1190
|
+
"type": "address[]"
|
|
1191
|
+
}
|
|
1192
|
+
],
|
|
1193
|
+
"name": "batchFreeze",
|
|
1194
|
+
"outputs": [],
|
|
1195
|
+
"stateMutability": "nonpayable",
|
|
1196
|
+
"type": "function"
|
|
1197
|
+
},
|
|
1198
|
+
{
|
|
1199
|
+
"inputs": [
|
|
1200
|
+
{
|
|
1201
|
+
"components": [
|
|
1202
|
+
{
|
|
1203
|
+
"internalType": "address",
|
|
1204
|
+
"name": "receiverAddress",
|
|
1205
|
+
"type": "address"
|
|
1206
|
+
},
|
|
1207
|
+
{
|
|
1208
|
+
"internalType": "uint256",
|
|
1209
|
+
"name": "value",
|
|
1210
|
+
"type": "uint256"
|
|
1211
|
+
}
|
|
1212
|
+
],
|
|
1213
|
+
"internalType": "struct Erc20Privileged.BatchMintParam[]",
|
|
1214
|
+
"name": "_mints",
|
|
1215
|
+
"type": "tuple[]"
|
|
1216
|
+
}
|
|
1217
|
+
],
|
|
1218
|
+
"name": "batchMint",
|
|
1219
|
+
"outputs": [],
|
|
1220
|
+
"stateMutability": "nonpayable",
|
|
1221
|
+
"type": "function"
|
|
1222
|
+
},
|
|
1223
|
+
{
|
|
1224
|
+
"inputs": [
|
|
1225
|
+
{
|
|
1226
|
+
"internalType": "address[]",
|
|
1227
|
+
"name": "_addresses",
|
|
1228
|
+
"type": "address[]"
|
|
1229
|
+
}
|
|
1230
|
+
],
|
|
1231
|
+
"name": "batchUnfreeze",
|
|
1232
|
+
"outputs": [],
|
|
1233
|
+
"stateMutability": "nonpayable",
|
|
1234
|
+
"type": "function"
|
|
1235
|
+
},
|
|
1236
|
+
{
|
|
1237
|
+
"inputs": [
|
|
1238
|
+
{
|
|
1239
|
+
"internalType": "address",
|
|
1240
|
+
"name": "_from",
|
|
1241
|
+
"type": "address"
|
|
1242
|
+
},
|
|
1243
|
+
{
|
|
1244
|
+
"internalType": "uint256",
|
|
1245
|
+
"name": "_amount",
|
|
1246
|
+
"type": "uint256"
|
|
1247
|
+
}
|
|
1248
|
+
],
|
|
1249
|
+
"name": "burn",
|
|
1250
|
+
"outputs": [
|
|
1251
|
+
{
|
|
1252
|
+
"internalType": "bool",
|
|
1253
|
+
"name": "",
|
|
1254
|
+
"type": "bool"
|
|
1255
|
+
}
|
|
1256
|
+
],
|
|
1257
|
+
"stateMutability": "nonpayable",
|
|
1258
|
+
"type": "function"
|
|
1259
|
+
},
|
|
1260
|
+
{
|
|
1261
|
+
"inputs": [
|
|
1262
|
+
{
|
|
1263
|
+
"internalType": "address",
|
|
1264
|
+
"name": "_authorizer",
|
|
1265
|
+
"type": "address"
|
|
1266
|
+
},
|
|
1267
|
+
{
|
|
1268
|
+
"internalType": "bytes32",
|
|
1269
|
+
"name": "_nonce",
|
|
1270
|
+
"type": "bytes32"
|
|
1271
|
+
},
|
|
1272
|
+
{
|
|
1273
|
+
"internalType": "uint8",
|
|
1274
|
+
"name": "_v",
|
|
1275
|
+
"type": "uint8"
|
|
1276
|
+
},
|
|
1277
|
+
{
|
|
1278
|
+
"internalType": "bytes32",
|
|
1279
|
+
"name": "_r",
|
|
1280
|
+
"type": "bytes32"
|
|
1281
|
+
},
|
|
1282
|
+
{
|
|
1283
|
+
"internalType": "bytes32",
|
|
1284
|
+
"name": "_s",
|
|
1285
|
+
"type": "bytes32"
|
|
1286
|
+
}
|
|
1287
|
+
],
|
|
1288
|
+
"name": "cancelAuthorization",
|
|
1289
|
+
"outputs": [],
|
|
1290
|
+
"stateMutability": "nonpayable",
|
|
1291
|
+
"type": "function"
|
|
1292
|
+
},
|
|
1293
|
+
{
|
|
1294
|
+
"inputs": [
|
|
1295
|
+
{
|
|
1296
|
+
"internalType": "address",
|
|
1297
|
+
"name": "_authorizer",
|
|
1298
|
+
"type": "address"
|
|
1299
|
+
},
|
|
1300
|
+
{
|
|
1301
|
+
"internalType": "bytes32",
|
|
1302
|
+
"name": "_nonce",
|
|
1303
|
+
"type": "bytes32"
|
|
1304
|
+
},
|
|
1305
|
+
{
|
|
1306
|
+
"internalType": "bytes",
|
|
1307
|
+
"name": "_signature",
|
|
1308
|
+
"type": "bytes"
|
|
1309
|
+
}
|
|
1310
|
+
],
|
|
1311
|
+
"name": "cancelAuthorization",
|
|
1312
|
+
"outputs": [],
|
|
1313
|
+
"stateMutability": "nonpayable",
|
|
1314
|
+
"type": "function"
|
|
1315
|
+
},
|
|
1316
|
+
{
|
|
1317
|
+
"inputs": [],
|
|
1318
|
+
"name": "decimals",
|
|
1319
|
+
"outputs": [
|
|
1320
|
+
{
|
|
1321
|
+
"internalType": "uint8",
|
|
1322
|
+
"name": "",
|
|
1323
|
+
"type": "uint8"
|
|
1324
|
+
}
|
|
1325
|
+
],
|
|
1326
|
+
"stateMutability": "view",
|
|
1327
|
+
"type": "function"
|
|
1328
|
+
},
|
|
1329
|
+
{
|
|
1330
|
+
"inputs": [],
|
|
1331
|
+
"name": "domainSeparatorV4",
|
|
1332
|
+
"outputs": [
|
|
1333
|
+
{
|
|
1334
|
+
"internalType": "bytes32",
|
|
1335
|
+
"name": "",
|
|
1336
|
+
"type": "bytes32"
|
|
1337
|
+
}
|
|
1338
|
+
],
|
|
1339
|
+
"stateMutability": "view",
|
|
1340
|
+
"type": "function"
|
|
1341
|
+
},
|
|
1342
|
+
{
|
|
1343
|
+
"inputs": [],
|
|
1344
|
+
"name": "eip712Domain",
|
|
1345
|
+
"outputs": [
|
|
1346
|
+
{
|
|
1347
|
+
"internalType": "bytes1",
|
|
1348
|
+
"name": "_fields",
|
|
1349
|
+
"type": "bytes1"
|
|
1350
|
+
},
|
|
1351
|
+
{
|
|
1352
|
+
"internalType": "string",
|
|
1353
|
+
"name": "_name",
|
|
1354
|
+
"type": "string"
|
|
1355
|
+
},
|
|
1356
|
+
{
|
|
1357
|
+
"internalType": "string",
|
|
1358
|
+
"name": "_version",
|
|
1359
|
+
"type": "string"
|
|
1360
|
+
},
|
|
1361
|
+
{
|
|
1362
|
+
"internalType": "uint256",
|
|
1363
|
+
"name": "_chainId",
|
|
1364
|
+
"type": "uint256"
|
|
1365
|
+
},
|
|
1366
|
+
{
|
|
1367
|
+
"internalType": "address",
|
|
1368
|
+
"name": "_verifyingContract",
|
|
1369
|
+
"type": "address"
|
|
1370
|
+
},
|
|
1371
|
+
{
|
|
1372
|
+
"internalType": "bytes32",
|
|
1373
|
+
"name": "_salt",
|
|
1374
|
+
"type": "bytes32"
|
|
1375
|
+
},
|
|
1376
|
+
{
|
|
1377
|
+
"internalType": "uint256[]",
|
|
1378
|
+
"name": "_extensions",
|
|
1379
|
+
"type": "uint256[]"
|
|
1380
|
+
}
|
|
1381
|
+
],
|
|
1382
|
+
"stateMutability": "view",
|
|
1383
|
+
"type": "function"
|
|
1384
|
+
},
|
|
1385
|
+
{
|
|
1386
|
+
"inputs": [],
|
|
1387
|
+
"name": "getAccessControlManagerRoleMembers",
|
|
1388
|
+
"outputs": [
|
|
1389
|
+
{
|
|
1390
|
+
"internalType": "address[]",
|
|
1391
|
+
"name": "",
|
|
1392
|
+
"type": "address[]"
|
|
1393
|
+
}
|
|
1394
|
+
],
|
|
1395
|
+
"stateMutability": "view",
|
|
1396
|
+
"type": "function"
|
|
1397
|
+
},
|
|
1398
|
+
{
|
|
1399
|
+
"inputs": [],
|
|
1400
|
+
"name": "getAllRoles",
|
|
1401
|
+
"outputs": [
|
|
1402
|
+
{
|
|
1403
|
+
"internalType": "string[]",
|
|
1404
|
+
"name": "_roles",
|
|
1405
|
+
"type": "string[]"
|
|
1406
|
+
}
|
|
1407
|
+
],
|
|
1408
|
+
"stateMutability": "view",
|
|
1409
|
+
"type": "function"
|
|
1410
|
+
},
|
|
1411
|
+
{
|
|
1412
|
+
"inputs": [
|
|
1413
|
+
{
|
|
1414
|
+
"internalType": "address",
|
|
1415
|
+
"name": "_minter",
|
|
1416
|
+
"type": "address"
|
|
1417
|
+
}
|
|
1418
|
+
],
|
|
1419
|
+
"name": "getAmountCanBeMinted",
|
|
1420
|
+
"outputs": [
|
|
1421
|
+
{
|
|
1422
|
+
"internalType": "uint256",
|
|
1423
|
+
"name": "currentAmountInFlight",
|
|
1424
|
+
"type": "uint256"
|
|
1425
|
+
},
|
|
1426
|
+
{
|
|
1427
|
+
"internalType": "uint256",
|
|
1428
|
+
"name": "amountCanBeMinted",
|
|
1429
|
+
"type": "uint256"
|
|
1430
|
+
}
|
|
1431
|
+
],
|
|
1432
|
+
"stateMutability": "view",
|
|
1433
|
+
"type": "function"
|
|
1434
|
+
},
|
|
1435
|
+
{
|
|
1436
|
+
"inputs": [],
|
|
1437
|
+
"name": "getBridgeBurnerRoleMembers",
|
|
1438
|
+
"outputs": [
|
|
1439
|
+
{
|
|
1440
|
+
"internalType": "address[]",
|
|
1441
|
+
"name": "",
|
|
1442
|
+
"type": "address[]"
|
|
1443
|
+
}
|
|
1444
|
+
],
|
|
1445
|
+
"stateMutability": "view",
|
|
1446
|
+
"type": "function"
|
|
1447
|
+
},
|
|
1448
|
+
{
|
|
1449
|
+
"inputs": [],
|
|
1450
|
+
"name": "getBridgeMinterRoleMembers",
|
|
1451
|
+
"outputs": [
|
|
1452
|
+
{
|
|
1453
|
+
"internalType": "address[]",
|
|
1454
|
+
"name": "",
|
|
1455
|
+
"type": "address[]"
|
|
1456
|
+
}
|
|
1457
|
+
],
|
|
1458
|
+
"stateMutability": "view",
|
|
1459
|
+
"type": "function"
|
|
1460
|
+
},
|
|
1461
|
+
{
|
|
1462
|
+
"inputs": [],
|
|
1463
|
+
"name": "getBurnerRoleMembers",
|
|
1464
|
+
"outputs": [
|
|
1465
|
+
{
|
|
1466
|
+
"internalType": "address[]",
|
|
1467
|
+
"name": "",
|
|
1468
|
+
"type": "address[]"
|
|
1469
|
+
}
|
|
1470
|
+
],
|
|
1471
|
+
"stateMutability": "view",
|
|
1472
|
+
"type": "function"
|
|
1473
|
+
},
|
|
1474
|
+
{
|
|
1475
|
+
"inputs": [],
|
|
1476
|
+
"name": "getFreezerRoleMembers",
|
|
1477
|
+
"outputs": [
|
|
1478
|
+
{
|
|
1479
|
+
"internalType": "address[]",
|
|
1480
|
+
"name": "",
|
|
1481
|
+
"type": "address[]"
|
|
1482
|
+
}
|
|
1483
|
+
],
|
|
1484
|
+
"stateMutability": "view",
|
|
1485
|
+
"type": "function"
|
|
1486
|
+
},
|
|
1487
|
+
{
|
|
1488
|
+
"inputs": [
|
|
1489
|
+
{
|
|
1490
|
+
"internalType": "address",
|
|
1491
|
+
"name": "_minter",
|
|
1492
|
+
"type": "address"
|
|
1493
|
+
}
|
|
1494
|
+
],
|
|
1495
|
+
"name": "getMintRateLimit",
|
|
1496
|
+
"outputs": [
|
|
1497
|
+
{
|
|
1498
|
+
"components": [
|
|
1499
|
+
{
|
|
1500
|
+
"internalType": "uint256",
|
|
1501
|
+
"name": "amountInFlight",
|
|
1502
|
+
"type": "uint256"
|
|
1503
|
+
},
|
|
1504
|
+
{
|
|
1505
|
+
"internalType": "uint256",
|
|
1506
|
+
"name": "lastUpdated",
|
|
1507
|
+
"type": "uint256"
|
|
1508
|
+
},
|
|
1509
|
+
{
|
|
1510
|
+
"internalType": "uint256",
|
|
1511
|
+
"name": "limit",
|
|
1512
|
+
"type": "uint256"
|
|
1513
|
+
},
|
|
1514
|
+
{
|
|
1515
|
+
"internalType": "uint256",
|
|
1516
|
+
"name": "window",
|
|
1517
|
+
"type": "uint256"
|
|
1518
|
+
}
|
|
1519
|
+
],
|
|
1520
|
+
"internalType": "struct StorageLib.RateLimit",
|
|
1521
|
+
"name": "",
|
|
1522
|
+
"type": "tuple"
|
|
1523
|
+
}
|
|
1524
|
+
],
|
|
1525
|
+
"stateMutability": "view",
|
|
1526
|
+
"type": "function"
|
|
1527
|
+
},
|
|
1528
|
+
{
|
|
1529
|
+
"inputs": [],
|
|
1530
|
+
"name": "getMinterRoleMembers",
|
|
1531
|
+
"outputs": [
|
|
1532
|
+
{
|
|
1533
|
+
"internalType": "address[]",
|
|
1534
|
+
"name": "",
|
|
1535
|
+
"type": "address[]"
|
|
1536
|
+
}
|
|
1537
|
+
],
|
|
1538
|
+
"stateMutability": "view",
|
|
1539
|
+
"type": "function"
|
|
1540
|
+
},
|
|
1541
|
+
{
|
|
1542
|
+
"inputs": [],
|
|
1543
|
+
"name": "getPauserRoleMembers",
|
|
1544
|
+
"outputs": [
|
|
1545
|
+
{
|
|
1546
|
+
"internalType": "address[]",
|
|
1547
|
+
"name": "",
|
|
1548
|
+
"type": "address[]"
|
|
1549
|
+
}
|
|
1550
|
+
],
|
|
1551
|
+
"stateMutability": "view",
|
|
1552
|
+
"type": "function"
|
|
1553
|
+
},
|
|
1554
|
+
{
|
|
1555
|
+
"inputs": [],
|
|
1556
|
+
"name": "getRateLimitManagerRoleMembers",
|
|
1557
|
+
"outputs": [
|
|
1558
|
+
{
|
|
1559
|
+
"internalType": "address[]",
|
|
1560
|
+
"name": "",
|
|
1561
|
+
"type": "address[]"
|
|
1562
|
+
}
|
|
1563
|
+
],
|
|
1564
|
+
"stateMutability": "view",
|
|
1565
|
+
"type": "function"
|
|
1566
|
+
},
|
|
1567
|
+
{
|
|
1568
|
+
"inputs": [
|
|
1569
|
+
{
|
|
1570
|
+
"internalType": "string",
|
|
1571
|
+
"name": "_role",
|
|
1572
|
+
"type": "string"
|
|
1573
|
+
}
|
|
1574
|
+
],
|
|
1575
|
+
"name": "getRoleMembers",
|
|
1576
|
+
"outputs": [
|
|
1577
|
+
{
|
|
1578
|
+
"internalType": "address[]",
|
|
1579
|
+
"name": "",
|
|
1580
|
+
"type": "address[]"
|
|
1581
|
+
}
|
|
1582
|
+
],
|
|
1583
|
+
"stateMutability": "view",
|
|
1584
|
+
"type": "function"
|
|
1585
|
+
},
|
|
1586
|
+
{
|
|
1587
|
+
"inputs": [
|
|
1588
|
+
{
|
|
1589
|
+
"internalType": "address",
|
|
1590
|
+
"name": "_member",
|
|
1591
|
+
"type": "address"
|
|
1592
|
+
}
|
|
1593
|
+
],
|
|
1594
|
+
"name": "grantAccessControlManagerRole",
|
|
1595
|
+
"outputs": [],
|
|
1596
|
+
"stateMutability": "nonpayable",
|
|
1597
|
+
"type": "function"
|
|
1598
|
+
},
|
|
1599
|
+
{
|
|
1600
|
+
"inputs": [
|
|
1601
|
+
{
|
|
1602
|
+
"internalType": "address",
|
|
1603
|
+
"name": "_member",
|
|
1604
|
+
"type": "address"
|
|
1605
|
+
}
|
|
1606
|
+
],
|
|
1607
|
+
"name": "grantBridgeBurnerRole",
|
|
1608
|
+
"outputs": [],
|
|
1609
|
+
"stateMutability": "nonpayable",
|
|
1610
|
+
"type": "function"
|
|
1611
|
+
},
|
|
1612
|
+
{
|
|
1613
|
+
"inputs": [
|
|
1614
|
+
{
|
|
1615
|
+
"internalType": "address",
|
|
1616
|
+
"name": "_member",
|
|
1617
|
+
"type": "address"
|
|
1618
|
+
}
|
|
1619
|
+
],
|
|
1620
|
+
"name": "grantBridgeMinterRole",
|
|
1621
|
+
"outputs": [],
|
|
1622
|
+
"stateMutability": "nonpayable",
|
|
1623
|
+
"type": "function"
|
|
1624
|
+
},
|
|
1625
|
+
{
|
|
1626
|
+
"inputs": [
|
|
1627
|
+
{
|
|
1628
|
+
"internalType": "address",
|
|
1629
|
+
"name": "_member",
|
|
1630
|
+
"type": "address"
|
|
1631
|
+
}
|
|
1632
|
+
],
|
|
1633
|
+
"name": "grantBurnerRole",
|
|
1634
|
+
"outputs": [],
|
|
1635
|
+
"stateMutability": "nonpayable",
|
|
1636
|
+
"type": "function"
|
|
1637
|
+
},
|
|
1638
|
+
{
|
|
1639
|
+
"inputs": [
|
|
1640
|
+
{
|
|
1641
|
+
"internalType": "address",
|
|
1642
|
+
"name": "_member",
|
|
1643
|
+
"type": "address"
|
|
1644
|
+
}
|
|
1645
|
+
],
|
|
1646
|
+
"name": "grantFreezerRole",
|
|
1647
|
+
"outputs": [],
|
|
1648
|
+
"stateMutability": "nonpayable",
|
|
1649
|
+
"type": "function"
|
|
1650
|
+
},
|
|
1651
|
+
{
|
|
1652
|
+
"inputs": [
|
|
1653
|
+
{
|
|
1654
|
+
"internalType": "address",
|
|
1655
|
+
"name": "_member",
|
|
1656
|
+
"type": "address"
|
|
1657
|
+
}
|
|
1658
|
+
],
|
|
1659
|
+
"name": "grantMinterRole",
|
|
1660
|
+
"outputs": [],
|
|
1661
|
+
"stateMutability": "nonpayable",
|
|
1662
|
+
"type": "function"
|
|
1663
|
+
},
|
|
1664
|
+
{
|
|
1665
|
+
"inputs": [
|
|
1666
|
+
{
|
|
1667
|
+
"internalType": "address",
|
|
1668
|
+
"name": "_member",
|
|
1669
|
+
"type": "address"
|
|
1670
|
+
}
|
|
1671
|
+
],
|
|
1672
|
+
"name": "grantPauserRole",
|
|
1673
|
+
"outputs": [],
|
|
1674
|
+
"stateMutability": "nonpayable",
|
|
1675
|
+
"type": "function"
|
|
1676
|
+
},
|
|
1677
|
+
{
|
|
1678
|
+
"inputs": [
|
|
1679
|
+
{
|
|
1680
|
+
"internalType": "address",
|
|
1681
|
+
"name": "_member",
|
|
1682
|
+
"type": "address"
|
|
1683
|
+
}
|
|
1684
|
+
],
|
|
1685
|
+
"name": "grantRateLimitManagerRole",
|
|
1686
|
+
"outputs": [],
|
|
1687
|
+
"stateMutability": "nonpayable",
|
|
1688
|
+
"type": "function"
|
|
1689
|
+
},
|
|
1690
|
+
{
|
|
1691
|
+
"inputs": [
|
|
1692
|
+
{
|
|
1693
|
+
"internalType": "string",
|
|
1694
|
+
"name": "_role",
|
|
1695
|
+
"type": "string"
|
|
1696
|
+
},
|
|
1697
|
+
{
|
|
1698
|
+
"internalType": "address",
|
|
1699
|
+
"name": "_member",
|
|
1700
|
+
"type": "address"
|
|
1701
|
+
}
|
|
1702
|
+
],
|
|
1703
|
+
"name": "hasRole",
|
|
1704
|
+
"outputs": [
|
|
1705
|
+
{
|
|
1706
|
+
"internalType": "bool",
|
|
1707
|
+
"name": "",
|
|
1708
|
+
"type": "bool"
|
|
1709
|
+
}
|
|
1710
|
+
],
|
|
1711
|
+
"stateMutability": "view",
|
|
1712
|
+
"type": "function"
|
|
1713
|
+
},
|
|
1714
|
+
{
|
|
1715
|
+
"inputs": [
|
|
1716
|
+
{
|
|
1717
|
+
"internalType": "bytes32",
|
|
1718
|
+
"name": "_structHash",
|
|
1719
|
+
"type": "bytes32"
|
|
1720
|
+
}
|
|
1721
|
+
],
|
|
1722
|
+
"name": "hashTypedDataV4",
|
|
1723
|
+
"outputs": [
|
|
1724
|
+
{
|
|
1725
|
+
"internalType": "bytes32",
|
|
1726
|
+
"name": "",
|
|
1727
|
+
"type": "bytes32"
|
|
1728
|
+
}
|
|
1729
|
+
],
|
|
1730
|
+
"stateMutability": "view",
|
|
1731
|
+
"type": "function"
|
|
1732
|
+
},
|
|
1733
|
+
{
|
|
1734
|
+
"inputs": [],
|
|
1735
|
+
"name": "implementation",
|
|
1736
|
+
"outputs": [
|
|
1737
|
+
{
|
|
1738
|
+
"internalType": "address",
|
|
1739
|
+
"name": "",
|
|
1740
|
+
"type": "address"
|
|
1741
|
+
}
|
|
1742
|
+
],
|
|
1743
|
+
"stateMutability": "view",
|
|
1744
|
+
"type": "function"
|
|
1745
|
+
},
|
|
1746
|
+
{
|
|
1747
|
+
"inputs": [
|
|
1748
|
+
{
|
|
1749
|
+
"components": [
|
|
1750
|
+
{
|
|
1751
|
+
"internalType": "address",
|
|
1752
|
+
"name": "initialAdminAddress",
|
|
1753
|
+
"type": "address"
|
|
1754
|
+
},
|
|
1755
|
+
{
|
|
1756
|
+
"internalType": "address",
|
|
1757
|
+
"name": "initialMinterAddress",
|
|
1758
|
+
"type": "address"
|
|
1759
|
+
},
|
|
1760
|
+
{
|
|
1761
|
+
"internalType": "address",
|
|
1762
|
+
"name": "initialBurnerAddress",
|
|
1763
|
+
"type": "address"
|
|
1764
|
+
},
|
|
1765
|
+
{
|
|
1766
|
+
"internalType": "address",
|
|
1767
|
+
"name": "initialPauserAddress",
|
|
1768
|
+
"type": "address"
|
|
1769
|
+
},
|
|
1770
|
+
{
|
|
1771
|
+
"internalType": "address",
|
|
1772
|
+
"name": "initialFreezerAddress",
|
|
1773
|
+
"type": "address"
|
|
1774
|
+
},
|
|
1775
|
+
{
|
|
1776
|
+
"internalType": "address",
|
|
1777
|
+
"name": "initialRateLimitManagerAddress",
|
|
1778
|
+
"type": "address"
|
|
1779
|
+
}
|
|
1780
|
+
],
|
|
1781
|
+
"internalType": "struct InitializeParams",
|
|
1782
|
+
"name": "_params",
|
|
1783
|
+
"type": "tuple"
|
|
1784
|
+
}
|
|
1785
|
+
],
|
|
1786
|
+
"name": "initialize",
|
|
1787
|
+
"outputs": [],
|
|
1788
|
+
"stateMutability": "nonpayable",
|
|
1789
|
+
"type": "function"
|
|
1790
|
+
},
|
|
1791
|
+
{
|
|
1792
|
+
"inputs": [
|
|
1793
|
+
{
|
|
1794
|
+
"internalType": "address",
|
|
1795
|
+
"name": "_account",
|
|
1796
|
+
"type": "address"
|
|
1797
|
+
}
|
|
1798
|
+
],
|
|
1799
|
+
"name": "isAccountFrozen",
|
|
1800
|
+
"outputs": [
|
|
1801
|
+
{
|
|
1802
|
+
"internalType": "bool",
|
|
1803
|
+
"name": "",
|
|
1804
|
+
"type": "bool"
|
|
1805
|
+
}
|
|
1806
|
+
],
|
|
1807
|
+
"stateMutability": "view",
|
|
1808
|
+
"type": "function"
|
|
1809
|
+
},
|
|
1810
|
+
{
|
|
1811
|
+
"inputs": [],
|
|
1812
|
+
"name": "isBridgingPaused",
|
|
1813
|
+
"outputs": [
|
|
1814
|
+
{
|
|
1815
|
+
"internalType": "bool",
|
|
1816
|
+
"name": "",
|
|
1817
|
+
"type": "bool"
|
|
1818
|
+
}
|
|
1819
|
+
],
|
|
1820
|
+
"stateMutability": "view",
|
|
1821
|
+
"type": "function"
|
|
1822
|
+
},
|
|
1823
|
+
{
|
|
1824
|
+
"inputs": [],
|
|
1825
|
+
"name": "isBurnFromPaused",
|
|
1826
|
+
"outputs": [
|
|
1827
|
+
{
|
|
1828
|
+
"internalType": "bool",
|
|
1829
|
+
"name": "",
|
|
1830
|
+
"type": "bool"
|
|
1831
|
+
}
|
|
1832
|
+
],
|
|
1833
|
+
"stateMutability": "view",
|
|
1834
|
+
"type": "function"
|
|
1835
|
+
},
|
|
1836
|
+
{
|
|
1837
|
+
"inputs": [],
|
|
1838
|
+
"name": "isFreezingPaused",
|
|
1839
|
+
"outputs": [
|
|
1840
|
+
{
|
|
1841
|
+
"internalType": "bool",
|
|
1842
|
+
"name": "",
|
|
1843
|
+
"type": "bool"
|
|
1844
|
+
}
|
|
1845
|
+
],
|
|
1846
|
+
"stateMutability": "view",
|
|
1847
|
+
"type": "function"
|
|
1848
|
+
},
|
|
1849
|
+
{
|
|
1850
|
+
"inputs": [],
|
|
1851
|
+
"name": "isMintPaused",
|
|
1852
|
+
"outputs": [
|
|
1853
|
+
{
|
|
1854
|
+
"internalType": "bool",
|
|
1855
|
+
"name": "",
|
|
1856
|
+
"type": "bool"
|
|
1857
|
+
}
|
|
1858
|
+
],
|
|
1859
|
+
"stateMutability": "view",
|
|
1860
|
+
"type": "function"
|
|
1861
|
+
},
|
|
1862
|
+
{
|
|
1863
|
+
"inputs": [],
|
|
1864
|
+
"name": "isMsgSenderFrozenCheckEnabled",
|
|
1865
|
+
"outputs": [
|
|
1866
|
+
{
|
|
1867
|
+
"internalType": "bool",
|
|
1868
|
+
"name": "",
|
|
1869
|
+
"type": "bool"
|
|
1870
|
+
}
|
|
1871
|
+
],
|
|
1872
|
+
"stateMutability": "view",
|
|
1873
|
+
"type": "function"
|
|
1874
|
+
},
|
|
1875
|
+
{
|
|
1876
|
+
"inputs": [],
|
|
1877
|
+
"name": "isReceiveWithAuthorizationUpgraded",
|
|
1878
|
+
"outputs": [
|
|
1879
|
+
{
|
|
1880
|
+
"internalType": "bool",
|
|
1881
|
+
"name": "",
|
|
1882
|
+
"type": "bool"
|
|
1883
|
+
}
|
|
1884
|
+
],
|
|
1885
|
+
"stateMutability": "view",
|
|
1886
|
+
"type": "function"
|
|
1887
|
+
},
|
|
1888
|
+
{
|
|
1889
|
+
"inputs": [],
|
|
1890
|
+
"name": "isSignatureVerificationPaused",
|
|
1891
|
+
"outputs": [
|
|
1892
|
+
{
|
|
1893
|
+
"internalType": "bool",
|
|
1894
|
+
"name": "",
|
|
1895
|
+
"type": "bool"
|
|
1896
|
+
}
|
|
1897
|
+
],
|
|
1898
|
+
"stateMutability": "view",
|
|
1899
|
+
"type": "function"
|
|
1900
|
+
},
|
|
1901
|
+
{
|
|
1902
|
+
"inputs": [],
|
|
1903
|
+
"name": "isTransferFromUpgraded",
|
|
1904
|
+
"outputs": [
|
|
1905
|
+
{
|
|
1906
|
+
"internalType": "bool",
|
|
1907
|
+
"name": "",
|
|
1908
|
+
"type": "bool"
|
|
1909
|
+
}
|
|
1910
|
+
],
|
|
1911
|
+
"stateMutability": "view",
|
|
1912
|
+
"type": "function"
|
|
1913
|
+
},
|
|
1914
|
+
{
|
|
1915
|
+
"inputs": [],
|
|
1916
|
+
"name": "isTransferPaused",
|
|
1917
|
+
"outputs": [
|
|
1918
|
+
{
|
|
1919
|
+
"internalType": "bool",
|
|
1920
|
+
"name": "",
|
|
1921
|
+
"type": "bool"
|
|
1922
|
+
}
|
|
1923
|
+
],
|
|
1924
|
+
"stateMutability": "view",
|
|
1925
|
+
"type": "function"
|
|
1926
|
+
},
|
|
1927
|
+
{
|
|
1928
|
+
"inputs": [],
|
|
1929
|
+
"name": "isTransferUpgraded",
|
|
1930
|
+
"outputs": [
|
|
1931
|
+
{
|
|
1932
|
+
"internalType": "bool",
|
|
1933
|
+
"name": "",
|
|
1934
|
+
"type": "bool"
|
|
1935
|
+
}
|
|
1936
|
+
],
|
|
1937
|
+
"stateMutability": "view",
|
|
1938
|
+
"type": "function"
|
|
1939
|
+
},
|
|
1940
|
+
{
|
|
1941
|
+
"inputs": [],
|
|
1942
|
+
"name": "isTransferWithAuthorizationUpgraded",
|
|
1943
|
+
"outputs": [
|
|
1944
|
+
{
|
|
1945
|
+
"internalType": "bool",
|
|
1946
|
+
"name": "",
|
|
1947
|
+
"type": "bool"
|
|
1948
|
+
}
|
|
1949
|
+
],
|
|
1950
|
+
"stateMutability": "view",
|
|
1951
|
+
"type": "function"
|
|
1952
|
+
},
|
|
1953
|
+
{
|
|
1954
|
+
"inputs": [
|
|
1955
|
+
{
|
|
1956
|
+
"internalType": "address",
|
|
1957
|
+
"name": "_to",
|
|
1958
|
+
"type": "address"
|
|
1959
|
+
},
|
|
1960
|
+
{
|
|
1961
|
+
"internalType": "uint256",
|
|
1962
|
+
"name": "_amount",
|
|
1963
|
+
"type": "uint256"
|
|
1964
|
+
}
|
|
1965
|
+
],
|
|
1966
|
+
"name": "mint",
|
|
1967
|
+
"outputs": [
|
|
1968
|
+
{
|
|
1969
|
+
"internalType": "bool",
|
|
1970
|
+
"name": "",
|
|
1971
|
+
"type": "bool"
|
|
1972
|
+
}
|
|
1973
|
+
],
|
|
1974
|
+
"stateMutability": "nonpayable",
|
|
1975
|
+
"type": "function"
|
|
1976
|
+
},
|
|
1977
|
+
{
|
|
1978
|
+
"inputs": [],
|
|
1979
|
+
"name": "name",
|
|
1980
|
+
"outputs": [
|
|
1981
|
+
{
|
|
1982
|
+
"internalType": "string",
|
|
1983
|
+
"name": "",
|
|
1984
|
+
"type": "string"
|
|
1985
|
+
}
|
|
1986
|
+
],
|
|
1987
|
+
"stateMutability": "view",
|
|
1988
|
+
"type": "function"
|
|
1989
|
+
},
|
|
1990
|
+
{
|
|
1991
|
+
"inputs": [
|
|
1992
|
+
{
|
|
1993
|
+
"internalType": "address",
|
|
1994
|
+
"name": "_account",
|
|
1995
|
+
"type": "address"
|
|
1996
|
+
}
|
|
1997
|
+
],
|
|
1998
|
+
"name": "nonces",
|
|
1999
|
+
"outputs": [
|
|
2000
|
+
{
|
|
2001
|
+
"internalType": "uint256",
|
|
2002
|
+
"name": "_nonce",
|
|
2003
|
+
"type": "uint256"
|
|
2004
|
+
}
|
|
2005
|
+
],
|
|
2006
|
+
"stateMutability": "view",
|
|
2007
|
+
"type": "function"
|
|
2008
|
+
},
|
|
2009
|
+
{
|
|
2010
|
+
"inputs": [
|
|
2011
|
+
{
|
|
2012
|
+
"internalType": "address",
|
|
2013
|
+
"name": "_owner",
|
|
2014
|
+
"type": "address"
|
|
2015
|
+
},
|
|
2016
|
+
{
|
|
2017
|
+
"internalType": "address",
|
|
2018
|
+
"name": "_spender",
|
|
2019
|
+
"type": "address"
|
|
2020
|
+
},
|
|
2021
|
+
{
|
|
2022
|
+
"internalType": "uint256",
|
|
2023
|
+
"name": "_value",
|
|
2024
|
+
"type": "uint256"
|
|
2025
|
+
},
|
|
2026
|
+
{
|
|
2027
|
+
"internalType": "uint256",
|
|
2028
|
+
"name": "_deadline",
|
|
2029
|
+
"type": "uint256"
|
|
2030
|
+
},
|
|
2031
|
+
{
|
|
2032
|
+
"internalType": "bytes",
|
|
2033
|
+
"name": "_signature",
|
|
2034
|
+
"type": "bytes"
|
|
2035
|
+
}
|
|
2036
|
+
],
|
|
2037
|
+
"name": "permit",
|
|
2038
|
+
"outputs": [],
|
|
2039
|
+
"stateMutability": "nonpayable",
|
|
2040
|
+
"type": "function"
|
|
2041
|
+
},
|
|
2042
|
+
{
|
|
2043
|
+
"inputs": [
|
|
2044
|
+
{
|
|
2045
|
+
"internalType": "address",
|
|
2046
|
+
"name": "_owner",
|
|
2047
|
+
"type": "address"
|
|
2048
|
+
},
|
|
2049
|
+
{
|
|
2050
|
+
"internalType": "address",
|
|
2051
|
+
"name": "_spender",
|
|
2052
|
+
"type": "address"
|
|
2053
|
+
},
|
|
2054
|
+
{
|
|
2055
|
+
"internalType": "uint256",
|
|
2056
|
+
"name": "_value",
|
|
2057
|
+
"type": "uint256"
|
|
2058
|
+
},
|
|
2059
|
+
{
|
|
2060
|
+
"internalType": "uint256",
|
|
2061
|
+
"name": "_deadline",
|
|
2062
|
+
"type": "uint256"
|
|
2063
|
+
},
|
|
2064
|
+
{
|
|
2065
|
+
"internalType": "uint8",
|
|
2066
|
+
"name": "_v",
|
|
2067
|
+
"type": "uint8"
|
|
2068
|
+
},
|
|
2069
|
+
{
|
|
2070
|
+
"internalType": "bytes32",
|
|
2071
|
+
"name": "_r",
|
|
2072
|
+
"type": "bytes32"
|
|
2073
|
+
},
|
|
2074
|
+
{
|
|
2075
|
+
"internalType": "bytes32",
|
|
2076
|
+
"name": "_s",
|
|
2077
|
+
"type": "bytes32"
|
|
2078
|
+
}
|
|
2079
|
+
],
|
|
2080
|
+
"name": "permit",
|
|
2081
|
+
"outputs": [],
|
|
2082
|
+
"stateMutability": "nonpayable",
|
|
2083
|
+
"type": "function"
|
|
2084
|
+
},
|
|
2085
|
+
{
|
|
2086
|
+
"inputs": [],
|
|
2087
|
+
"name": "proxyAdminAddress",
|
|
2088
|
+
"outputs": [
|
|
2089
|
+
{
|
|
2090
|
+
"internalType": "address",
|
|
2091
|
+
"name": "",
|
|
2092
|
+
"type": "address"
|
|
2093
|
+
}
|
|
2094
|
+
],
|
|
2095
|
+
"stateMutability": "view",
|
|
2096
|
+
"type": "function"
|
|
2097
|
+
},
|
|
2098
|
+
{
|
|
2099
|
+
"inputs": [
|
|
2100
|
+
{
|
|
2101
|
+
"internalType": "address",
|
|
2102
|
+
"name": "_from",
|
|
2103
|
+
"type": "address"
|
|
2104
|
+
},
|
|
2105
|
+
{
|
|
2106
|
+
"internalType": "address",
|
|
2107
|
+
"name": "_to",
|
|
2108
|
+
"type": "address"
|
|
2109
|
+
},
|
|
2110
|
+
{
|
|
2111
|
+
"internalType": "uint256",
|
|
2112
|
+
"name": "_value",
|
|
2113
|
+
"type": "uint256"
|
|
2114
|
+
},
|
|
2115
|
+
{
|
|
2116
|
+
"internalType": "uint256",
|
|
2117
|
+
"name": "_validAfter",
|
|
2118
|
+
"type": "uint256"
|
|
2119
|
+
},
|
|
2120
|
+
{
|
|
2121
|
+
"internalType": "uint256",
|
|
2122
|
+
"name": "_validBefore",
|
|
2123
|
+
"type": "uint256"
|
|
2124
|
+
},
|
|
2125
|
+
{
|
|
2126
|
+
"internalType": "bytes32",
|
|
2127
|
+
"name": "_nonce",
|
|
2128
|
+
"type": "bytes32"
|
|
2129
|
+
},
|
|
2130
|
+
{
|
|
2131
|
+
"internalType": "bytes",
|
|
2132
|
+
"name": "_signature",
|
|
2133
|
+
"type": "bytes"
|
|
2134
|
+
}
|
|
2135
|
+
],
|
|
2136
|
+
"name": "receiveWithAuthorization",
|
|
2137
|
+
"outputs": [],
|
|
2138
|
+
"stateMutability": "nonpayable",
|
|
2139
|
+
"type": "function"
|
|
2140
|
+
},
|
|
2141
|
+
{
|
|
2142
|
+
"inputs": [
|
|
2143
|
+
{
|
|
2144
|
+
"internalType": "address",
|
|
2145
|
+
"name": "_from",
|
|
2146
|
+
"type": "address"
|
|
2147
|
+
},
|
|
2148
|
+
{
|
|
2149
|
+
"internalType": "address",
|
|
2150
|
+
"name": "_to",
|
|
2151
|
+
"type": "address"
|
|
2152
|
+
},
|
|
2153
|
+
{
|
|
2154
|
+
"internalType": "uint256",
|
|
2155
|
+
"name": "_value",
|
|
2156
|
+
"type": "uint256"
|
|
2157
|
+
},
|
|
2158
|
+
{
|
|
2159
|
+
"internalType": "uint256",
|
|
2160
|
+
"name": "_validAfter",
|
|
2161
|
+
"type": "uint256"
|
|
2162
|
+
},
|
|
2163
|
+
{
|
|
2164
|
+
"internalType": "uint256",
|
|
2165
|
+
"name": "_validBefore",
|
|
2166
|
+
"type": "uint256"
|
|
2167
|
+
},
|
|
2168
|
+
{
|
|
2169
|
+
"internalType": "bytes32",
|
|
2170
|
+
"name": "_nonce",
|
|
2171
|
+
"type": "bytes32"
|
|
2172
|
+
},
|
|
2173
|
+
{
|
|
2174
|
+
"internalType": "uint8",
|
|
2175
|
+
"name": "_v",
|
|
2176
|
+
"type": "uint8"
|
|
2177
|
+
},
|
|
2178
|
+
{
|
|
2179
|
+
"internalType": "bytes32",
|
|
2180
|
+
"name": "_r",
|
|
2181
|
+
"type": "bytes32"
|
|
2182
|
+
},
|
|
2183
|
+
{
|
|
2184
|
+
"internalType": "bytes32",
|
|
2185
|
+
"name": "_s",
|
|
2186
|
+
"type": "bytes32"
|
|
2187
|
+
}
|
|
2188
|
+
],
|
|
2189
|
+
"name": "receiveWithAuthorization",
|
|
2190
|
+
"outputs": [],
|
|
2191
|
+
"stateMutability": "nonpayable",
|
|
2192
|
+
"type": "function"
|
|
2193
|
+
},
|
|
2194
|
+
{
|
|
2195
|
+
"inputs": [
|
|
2196
|
+
{
|
|
2197
|
+
"internalType": "address",
|
|
2198
|
+
"name": "_member",
|
|
2199
|
+
"type": "address"
|
|
2200
|
+
}
|
|
2201
|
+
],
|
|
2202
|
+
"name": "revokeAccessControlManagerRole",
|
|
2203
|
+
"outputs": [],
|
|
2204
|
+
"stateMutability": "nonpayable",
|
|
2205
|
+
"type": "function"
|
|
2206
|
+
},
|
|
2207
|
+
{
|
|
2208
|
+
"inputs": [
|
|
2209
|
+
{
|
|
2210
|
+
"internalType": "address",
|
|
2211
|
+
"name": "_member",
|
|
2212
|
+
"type": "address"
|
|
2213
|
+
}
|
|
2214
|
+
],
|
|
2215
|
+
"name": "revokeBridgeBurnerRole",
|
|
2216
|
+
"outputs": [],
|
|
2217
|
+
"stateMutability": "nonpayable",
|
|
2218
|
+
"type": "function"
|
|
2219
|
+
},
|
|
2220
|
+
{
|
|
2221
|
+
"inputs": [
|
|
2222
|
+
{
|
|
2223
|
+
"internalType": "address",
|
|
2224
|
+
"name": "_member",
|
|
2225
|
+
"type": "address"
|
|
2226
|
+
}
|
|
2227
|
+
],
|
|
2228
|
+
"name": "revokeBridgeMinterRole",
|
|
2229
|
+
"outputs": [],
|
|
2230
|
+
"stateMutability": "nonpayable",
|
|
2231
|
+
"type": "function"
|
|
2232
|
+
},
|
|
2233
|
+
{
|
|
2234
|
+
"inputs": [
|
|
2235
|
+
{
|
|
2236
|
+
"internalType": "address",
|
|
2237
|
+
"name": "_member",
|
|
2238
|
+
"type": "address"
|
|
2239
|
+
}
|
|
2240
|
+
],
|
|
2241
|
+
"name": "revokeBurnerRole",
|
|
2242
|
+
"outputs": [],
|
|
2243
|
+
"stateMutability": "nonpayable",
|
|
2244
|
+
"type": "function"
|
|
2245
|
+
},
|
|
2246
|
+
{
|
|
2247
|
+
"inputs": [
|
|
2248
|
+
{
|
|
2249
|
+
"internalType": "address",
|
|
2250
|
+
"name": "_member",
|
|
2251
|
+
"type": "address"
|
|
2252
|
+
}
|
|
2253
|
+
],
|
|
2254
|
+
"name": "revokeFreezerRole",
|
|
2255
|
+
"outputs": [],
|
|
2256
|
+
"stateMutability": "nonpayable",
|
|
2257
|
+
"type": "function"
|
|
2258
|
+
},
|
|
2259
|
+
{
|
|
2260
|
+
"inputs": [
|
|
2261
|
+
{
|
|
2262
|
+
"internalType": "address",
|
|
2263
|
+
"name": "_member",
|
|
2264
|
+
"type": "address"
|
|
2265
|
+
}
|
|
2266
|
+
],
|
|
2267
|
+
"name": "revokeMinterRole",
|
|
2268
|
+
"outputs": [],
|
|
2269
|
+
"stateMutability": "nonpayable",
|
|
2270
|
+
"type": "function"
|
|
2271
|
+
},
|
|
2272
|
+
{
|
|
2273
|
+
"inputs": [
|
|
2274
|
+
{
|
|
2275
|
+
"internalType": "address",
|
|
2276
|
+
"name": "_member",
|
|
2277
|
+
"type": "address"
|
|
2278
|
+
}
|
|
2279
|
+
],
|
|
2280
|
+
"name": "revokePauserRole",
|
|
2281
|
+
"outputs": [],
|
|
2282
|
+
"stateMutability": "nonpayable",
|
|
2283
|
+
"type": "function"
|
|
2284
|
+
},
|
|
2285
|
+
{
|
|
2286
|
+
"inputs": [
|
|
2287
|
+
{
|
|
2288
|
+
"internalType": "address",
|
|
2289
|
+
"name": "_member",
|
|
2290
|
+
"type": "address"
|
|
2291
|
+
}
|
|
2292
|
+
],
|
|
2293
|
+
"name": "revokeRateLimitManagerRole",
|
|
2294
|
+
"outputs": [],
|
|
2295
|
+
"stateMutability": "nonpayable",
|
|
2296
|
+
"type": "function"
|
|
2297
|
+
},
|
|
2298
|
+
{
|
|
2299
|
+
"inputs": [
|
|
2300
|
+
{
|
|
2301
|
+
"internalType": "bool",
|
|
2302
|
+
"name": "_isPaused",
|
|
2303
|
+
"type": "bool"
|
|
2304
|
+
}
|
|
2305
|
+
],
|
|
2306
|
+
"name": "setIsBridgingPaused",
|
|
2307
|
+
"outputs": [],
|
|
2308
|
+
"stateMutability": "nonpayable",
|
|
2309
|
+
"type": "function"
|
|
2310
|
+
},
|
|
2311
|
+
{
|
|
2312
|
+
"inputs": [
|
|
2313
|
+
{
|
|
2314
|
+
"internalType": "bool",
|
|
2315
|
+
"name": "_isPaused",
|
|
2316
|
+
"type": "bool"
|
|
2317
|
+
}
|
|
2318
|
+
],
|
|
2319
|
+
"name": "setIsBurnFromPaused",
|
|
2320
|
+
"outputs": [],
|
|
2321
|
+
"stateMutability": "nonpayable",
|
|
2322
|
+
"type": "function"
|
|
2323
|
+
},
|
|
2324
|
+
{
|
|
2325
|
+
"inputs": [
|
|
2326
|
+
{
|
|
2327
|
+
"internalType": "bool",
|
|
2328
|
+
"name": "_isPaused",
|
|
2329
|
+
"type": "bool"
|
|
2330
|
+
}
|
|
2331
|
+
],
|
|
2332
|
+
"name": "setIsFreezingPaused",
|
|
2333
|
+
"outputs": [],
|
|
2334
|
+
"stateMutability": "nonpayable",
|
|
2335
|
+
"type": "function"
|
|
2336
|
+
},
|
|
2337
|
+
{
|
|
2338
|
+
"inputs": [
|
|
2339
|
+
{
|
|
2340
|
+
"internalType": "bool",
|
|
2341
|
+
"name": "_isPaused",
|
|
2342
|
+
"type": "bool"
|
|
2343
|
+
}
|
|
2344
|
+
],
|
|
2345
|
+
"name": "setIsMintPaused",
|
|
2346
|
+
"outputs": [],
|
|
2347
|
+
"stateMutability": "nonpayable",
|
|
2348
|
+
"type": "function"
|
|
2349
|
+
},
|
|
2350
|
+
{
|
|
2351
|
+
"inputs": [
|
|
2352
|
+
{
|
|
2353
|
+
"internalType": "bool",
|
|
2354
|
+
"name": "_isEnabled",
|
|
2355
|
+
"type": "bool"
|
|
2356
|
+
}
|
|
2357
|
+
],
|
|
2358
|
+
"name": "setIsMsgSenderCheckEnabled",
|
|
2359
|
+
"outputs": [],
|
|
2360
|
+
"stateMutability": "nonpayable",
|
|
2361
|
+
"type": "function"
|
|
2362
|
+
},
|
|
2363
|
+
{
|
|
2364
|
+
"inputs": [
|
|
2365
|
+
{
|
|
2366
|
+
"internalType": "bool",
|
|
2367
|
+
"name": "_isUpgraded",
|
|
2368
|
+
"type": "bool"
|
|
2369
|
+
}
|
|
2370
|
+
],
|
|
2371
|
+
"name": "setIsReceiveWithAuthorizationUpgraded",
|
|
2372
|
+
"outputs": [],
|
|
2373
|
+
"stateMutability": "nonpayable",
|
|
2374
|
+
"type": "function"
|
|
2375
|
+
},
|
|
2376
|
+
{
|
|
2377
|
+
"inputs": [
|
|
2378
|
+
{
|
|
2379
|
+
"internalType": "bool",
|
|
2380
|
+
"name": "_isPaused",
|
|
2381
|
+
"type": "bool"
|
|
2382
|
+
}
|
|
2383
|
+
],
|
|
2384
|
+
"name": "setIsSignatureVerificationPaused",
|
|
2385
|
+
"outputs": [],
|
|
2386
|
+
"stateMutability": "nonpayable",
|
|
2387
|
+
"type": "function"
|
|
2388
|
+
},
|
|
2389
|
+
{
|
|
2390
|
+
"inputs": [
|
|
2391
|
+
{
|
|
2392
|
+
"internalType": "bool",
|
|
2393
|
+
"name": "_isUpgraded",
|
|
2394
|
+
"type": "bool"
|
|
2395
|
+
}
|
|
2396
|
+
],
|
|
2397
|
+
"name": "setIsTransferFromUpgraded",
|
|
2398
|
+
"outputs": [],
|
|
2399
|
+
"stateMutability": "nonpayable",
|
|
2400
|
+
"type": "function"
|
|
2401
|
+
},
|
|
2402
|
+
{
|
|
2403
|
+
"inputs": [
|
|
2404
|
+
{
|
|
2405
|
+
"internalType": "bool",
|
|
2406
|
+
"name": "_isPaused",
|
|
2407
|
+
"type": "bool"
|
|
2408
|
+
}
|
|
2409
|
+
],
|
|
2410
|
+
"name": "setIsTransferPaused",
|
|
2411
|
+
"outputs": [],
|
|
2412
|
+
"stateMutability": "nonpayable",
|
|
2413
|
+
"type": "function"
|
|
2414
|
+
},
|
|
2415
|
+
{
|
|
2416
|
+
"inputs": [
|
|
2417
|
+
{
|
|
2418
|
+
"internalType": "bool",
|
|
2419
|
+
"name": "_isUpgraded",
|
|
2420
|
+
"type": "bool"
|
|
2421
|
+
}
|
|
2422
|
+
],
|
|
2423
|
+
"name": "setIsTransferUpgraded",
|
|
2424
|
+
"outputs": [],
|
|
2425
|
+
"stateMutability": "nonpayable",
|
|
2426
|
+
"type": "function"
|
|
2427
|
+
},
|
|
2428
|
+
{
|
|
2429
|
+
"inputs": [
|
|
2430
|
+
{
|
|
2431
|
+
"internalType": "bool",
|
|
2432
|
+
"name": "_isUpgraded",
|
|
2433
|
+
"type": "bool"
|
|
2434
|
+
}
|
|
2435
|
+
],
|
|
2436
|
+
"name": "setIsTransferWithAuthorizationUpgraded",
|
|
2437
|
+
"outputs": [],
|
|
2438
|
+
"stateMutability": "nonpayable",
|
|
2439
|
+
"type": "function"
|
|
2440
|
+
},
|
|
2441
|
+
{
|
|
2442
|
+
"inputs": [
|
|
2443
|
+
{
|
|
2444
|
+
"components": [
|
|
2445
|
+
{
|
|
2446
|
+
"internalType": "address",
|
|
2447
|
+
"name": "minter",
|
|
2448
|
+
"type": "address"
|
|
2449
|
+
},
|
|
2450
|
+
{
|
|
2451
|
+
"internalType": "uint256",
|
|
2452
|
+
"name": "limit",
|
|
2453
|
+
"type": "uint256"
|
|
2454
|
+
},
|
|
2455
|
+
{
|
|
2456
|
+
"internalType": "uint256",
|
|
2457
|
+
"name": "window",
|
|
2458
|
+
"type": "uint256"
|
|
2459
|
+
}
|
|
2460
|
+
],
|
|
2461
|
+
"internalType": "struct AgoraDollarMintRateLimit.MintRateLimitConfig",
|
|
2462
|
+
"name": "_rateLimitConfig",
|
|
2463
|
+
"type": "tuple"
|
|
2464
|
+
}
|
|
2465
|
+
],
|
|
2466
|
+
"name": "setMintRateLimit",
|
|
2467
|
+
"outputs": [],
|
|
2468
|
+
"stateMutability": "nonpayable",
|
|
2469
|
+
"type": "function"
|
|
2470
|
+
},
|
|
2471
|
+
{
|
|
2472
|
+
"inputs": [],
|
|
2473
|
+
"name": "symbol",
|
|
2474
|
+
"outputs": [
|
|
2475
|
+
{
|
|
2476
|
+
"internalType": "string",
|
|
2477
|
+
"name": "",
|
|
2478
|
+
"type": "string"
|
|
2479
|
+
}
|
|
2480
|
+
],
|
|
2481
|
+
"stateMutability": "view",
|
|
2482
|
+
"type": "function"
|
|
2483
|
+
},
|
|
2484
|
+
{
|
|
2485
|
+
"inputs": [],
|
|
2486
|
+
"name": "totalSupply",
|
|
2487
|
+
"outputs": [
|
|
2488
|
+
{
|
|
2489
|
+
"internalType": "uint256",
|
|
2490
|
+
"name": "",
|
|
2491
|
+
"type": "uint256"
|
|
2492
|
+
}
|
|
2493
|
+
],
|
|
2494
|
+
"stateMutability": "view",
|
|
2495
|
+
"type": "function"
|
|
2496
|
+
},
|
|
2497
|
+
{
|
|
2498
|
+
"inputs": [
|
|
2499
|
+
{
|
|
2500
|
+
"internalType": "address",
|
|
2501
|
+
"name": "_to",
|
|
2502
|
+
"type": "address"
|
|
2503
|
+
},
|
|
2504
|
+
{
|
|
2505
|
+
"internalType": "uint256",
|
|
2506
|
+
"name": "_value",
|
|
2507
|
+
"type": "uint256"
|
|
2508
|
+
}
|
|
2509
|
+
],
|
|
2510
|
+
"name": "transfer",
|
|
2511
|
+
"outputs": [
|
|
2512
|
+
{
|
|
2513
|
+
"internalType": "bool",
|
|
2514
|
+
"name": "",
|
|
2515
|
+
"type": "bool"
|
|
2516
|
+
}
|
|
2517
|
+
],
|
|
2518
|
+
"stateMutability": "nonpayable",
|
|
2519
|
+
"type": "function"
|
|
2520
|
+
},
|
|
2521
|
+
{
|
|
2522
|
+
"inputs": [
|
|
2523
|
+
{
|
|
2524
|
+
"internalType": "address",
|
|
2525
|
+
"name": "_from",
|
|
2526
|
+
"type": "address"
|
|
2527
|
+
},
|
|
2528
|
+
{
|
|
2529
|
+
"internalType": "address",
|
|
2530
|
+
"name": "_to",
|
|
2531
|
+
"type": "address"
|
|
2532
|
+
},
|
|
2533
|
+
{
|
|
2534
|
+
"internalType": "uint256",
|
|
2535
|
+
"name": "_value",
|
|
2536
|
+
"type": "uint256"
|
|
2537
|
+
}
|
|
2538
|
+
],
|
|
2539
|
+
"name": "transferFrom",
|
|
2540
|
+
"outputs": [
|
|
2541
|
+
{
|
|
2542
|
+
"internalType": "bool",
|
|
2543
|
+
"name": "",
|
|
2544
|
+
"type": "bool"
|
|
2545
|
+
}
|
|
2546
|
+
],
|
|
2547
|
+
"stateMutability": "nonpayable",
|
|
2548
|
+
"type": "function"
|
|
2549
|
+
},
|
|
2550
|
+
{
|
|
2551
|
+
"inputs": [
|
|
2552
|
+
{
|
|
2553
|
+
"internalType": "address",
|
|
2554
|
+
"name": "_from",
|
|
2555
|
+
"type": "address"
|
|
2556
|
+
},
|
|
2557
|
+
{
|
|
2558
|
+
"internalType": "address",
|
|
2559
|
+
"name": "_to",
|
|
2560
|
+
"type": "address"
|
|
2561
|
+
},
|
|
2562
|
+
{
|
|
2563
|
+
"internalType": "uint256",
|
|
2564
|
+
"name": "_value",
|
|
2565
|
+
"type": "uint256"
|
|
2566
|
+
},
|
|
2567
|
+
{
|
|
2568
|
+
"internalType": "uint256",
|
|
2569
|
+
"name": "_validAfter",
|
|
2570
|
+
"type": "uint256"
|
|
2571
|
+
},
|
|
2572
|
+
{
|
|
2573
|
+
"internalType": "uint256",
|
|
2574
|
+
"name": "_validBefore",
|
|
2575
|
+
"type": "uint256"
|
|
2576
|
+
},
|
|
2577
|
+
{
|
|
2578
|
+
"internalType": "bytes32",
|
|
2579
|
+
"name": "_nonce",
|
|
2580
|
+
"type": "bytes32"
|
|
2581
|
+
},
|
|
2582
|
+
{
|
|
2583
|
+
"internalType": "bytes",
|
|
2584
|
+
"name": "_signature",
|
|
2585
|
+
"type": "bytes"
|
|
2586
|
+
}
|
|
2587
|
+
],
|
|
2588
|
+
"name": "transferWithAuthorization",
|
|
2589
|
+
"outputs": [],
|
|
2590
|
+
"stateMutability": "nonpayable",
|
|
2591
|
+
"type": "function"
|
|
2592
|
+
},
|
|
2593
|
+
{
|
|
2594
|
+
"inputs": [
|
|
2595
|
+
{
|
|
2596
|
+
"internalType": "address",
|
|
2597
|
+
"name": "_from",
|
|
2598
|
+
"type": "address"
|
|
2599
|
+
},
|
|
2600
|
+
{
|
|
2601
|
+
"internalType": "address",
|
|
2602
|
+
"name": "_to",
|
|
2603
|
+
"type": "address"
|
|
2604
|
+
},
|
|
2605
|
+
{
|
|
2606
|
+
"internalType": "uint256",
|
|
2607
|
+
"name": "_value",
|
|
2608
|
+
"type": "uint256"
|
|
2609
|
+
},
|
|
2610
|
+
{
|
|
2611
|
+
"internalType": "uint256",
|
|
2612
|
+
"name": "_validAfter",
|
|
2613
|
+
"type": "uint256"
|
|
2614
|
+
},
|
|
2615
|
+
{
|
|
2616
|
+
"internalType": "uint256",
|
|
2617
|
+
"name": "_validBefore",
|
|
2618
|
+
"type": "uint256"
|
|
2619
|
+
},
|
|
2620
|
+
{
|
|
2621
|
+
"internalType": "bytes32",
|
|
2622
|
+
"name": "_nonce",
|
|
2623
|
+
"type": "bytes32"
|
|
2624
|
+
},
|
|
2625
|
+
{
|
|
2626
|
+
"internalType": "uint8",
|
|
2627
|
+
"name": "_v",
|
|
2628
|
+
"type": "uint8"
|
|
2629
|
+
},
|
|
2630
|
+
{
|
|
2631
|
+
"internalType": "bytes32",
|
|
2632
|
+
"name": "_r",
|
|
2633
|
+
"type": "bytes32"
|
|
2634
|
+
},
|
|
2635
|
+
{
|
|
2636
|
+
"internalType": "bytes32",
|
|
2637
|
+
"name": "_s",
|
|
2638
|
+
"type": "bytes32"
|
|
2639
|
+
}
|
|
2640
|
+
],
|
|
2641
|
+
"name": "transferWithAuthorization",
|
|
2642
|
+
"outputs": [],
|
|
2643
|
+
"stateMutability": "nonpayable",
|
|
2644
|
+
"type": "function"
|
|
2645
|
+
},
|
|
2646
|
+
{
|
|
2647
|
+
"inputs": [],
|
|
2648
|
+
"name": "version",
|
|
2649
|
+
"outputs": [
|
|
2650
|
+
{
|
|
2651
|
+
"components": [
|
|
2652
|
+
{
|
|
2653
|
+
"internalType": "uint256",
|
|
2654
|
+
"name": "major",
|
|
2655
|
+
"type": "uint256"
|
|
2656
|
+
},
|
|
2657
|
+
{
|
|
2658
|
+
"internalType": "uint256",
|
|
2659
|
+
"name": "minor",
|
|
2660
|
+
"type": "uint256"
|
|
2661
|
+
},
|
|
2662
|
+
{
|
|
2663
|
+
"internalType": "uint256",
|
|
2664
|
+
"name": "patch",
|
|
2665
|
+
"type": "uint256"
|
|
2666
|
+
}
|
|
2667
|
+
],
|
|
2668
|
+
"internalType": "struct AgoraDollar.Version",
|
|
2669
|
+
"name": "_version",
|
|
2670
|
+
"type": "tuple"
|
|
2671
|
+
}
|
|
2672
|
+
],
|
|
2673
|
+
"stateMutability": "pure",
|
|
2674
|
+
"type": "function"
|
|
2675
|
+
}
|
|
2676
|
+
];
|
|
2677
|
+
/**
|
|
2678
|
+
* AgoraDollar Contract Class
|
|
2679
|
+
*
|
|
2680
|
+
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
2681
|
+
*
|
|
2682
|
+
* @example
|
|
2683
|
+
* ```typescript
|
|
2684
|
+
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
2685
|
+
* import { mainnet } from 'viem/chains';
|
|
2686
|
+
* import { AgoraDollar } from 'AgoraDollar';
|
|
2687
|
+
*
|
|
2688
|
+
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
2689
|
+
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
2690
|
+
*
|
|
2691
|
+
* const contract = new AgoraDollar('0x...', { publicClient, walletClient });
|
|
2692
|
+
*
|
|
2693
|
+
* // Read functions
|
|
2694
|
+
* const result = await contract.balanceOf('0x...');
|
|
2695
|
+
*
|
|
2696
|
+
* // Write functions
|
|
2697
|
+
* const hash = await contract.transfer('0x...', 1000n);
|
|
2698
|
+
*
|
|
2699
|
+
* // Simulate transactions (dry-run)
|
|
2700
|
+
* const simulation = await contract.simulate.transfer('0x...', 1000n);
|
|
2701
|
+
* console.log('Gas estimate:', simulation.request.gas);
|
|
2702
|
+
*
|
|
2703
|
+
* // Watch events
|
|
2704
|
+
* const unwatch = contract.watch.Transfer((event) => {
|
|
2705
|
+
* console.log('Transfer event:', event);
|
|
2706
|
+
* });
|
|
2707
|
+
* ```
|
|
2708
|
+
*/
|
|
2709
|
+
class AgoraDollar {
|
|
2710
|
+
constructor(address, clients) {
|
|
2711
|
+
this.contractAddress = address;
|
|
2712
|
+
this.publicClient = clients.publicClient;
|
|
2713
|
+
this.contract = (0, viem_1.getContract)({
|
|
2714
|
+
address,
|
|
2715
|
+
abi: exports.AgoraDollarAbi,
|
|
2716
|
+
client: {
|
|
2717
|
+
public: clients.publicClient,
|
|
2718
|
+
wallet: clients.walletClient,
|
|
2719
|
+
},
|
|
2720
|
+
});
|
|
2721
|
+
}
|
|
2722
|
+
/**
|
|
2723
|
+
* Get the contract address
|
|
2724
|
+
*/
|
|
2725
|
+
get address() {
|
|
2726
|
+
return this.contractAddress;
|
|
2727
|
+
}
|
|
2728
|
+
/**
|
|
2729
|
+
* Get the underlying viem contract instance.
|
|
2730
|
+
*/
|
|
2731
|
+
getContract() {
|
|
2732
|
+
return this.contract;
|
|
2733
|
+
}
|
|
2734
|
+
/**
|
|
2735
|
+
* ACCESS_CONTROL_MANAGER_ROLE
|
|
2736
|
+
* view
|
|
2737
|
+
*/
|
|
2738
|
+
async ACCESS_CONTROL_MANAGER_ROLE() {
|
|
2739
|
+
return this.contract.read.ACCESS_CONTROL_MANAGER_ROLE();
|
|
2740
|
+
}
|
|
2741
|
+
/**
|
|
2742
|
+
* AGORA_ACCESS_CONTROL_STORAGE_SLOT
|
|
2743
|
+
* view
|
|
2744
|
+
*/
|
|
2745
|
+
async AGORA_ACCESS_CONTROL_STORAGE_SLOT() {
|
|
2746
|
+
return this.contract.read.AGORA_ACCESS_CONTROL_STORAGE_SLOT();
|
|
2747
|
+
}
|
|
2748
|
+
/**
|
|
2749
|
+
* BRIDGE_BURNER_ROLE
|
|
2750
|
+
* view
|
|
2751
|
+
*/
|
|
2752
|
+
async BRIDGE_BURNER_ROLE() {
|
|
2753
|
+
return this.contract.read.BRIDGE_BURNER_ROLE();
|
|
2754
|
+
}
|
|
2755
|
+
/**
|
|
2756
|
+
* BRIDGE_MINTER_ROLE
|
|
2757
|
+
* view
|
|
2758
|
+
*/
|
|
2759
|
+
async BRIDGE_MINTER_ROLE() {
|
|
2760
|
+
return this.contract.read.BRIDGE_MINTER_ROLE();
|
|
2761
|
+
}
|
|
2762
|
+
/**
|
|
2763
|
+
* BURNER_ROLE
|
|
2764
|
+
* view
|
|
2765
|
+
*/
|
|
2766
|
+
async BURNER_ROLE() {
|
|
2767
|
+
return this.contract.read.BURNER_ROLE();
|
|
2768
|
+
}
|
|
2769
|
+
/**
|
|
2770
|
+
* CANCEL_AUTHORIZATION_TYPEHASH
|
|
2771
|
+
* pure
|
|
2772
|
+
*/
|
|
2773
|
+
async CANCEL_AUTHORIZATION_TYPEHASH() {
|
|
2774
|
+
return this.contract.read.CANCEL_AUTHORIZATION_TYPEHASH();
|
|
2775
|
+
}
|
|
2776
|
+
/**
|
|
2777
|
+
* DOMAIN_SEPARATOR
|
|
2778
|
+
* view
|
|
2779
|
+
*/
|
|
2780
|
+
async DOMAIN_SEPARATOR() {
|
|
2781
|
+
return this.contract.read.DOMAIN_SEPARATOR();
|
|
2782
|
+
}
|
|
2783
|
+
/**
|
|
2784
|
+
* ERC20_CORE_STORAGE_SLOT
|
|
2785
|
+
* pure
|
|
2786
|
+
*/
|
|
2787
|
+
async ERC20_CORE_STORAGE_SLOT() {
|
|
2788
|
+
return this.contract.read.ERC20_CORE_STORAGE_SLOT();
|
|
2789
|
+
}
|
|
2790
|
+
/**
|
|
2791
|
+
* ERC2612_STORAGE_SLOT
|
|
2792
|
+
* pure
|
|
2793
|
+
*/
|
|
2794
|
+
async ERC2612_STORAGE_SLOT() {
|
|
2795
|
+
return this.contract.read.ERC2612_STORAGE_SLOT();
|
|
2796
|
+
}
|
|
2797
|
+
/**
|
|
2798
|
+
* FREEZER_ROLE
|
|
2799
|
+
* view
|
|
2800
|
+
*/
|
|
2801
|
+
async FREEZER_ROLE() {
|
|
2802
|
+
return this.contract.read.FREEZER_ROLE();
|
|
2803
|
+
}
|
|
2804
|
+
/**
|
|
2805
|
+
* IS_BURN_FROM_PAUSED_BIT_POSITION
|
|
2806
|
+
* pure
|
|
2807
|
+
*/
|
|
2808
|
+
async IS_BURN_FROM_PAUSED_BIT_POSITION() {
|
|
2809
|
+
return this.contract.read.IS_BURN_FROM_PAUSED_BIT_POSITION();
|
|
2810
|
+
}
|
|
2811
|
+
/**
|
|
2812
|
+
* IS_FREEZING_PAUSED_BIT_POSITION
|
|
2813
|
+
* pure
|
|
2814
|
+
*/
|
|
2815
|
+
async IS_FREEZING_PAUSED_BIT_POSITION() {
|
|
2816
|
+
return this.contract.read.IS_FREEZING_PAUSED_BIT_POSITION();
|
|
2817
|
+
}
|
|
2818
|
+
/**
|
|
2819
|
+
* IS_MINT_PAUSED_BIT_POSITION
|
|
2820
|
+
* pure
|
|
2821
|
+
*/
|
|
2822
|
+
async IS_MINT_PAUSED_BIT_POSITION() {
|
|
2823
|
+
return this.contract.read.IS_MINT_PAUSED_BIT_POSITION();
|
|
2824
|
+
}
|
|
2825
|
+
/**
|
|
2826
|
+
* IS_MSG_SENDER_FROZEN_CHECK_ENABLED_BIT_POSITION
|
|
2827
|
+
* pure
|
|
2828
|
+
*/
|
|
2829
|
+
async IS_MSG_SENDER_FROZEN_CHECK_ENABLED_BIT_POSITION() {
|
|
2830
|
+
return this.contract.read.IS_MSG_SENDER_FROZEN_CHECK_ENABLED_BIT_POSITION();
|
|
2831
|
+
}
|
|
2832
|
+
/**
|
|
2833
|
+
* IS_RECEIVE_WITH_AUTHORIZATION_UPGRADED_BIT_POSITION
|
|
2834
|
+
* pure
|
|
2835
|
+
*/
|
|
2836
|
+
async IS_RECEIVE_WITH_AUTHORIZATION_UPGRADED_BIT_POSITION() {
|
|
2837
|
+
return this.contract.read.IS_RECEIVE_WITH_AUTHORIZATION_UPGRADED_BIT_POSITION();
|
|
2838
|
+
}
|
|
2839
|
+
/**
|
|
2840
|
+
* IS_SIGNATURE_VERIFICATION_PAUSED_BIT_POSITION
|
|
2841
|
+
* pure
|
|
2842
|
+
*/
|
|
2843
|
+
async IS_SIGNATURE_VERIFICATION_PAUSED_BIT_POSITION() {
|
|
2844
|
+
return this.contract.read.IS_SIGNATURE_VERIFICATION_PAUSED_BIT_POSITION();
|
|
2845
|
+
}
|
|
2846
|
+
/**
|
|
2847
|
+
* IS_TRANSFER_FROM_UPGRADED_BIT_POSITION
|
|
2848
|
+
* pure
|
|
2849
|
+
*/
|
|
2850
|
+
async IS_TRANSFER_FROM_UPGRADED_BIT_POSITION() {
|
|
2851
|
+
return this.contract.read.IS_TRANSFER_FROM_UPGRADED_BIT_POSITION();
|
|
2852
|
+
}
|
|
2853
|
+
/**
|
|
2854
|
+
* IS_TRANSFER_PAUSED_BIT_POSITION
|
|
2855
|
+
* pure
|
|
2856
|
+
*/
|
|
2857
|
+
async IS_TRANSFER_PAUSED_BIT_POSITION() {
|
|
2858
|
+
return this.contract.read.IS_TRANSFER_PAUSED_BIT_POSITION();
|
|
2859
|
+
}
|
|
2860
|
+
/**
|
|
2861
|
+
* IS_TRANSFER_UPGRADED_BIT_POSITION
|
|
2862
|
+
* pure
|
|
2863
|
+
*/
|
|
2864
|
+
async IS_TRANSFER_UPGRADED_BIT_POSITION() {
|
|
2865
|
+
return this.contract.read.IS_TRANSFER_UPGRADED_BIT_POSITION();
|
|
2866
|
+
}
|
|
2867
|
+
/**
|
|
2868
|
+
* IS_TRANSFER_WITH_AUTHORIZATION_UPGRADED_BIT_POSITION
|
|
2869
|
+
* pure
|
|
2870
|
+
*/
|
|
2871
|
+
async IS_TRANSFER_WITH_AUTHORIZATION_UPGRADED_BIT_POSITION() {
|
|
2872
|
+
return this.contract.read.IS_TRANSFER_WITH_AUTHORIZATION_UPGRADED_BIT_POSITION();
|
|
2873
|
+
}
|
|
2874
|
+
/**
|
|
2875
|
+
* MINTER_ROLE
|
|
2876
|
+
* view
|
|
2877
|
+
*/
|
|
2878
|
+
async MINTER_ROLE() {
|
|
2879
|
+
return this.contract.read.MINTER_ROLE();
|
|
2880
|
+
}
|
|
2881
|
+
/**
|
|
2882
|
+
* PAUSER_ROLE
|
|
2883
|
+
* view
|
|
2884
|
+
*/
|
|
2885
|
+
async PAUSER_ROLE() {
|
|
2886
|
+
return this.contract.read.PAUSER_ROLE();
|
|
2887
|
+
}
|
|
2888
|
+
/**
|
|
2889
|
+
* PERMIT_TYPEHASH
|
|
2890
|
+
* view
|
|
2891
|
+
*/
|
|
2892
|
+
async PERMIT_TYPEHASH() {
|
|
2893
|
+
return this.contract.read.PERMIT_TYPEHASH();
|
|
2894
|
+
}
|
|
2895
|
+
/**
|
|
2896
|
+
* RATE_LIMIT_MANAGER_ROLE
|
|
2897
|
+
* view
|
|
2898
|
+
*/
|
|
2899
|
+
async RATE_LIMIT_MANAGER_ROLE() {
|
|
2900
|
+
return this.contract.read.RATE_LIMIT_MANAGER_ROLE();
|
|
2901
|
+
}
|
|
2902
|
+
/**
|
|
2903
|
+
* RECEIVE_WITH_AUTHORIZATION_TYPEHASH
|
|
2904
|
+
* pure
|
|
2905
|
+
*/
|
|
2906
|
+
async RECEIVE_WITH_AUTHORIZATION_TYPEHASH() {
|
|
2907
|
+
return this.contract.read.RECEIVE_WITH_AUTHORIZATION_TYPEHASH();
|
|
2908
|
+
}
|
|
2909
|
+
/**
|
|
2910
|
+
* TRANSFER_WITH_AUTHORIZATION_TYPEHASH
|
|
2911
|
+
* pure
|
|
2912
|
+
*/
|
|
2913
|
+
async TRANSFER_WITH_AUTHORIZATION_TYPEHASH() {
|
|
2914
|
+
return this.contract.read.TRANSFER_WITH_AUTHORIZATION_TYPEHASH();
|
|
2915
|
+
}
|
|
2916
|
+
/**
|
|
2917
|
+
* accountData
|
|
2918
|
+
* view
|
|
2919
|
+
*/
|
|
2920
|
+
async accountData(_account) {
|
|
2921
|
+
return this.contract.read.accountData([_account]);
|
|
2922
|
+
}
|
|
2923
|
+
/**
|
|
2924
|
+
* allowance
|
|
2925
|
+
* view
|
|
2926
|
+
*/
|
|
2927
|
+
async allowance(_owner, _spender) {
|
|
2928
|
+
return this.contract.read.allowance([_owner, _spender]);
|
|
2929
|
+
}
|
|
2930
|
+
/**
|
|
2931
|
+
* authorizationState
|
|
2932
|
+
* view
|
|
2933
|
+
*/
|
|
2934
|
+
async authorizationState(_authorizer, _nonce) {
|
|
2935
|
+
return this.contract.read.authorizationState([_authorizer, _nonce]);
|
|
2936
|
+
}
|
|
2937
|
+
/**
|
|
2938
|
+
* balanceOf
|
|
2939
|
+
* view
|
|
2940
|
+
*/
|
|
2941
|
+
async balanceOf(_account) {
|
|
2942
|
+
return this.contract.read.balanceOf([_account]);
|
|
2943
|
+
}
|
|
2944
|
+
/**
|
|
2945
|
+
* decimals
|
|
2946
|
+
* view
|
|
2947
|
+
*/
|
|
2948
|
+
async decimals() {
|
|
2949
|
+
return this.contract.read.decimals();
|
|
2950
|
+
}
|
|
2951
|
+
/**
|
|
2952
|
+
* domainSeparatorV4
|
|
2953
|
+
* view
|
|
2954
|
+
*/
|
|
2955
|
+
async domainSeparatorV4() {
|
|
2956
|
+
return this.contract.read.domainSeparatorV4();
|
|
2957
|
+
}
|
|
2958
|
+
/**
|
|
2959
|
+
* eip712Domain
|
|
2960
|
+
* view
|
|
2961
|
+
*/
|
|
2962
|
+
async eip712Domain() {
|
|
2963
|
+
return this.contract.read.eip712Domain();
|
|
2964
|
+
}
|
|
2965
|
+
/**
|
|
2966
|
+
* getAccessControlManagerRoleMembers
|
|
2967
|
+
* view
|
|
2968
|
+
*/
|
|
2969
|
+
async getAccessControlManagerRoleMembers() {
|
|
2970
|
+
return this.contract.read.getAccessControlManagerRoleMembers();
|
|
2971
|
+
}
|
|
2972
|
+
/**
|
|
2973
|
+
* getAllRoles
|
|
2974
|
+
* view
|
|
2975
|
+
*/
|
|
2976
|
+
async getAllRoles() {
|
|
2977
|
+
return this.contract.read.getAllRoles();
|
|
2978
|
+
}
|
|
2979
|
+
/**
|
|
2980
|
+
* getAmountCanBeMinted
|
|
2981
|
+
* view
|
|
2982
|
+
*/
|
|
2983
|
+
async getAmountCanBeMinted(_minter) {
|
|
2984
|
+
return this.contract.read.getAmountCanBeMinted([_minter]);
|
|
2985
|
+
}
|
|
2986
|
+
/**
|
|
2987
|
+
* getBridgeBurnerRoleMembers
|
|
2988
|
+
* view
|
|
2989
|
+
*/
|
|
2990
|
+
async getBridgeBurnerRoleMembers() {
|
|
2991
|
+
return this.contract.read.getBridgeBurnerRoleMembers();
|
|
2992
|
+
}
|
|
2993
|
+
/**
|
|
2994
|
+
* getBridgeMinterRoleMembers
|
|
2995
|
+
* view
|
|
2996
|
+
*/
|
|
2997
|
+
async getBridgeMinterRoleMembers() {
|
|
2998
|
+
return this.contract.read.getBridgeMinterRoleMembers();
|
|
2999
|
+
}
|
|
3000
|
+
/**
|
|
3001
|
+
* getBurnerRoleMembers
|
|
3002
|
+
* view
|
|
3003
|
+
*/
|
|
3004
|
+
async getBurnerRoleMembers() {
|
|
3005
|
+
return this.contract.read.getBurnerRoleMembers();
|
|
3006
|
+
}
|
|
3007
|
+
/**
|
|
3008
|
+
* getFreezerRoleMembers
|
|
3009
|
+
* view
|
|
3010
|
+
*/
|
|
3011
|
+
async getFreezerRoleMembers() {
|
|
3012
|
+
return this.contract.read.getFreezerRoleMembers();
|
|
3013
|
+
}
|
|
3014
|
+
/**
|
|
3015
|
+
* getMintRateLimit
|
|
3016
|
+
* view
|
|
3017
|
+
*/
|
|
3018
|
+
async getMintRateLimit(_minter) {
|
|
3019
|
+
return this.contract.read.getMintRateLimit([_minter]);
|
|
3020
|
+
}
|
|
3021
|
+
/**
|
|
3022
|
+
* getMinterRoleMembers
|
|
3023
|
+
* view
|
|
3024
|
+
*/
|
|
3025
|
+
async getMinterRoleMembers() {
|
|
3026
|
+
return this.contract.read.getMinterRoleMembers();
|
|
3027
|
+
}
|
|
3028
|
+
/**
|
|
3029
|
+
* getPauserRoleMembers
|
|
3030
|
+
* view
|
|
3031
|
+
*/
|
|
3032
|
+
async getPauserRoleMembers() {
|
|
3033
|
+
return this.contract.read.getPauserRoleMembers();
|
|
3034
|
+
}
|
|
3035
|
+
/**
|
|
3036
|
+
* getRateLimitManagerRoleMembers
|
|
3037
|
+
* view
|
|
3038
|
+
*/
|
|
3039
|
+
async getRateLimitManagerRoleMembers() {
|
|
3040
|
+
return this.contract.read.getRateLimitManagerRoleMembers();
|
|
3041
|
+
}
|
|
3042
|
+
/**
|
|
3043
|
+
* getRoleMembers
|
|
3044
|
+
* view
|
|
3045
|
+
*/
|
|
3046
|
+
async getRoleMembers(_role) {
|
|
3047
|
+
return this.contract.read.getRoleMembers([_role]);
|
|
3048
|
+
}
|
|
3049
|
+
/**
|
|
3050
|
+
* hasRole
|
|
3051
|
+
* view
|
|
3052
|
+
*/
|
|
3053
|
+
async hasRole(_role, _member) {
|
|
3054
|
+
return this.contract.read.hasRole([_role, _member]);
|
|
3055
|
+
}
|
|
3056
|
+
/**
|
|
3057
|
+
* hashTypedDataV4
|
|
3058
|
+
* view
|
|
3059
|
+
*/
|
|
3060
|
+
async hashTypedDataV4(_structHash) {
|
|
3061
|
+
return this.contract.read.hashTypedDataV4([_structHash]);
|
|
3062
|
+
}
|
|
3063
|
+
/**
|
|
3064
|
+
* implementation
|
|
3065
|
+
* view
|
|
3066
|
+
*/
|
|
3067
|
+
async implementation() {
|
|
3068
|
+
return this.contract.read.implementation();
|
|
3069
|
+
}
|
|
3070
|
+
/**
|
|
3071
|
+
* isAccountFrozen
|
|
3072
|
+
* view
|
|
3073
|
+
*/
|
|
3074
|
+
async isAccountFrozen(_account) {
|
|
3075
|
+
return this.contract.read.isAccountFrozen([_account]);
|
|
3076
|
+
}
|
|
3077
|
+
/**
|
|
3078
|
+
* isBridgingPaused
|
|
3079
|
+
* view
|
|
3080
|
+
*/
|
|
3081
|
+
async isBridgingPaused() {
|
|
3082
|
+
return this.contract.read.isBridgingPaused();
|
|
3083
|
+
}
|
|
3084
|
+
/**
|
|
3085
|
+
* isBurnFromPaused
|
|
3086
|
+
* view
|
|
3087
|
+
*/
|
|
3088
|
+
async isBurnFromPaused() {
|
|
3089
|
+
return this.contract.read.isBurnFromPaused();
|
|
3090
|
+
}
|
|
3091
|
+
/**
|
|
3092
|
+
* isFreezingPaused
|
|
3093
|
+
* view
|
|
3094
|
+
*/
|
|
3095
|
+
async isFreezingPaused() {
|
|
3096
|
+
return this.contract.read.isFreezingPaused();
|
|
3097
|
+
}
|
|
3098
|
+
/**
|
|
3099
|
+
* isMintPaused
|
|
3100
|
+
* view
|
|
3101
|
+
*/
|
|
3102
|
+
async isMintPaused() {
|
|
3103
|
+
return this.contract.read.isMintPaused();
|
|
3104
|
+
}
|
|
3105
|
+
/**
|
|
3106
|
+
* isMsgSenderFrozenCheckEnabled
|
|
3107
|
+
* view
|
|
3108
|
+
*/
|
|
3109
|
+
async isMsgSenderFrozenCheckEnabled() {
|
|
3110
|
+
return this.contract.read.isMsgSenderFrozenCheckEnabled();
|
|
3111
|
+
}
|
|
3112
|
+
/**
|
|
3113
|
+
* isReceiveWithAuthorizationUpgraded
|
|
3114
|
+
* view
|
|
3115
|
+
*/
|
|
3116
|
+
async isReceiveWithAuthorizationUpgraded() {
|
|
3117
|
+
return this.contract.read.isReceiveWithAuthorizationUpgraded();
|
|
3118
|
+
}
|
|
3119
|
+
/**
|
|
3120
|
+
* isSignatureVerificationPaused
|
|
3121
|
+
* view
|
|
3122
|
+
*/
|
|
3123
|
+
async isSignatureVerificationPaused() {
|
|
3124
|
+
return this.contract.read.isSignatureVerificationPaused();
|
|
3125
|
+
}
|
|
3126
|
+
/**
|
|
3127
|
+
* isTransferFromUpgraded
|
|
3128
|
+
* view
|
|
3129
|
+
*/
|
|
3130
|
+
async isTransferFromUpgraded() {
|
|
3131
|
+
return this.contract.read.isTransferFromUpgraded();
|
|
3132
|
+
}
|
|
3133
|
+
/**
|
|
3134
|
+
* isTransferPaused
|
|
3135
|
+
* view
|
|
3136
|
+
*/
|
|
3137
|
+
async isTransferPaused() {
|
|
3138
|
+
return this.contract.read.isTransferPaused();
|
|
3139
|
+
}
|
|
3140
|
+
/**
|
|
3141
|
+
* isTransferUpgraded
|
|
3142
|
+
* view
|
|
3143
|
+
*/
|
|
3144
|
+
async isTransferUpgraded() {
|
|
3145
|
+
return this.contract.read.isTransferUpgraded();
|
|
3146
|
+
}
|
|
3147
|
+
/**
|
|
3148
|
+
* isTransferWithAuthorizationUpgraded
|
|
3149
|
+
* view
|
|
3150
|
+
*/
|
|
3151
|
+
async isTransferWithAuthorizationUpgraded() {
|
|
3152
|
+
return this.contract.read.isTransferWithAuthorizationUpgraded();
|
|
3153
|
+
}
|
|
3154
|
+
/**
|
|
3155
|
+
* name
|
|
3156
|
+
* view
|
|
3157
|
+
*/
|
|
3158
|
+
async name() {
|
|
3159
|
+
return this.contract.read.name();
|
|
3160
|
+
}
|
|
3161
|
+
/**
|
|
3162
|
+
* nonces
|
|
3163
|
+
* view
|
|
3164
|
+
*/
|
|
3165
|
+
async nonces(_account) {
|
|
3166
|
+
return this.contract.read.nonces([_account]);
|
|
3167
|
+
}
|
|
3168
|
+
/**
|
|
3169
|
+
* proxyAdminAddress
|
|
3170
|
+
* view
|
|
3171
|
+
*/
|
|
3172
|
+
async proxyAdminAddress() {
|
|
3173
|
+
return this.contract.read.proxyAdminAddress();
|
|
3174
|
+
}
|
|
3175
|
+
/**
|
|
3176
|
+
* symbol
|
|
3177
|
+
* view
|
|
3178
|
+
*/
|
|
3179
|
+
async symbol() {
|
|
3180
|
+
return this.contract.read.symbol();
|
|
3181
|
+
}
|
|
3182
|
+
/**
|
|
3183
|
+
* totalSupply
|
|
3184
|
+
* view
|
|
3185
|
+
*/
|
|
3186
|
+
async totalSupply() {
|
|
3187
|
+
return this.contract.read.totalSupply();
|
|
3188
|
+
}
|
|
3189
|
+
/**
|
|
3190
|
+
* version
|
|
3191
|
+
* pure
|
|
3192
|
+
*/
|
|
3193
|
+
async version() {
|
|
3194
|
+
return this.contract.read.version();
|
|
3195
|
+
}
|
|
3196
|
+
/**
|
|
3197
|
+
* approve
|
|
3198
|
+
* nonpayable
|
|
3199
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3200
|
+
*/
|
|
3201
|
+
async approve(_spender, _value, options) {
|
|
3202
|
+
if (!this.contract.write) {
|
|
3203
|
+
throw new Error('Wallet client is required for write operations');
|
|
3204
|
+
}
|
|
3205
|
+
return this.contract.write.approve([_spender, _value], options);
|
|
3206
|
+
}
|
|
3207
|
+
/**
|
|
3208
|
+
* batchBurnFrom
|
|
3209
|
+
* nonpayable
|
|
3210
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3211
|
+
*/
|
|
3212
|
+
async batchBurnFrom(_burns, options) {
|
|
3213
|
+
if (!this.contract.write) {
|
|
3214
|
+
throw new Error('Wallet client is required for write operations');
|
|
3215
|
+
}
|
|
3216
|
+
return this.contract.write.batchBurnFrom([_burns], options);
|
|
3217
|
+
}
|
|
3218
|
+
/**
|
|
3219
|
+
* batchFreeze
|
|
3220
|
+
* nonpayable
|
|
3221
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3222
|
+
*/
|
|
3223
|
+
async batchFreeze(_addresses, options) {
|
|
3224
|
+
if (!this.contract.write) {
|
|
3225
|
+
throw new Error('Wallet client is required for write operations');
|
|
3226
|
+
}
|
|
3227
|
+
return this.contract.write.batchFreeze([_addresses], options);
|
|
3228
|
+
}
|
|
3229
|
+
/**
|
|
3230
|
+
* batchMint
|
|
3231
|
+
* nonpayable
|
|
3232
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3233
|
+
*/
|
|
3234
|
+
async batchMint(_mints, options) {
|
|
3235
|
+
if (!this.contract.write) {
|
|
3236
|
+
throw new Error('Wallet client is required for write operations');
|
|
3237
|
+
}
|
|
3238
|
+
return this.contract.write.batchMint([_mints], options);
|
|
3239
|
+
}
|
|
3240
|
+
/**
|
|
3241
|
+
* batchUnfreeze
|
|
3242
|
+
* nonpayable
|
|
3243
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3244
|
+
*/
|
|
3245
|
+
async batchUnfreeze(_addresses, options) {
|
|
3246
|
+
if (!this.contract.write) {
|
|
3247
|
+
throw new Error('Wallet client is required for write operations');
|
|
3248
|
+
}
|
|
3249
|
+
return this.contract.write.batchUnfreeze([_addresses], options);
|
|
3250
|
+
}
|
|
3251
|
+
/**
|
|
3252
|
+
* burn
|
|
3253
|
+
* nonpayable
|
|
3254
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3255
|
+
*/
|
|
3256
|
+
async burn(_from, _amount, options) {
|
|
3257
|
+
if (!this.contract.write) {
|
|
3258
|
+
throw new Error('Wallet client is required for write operations');
|
|
3259
|
+
}
|
|
3260
|
+
return this.contract.write.burn([_from, _amount], options);
|
|
3261
|
+
}
|
|
3262
|
+
async cancelAuthorization(...args) {
|
|
3263
|
+
if (!this.contract.write) {
|
|
3264
|
+
throw new Error('Wallet client is required for write operations');
|
|
3265
|
+
}
|
|
3266
|
+
return this.contract.write.cancelAuthorization(args);
|
|
3267
|
+
}
|
|
3268
|
+
/**
|
|
3269
|
+
* grantAccessControlManagerRole
|
|
3270
|
+
* nonpayable
|
|
3271
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3272
|
+
*/
|
|
3273
|
+
async grantAccessControlManagerRole(_member, options) {
|
|
3274
|
+
if (!this.contract.write) {
|
|
3275
|
+
throw new Error('Wallet client is required for write operations');
|
|
3276
|
+
}
|
|
3277
|
+
return this.contract.write.grantAccessControlManagerRole([_member], options);
|
|
3278
|
+
}
|
|
3279
|
+
/**
|
|
3280
|
+
* grantBridgeBurnerRole
|
|
3281
|
+
* nonpayable
|
|
3282
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3283
|
+
*/
|
|
3284
|
+
async grantBridgeBurnerRole(_member, options) {
|
|
3285
|
+
if (!this.contract.write) {
|
|
3286
|
+
throw new Error('Wallet client is required for write operations');
|
|
3287
|
+
}
|
|
3288
|
+
return this.contract.write.grantBridgeBurnerRole([_member], options);
|
|
3289
|
+
}
|
|
3290
|
+
/**
|
|
3291
|
+
* grantBridgeMinterRole
|
|
3292
|
+
* nonpayable
|
|
3293
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3294
|
+
*/
|
|
3295
|
+
async grantBridgeMinterRole(_member, options) {
|
|
3296
|
+
if (!this.contract.write) {
|
|
3297
|
+
throw new Error('Wallet client is required for write operations');
|
|
3298
|
+
}
|
|
3299
|
+
return this.contract.write.grantBridgeMinterRole([_member], options);
|
|
3300
|
+
}
|
|
3301
|
+
/**
|
|
3302
|
+
* grantBurnerRole
|
|
3303
|
+
* nonpayable
|
|
3304
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3305
|
+
*/
|
|
3306
|
+
async grantBurnerRole(_member, options) {
|
|
3307
|
+
if (!this.contract.write) {
|
|
3308
|
+
throw new Error('Wallet client is required for write operations');
|
|
3309
|
+
}
|
|
3310
|
+
return this.contract.write.grantBurnerRole([_member], options);
|
|
3311
|
+
}
|
|
3312
|
+
/**
|
|
3313
|
+
* grantFreezerRole
|
|
3314
|
+
* nonpayable
|
|
3315
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3316
|
+
*/
|
|
3317
|
+
async grantFreezerRole(_member, options) {
|
|
3318
|
+
if (!this.contract.write) {
|
|
3319
|
+
throw new Error('Wallet client is required for write operations');
|
|
3320
|
+
}
|
|
3321
|
+
return this.contract.write.grantFreezerRole([_member], options);
|
|
3322
|
+
}
|
|
3323
|
+
/**
|
|
3324
|
+
* grantMinterRole
|
|
3325
|
+
* nonpayable
|
|
3326
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3327
|
+
*/
|
|
3328
|
+
async grantMinterRole(_member, options) {
|
|
3329
|
+
if (!this.contract.write) {
|
|
3330
|
+
throw new Error('Wallet client is required for write operations');
|
|
3331
|
+
}
|
|
3332
|
+
return this.contract.write.grantMinterRole([_member], options);
|
|
3333
|
+
}
|
|
3334
|
+
/**
|
|
3335
|
+
* grantPauserRole
|
|
3336
|
+
* nonpayable
|
|
3337
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3338
|
+
*/
|
|
3339
|
+
async grantPauserRole(_member, options) {
|
|
3340
|
+
if (!this.contract.write) {
|
|
3341
|
+
throw new Error('Wallet client is required for write operations');
|
|
3342
|
+
}
|
|
3343
|
+
return this.contract.write.grantPauserRole([_member], options);
|
|
3344
|
+
}
|
|
3345
|
+
/**
|
|
3346
|
+
* grantRateLimitManagerRole
|
|
3347
|
+
* nonpayable
|
|
3348
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3349
|
+
*/
|
|
3350
|
+
async grantRateLimitManagerRole(_member, options) {
|
|
3351
|
+
if (!this.contract.write) {
|
|
3352
|
+
throw new Error('Wallet client is required for write operations');
|
|
3353
|
+
}
|
|
3354
|
+
return this.contract.write.grantRateLimitManagerRole([_member], options);
|
|
3355
|
+
}
|
|
3356
|
+
/**
|
|
3357
|
+
* initialize
|
|
3358
|
+
* nonpayable
|
|
3359
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3360
|
+
*/
|
|
3361
|
+
async initialize(_params, options) {
|
|
3362
|
+
if (!this.contract.write) {
|
|
3363
|
+
throw new Error('Wallet client is required for write operations');
|
|
3364
|
+
}
|
|
3365
|
+
return this.contract.write.initialize([_params], options);
|
|
3366
|
+
}
|
|
3367
|
+
/**
|
|
3368
|
+
* mint
|
|
3369
|
+
* nonpayable
|
|
3370
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3371
|
+
*/
|
|
3372
|
+
async mint(_to, _amount, options) {
|
|
3373
|
+
if (!this.contract.write) {
|
|
3374
|
+
throw new Error('Wallet client is required for write operations');
|
|
3375
|
+
}
|
|
3376
|
+
return this.contract.write.mint([_to, _amount], options);
|
|
3377
|
+
}
|
|
3378
|
+
async permit(...args) {
|
|
3379
|
+
if (!this.contract.write) {
|
|
3380
|
+
throw new Error('Wallet client is required for write operations');
|
|
3381
|
+
}
|
|
3382
|
+
return this.contract.write.permit(args);
|
|
3383
|
+
}
|
|
3384
|
+
async receiveWithAuthorization(...args) {
|
|
3385
|
+
if (!this.contract.write) {
|
|
3386
|
+
throw new Error('Wallet client is required for write operations');
|
|
3387
|
+
}
|
|
3388
|
+
return this.contract.write.receiveWithAuthorization(args);
|
|
3389
|
+
}
|
|
3390
|
+
/**
|
|
3391
|
+
* revokeAccessControlManagerRole
|
|
3392
|
+
* nonpayable
|
|
3393
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3394
|
+
*/
|
|
3395
|
+
async revokeAccessControlManagerRole(_member, options) {
|
|
3396
|
+
if (!this.contract.write) {
|
|
3397
|
+
throw new Error('Wallet client is required for write operations');
|
|
3398
|
+
}
|
|
3399
|
+
return this.contract.write.revokeAccessControlManagerRole([_member], options);
|
|
3400
|
+
}
|
|
3401
|
+
/**
|
|
3402
|
+
* revokeBridgeBurnerRole
|
|
3403
|
+
* nonpayable
|
|
3404
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3405
|
+
*/
|
|
3406
|
+
async revokeBridgeBurnerRole(_member, options) {
|
|
3407
|
+
if (!this.contract.write) {
|
|
3408
|
+
throw new Error('Wallet client is required for write operations');
|
|
3409
|
+
}
|
|
3410
|
+
return this.contract.write.revokeBridgeBurnerRole([_member], options);
|
|
3411
|
+
}
|
|
3412
|
+
/**
|
|
3413
|
+
* revokeBridgeMinterRole
|
|
3414
|
+
* nonpayable
|
|
3415
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3416
|
+
*/
|
|
3417
|
+
async revokeBridgeMinterRole(_member, options) {
|
|
3418
|
+
if (!this.contract.write) {
|
|
3419
|
+
throw new Error('Wallet client is required for write operations');
|
|
3420
|
+
}
|
|
3421
|
+
return this.contract.write.revokeBridgeMinterRole([_member], options);
|
|
3422
|
+
}
|
|
3423
|
+
/**
|
|
3424
|
+
* revokeBurnerRole
|
|
3425
|
+
* nonpayable
|
|
3426
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3427
|
+
*/
|
|
3428
|
+
async revokeBurnerRole(_member, options) {
|
|
3429
|
+
if (!this.contract.write) {
|
|
3430
|
+
throw new Error('Wallet client is required for write operations');
|
|
3431
|
+
}
|
|
3432
|
+
return this.contract.write.revokeBurnerRole([_member], options);
|
|
3433
|
+
}
|
|
3434
|
+
/**
|
|
3435
|
+
* revokeFreezerRole
|
|
3436
|
+
* nonpayable
|
|
3437
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3438
|
+
*/
|
|
3439
|
+
async revokeFreezerRole(_member, options) {
|
|
3440
|
+
if (!this.contract.write) {
|
|
3441
|
+
throw new Error('Wallet client is required for write operations');
|
|
3442
|
+
}
|
|
3443
|
+
return this.contract.write.revokeFreezerRole([_member], options);
|
|
3444
|
+
}
|
|
3445
|
+
/**
|
|
3446
|
+
* revokeMinterRole
|
|
3447
|
+
* nonpayable
|
|
3448
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3449
|
+
*/
|
|
3450
|
+
async revokeMinterRole(_member, options) {
|
|
3451
|
+
if (!this.contract.write) {
|
|
3452
|
+
throw new Error('Wallet client is required for write operations');
|
|
3453
|
+
}
|
|
3454
|
+
return this.contract.write.revokeMinterRole([_member], options);
|
|
3455
|
+
}
|
|
3456
|
+
/**
|
|
3457
|
+
* revokePauserRole
|
|
3458
|
+
* nonpayable
|
|
3459
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3460
|
+
*/
|
|
3461
|
+
async revokePauserRole(_member, options) {
|
|
3462
|
+
if (!this.contract.write) {
|
|
3463
|
+
throw new Error('Wallet client is required for write operations');
|
|
3464
|
+
}
|
|
3465
|
+
return this.contract.write.revokePauserRole([_member], options);
|
|
3466
|
+
}
|
|
3467
|
+
/**
|
|
3468
|
+
* revokeRateLimitManagerRole
|
|
3469
|
+
* nonpayable
|
|
3470
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3471
|
+
*/
|
|
3472
|
+
async revokeRateLimitManagerRole(_member, options) {
|
|
3473
|
+
if (!this.contract.write) {
|
|
3474
|
+
throw new Error('Wallet client is required for write operations');
|
|
3475
|
+
}
|
|
3476
|
+
return this.contract.write.revokeRateLimitManagerRole([_member], options);
|
|
3477
|
+
}
|
|
3478
|
+
/**
|
|
3479
|
+
* setIsBridgingPaused
|
|
3480
|
+
* nonpayable
|
|
3481
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3482
|
+
*/
|
|
3483
|
+
async setIsBridgingPaused(_isPaused, options) {
|
|
3484
|
+
if (!this.contract.write) {
|
|
3485
|
+
throw new Error('Wallet client is required for write operations');
|
|
3486
|
+
}
|
|
3487
|
+
return this.contract.write.setIsBridgingPaused([_isPaused], options);
|
|
3488
|
+
}
|
|
3489
|
+
/**
|
|
3490
|
+
* setIsBurnFromPaused
|
|
3491
|
+
* nonpayable
|
|
3492
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3493
|
+
*/
|
|
3494
|
+
async setIsBurnFromPaused(_isPaused, options) {
|
|
3495
|
+
if (!this.contract.write) {
|
|
3496
|
+
throw new Error('Wallet client is required for write operations');
|
|
3497
|
+
}
|
|
3498
|
+
return this.contract.write.setIsBurnFromPaused([_isPaused], options);
|
|
3499
|
+
}
|
|
3500
|
+
/**
|
|
3501
|
+
* setIsFreezingPaused
|
|
3502
|
+
* nonpayable
|
|
3503
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3504
|
+
*/
|
|
3505
|
+
async setIsFreezingPaused(_isPaused, options) {
|
|
3506
|
+
if (!this.contract.write) {
|
|
3507
|
+
throw new Error('Wallet client is required for write operations');
|
|
3508
|
+
}
|
|
3509
|
+
return this.contract.write.setIsFreezingPaused([_isPaused], options);
|
|
3510
|
+
}
|
|
3511
|
+
/**
|
|
3512
|
+
* setIsMintPaused
|
|
3513
|
+
* nonpayable
|
|
3514
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3515
|
+
*/
|
|
3516
|
+
async setIsMintPaused(_isPaused, options) {
|
|
3517
|
+
if (!this.contract.write) {
|
|
3518
|
+
throw new Error('Wallet client is required for write operations');
|
|
3519
|
+
}
|
|
3520
|
+
return this.contract.write.setIsMintPaused([_isPaused], options);
|
|
3521
|
+
}
|
|
3522
|
+
/**
|
|
3523
|
+
* setIsMsgSenderCheckEnabled
|
|
3524
|
+
* nonpayable
|
|
3525
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3526
|
+
*/
|
|
3527
|
+
async setIsMsgSenderCheckEnabled(_isEnabled, options) {
|
|
3528
|
+
if (!this.contract.write) {
|
|
3529
|
+
throw new Error('Wallet client is required for write operations');
|
|
3530
|
+
}
|
|
3531
|
+
return this.contract.write.setIsMsgSenderCheckEnabled([_isEnabled], options);
|
|
3532
|
+
}
|
|
3533
|
+
/**
|
|
3534
|
+
* setIsReceiveWithAuthorizationUpgraded
|
|
3535
|
+
* nonpayable
|
|
3536
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3537
|
+
*/
|
|
3538
|
+
async setIsReceiveWithAuthorizationUpgraded(_isUpgraded, options) {
|
|
3539
|
+
if (!this.contract.write) {
|
|
3540
|
+
throw new Error('Wallet client is required for write operations');
|
|
3541
|
+
}
|
|
3542
|
+
return this.contract.write.setIsReceiveWithAuthorizationUpgraded([_isUpgraded], options);
|
|
3543
|
+
}
|
|
3544
|
+
/**
|
|
3545
|
+
* setIsSignatureVerificationPaused
|
|
3546
|
+
* nonpayable
|
|
3547
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3548
|
+
*/
|
|
3549
|
+
async setIsSignatureVerificationPaused(_isPaused, options) {
|
|
3550
|
+
if (!this.contract.write) {
|
|
3551
|
+
throw new Error('Wallet client is required for write operations');
|
|
3552
|
+
}
|
|
3553
|
+
return this.contract.write.setIsSignatureVerificationPaused([_isPaused], options);
|
|
3554
|
+
}
|
|
3555
|
+
/**
|
|
3556
|
+
* setIsTransferFromUpgraded
|
|
3557
|
+
* nonpayable
|
|
3558
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3559
|
+
*/
|
|
3560
|
+
async setIsTransferFromUpgraded(_isUpgraded, options) {
|
|
3561
|
+
if (!this.contract.write) {
|
|
3562
|
+
throw new Error('Wallet client is required for write operations');
|
|
3563
|
+
}
|
|
3564
|
+
return this.contract.write.setIsTransferFromUpgraded([_isUpgraded], options);
|
|
3565
|
+
}
|
|
3566
|
+
/**
|
|
3567
|
+
* setIsTransferPaused
|
|
3568
|
+
* nonpayable
|
|
3569
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3570
|
+
*/
|
|
3571
|
+
async setIsTransferPaused(_isPaused, options) {
|
|
3572
|
+
if (!this.contract.write) {
|
|
3573
|
+
throw new Error('Wallet client is required for write operations');
|
|
3574
|
+
}
|
|
3575
|
+
return this.contract.write.setIsTransferPaused([_isPaused], options);
|
|
3576
|
+
}
|
|
3577
|
+
/**
|
|
3578
|
+
* setIsTransferUpgraded
|
|
3579
|
+
* nonpayable
|
|
3580
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3581
|
+
*/
|
|
3582
|
+
async setIsTransferUpgraded(_isUpgraded, options) {
|
|
3583
|
+
if (!this.contract.write) {
|
|
3584
|
+
throw new Error('Wallet client is required for write operations');
|
|
3585
|
+
}
|
|
3586
|
+
return this.contract.write.setIsTransferUpgraded([_isUpgraded], options);
|
|
3587
|
+
}
|
|
3588
|
+
/**
|
|
3589
|
+
* setIsTransferWithAuthorizationUpgraded
|
|
3590
|
+
* nonpayable
|
|
3591
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3592
|
+
*/
|
|
3593
|
+
async setIsTransferWithAuthorizationUpgraded(_isUpgraded, options) {
|
|
3594
|
+
if (!this.contract.write) {
|
|
3595
|
+
throw new Error('Wallet client is required for write operations');
|
|
3596
|
+
}
|
|
3597
|
+
return this.contract.write.setIsTransferWithAuthorizationUpgraded([_isUpgraded], options);
|
|
3598
|
+
}
|
|
3599
|
+
/**
|
|
3600
|
+
* setMintRateLimit
|
|
3601
|
+
* nonpayable
|
|
3602
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3603
|
+
*/
|
|
3604
|
+
async setMintRateLimit(_rateLimitConfig, options) {
|
|
3605
|
+
if (!this.contract.write) {
|
|
3606
|
+
throw new Error('Wallet client is required for write operations');
|
|
3607
|
+
}
|
|
3608
|
+
return this.contract.write.setMintRateLimit([_rateLimitConfig], options);
|
|
3609
|
+
}
|
|
3610
|
+
/**
|
|
3611
|
+
* transfer
|
|
3612
|
+
* nonpayable
|
|
3613
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3614
|
+
*/
|
|
3615
|
+
async transfer(_to, _value, options) {
|
|
3616
|
+
if (!this.contract.write) {
|
|
3617
|
+
throw new Error('Wallet client is required for write operations');
|
|
3618
|
+
}
|
|
3619
|
+
return this.contract.write.transfer([_to, _value], options);
|
|
3620
|
+
}
|
|
3621
|
+
/**
|
|
3622
|
+
* transferFrom
|
|
3623
|
+
* nonpayable
|
|
3624
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3625
|
+
*/
|
|
3626
|
+
async transferFrom(_from, _to, _value, options) {
|
|
3627
|
+
if (!this.contract.write) {
|
|
3628
|
+
throw new Error('Wallet client is required for write operations');
|
|
3629
|
+
}
|
|
3630
|
+
return this.contract.write.transferFrom([_from, _to, _value], options);
|
|
3631
|
+
}
|
|
3632
|
+
async transferWithAuthorization(...args) {
|
|
3633
|
+
if (!this.contract.write) {
|
|
3634
|
+
throw new Error('Wallet client is required for write operations');
|
|
3635
|
+
}
|
|
3636
|
+
return this.contract.write.transferWithAuthorization(args);
|
|
3637
|
+
}
|
|
3638
|
+
/**
|
|
3639
|
+
* Simulate contract write operations (dry-run without sending transaction)
|
|
3640
|
+
*
|
|
3641
|
+
* @example
|
|
3642
|
+
* const result = await contract.simulate.transfer('0x...', 1000n);
|
|
3643
|
+
* console.log('Gas estimate:', result.request.gas);
|
|
3644
|
+
* console.log('Would succeed:', result.result);
|
|
3645
|
+
*/
|
|
3646
|
+
get simulate() {
|
|
3647
|
+
const contract = this.contract;
|
|
3648
|
+
if (!contract.simulate) {
|
|
3649
|
+
throw new Error('Public client is required for simulation');
|
|
3650
|
+
}
|
|
3651
|
+
return {
|
|
3652
|
+
/**
|
|
3653
|
+
* Simulate approve
|
|
3654
|
+
* Returns gas estimate and result without sending transaction
|
|
3655
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3656
|
+
*/
|
|
3657
|
+
async approve(_spender, _value, options) {
|
|
3658
|
+
return contract.simulate.approve([_spender, _value], options);
|
|
3659
|
+
},
|
|
3660
|
+
/**
|
|
3661
|
+
* Simulate batchBurnFrom
|
|
3662
|
+
* Returns gas estimate and result without sending transaction
|
|
3663
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3664
|
+
*/
|
|
3665
|
+
async batchBurnFrom(_burns, options) {
|
|
3666
|
+
return contract.simulate.batchBurnFrom([_burns], options);
|
|
3667
|
+
},
|
|
3668
|
+
/**
|
|
3669
|
+
* Simulate batchFreeze
|
|
3670
|
+
* Returns gas estimate and result without sending transaction
|
|
3671
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3672
|
+
*/
|
|
3673
|
+
async batchFreeze(_addresses, options) {
|
|
3674
|
+
return contract.simulate.batchFreeze([_addresses], options);
|
|
3675
|
+
},
|
|
3676
|
+
/**
|
|
3677
|
+
* Simulate batchMint
|
|
3678
|
+
* Returns gas estimate and result without sending transaction
|
|
3679
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3680
|
+
*/
|
|
3681
|
+
async batchMint(_mints, options) {
|
|
3682
|
+
return contract.simulate.batchMint([_mints], options);
|
|
3683
|
+
},
|
|
3684
|
+
/**
|
|
3685
|
+
* Simulate batchUnfreeze
|
|
3686
|
+
* Returns gas estimate and result without sending transaction
|
|
3687
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3688
|
+
*/
|
|
3689
|
+
async batchUnfreeze(_addresses, options) {
|
|
3690
|
+
return contract.simulate.batchUnfreeze([_addresses], options);
|
|
3691
|
+
},
|
|
3692
|
+
/**
|
|
3693
|
+
* Simulate burn
|
|
3694
|
+
* Returns gas estimate and result without sending transaction
|
|
3695
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3696
|
+
*/
|
|
3697
|
+
async burn(_from, _amount, options) {
|
|
3698
|
+
return contract.simulate.burn([_from, _amount], options);
|
|
3699
|
+
},
|
|
3700
|
+
/**
|
|
3701
|
+
* Simulate cancelAuthorization
|
|
3702
|
+
* Returns gas estimate and result without sending transaction
|
|
3703
|
+
* Supports multiple overloads: (address, bytes32, uint8, bytes32, bytes32), (address, bytes32, bytes)
|
|
3704
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3705
|
+
*/
|
|
3706
|
+
async cancelAuthorization(...args) {
|
|
3707
|
+
return contract.simulate.cancelAuthorization(args);
|
|
3708
|
+
},
|
|
3709
|
+
/**
|
|
3710
|
+
* Simulate grantAccessControlManagerRole
|
|
3711
|
+
* Returns gas estimate and result without sending transaction
|
|
3712
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3713
|
+
*/
|
|
3714
|
+
async grantAccessControlManagerRole(_member, options) {
|
|
3715
|
+
return contract.simulate.grantAccessControlManagerRole([_member], options);
|
|
3716
|
+
},
|
|
3717
|
+
/**
|
|
3718
|
+
* Simulate grantBridgeBurnerRole
|
|
3719
|
+
* Returns gas estimate and result without sending transaction
|
|
3720
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3721
|
+
*/
|
|
3722
|
+
async grantBridgeBurnerRole(_member, options) {
|
|
3723
|
+
return contract.simulate.grantBridgeBurnerRole([_member], options);
|
|
3724
|
+
},
|
|
3725
|
+
/**
|
|
3726
|
+
* Simulate grantBridgeMinterRole
|
|
3727
|
+
* Returns gas estimate and result without sending transaction
|
|
3728
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3729
|
+
*/
|
|
3730
|
+
async grantBridgeMinterRole(_member, options) {
|
|
3731
|
+
return contract.simulate.grantBridgeMinterRole([_member], options);
|
|
3732
|
+
},
|
|
3733
|
+
/**
|
|
3734
|
+
* Simulate grantBurnerRole
|
|
3735
|
+
* Returns gas estimate and result without sending transaction
|
|
3736
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3737
|
+
*/
|
|
3738
|
+
async grantBurnerRole(_member, options) {
|
|
3739
|
+
return contract.simulate.grantBurnerRole([_member], options);
|
|
3740
|
+
},
|
|
3741
|
+
/**
|
|
3742
|
+
* Simulate grantFreezerRole
|
|
3743
|
+
* Returns gas estimate and result without sending transaction
|
|
3744
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3745
|
+
*/
|
|
3746
|
+
async grantFreezerRole(_member, options) {
|
|
3747
|
+
return contract.simulate.grantFreezerRole([_member], options);
|
|
3748
|
+
},
|
|
3749
|
+
/**
|
|
3750
|
+
* Simulate grantMinterRole
|
|
3751
|
+
* Returns gas estimate and result without sending transaction
|
|
3752
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3753
|
+
*/
|
|
3754
|
+
async grantMinterRole(_member, options) {
|
|
3755
|
+
return contract.simulate.grantMinterRole([_member], options);
|
|
3756
|
+
},
|
|
3757
|
+
/**
|
|
3758
|
+
* Simulate grantPauserRole
|
|
3759
|
+
* Returns gas estimate and result without sending transaction
|
|
3760
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3761
|
+
*/
|
|
3762
|
+
async grantPauserRole(_member, options) {
|
|
3763
|
+
return contract.simulate.grantPauserRole([_member], options);
|
|
3764
|
+
},
|
|
3765
|
+
/**
|
|
3766
|
+
* Simulate grantRateLimitManagerRole
|
|
3767
|
+
* Returns gas estimate and result without sending transaction
|
|
3768
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3769
|
+
*/
|
|
3770
|
+
async grantRateLimitManagerRole(_member, options) {
|
|
3771
|
+
return contract.simulate.grantRateLimitManagerRole([_member], options);
|
|
3772
|
+
},
|
|
3773
|
+
/**
|
|
3774
|
+
* Simulate initialize
|
|
3775
|
+
* Returns gas estimate and result without sending transaction
|
|
3776
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3777
|
+
*/
|
|
3778
|
+
async initialize(_params, options) {
|
|
3779
|
+
return contract.simulate.initialize([_params], options);
|
|
3780
|
+
},
|
|
3781
|
+
/**
|
|
3782
|
+
* Simulate mint
|
|
3783
|
+
* Returns gas estimate and result without sending transaction
|
|
3784
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3785
|
+
*/
|
|
3786
|
+
async mint(_to, _amount, options) {
|
|
3787
|
+
return contract.simulate.mint([_to, _amount], options);
|
|
3788
|
+
},
|
|
3789
|
+
/**
|
|
3790
|
+
* Simulate permit
|
|
3791
|
+
* Returns gas estimate and result without sending transaction
|
|
3792
|
+
* Supports multiple overloads: (address, address, uint256, uint256, bytes), (address, address, uint256, uint256, uint8, bytes32, bytes32)
|
|
3793
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3794
|
+
*/
|
|
3795
|
+
async permit(...args) {
|
|
3796
|
+
return contract.simulate.permit(args);
|
|
3797
|
+
},
|
|
3798
|
+
/**
|
|
3799
|
+
* Simulate receiveWithAuthorization
|
|
3800
|
+
* Returns gas estimate and result without sending transaction
|
|
3801
|
+
* Supports multiple overloads: (address, address, uint256, uint256, uint256, bytes32, bytes), (address, address, uint256, uint256, uint256, bytes32, uint8, bytes32, bytes32)
|
|
3802
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3803
|
+
*/
|
|
3804
|
+
async receiveWithAuthorization(...args) {
|
|
3805
|
+
return contract.simulate.receiveWithAuthorization(args);
|
|
3806
|
+
},
|
|
3807
|
+
/**
|
|
3808
|
+
* Simulate revokeAccessControlManagerRole
|
|
3809
|
+
* Returns gas estimate and result without sending transaction
|
|
3810
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3811
|
+
*/
|
|
3812
|
+
async revokeAccessControlManagerRole(_member, options) {
|
|
3813
|
+
return contract.simulate.revokeAccessControlManagerRole([_member], options);
|
|
3814
|
+
},
|
|
3815
|
+
/**
|
|
3816
|
+
* Simulate revokeBridgeBurnerRole
|
|
3817
|
+
* Returns gas estimate and result without sending transaction
|
|
3818
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3819
|
+
*/
|
|
3820
|
+
async revokeBridgeBurnerRole(_member, options) {
|
|
3821
|
+
return contract.simulate.revokeBridgeBurnerRole([_member], options);
|
|
3822
|
+
},
|
|
3823
|
+
/**
|
|
3824
|
+
* Simulate revokeBridgeMinterRole
|
|
3825
|
+
* Returns gas estimate and result without sending transaction
|
|
3826
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3827
|
+
*/
|
|
3828
|
+
async revokeBridgeMinterRole(_member, options) {
|
|
3829
|
+
return contract.simulate.revokeBridgeMinterRole([_member], options);
|
|
3830
|
+
},
|
|
3831
|
+
/**
|
|
3832
|
+
* Simulate revokeBurnerRole
|
|
3833
|
+
* Returns gas estimate and result without sending transaction
|
|
3834
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3835
|
+
*/
|
|
3836
|
+
async revokeBurnerRole(_member, options) {
|
|
3837
|
+
return contract.simulate.revokeBurnerRole([_member], options);
|
|
3838
|
+
},
|
|
3839
|
+
/**
|
|
3840
|
+
* Simulate revokeFreezerRole
|
|
3841
|
+
* Returns gas estimate and result without sending transaction
|
|
3842
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3843
|
+
*/
|
|
3844
|
+
async revokeFreezerRole(_member, options) {
|
|
3845
|
+
return contract.simulate.revokeFreezerRole([_member], options);
|
|
3846
|
+
},
|
|
3847
|
+
/**
|
|
3848
|
+
* Simulate revokeMinterRole
|
|
3849
|
+
* Returns gas estimate and result without sending transaction
|
|
3850
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3851
|
+
*/
|
|
3852
|
+
async revokeMinterRole(_member, options) {
|
|
3853
|
+
return contract.simulate.revokeMinterRole([_member], options);
|
|
3854
|
+
},
|
|
3855
|
+
/**
|
|
3856
|
+
* Simulate revokePauserRole
|
|
3857
|
+
* Returns gas estimate and result without sending transaction
|
|
3858
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3859
|
+
*/
|
|
3860
|
+
async revokePauserRole(_member, options) {
|
|
3861
|
+
return contract.simulate.revokePauserRole([_member], options);
|
|
3862
|
+
},
|
|
3863
|
+
/**
|
|
3864
|
+
* Simulate revokeRateLimitManagerRole
|
|
3865
|
+
* Returns gas estimate and result without sending transaction
|
|
3866
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3867
|
+
*/
|
|
3868
|
+
async revokeRateLimitManagerRole(_member, options) {
|
|
3869
|
+
return contract.simulate.revokeRateLimitManagerRole([_member], options);
|
|
3870
|
+
},
|
|
3871
|
+
/**
|
|
3872
|
+
* Simulate setIsBridgingPaused
|
|
3873
|
+
* Returns gas estimate and result without sending transaction
|
|
3874
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3875
|
+
*/
|
|
3876
|
+
async setIsBridgingPaused(_isPaused, options) {
|
|
3877
|
+
return contract.simulate.setIsBridgingPaused([_isPaused], options);
|
|
3878
|
+
},
|
|
3879
|
+
/**
|
|
3880
|
+
* Simulate setIsBurnFromPaused
|
|
3881
|
+
* Returns gas estimate and result without sending transaction
|
|
3882
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3883
|
+
*/
|
|
3884
|
+
async setIsBurnFromPaused(_isPaused, options) {
|
|
3885
|
+
return contract.simulate.setIsBurnFromPaused([_isPaused], options);
|
|
3886
|
+
},
|
|
3887
|
+
/**
|
|
3888
|
+
* Simulate setIsFreezingPaused
|
|
3889
|
+
* Returns gas estimate and result without sending transaction
|
|
3890
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3891
|
+
*/
|
|
3892
|
+
async setIsFreezingPaused(_isPaused, options) {
|
|
3893
|
+
return contract.simulate.setIsFreezingPaused([_isPaused], options);
|
|
3894
|
+
},
|
|
3895
|
+
/**
|
|
3896
|
+
* Simulate setIsMintPaused
|
|
3897
|
+
* Returns gas estimate and result without sending transaction
|
|
3898
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3899
|
+
*/
|
|
3900
|
+
async setIsMintPaused(_isPaused, options) {
|
|
3901
|
+
return contract.simulate.setIsMintPaused([_isPaused], options);
|
|
3902
|
+
},
|
|
3903
|
+
/**
|
|
3904
|
+
* Simulate setIsMsgSenderCheckEnabled
|
|
3905
|
+
* Returns gas estimate and result without sending transaction
|
|
3906
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3907
|
+
*/
|
|
3908
|
+
async setIsMsgSenderCheckEnabled(_isEnabled, options) {
|
|
3909
|
+
return contract.simulate.setIsMsgSenderCheckEnabled([_isEnabled], options);
|
|
3910
|
+
},
|
|
3911
|
+
/**
|
|
3912
|
+
* Simulate setIsReceiveWithAuthorizationUpgraded
|
|
3913
|
+
* Returns gas estimate and result without sending transaction
|
|
3914
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3915
|
+
*/
|
|
3916
|
+
async setIsReceiveWithAuthorizationUpgraded(_isUpgraded, options) {
|
|
3917
|
+
return contract.simulate.setIsReceiveWithAuthorizationUpgraded([_isUpgraded], options);
|
|
3918
|
+
},
|
|
3919
|
+
/**
|
|
3920
|
+
* Simulate setIsSignatureVerificationPaused
|
|
3921
|
+
* Returns gas estimate and result without sending transaction
|
|
3922
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3923
|
+
*/
|
|
3924
|
+
async setIsSignatureVerificationPaused(_isPaused, options) {
|
|
3925
|
+
return contract.simulate.setIsSignatureVerificationPaused([_isPaused], options);
|
|
3926
|
+
},
|
|
3927
|
+
/**
|
|
3928
|
+
* Simulate setIsTransferFromUpgraded
|
|
3929
|
+
* Returns gas estimate and result without sending transaction
|
|
3930
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3931
|
+
*/
|
|
3932
|
+
async setIsTransferFromUpgraded(_isUpgraded, options) {
|
|
3933
|
+
return contract.simulate.setIsTransferFromUpgraded([_isUpgraded], options);
|
|
3934
|
+
},
|
|
3935
|
+
/**
|
|
3936
|
+
* Simulate setIsTransferPaused
|
|
3937
|
+
* Returns gas estimate and result without sending transaction
|
|
3938
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3939
|
+
*/
|
|
3940
|
+
async setIsTransferPaused(_isPaused, options) {
|
|
3941
|
+
return contract.simulate.setIsTransferPaused([_isPaused], options);
|
|
3942
|
+
},
|
|
3943
|
+
/**
|
|
3944
|
+
* Simulate setIsTransferUpgraded
|
|
3945
|
+
* Returns gas estimate and result without sending transaction
|
|
3946
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3947
|
+
*/
|
|
3948
|
+
async setIsTransferUpgraded(_isUpgraded, options) {
|
|
3949
|
+
return contract.simulate.setIsTransferUpgraded([_isUpgraded], options);
|
|
3950
|
+
},
|
|
3951
|
+
/**
|
|
3952
|
+
* Simulate setIsTransferWithAuthorizationUpgraded
|
|
3953
|
+
* Returns gas estimate and result without sending transaction
|
|
3954
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3955
|
+
*/
|
|
3956
|
+
async setIsTransferWithAuthorizationUpgraded(_isUpgraded, options) {
|
|
3957
|
+
return contract.simulate.setIsTransferWithAuthorizationUpgraded([_isUpgraded], options);
|
|
3958
|
+
},
|
|
3959
|
+
/**
|
|
3960
|
+
* Simulate setMintRateLimit
|
|
3961
|
+
* Returns gas estimate and result without sending transaction
|
|
3962
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3963
|
+
*/
|
|
3964
|
+
async setMintRateLimit(_rateLimitConfig, options) {
|
|
3965
|
+
return contract.simulate.setMintRateLimit([_rateLimitConfig], options);
|
|
3966
|
+
},
|
|
3967
|
+
/**
|
|
3968
|
+
* Simulate transfer
|
|
3969
|
+
* Returns gas estimate and result without sending transaction
|
|
3970
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3971
|
+
*/
|
|
3972
|
+
async transfer(_to, _value, options) {
|
|
3973
|
+
return contract.simulate.transfer([_to, _value], options);
|
|
3974
|
+
},
|
|
3975
|
+
/**
|
|
3976
|
+
* Simulate transferFrom
|
|
3977
|
+
* Returns gas estimate and result without sending transaction
|
|
3978
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3979
|
+
*/
|
|
3980
|
+
async transferFrom(_from, _to, _value, options) {
|
|
3981
|
+
return contract.simulate.transferFrom([_from, _to, _value], options);
|
|
3982
|
+
},
|
|
3983
|
+
/**
|
|
3984
|
+
* Simulate transferWithAuthorization
|
|
3985
|
+
* Returns gas estimate and result without sending transaction
|
|
3986
|
+
* Supports multiple overloads: (address, address, uint256, uint256, uint256, bytes32, bytes), (address, address, uint256, uint256, uint256, bytes32, uint8, bytes32, bytes32)
|
|
3987
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3988
|
+
*/
|
|
3989
|
+
async transferWithAuthorization(...args) {
|
|
3990
|
+
return contract.simulate.transferWithAuthorization(args);
|
|
3991
|
+
}
|
|
3992
|
+
};
|
|
3993
|
+
}
|
|
3994
|
+
/**
|
|
3995
|
+
* Watch contract events
|
|
3996
|
+
*
|
|
3997
|
+
* @example
|
|
3998
|
+
* // Watch all Transfer events
|
|
3999
|
+
* const unwatch = contract.watch.Transfer((event) => {
|
|
4000
|
+
* console.log('Transfer:', event);
|
|
4001
|
+
* });
|
|
4002
|
+
*
|
|
4003
|
+
* // Stop watching
|
|
4004
|
+
* unwatch();
|
|
4005
|
+
*/
|
|
4006
|
+
get watch() {
|
|
4007
|
+
return {
|
|
4008
|
+
/**
|
|
4009
|
+
* Watch AccountFrozen events
|
|
4010
|
+
* @param callback Function to call when event is emitted
|
|
4011
|
+
* @param filter Optional filter for indexed parameters
|
|
4012
|
+
* @returns Unwatch function to stop listening
|
|
4013
|
+
*/
|
|
4014
|
+
AccountFrozen: (callback, filter) => {
|
|
4015
|
+
return this.publicClient.watchContractEvent({
|
|
4016
|
+
address: this.contractAddress,
|
|
4017
|
+
abi: exports.AgoraDollarAbi,
|
|
4018
|
+
eventName: 'AccountFrozen',
|
|
4019
|
+
args: filter,
|
|
4020
|
+
onLogs: (logs) => {
|
|
4021
|
+
logs.forEach((log) => {
|
|
4022
|
+
callback(log.args);
|
|
4023
|
+
});
|
|
4024
|
+
},
|
|
4025
|
+
});
|
|
4026
|
+
},
|
|
4027
|
+
/**
|
|
4028
|
+
* Watch AccountUnfrozen events
|
|
4029
|
+
* @param callback Function to call when event is emitted
|
|
4030
|
+
* @param filter Optional filter for indexed parameters
|
|
4031
|
+
* @returns Unwatch function to stop listening
|
|
4032
|
+
*/
|
|
4033
|
+
AccountUnfrozen: (callback, filter) => {
|
|
4034
|
+
return this.publicClient.watchContractEvent({
|
|
4035
|
+
address: this.contractAddress,
|
|
4036
|
+
abi: exports.AgoraDollarAbi,
|
|
4037
|
+
eventName: 'AccountUnfrozen',
|
|
4038
|
+
args: filter,
|
|
4039
|
+
onLogs: (logs) => {
|
|
4040
|
+
logs.forEach((log) => {
|
|
4041
|
+
callback(log.args);
|
|
4042
|
+
});
|
|
4043
|
+
},
|
|
4044
|
+
});
|
|
4045
|
+
},
|
|
4046
|
+
/**
|
|
4047
|
+
* Watch Approval events
|
|
4048
|
+
* @param callback Function to call when event is emitted
|
|
4049
|
+
* @param filter Optional filter for indexed parameters
|
|
4050
|
+
* @returns Unwatch function to stop listening
|
|
4051
|
+
*/
|
|
4052
|
+
Approval: (callback, filter) => {
|
|
4053
|
+
return this.publicClient.watchContractEvent({
|
|
4054
|
+
address: this.contractAddress,
|
|
4055
|
+
abi: exports.AgoraDollarAbi,
|
|
4056
|
+
eventName: 'Approval',
|
|
4057
|
+
args: filter,
|
|
4058
|
+
onLogs: (logs) => {
|
|
4059
|
+
logs.forEach((log) => {
|
|
4060
|
+
callback(log.args);
|
|
4061
|
+
});
|
|
4062
|
+
},
|
|
4063
|
+
});
|
|
4064
|
+
},
|
|
4065
|
+
/**
|
|
4066
|
+
* Watch AuthorizationCanceled events
|
|
4067
|
+
* @param callback Function to call when event is emitted
|
|
4068
|
+
* @param filter Optional filter for indexed parameters
|
|
4069
|
+
* @returns Unwatch function to stop listening
|
|
4070
|
+
*/
|
|
4071
|
+
AuthorizationCanceled: (callback, filter) => {
|
|
4072
|
+
return this.publicClient.watchContractEvent({
|
|
4073
|
+
address: this.contractAddress,
|
|
4074
|
+
abi: exports.AgoraDollarAbi,
|
|
4075
|
+
eventName: 'AuthorizationCanceled',
|
|
4076
|
+
args: filter,
|
|
4077
|
+
onLogs: (logs) => {
|
|
4078
|
+
logs.forEach((log) => {
|
|
4079
|
+
callback(log.args);
|
|
4080
|
+
});
|
|
4081
|
+
},
|
|
4082
|
+
});
|
|
4083
|
+
},
|
|
4084
|
+
/**
|
|
4085
|
+
* Watch AuthorizationUsed events
|
|
4086
|
+
* @param callback Function to call when event is emitted
|
|
4087
|
+
* @param filter Optional filter for indexed parameters
|
|
4088
|
+
* @returns Unwatch function to stop listening
|
|
4089
|
+
*/
|
|
4090
|
+
AuthorizationUsed: (callback, filter) => {
|
|
4091
|
+
return this.publicClient.watchContractEvent({
|
|
4092
|
+
address: this.contractAddress,
|
|
4093
|
+
abi: exports.AgoraDollarAbi,
|
|
4094
|
+
eventName: 'AuthorizationUsed',
|
|
4095
|
+
args: filter,
|
|
4096
|
+
onLogs: (logs) => {
|
|
4097
|
+
logs.forEach((log) => {
|
|
4098
|
+
callback(log.args);
|
|
4099
|
+
});
|
|
4100
|
+
},
|
|
4101
|
+
});
|
|
4102
|
+
},
|
|
4103
|
+
/**
|
|
4104
|
+
* Watch Burned events
|
|
4105
|
+
* @param callback Function to call when event is emitted
|
|
4106
|
+
* @param filter Optional filter for indexed parameters
|
|
4107
|
+
* @returns Unwatch function to stop listening
|
|
4108
|
+
*/
|
|
4109
|
+
Burned: (callback, filter) => {
|
|
4110
|
+
return this.publicClient.watchContractEvent({
|
|
4111
|
+
address: this.contractAddress,
|
|
4112
|
+
abi: exports.AgoraDollarAbi,
|
|
4113
|
+
eventName: 'Burned',
|
|
4114
|
+
args: filter,
|
|
4115
|
+
onLogs: (logs) => {
|
|
4116
|
+
logs.forEach((log) => {
|
|
4117
|
+
callback(log.args);
|
|
4118
|
+
});
|
|
4119
|
+
},
|
|
4120
|
+
});
|
|
4121
|
+
},
|
|
4122
|
+
/**
|
|
4123
|
+
* Watch Initialized events
|
|
4124
|
+
* @param callback Function to call when event is emitted
|
|
4125
|
+
* @param filter Optional filter for indexed parameters
|
|
4126
|
+
* @returns Unwatch function to stop listening
|
|
4127
|
+
*/
|
|
4128
|
+
Initialized: (callback) => {
|
|
4129
|
+
return this.publicClient.watchContractEvent({
|
|
4130
|
+
address: this.contractAddress,
|
|
4131
|
+
abi: exports.AgoraDollarAbi,
|
|
4132
|
+
eventName: 'Initialized',
|
|
4133
|
+
onLogs: (logs) => {
|
|
4134
|
+
logs.forEach((log) => {
|
|
4135
|
+
callback(log.args);
|
|
4136
|
+
});
|
|
4137
|
+
},
|
|
4138
|
+
});
|
|
4139
|
+
},
|
|
4140
|
+
/**
|
|
4141
|
+
* Watch MintRateLimitChanged events
|
|
4142
|
+
* @param callback Function to call when event is emitted
|
|
4143
|
+
* @param filter Optional filter for indexed parameters
|
|
4144
|
+
* @returns Unwatch function to stop listening
|
|
4145
|
+
*/
|
|
4146
|
+
MintRateLimitChanged: (callback) => {
|
|
4147
|
+
return this.publicClient.watchContractEvent({
|
|
4148
|
+
address: this.contractAddress,
|
|
4149
|
+
abi: exports.AgoraDollarAbi,
|
|
4150
|
+
eventName: 'MintRateLimitChanged',
|
|
4151
|
+
onLogs: (logs) => {
|
|
4152
|
+
logs.forEach((log) => {
|
|
4153
|
+
callback(log.args);
|
|
4154
|
+
});
|
|
4155
|
+
},
|
|
4156
|
+
});
|
|
4157
|
+
},
|
|
4158
|
+
/**
|
|
4159
|
+
* Watch Minted events
|
|
4160
|
+
* @param callback Function to call when event is emitted
|
|
4161
|
+
* @param filter Optional filter for indexed parameters
|
|
4162
|
+
* @returns Unwatch function to stop listening
|
|
4163
|
+
*/
|
|
4164
|
+
Minted: (callback, filter) => {
|
|
4165
|
+
return this.publicClient.watchContractEvent({
|
|
4166
|
+
address: this.contractAddress,
|
|
4167
|
+
abi: exports.AgoraDollarAbi,
|
|
4168
|
+
eventName: 'Minted',
|
|
4169
|
+
args: filter,
|
|
4170
|
+
onLogs: (logs) => {
|
|
4171
|
+
logs.forEach((log) => {
|
|
4172
|
+
callback(log.args);
|
|
4173
|
+
});
|
|
4174
|
+
},
|
|
4175
|
+
});
|
|
4176
|
+
},
|
|
4177
|
+
/**
|
|
4178
|
+
* Watch RoleAssigned events
|
|
4179
|
+
* @param callback Function to call when event is emitted
|
|
4180
|
+
* @param filter Optional filter for indexed parameters
|
|
4181
|
+
* @returns Unwatch function to stop listening
|
|
4182
|
+
*/
|
|
4183
|
+
RoleAssigned: (callback, filter) => {
|
|
4184
|
+
return this.publicClient.watchContractEvent({
|
|
4185
|
+
address: this.contractAddress,
|
|
4186
|
+
abi: exports.AgoraDollarAbi,
|
|
4187
|
+
eventName: 'RoleAssigned',
|
|
4188
|
+
args: filter,
|
|
4189
|
+
onLogs: (logs) => {
|
|
4190
|
+
logs.forEach((log) => {
|
|
4191
|
+
callback(log.args);
|
|
4192
|
+
});
|
|
4193
|
+
},
|
|
4194
|
+
});
|
|
4195
|
+
},
|
|
4196
|
+
/**
|
|
4197
|
+
* Watch RoleRevoked events
|
|
4198
|
+
* @param callback Function to call when event is emitted
|
|
4199
|
+
* @param filter Optional filter for indexed parameters
|
|
4200
|
+
* @returns Unwatch function to stop listening
|
|
4201
|
+
*/
|
|
4202
|
+
RoleRevoked: (callback, filter) => {
|
|
4203
|
+
return this.publicClient.watchContractEvent({
|
|
4204
|
+
address: this.contractAddress,
|
|
4205
|
+
abi: exports.AgoraDollarAbi,
|
|
4206
|
+
eventName: 'RoleRevoked',
|
|
4207
|
+
args: filter,
|
|
4208
|
+
onLogs: (logs) => {
|
|
4209
|
+
logs.forEach((log) => {
|
|
4210
|
+
callback(log.args);
|
|
4211
|
+
});
|
|
4212
|
+
},
|
|
4213
|
+
});
|
|
4214
|
+
},
|
|
4215
|
+
/**
|
|
4216
|
+
* Watch SetIsBridgingPaused events
|
|
4217
|
+
* @param callback Function to call when event is emitted
|
|
4218
|
+
* @param filter Optional filter for indexed parameters
|
|
4219
|
+
* @returns Unwatch function to stop listening
|
|
4220
|
+
*/
|
|
4221
|
+
SetIsBridgingPaused: (callback) => {
|
|
4222
|
+
return this.publicClient.watchContractEvent({
|
|
4223
|
+
address: this.contractAddress,
|
|
4224
|
+
abi: exports.AgoraDollarAbi,
|
|
4225
|
+
eventName: 'SetIsBridgingPaused',
|
|
4226
|
+
onLogs: (logs) => {
|
|
4227
|
+
logs.forEach((log) => {
|
|
4228
|
+
callback(log.args);
|
|
4229
|
+
});
|
|
4230
|
+
},
|
|
4231
|
+
});
|
|
4232
|
+
},
|
|
4233
|
+
/**
|
|
4234
|
+
* Watch SetIsBurnFromPaused events
|
|
4235
|
+
* @param callback Function to call when event is emitted
|
|
4236
|
+
* @param filter Optional filter for indexed parameters
|
|
4237
|
+
* @returns Unwatch function to stop listening
|
|
4238
|
+
*/
|
|
4239
|
+
SetIsBurnFromPaused: (callback) => {
|
|
4240
|
+
return this.publicClient.watchContractEvent({
|
|
4241
|
+
address: this.contractAddress,
|
|
4242
|
+
abi: exports.AgoraDollarAbi,
|
|
4243
|
+
eventName: 'SetIsBurnFromPaused',
|
|
4244
|
+
onLogs: (logs) => {
|
|
4245
|
+
logs.forEach((log) => {
|
|
4246
|
+
callback(log.args);
|
|
4247
|
+
});
|
|
4248
|
+
},
|
|
4249
|
+
});
|
|
4250
|
+
},
|
|
4251
|
+
/**
|
|
4252
|
+
* Watch SetIsFreezingPaused events
|
|
4253
|
+
* @param callback Function to call when event is emitted
|
|
4254
|
+
* @param filter Optional filter for indexed parameters
|
|
4255
|
+
* @returns Unwatch function to stop listening
|
|
4256
|
+
*/
|
|
4257
|
+
SetIsFreezingPaused: (callback) => {
|
|
4258
|
+
return this.publicClient.watchContractEvent({
|
|
4259
|
+
address: this.contractAddress,
|
|
4260
|
+
abi: exports.AgoraDollarAbi,
|
|
4261
|
+
eventName: 'SetIsFreezingPaused',
|
|
4262
|
+
onLogs: (logs) => {
|
|
4263
|
+
logs.forEach((log) => {
|
|
4264
|
+
callback(log.args);
|
|
4265
|
+
});
|
|
4266
|
+
},
|
|
4267
|
+
});
|
|
4268
|
+
},
|
|
4269
|
+
/**
|
|
4270
|
+
* Watch SetIsMintPaused events
|
|
4271
|
+
* @param callback Function to call when event is emitted
|
|
4272
|
+
* @param filter Optional filter for indexed parameters
|
|
4273
|
+
* @returns Unwatch function to stop listening
|
|
4274
|
+
*/
|
|
4275
|
+
SetIsMintPaused: (callback) => {
|
|
4276
|
+
return this.publicClient.watchContractEvent({
|
|
4277
|
+
address: this.contractAddress,
|
|
4278
|
+
abi: exports.AgoraDollarAbi,
|
|
4279
|
+
eventName: 'SetIsMintPaused',
|
|
4280
|
+
onLogs: (logs) => {
|
|
4281
|
+
logs.forEach((log) => {
|
|
4282
|
+
callback(log.args);
|
|
4283
|
+
});
|
|
4284
|
+
},
|
|
4285
|
+
});
|
|
4286
|
+
},
|
|
4287
|
+
/**
|
|
4288
|
+
* Watch SetIsMsgSenderCheckEnabled events
|
|
4289
|
+
* @param callback Function to call when event is emitted
|
|
4290
|
+
* @param filter Optional filter for indexed parameters
|
|
4291
|
+
* @returns Unwatch function to stop listening
|
|
4292
|
+
*/
|
|
4293
|
+
SetIsMsgSenderCheckEnabled: (callback) => {
|
|
4294
|
+
return this.publicClient.watchContractEvent({
|
|
4295
|
+
address: this.contractAddress,
|
|
4296
|
+
abi: exports.AgoraDollarAbi,
|
|
4297
|
+
eventName: 'SetIsMsgSenderCheckEnabled',
|
|
4298
|
+
onLogs: (logs) => {
|
|
4299
|
+
logs.forEach((log) => {
|
|
4300
|
+
callback(log.args);
|
|
4301
|
+
});
|
|
4302
|
+
},
|
|
4303
|
+
});
|
|
4304
|
+
},
|
|
4305
|
+
/**
|
|
4306
|
+
* Watch SetIsReceiveWithAuthorizationUpgraded events
|
|
4307
|
+
* @param callback Function to call when event is emitted
|
|
4308
|
+
* @param filter Optional filter for indexed parameters
|
|
4309
|
+
* @returns Unwatch function to stop listening
|
|
4310
|
+
*/
|
|
4311
|
+
SetIsReceiveWithAuthorizationUpgraded: (callback) => {
|
|
4312
|
+
return this.publicClient.watchContractEvent({
|
|
4313
|
+
address: this.contractAddress,
|
|
4314
|
+
abi: exports.AgoraDollarAbi,
|
|
4315
|
+
eventName: 'SetIsReceiveWithAuthorizationUpgraded',
|
|
4316
|
+
onLogs: (logs) => {
|
|
4317
|
+
logs.forEach((log) => {
|
|
4318
|
+
callback(log.args);
|
|
4319
|
+
});
|
|
4320
|
+
},
|
|
4321
|
+
});
|
|
4322
|
+
},
|
|
4323
|
+
/**
|
|
4324
|
+
* Watch SetIsSignatureVerificationPaused events
|
|
4325
|
+
* @param callback Function to call when event is emitted
|
|
4326
|
+
* @param filter Optional filter for indexed parameters
|
|
4327
|
+
* @returns Unwatch function to stop listening
|
|
4328
|
+
*/
|
|
4329
|
+
SetIsSignatureVerificationPaused: (callback) => {
|
|
4330
|
+
return this.publicClient.watchContractEvent({
|
|
4331
|
+
address: this.contractAddress,
|
|
4332
|
+
abi: exports.AgoraDollarAbi,
|
|
4333
|
+
eventName: 'SetIsSignatureVerificationPaused',
|
|
4334
|
+
onLogs: (logs) => {
|
|
4335
|
+
logs.forEach((log) => {
|
|
4336
|
+
callback(log.args);
|
|
4337
|
+
});
|
|
4338
|
+
},
|
|
4339
|
+
});
|
|
4340
|
+
},
|
|
4341
|
+
/**
|
|
4342
|
+
* Watch SetIsTransferFromUpgraded events
|
|
4343
|
+
* @param callback Function to call when event is emitted
|
|
4344
|
+
* @param filter Optional filter for indexed parameters
|
|
4345
|
+
* @returns Unwatch function to stop listening
|
|
4346
|
+
*/
|
|
4347
|
+
SetIsTransferFromUpgraded: (callback) => {
|
|
4348
|
+
return this.publicClient.watchContractEvent({
|
|
4349
|
+
address: this.contractAddress,
|
|
4350
|
+
abi: exports.AgoraDollarAbi,
|
|
4351
|
+
eventName: 'SetIsTransferFromUpgraded',
|
|
4352
|
+
onLogs: (logs) => {
|
|
4353
|
+
logs.forEach((log) => {
|
|
4354
|
+
callback(log.args);
|
|
4355
|
+
});
|
|
4356
|
+
},
|
|
4357
|
+
});
|
|
4358
|
+
},
|
|
4359
|
+
/**
|
|
4360
|
+
* Watch SetIsTransferPaused events
|
|
4361
|
+
* @param callback Function to call when event is emitted
|
|
4362
|
+
* @param filter Optional filter for indexed parameters
|
|
4363
|
+
* @returns Unwatch function to stop listening
|
|
4364
|
+
*/
|
|
4365
|
+
SetIsTransferPaused: (callback) => {
|
|
4366
|
+
return this.publicClient.watchContractEvent({
|
|
4367
|
+
address: this.contractAddress,
|
|
4368
|
+
abi: exports.AgoraDollarAbi,
|
|
4369
|
+
eventName: 'SetIsTransferPaused',
|
|
4370
|
+
onLogs: (logs) => {
|
|
4371
|
+
logs.forEach((log) => {
|
|
4372
|
+
callback(log.args);
|
|
4373
|
+
});
|
|
4374
|
+
},
|
|
4375
|
+
});
|
|
4376
|
+
},
|
|
4377
|
+
/**
|
|
4378
|
+
* Watch SetIsTransferUpgraded events
|
|
4379
|
+
* @param callback Function to call when event is emitted
|
|
4380
|
+
* @param filter Optional filter for indexed parameters
|
|
4381
|
+
* @returns Unwatch function to stop listening
|
|
4382
|
+
*/
|
|
4383
|
+
SetIsTransferUpgraded: (callback) => {
|
|
4384
|
+
return this.publicClient.watchContractEvent({
|
|
4385
|
+
address: this.contractAddress,
|
|
4386
|
+
abi: exports.AgoraDollarAbi,
|
|
4387
|
+
eventName: 'SetIsTransferUpgraded',
|
|
4388
|
+
onLogs: (logs) => {
|
|
4389
|
+
logs.forEach((log) => {
|
|
4390
|
+
callback(log.args);
|
|
4391
|
+
});
|
|
4392
|
+
},
|
|
4393
|
+
});
|
|
4394
|
+
},
|
|
4395
|
+
/**
|
|
4396
|
+
* Watch SetIsTransferWithAuthorizationUpgraded events
|
|
4397
|
+
* @param callback Function to call when event is emitted
|
|
4398
|
+
* @param filter Optional filter for indexed parameters
|
|
4399
|
+
* @returns Unwatch function to stop listening
|
|
4400
|
+
*/
|
|
4401
|
+
SetIsTransferWithAuthorizationUpgraded: (callback) => {
|
|
4402
|
+
return this.publicClient.watchContractEvent({
|
|
4403
|
+
address: this.contractAddress,
|
|
4404
|
+
abi: exports.AgoraDollarAbi,
|
|
4405
|
+
eventName: 'SetIsTransferWithAuthorizationUpgraded',
|
|
4406
|
+
onLogs: (logs) => {
|
|
4407
|
+
logs.forEach((log) => {
|
|
4408
|
+
callback(log.args);
|
|
4409
|
+
});
|
|
4410
|
+
},
|
|
4411
|
+
});
|
|
4412
|
+
},
|
|
4413
|
+
/**
|
|
4414
|
+
* Watch Transfer events
|
|
4415
|
+
* @param callback Function to call when event is emitted
|
|
4416
|
+
* @param filter Optional filter for indexed parameters
|
|
4417
|
+
* @returns Unwatch function to stop listening
|
|
4418
|
+
*/
|
|
4419
|
+
Transfer: (callback, filter) => {
|
|
4420
|
+
return this.publicClient.watchContractEvent({
|
|
4421
|
+
address: this.contractAddress,
|
|
4422
|
+
abi: exports.AgoraDollarAbi,
|
|
4423
|
+
eventName: 'Transfer',
|
|
4424
|
+
args: filter,
|
|
4425
|
+
onLogs: (logs) => {
|
|
4426
|
+
logs.forEach((log) => {
|
|
4427
|
+
callback(log.args);
|
|
4428
|
+
});
|
|
4429
|
+
},
|
|
4430
|
+
});
|
|
4431
|
+
}
|
|
4432
|
+
};
|
|
4433
|
+
}
|
|
4434
|
+
}
|
|
4435
|
+
exports.AgoraDollar = AgoraDollar;
|