@gitmyabi/arss 0.0.0-stage → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +107 -2
- package/contracts/ERC1967Proxy.d.ts +144 -0
- package/contracts/ERC1967Proxy.js +180 -0
- package/contracts/ERC1967Proxy.ts +209 -0
- package/contracts/Stablecoin.d.ts +2043 -0
- package/contracts/Stablecoin.js +2217 -0
- package/contracts/Stablecoin.ts +2719 -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 +40 -3
|
@@ -0,0 +1,2043 @@
|
|
|
1
|
+
import type { Address, PublicClient, WalletClient } from 'viem';
|
|
2
|
+
/**
|
|
3
|
+
* Stablecoin.MinterInfo struct type
|
|
4
|
+
*/
|
|
5
|
+
export type Stablecoin_MinterInfo = {
|
|
6
|
+
minter: `0x${string}`;
|
|
7
|
+
allowance: bigint;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Stablecoin ABI
|
|
11
|
+
*
|
|
12
|
+
* This ABI is typed using viem's type system for full type safety.
|
|
13
|
+
*/
|
|
14
|
+
export declare const StablecoinAbi: readonly [{
|
|
15
|
+
readonly inputs: readonly [];
|
|
16
|
+
readonly stateMutability: "nonpayable";
|
|
17
|
+
readonly type: "constructor";
|
|
18
|
+
}, {
|
|
19
|
+
readonly inputs: readonly [];
|
|
20
|
+
readonly name: "AccessControlBadConfirmation";
|
|
21
|
+
readonly type: "error";
|
|
22
|
+
}, {
|
|
23
|
+
readonly inputs: readonly [{
|
|
24
|
+
readonly internalType: "address";
|
|
25
|
+
readonly name: "account";
|
|
26
|
+
readonly type: "address";
|
|
27
|
+
}, {
|
|
28
|
+
readonly internalType: "bytes32";
|
|
29
|
+
readonly name: "neededRole";
|
|
30
|
+
readonly type: "bytes32";
|
|
31
|
+
}];
|
|
32
|
+
readonly name: "AccessControlUnauthorizedAccount";
|
|
33
|
+
readonly type: "error";
|
|
34
|
+
}, {
|
|
35
|
+
readonly inputs: readonly [{
|
|
36
|
+
readonly internalType: "address";
|
|
37
|
+
readonly name: "account";
|
|
38
|
+
readonly type: "address";
|
|
39
|
+
}];
|
|
40
|
+
readonly name: "AccountIsFrozen";
|
|
41
|
+
readonly type: "error";
|
|
42
|
+
}, {
|
|
43
|
+
readonly inputs: readonly [{
|
|
44
|
+
readonly internalType: "address";
|
|
45
|
+
readonly name: "target";
|
|
46
|
+
readonly type: "address";
|
|
47
|
+
}];
|
|
48
|
+
readonly name: "AddressEmptyCode";
|
|
49
|
+
readonly type: "error";
|
|
50
|
+
}, {
|
|
51
|
+
readonly inputs: readonly [];
|
|
52
|
+
readonly name: "AdminRoleCannotBeEmpty";
|
|
53
|
+
readonly type: "error";
|
|
54
|
+
}, {
|
|
55
|
+
readonly inputs: readonly [{
|
|
56
|
+
readonly internalType: "address";
|
|
57
|
+
readonly name: "implementation";
|
|
58
|
+
readonly type: "address";
|
|
59
|
+
}];
|
|
60
|
+
readonly name: "ERC1967InvalidImplementation";
|
|
61
|
+
readonly type: "error";
|
|
62
|
+
}, {
|
|
63
|
+
readonly inputs: readonly [];
|
|
64
|
+
readonly name: "ERC1967NonPayable";
|
|
65
|
+
readonly type: "error";
|
|
66
|
+
}, {
|
|
67
|
+
readonly inputs: readonly [{
|
|
68
|
+
readonly internalType: "address";
|
|
69
|
+
readonly name: "spender";
|
|
70
|
+
readonly type: "address";
|
|
71
|
+
}, {
|
|
72
|
+
readonly internalType: "uint256";
|
|
73
|
+
readonly name: "allowance";
|
|
74
|
+
readonly type: "uint256";
|
|
75
|
+
}, {
|
|
76
|
+
readonly internalType: "uint256";
|
|
77
|
+
readonly name: "needed";
|
|
78
|
+
readonly type: "uint256";
|
|
79
|
+
}];
|
|
80
|
+
readonly name: "ERC20InsufficientAllowance";
|
|
81
|
+
readonly type: "error";
|
|
82
|
+
}, {
|
|
83
|
+
readonly inputs: readonly [{
|
|
84
|
+
readonly internalType: "address";
|
|
85
|
+
readonly name: "sender";
|
|
86
|
+
readonly type: "address";
|
|
87
|
+
}, {
|
|
88
|
+
readonly internalType: "uint256";
|
|
89
|
+
readonly name: "balance";
|
|
90
|
+
readonly type: "uint256";
|
|
91
|
+
}, {
|
|
92
|
+
readonly internalType: "uint256";
|
|
93
|
+
readonly name: "needed";
|
|
94
|
+
readonly type: "uint256";
|
|
95
|
+
}];
|
|
96
|
+
readonly name: "ERC20InsufficientBalance";
|
|
97
|
+
readonly type: "error";
|
|
98
|
+
}, {
|
|
99
|
+
readonly inputs: readonly [{
|
|
100
|
+
readonly internalType: "address";
|
|
101
|
+
readonly name: "approver";
|
|
102
|
+
readonly type: "address";
|
|
103
|
+
}];
|
|
104
|
+
readonly name: "ERC20InvalidApprover";
|
|
105
|
+
readonly type: "error";
|
|
106
|
+
}, {
|
|
107
|
+
readonly inputs: readonly [{
|
|
108
|
+
readonly internalType: "address";
|
|
109
|
+
readonly name: "receiver";
|
|
110
|
+
readonly type: "address";
|
|
111
|
+
}];
|
|
112
|
+
readonly name: "ERC20InvalidReceiver";
|
|
113
|
+
readonly type: "error";
|
|
114
|
+
}, {
|
|
115
|
+
readonly inputs: readonly [{
|
|
116
|
+
readonly internalType: "address";
|
|
117
|
+
readonly name: "sender";
|
|
118
|
+
readonly type: "address";
|
|
119
|
+
}];
|
|
120
|
+
readonly name: "ERC20InvalidSender";
|
|
121
|
+
readonly type: "error";
|
|
122
|
+
}, {
|
|
123
|
+
readonly inputs: readonly [{
|
|
124
|
+
readonly internalType: "address";
|
|
125
|
+
readonly name: "spender";
|
|
126
|
+
readonly type: "address";
|
|
127
|
+
}];
|
|
128
|
+
readonly name: "ERC20InvalidSpender";
|
|
129
|
+
readonly type: "error";
|
|
130
|
+
}, {
|
|
131
|
+
readonly inputs: readonly [];
|
|
132
|
+
readonly name: "EnforcedPause";
|
|
133
|
+
readonly type: "error";
|
|
134
|
+
}, {
|
|
135
|
+
readonly inputs: readonly [];
|
|
136
|
+
readonly name: "ExpectedPause";
|
|
137
|
+
readonly type: "error";
|
|
138
|
+
}, {
|
|
139
|
+
readonly inputs: readonly [];
|
|
140
|
+
readonly name: "FailedCall";
|
|
141
|
+
readonly type: "error";
|
|
142
|
+
}, {
|
|
143
|
+
readonly inputs: readonly [];
|
|
144
|
+
readonly name: "InvalidInitialization";
|
|
145
|
+
readonly type: "error";
|
|
146
|
+
}, {
|
|
147
|
+
readonly inputs: readonly [{
|
|
148
|
+
readonly internalType: "address";
|
|
149
|
+
readonly name: "minter";
|
|
150
|
+
readonly type: "address";
|
|
151
|
+
}];
|
|
152
|
+
readonly name: "MinterAlreadyExists";
|
|
153
|
+
readonly type: "error";
|
|
154
|
+
}, {
|
|
155
|
+
readonly inputs: readonly [{
|
|
156
|
+
readonly internalType: "address";
|
|
157
|
+
readonly name: "minter";
|
|
158
|
+
readonly type: "address";
|
|
159
|
+
}];
|
|
160
|
+
readonly name: "MinterDoesNotExist";
|
|
161
|
+
readonly type: "error";
|
|
162
|
+
}, {
|
|
163
|
+
readonly inputs: readonly [{
|
|
164
|
+
readonly internalType: "address";
|
|
165
|
+
readonly name: "impl";
|
|
166
|
+
readonly type: "address";
|
|
167
|
+
}];
|
|
168
|
+
readonly name: "NotAContract";
|
|
169
|
+
readonly type: "error";
|
|
170
|
+
}, {
|
|
171
|
+
readonly inputs: readonly [{
|
|
172
|
+
readonly internalType: "address";
|
|
173
|
+
readonly name: "account";
|
|
174
|
+
readonly type: "address";
|
|
175
|
+
}];
|
|
176
|
+
readonly name: "NotAnAdmin";
|
|
177
|
+
readonly type: "error";
|
|
178
|
+
}, {
|
|
179
|
+
readonly inputs: readonly [];
|
|
180
|
+
readonly name: "NotInitializing";
|
|
181
|
+
readonly type: "error";
|
|
182
|
+
}, {
|
|
183
|
+
readonly inputs: readonly [];
|
|
184
|
+
readonly name: "UUPSUnauthorizedCallContext";
|
|
185
|
+
readonly type: "error";
|
|
186
|
+
}, {
|
|
187
|
+
readonly inputs: readonly [{
|
|
188
|
+
readonly internalType: "bytes32";
|
|
189
|
+
readonly name: "slot";
|
|
190
|
+
readonly type: "bytes32";
|
|
191
|
+
}];
|
|
192
|
+
readonly name: "UUPSUnsupportedProxiableUUID";
|
|
193
|
+
readonly type: "error";
|
|
194
|
+
}, {
|
|
195
|
+
readonly inputs: readonly [{
|
|
196
|
+
readonly internalType: "uint256";
|
|
197
|
+
readonly name: "requested";
|
|
198
|
+
readonly type: "uint256";
|
|
199
|
+
}, {
|
|
200
|
+
readonly internalType: "uint256";
|
|
201
|
+
readonly name: "allowance";
|
|
202
|
+
readonly type: "uint256";
|
|
203
|
+
}];
|
|
204
|
+
readonly name: "ValueExceedsAllowance";
|
|
205
|
+
readonly type: "error";
|
|
206
|
+
}, {
|
|
207
|
+
readonly inputs: readonly [{
|
|
208
|
+
readonly internalType: "bytes32";
|
|
209
|
+
readonly name: "role";
|
|
210
|
+
readonly type: "bytes32";
|
|
211
|
+
}];
|
|
212
|
+
readonly name: "ZeroAddress";
|
|
213
|
+
readonly type: "error";
|
|
214
|
+
}, {
|
|
215
|
+
readonly anonymous: false;
|
|
216
|
+
readonly inputs: readonly [{
|
|
217
|
+
readonly indexed: true;
|
|
218
|
+
readonly internalType: "address";
|
|
219
|
+
readonly name: "account";
|
|
220
|
+
readonly type: "address";
|
|
221
|
+
}];
|
|
222
|
+
readonly name: "AccountFrozen";
|
|
223
|
+
readonly type: "event";
|
|
224
|
+
}, {
|
|
225
|
+
readonly anonymous: false;
|
|
226
|
+
readonly inputs: readonly [{
|
|
227
|
+
readonly indexed: true;
|
|
228
|
+
readonly internalType: "address";
|
|
229
|
+
readonly name: "account";
|
|
230
|
+
readonly type: "address";
|
|
231
|
+
}];
|
|
232
|
+
readonly name: "AccountUnfrozen";
|
|
233
|
+
readonly type: "event";
|
|
234
|
+
}, {
|
|
235
|
+
readonly anonymous: false;
|
|
236
|
+
readonly inputs: readonly [{
|
|
237
|
+
readonly indexed: true;
|
|
238
|
+
readonly internalType: "address";
|
|
239
|
+
readonly name: "owner";
|
|
240
|
+
readonly type: "address";
|
|
241
|
+
}, {
|
|
242
|
+
readonly indexed: true;
|
|
243
|
+
readonly internalType: "address";
|
|
244
|
+
readonly name: "spender";
|
|
245
|
+
readonly type: "address";
|
|
246
|
+
}, {
|
|
247
|
+
readonly indexed: false;
|
|
248
|
+
readonly internalType: "uint256";
|
|
249
|
+
readonly name: "value";
|
|
250
|
+
readonly type: "uint256";
|
|
251
|
+
}];
|
|
252
|
+
readonly name: "Approval";
|
|
253
|
+
readonly type: "event";
|
|
254
|
+
}, {
|
|
255
|
+
readonly anonymous: false;
|
|
256
|
+
readonly inputs: readonly [{
|
|
257
|
+
readonly indexed: false;
|
|
258
|
+
readonly internalType: "uint64";
|
|
259
|
+
readonly name: "version";
|
|
260
|
+
readonly type: "uint64";
|
|
261
|
+
}];
|
|
262
|
+
readonly name: "Initialized";
|
|
263
|
+
readonly type: "event";
|
|
264
|
+
}, {
|
|
265
|
+
readonly anonymous: false;
|
|
266
|
+
readonly inputs: readonly [{
|
|
267
|
+
readonly indexed: true;
|
|
268
|
+
readonly internalType: "address";
|
|
269
|
+
readonly name: "minter";
|
|
270
|
+
readonly type: "address";
|
|
271
|
+
}, {
|
|
272
|
+
readonly indexed: false;
|
|
273
|
+
readonly internalType: "uint256";
|
|
274
|
+
readonly name: "allowance";
|
|
275
|
+
readonly type: "uint256";
|
|
276
|
+
}];
|
|
277
|
+
readonly name: "MinterAdded";
|
|
278
|
+
readonly type: "event";
|
|
279
|
+
}, {
|
|
280
|
+
readonly anonymous: false;
|
|
281
|
+
readonly inputs: readonly [{
|
|
282
|
+
readonly indexed: true;
|
|
283
|
+
readonly internalType: "address";
|
|
284
|
+
readonly name: "minter";
|
|
285
|
+
readonly type: "address";
|
|
286
|
+
}, {
|
|
287
|
+
readonly indexed: false;
|
|
288
|
+
readonly internalType: "uint256";
|
|
289
|
+
readonly name: "oldAllowance";
|
|
290
|
+
readonly type: "uint256";
|
|
291
|
+
}, {
|
|
292
|
+
readonly indexed: false;
|
|
293
|
+
readonly internalType: "uint256";
|
|
294
|
+
readonly name: "newAllowance";
|
|
295
|
+
readonly type: "uint256";
|
|
296
|
+
}];
|
|
297
|
+
readonly name: "MinterAllowanceChanged";
|
|
298
|
+
readonly type: "event";
|
|
299
|
+
}, {
|
|
300
|
+
readonly anonymous: false;
|
|
301
|
+
readonly inputs: readonly [{
|
|
302
|
+
readonly indexed: true;
|
|
303
|
+
readonly internalType: "address";
|
|
304
|
+
readonly name: "minter";
|
|
305
|
+
readonly type: "address";
|
|
306
|
+
}];
|
|
307
|
+
readonly name: "MinterRemoved";
|
|
308
|
+
readonly type: "event";
|
|
309
|
+
}, {
|
|
310
|
+
readonly anonymous: false;
|
|
311
|
+
readonly inputs: readonly [{
|
|
312
|
+
readonly indexed: false;
|
|
313
|
+
readonly internalType: "address";
|
|
314
|
+
readonly name: "account";
|
|
315
|
+
readonly type: "address";
|
|
316
|
+
}];
|
|
317
|
+
readonly name: "Paused";
|
|
318
|
+
readonly type: "event";
|
|
319
|
+
}, {
|
|
320
|
+
readonly anonymous: false;
|
|
321
|
+
readonly inputs: readonly [{
|
|
322
|
+
readonly indexed: true;
|
|
323
|
+
readonly internalType: "bytes32";
|
|
324
|
+
readonly name: "role";
|
|
325
|
+
readonly type: "bytes32";
|
|
326
|
+
}, {
|
|
327
|
+
readonly indexed: true;
|
|
328
|
+
readonly internalType: "bytes32";
|
|
329
|
+
readonly name: "previousAdminRole";
|
|
330
|
+
readonly type: "bytes32";
|
|
331
|
+
}, {
|
|
332
|
+
readonly indexed: true;
|
|
333
|
+
readonly internalType: "bytes32";
|
|
334
|
+
readonly name: "newAdminRole";
|
|
335
|
+
readonly type: "bytes32";
|
|
336
|
+
}];
|
|
337
|
+
readonly name: "RoleAdminChanged";
|
|
338
|
+
readonly type: "event";
|
|
339
|
+
}, {
|
|
340
|
+
readonly anonymous: false;
|
|
341
|
+
readonly inputs: readonly [{
|
|
342
|
+
readonly indexed: true;
|
|
343
|
+
readonly internalType: "bytes32";
|
|
344
|
+
readonly name: "role";
|
|
345
|
+
readonly type: "bytes32";
|
|
346
|
+
}, {
|
|
347
|
+
readonly indexed: true;
|
|
348
|
+
readonly internalType: "address";
|
|
349
|
+
readonly name: "account";
|
|
350
|
+
readonly type: "address";
|
|
351
|
+
}, {
|
|
352
|
+
readonly indexed: true;
|
|
353
|
+
readonly internalType: "address";
|
|
354
|
+
readonly name: "sender";
|
|
355
|
+
readonly type: "address";
|
|
356
|
+
}];
|
|
357
|
+
readonly name: "RoleGranted";
|
|
358
|
+
readonly type: "event";
|
|
359
|
+
}, {
|
|
360
|
+
readonly anonymous: false;
|
|
361
|
+
readonly inputs: readonly [{
|
|
362
|
+
readonly indexed: true;
|
|
363
|
+
readonly internalType: "bytes32";
|
|
364
|
+
readonly name: "role";
|
|
365
|
+
readonly type: "bytes32";
|
|
366
|
+
}, {
|
|
367
|
+
readonly indexed: true;
|
|
368
|
+
readonly internalType: "address";
|
|
369
|
+
readonly name: "account";
|
|
370
|
+
readonly type: "address";
|
|
371
|
+
}, {
|
|
372
|
+
readonly indexed: true;
|
|
373
|
+
readonly internalType: "address";
|
|
374
|
+
readonly name: "sender";
|
|
375
|
+
readonly type: "address";
|
|
376
|
+
}];
|
|
377
|
+
readonly name: "RoleRevoked";
|
|
378
|
+
readonly type: "event";
|
|
379
|
+
}, {
|
|
380
|
+
readonly anonymous: false;
|
|
381
|
+
readonly inputs: readonly [{
|
|
382
|
+
readonly indexed: true;
|
|
383
|
+
readonly internalType: "address";
|
|
384
|
+
readonly name: "from";
|
|
385
|
+
readonly type: "address";
|
|
386
|
+
}, {
|
|
387
|
+
readonly indexed: true;
|
|
388
|
+
readonly internalType: "address";
|
|
389
|
+
readonly name: "to";
|
|
390
|
+
readonly type: "address";
|
|
391
|
+
}, {
|
|
392
|
+
readonly indexed: false;
|
|
393
|
+
readonly internalType: "uint256";
|
|
394
|
+
readonly name: "value";
|
|
395
|
+
readonly type: "uint256";
|
|
396
|
+
}];
|
|
397
|
+
readonly name: "Transfer";
|
|
398
|
+
readonly type: "event";
|
|
399
|
+
}, {
|
|
400
|
+
readonly anonymous: false;
|
|
401
|
+
readonly inputs: readonly [{
|
|
402
|
+
readonly indexed: false;
|
|
403
|
+
readonly internalType: "address";
|
|
404
|
+
readonly name: "account";
|
|
405
|
+
readonly type: "address";
|
|
406
|
+
}];
|
|
407
|
+
readonly name: "Unpaused";
|
|
408
|
+
readonly type: "event";
|
|
409
|
+
}, {
|
|
410
|
+
readonly anonymous: false;
|
|
411
|
+
readonly inputs: readonly [{
|
|
412
|
+
readonly indexed: true;
|
|
413
|
+
readonly internalType: "address";
|
|
414
|
+
readonly name: "implementation";
|
|
415
|
+
readonly type: "address";
|
|
416
|
+
}];
|
|
417
|
+
readonly name: "Upgraded";
|
|
418
|
+
readonly type: "event";
|
|
419
|
+
}, {
|
|
420
|
+
readonly inputs: readonly [];
|
|
421
|
+
readonly name: "ADMIN_ROLE";
|
|
422
|
+
readonly outputs: readonly [{
|
|
423
|
+
readonly internalType: "bytes32";
|
|
424
|
+
readonly name: "";
|
|
425
|
+
readonly type: "bytes32";
|
|
426
|
+
}];
|
|
427
|
+
readonly stateMutability: "view";
|
|
428
|
+
readonly type: "function";
|
|
429
|
+
}, {
|
|
430
|
+
readonly inputs: readonly [];
|
|
431
|
+
readonly name: "BURNER_ROLE";
|
|
432
|
+
readonly outputs: readonly [{
|
|
433
|
+
readonly internalType: "bytes32";
|
|
434
|
+
readonly name: "";
|
|
435
|
+
readonly type: "bytes32";
|
|
436
|
+
}];
|
|
437
|
+
readonly stateMutability: "view";
|
|
438
|
+
readonly type: "function";
|
|
439
|
+
}, {
|
|
440
|
+
readonly inputs: readonly [];
|
|
441
|
+
readonly name: "DEFAULT_ADMIN_ROLE";
|
|
442
|
+
readonly outputs: readonly [{
|
|
443
|
+
readonly internalType: "bytes32";
|
|
444
|
+
readonly name: "";
|
|
445
|
+
readonly type: "bytes32";
|
|
446
|
+
}];
|
|
447
|
+
readonly stateMutability: "view";
|
|
448
|
+
readonly type: "function";
|
|
449
|
+
}, {
|
|
450
|
+
readonly inputs: readonly [];
|
|
451
|
+
readonly name: "FREEZER_ROLE";
|
|
452
|
+
readonly outputs: readonly [{
|
|
453
|
+
readonly internalType: "bytes32";
|
|
454
|
+
readonly name: "";
|
|
455
|
+
readonly type: "bytes32";
|
|
456
|
+
}];
|
|
457
|
+
readonly stateMutability: "view";
|
|
458
|
+
readonly type: "function";
|
|
459
|
+
}, {
|
|
460
|
+
readonly inputs: readonly [];
|
|
461
|
+
readonly name: "MINTER_ROLE";
|
|
462
|
+
readonly outputs: readonly [{
|
|
463
|
+
readonly internalType: "bytes32";
|
|
464
|
+
readonly name: "";
|
|
465
|
+
readonly type: "bytes32";
|
|
466
|
+
}];
|
|
467
|
+
readonly stateMutability: "view";
|
|
468
|
+
readonly type: "function";
|
|
469
|
+
}, {
|
|
470
|
+
readonly inputs: readonly [];
|
|
471
|
+
readonly name: "PAUSER_ROLE";
|
|
472
|
+
readonly outputs: readonly [{
|
|
473
|
+
readonly internalType: "bytes32";
|
|
474
|
+
readonly name: "";
|
|
475
|
+
readonly type: "bytes32";
|
|
476
|
+
}];
|
|
477
|
+
readonly stateMutability: "view";
|
|
478
|
+
readonly type: "function";
|
|
479
|
+
}, {
|
|
480
|
+
readonly inputs: readonly [];
|
|
481
|
+
readonly name: "UPGRADE_INTERFACE_VERSION";
|
|
482
|
+
readonly outputs: readonly [{
|
|
483
|
+
readonly internalType: "string";
|
|
484
|
+
readonly name: "";
|
|
485
|
+
readonly type: "string";
|
|
486
|
+
}];
|
|
487
|
+
readonly stateMutability: "view";
|
|
488
|
+
readonly type: "function";
|
|
489
|
+
}, {
|
|
490
|
+
readonly inputs: readonly [{
|
|
491
|
+
readonly internalType: "address";
|
|
492
|
+
readonly name: "newMinter";
|
|
493
|
+
readonly type: "address";
|
|
494
|
+
}, {
|
|
495
|
+
readonly internalType: "uint256";
|
|
496
|
+
readonly name: "allowance";
|
|
497
|
+
readonly type: "uint256";
|
|
498
|
+
}];
|
|
499
|
+
readonly name: "addMinter";
|
|
500
|
+
readonly outputs: readonly [];
|
|
501
|
+
readonly stateMutability: "nonpayable";
|
|
502
|
+
readonly type: "function";
|
|
503
|
+
}, {
|
|
504
|
+
readonly inputs: readonly [{
|
|
505
|
+
readonly internalType: "address";
|
|
506
|
+
readonly name: "owner";
|
|
507
|
+
readonly type: "address";
|
|
508
|
+
}, {
|
|
509
|
+
readonly internalType: "address";
|
|
510
|
+
readonly name: "spender";
|
|
511
|
+
readonly type: "address";
|
|
512
|
+
}];
|
|
513
|
+
readonly name: "allowance";
|
|
514
|
+
readonly outputs: readonly [{
|
|
515
|
+
readonly internalType: "uint256";
|
|
516
|
+
readonly name: "";
|
|
517
|
+
readonly type: "uint256";
|
|
518
|
+
}];
|
|
519
|
+
readonly stateMutability: "view";
|
|
520
|
+
readonly type: "function";
|
|
521
|
+
}, {
|
|
522
|
+
readonly inputs: readonly [{
|
|
523
|
+
readonly internalType: "address";
|
|
524
|
+
readonly name: "spender";
|
|
525
|
+
readonly type: "address";
|
|
526
|
+
}, {
|
|
527
|
+
readonly internalType: "uint256";
|
|
528
|
+
readonly name: "value";
|
|
529
|
+
readonly type: "uint256";
|
|
530
|
+
}];
|
|
531
|
+
readonly name: "approve";
|
|
532
|
+
readonly outputs: readonly [{
|
|
533
|
+
readonly internalType: "bool";
|
|
534
|
+
readonly name: "";
|
|
535
|
+
readonly type: "bool";
|
|
536
|
+
}];
|
|
537
|
+
readonly stateMutability: "nonpayable";
|
|
538
|
+
readonly type: "function";
|
|
539
|
+
}, {
|
|
540
|
+
readonly inputs: readonly [{
|
|
541
|
+
readonly internalType: "address";
|
|
542
|
+
readonly name: "account";
|
|
543
|
+
readonly type: "address";
|
|
544
|
+
}];
|
|
545
|
+
readonly name: "balanceOf";
|
|
546
|
+
readonly outputs: readonly [{
|
|
547
|
+
readonly internalType: "uint256";
|
|
548
|
+
readonly name: "";
|
|
549
|
+
readonly type: "uint256";
|
|
550
|
+
}];
|
|
551
|
+
readonly stateMutability: "view";
|
|
552
|
+
readonly type: "function";
|
|
553
|
+
}, {
|
|
554
|
+
readonly inputs: readonly [{
|
|
555
|
+
readonly internalType: "uint256";
|
|
556
|
+
readonly name: "value";
|
|
557
|
+
readonly type: "uint256";
|
|
558
|
+
}];
|
|
559
|
+
readonly name: "burn";
|
|
560
|
+
readonly outputs: readonly [];
|
|
561
|
+
readonly stateMutability: "nonpayable";
|
|
562
|
+
readonly type: "function";
|
|
563
|
+
}, {
|
|
564
|
+
readonly inputs: readonly [{
|
|
565
|
+
readonly internalType: "address";
|
|
566
|
+
readonly name: "account";
|
|
567
|
+
readonly type: "address";
|
|
568
|
+
}, {
|
|
569
|
+
readonly internalType: "uint256";
|
|
570
|
+
readonly name: "value";
|
|
571
|
+
readonly type: "uint256";
|
|
572
|
+
}];
|
|
573
|
+
readonly name: "burnFrom";
|
|
574
|
+
readonly outputs: readonly [];
|
|
575
|
+
readonly stateMutability: "nonpayable";
|
|
576
|
+
readonly type: "function";
|
|
577
|
+
}, {
|
|
578
|
+
readonly inputs: readonly [];
|
|
579
|
+
readonly name: "decimals";
|
|
580
|
+
readonly outputs: readonly [{
|
|
581
|
+
readonly internalType: "uint8";
|
|
582
|
+
readonly name: "";
|
|
583
|
+
readonly type: "uint8";
|
|
584
|
+
}];
|
|
585
|
+
readonly stateMutability: "view";
|
|
586
|
+
readonly type: "function";
|
|
587
|
+
}, {
|
|
588
|
+
readonly inputs: readonly [{
|
|
589
|
+
readonly internalType: "address";
|
|
590
|
+
readonly name: "account";
|
|
591
|
+
readonly type: "address";
|
|
592
|
+
}];
|
|
593
|
+
readonly name: "freeze";
|
|
594
|
+
readonly outputs: readonly [];
|
|
595
|
+
readonly stateMutability: "nonpayable";
|
|
596
|
+
readonly type: "function";
|
|
597
|
+
}, {
|
|
598
|
+
readonly inputs: readonly [{
|
|
599
|
+
readonly internalType: "address";
|
|
600
|
+
readonly name: "account";
|
|
601
|
+
readonly type: "address";
|
|
602
|
+
}];
|
|
603
|
+
readonly name: "frozen";
|
|
604
|
+
readonly outputs: readonly [{
|
|
605
|
+
readonly internalType: "bool";
|
|
606
|
+
readonly name: "isFrozen";
|
|
607
|
+
readonly type: "bool";
|
|
608
|
+
}];
|
|
609
|
+
readonly stateMutability: "view";
|
|
610
|
+
readonly type: "function";
|
|
611
|
+
}, {
|
|
612
|
+
readonly inputs: readonly [];
|
|
613
|
+
readonly name: "getAllBurners";
|
|
614
|
+
readonly outputs: readonly [{
|
|
615
|
+
readonly internalType: "address[]";
|
|
616
|
+
readonly name: "";
|
|
617
|
+
readonly type: "address[]";
|
|
618
|
+
}];
|
|
619
|
+
readonly stateMutability: "view";
|
|
620
|
+
readonly type: "function";
|
|
621
|
+
}, {
|
|
622
|
+
readonly inputs: readonly [];
|
|
623
|
+
readonly name: "getAllMinters";
|
|
624
|
+
readonly outputs: readonly [{
|
|
625
|
+
readonly components: readonly [{
|
|
626
|
+
readonly internalType: "address";
|
|
627
|
+
readonly name: "minter";
|
|
628
|
+
readonly type: "address";
|
|
629
|
+
}, {
|
|
630
|
+
readonly internalType: "uint256";
|
|
631
|
+
readonly name: "allowance";
|
|
632
|
+
readonly type: "uint256";
|
|
633
|
+
}];
|
|
634
|
+
readonly internalType: "struct Stablecoin.MinterInfo[]";
|
|
635
|
+
readonly name: "";
|
|
636
|
+
readonly type: "tuple[]";
|
|
637
|
+
}];
|
|
638
|
+
readonly stateMutability: "view";
|
|
639
|
+
readonly type: "function";
|
|
640
|
+
}, {
|
|
641
|
+
readonly inputs: readonly [];
|
|
642
|
+
readonly name: "getBurnerCount";
|
|
643
|
+
readonly outputs: readonly [{
|
|
644
|
+
readonly internalType: "uint256";
|
|
645
|
+
readonly name: "";
|
|
646
|
+
readonly type: "uint256";
|
|
647
|
+
}];
|
|
648
|
+
readonly stateMutability: "view";
|
|
649
|
+
readonly type: "function";
|
|
650
|
+
}, {
|
|
651
|
+
readonly inputs: readonly [];
|
|
652
|
+
readonly name: "getMinterCount";
|
|
653
|
+
readonly outputs: readonly [{
|
|
654
|
+
readonly internalType: "uint256";
|
|
655
|
+
readonly name: "";
|
|
656
|
+
readonly type: "uint256";
|
|
657
|
+
}];
|
|
658
|
+
readonly stateMutability: "view";
|
|
659
|
+
readonly type: "function";
|
|
660
|
+
}, {
|
|
661
|
+
readonly inputs: readonly [{
|
|
662
|
+
readonly internalType: "bytes32";
|
|
663
|
+
readonly name: "role";
|
|
664
|
+
readonly type: "bytes32";
|
|
665
|
+
}];
|
|
666
|
+
readonly name: "getRoleAdmin";
|
|
667
|
+
readonly outputs: readonly [{
|
|
668
|
+
readonly internalType: "bytes32";
|
|
669
|
+
readonly name: "";
|
|
670
|
+
readonly type: "bytes32";
|
|
671
|
+
}];
|
|
672
|
+
readonly stateMutability: "view";
|
|
673
|
+
readonly type: "function";
|
|
674
|
+
}, {
|
|
675
|
+
readonly inputs: readonly [{
|
|
676
|
+
readonly internalType: "bytes32";
|
|
677
|
+
readonly name: "role";
|
|
678
|
+
readonly type: "bytes32";
|
|
679
|
+
}, {
|
|
680
|
+
readonly internalType: "uint256";
|
|
681
|
+
readonly name: "index";
|
|
682
|
+
readonly type: "uint256";
|
|
683
|
+
}];
|
|
684
|
+
readonly name: "getRoleMember";
|
|
685
|
+
readonly outputs: readonly [{
|
|
686
|
+
readonly internalType: "address";
|
|
687
|
+
readonly name: "";
|
|
688
|
+
readonly type: "address";
|
|
689
|
+
}];
|
|
690
|
+
readonly stateMutability: "view";
|
|
691
|
+
readonly type: "function";
|
|
692
|
+
}, {
|
|
693
|
+
readonly inputs: readonly [{
|
|
694
|
+
readonly internalType: "bytes32";
|
|
695
|
+
readonly name: "role";
|
|
696
|
+
readonly type: "bytes32";
|
|
697
|
+
}];
|
|
698
|
+
readonly name: "getRoleMemberCount";
|
|
699
|
+
readonly outputs: readonly [{
|
|
700
|
+
readonly internalType: "uint256";
|
|
701
|
+
readonly name: "";
|
|
702
|
+
readonly type: "uint256";
|
|
703
|
+
}];
|
|
704
|
+
readonly stateMutability: "view";
|
|
705
|
+
readonly type: "function";
|
|
706
|
+
}, {
|
|
707
|
+
readonly inputs: readonly [{
|
|
708
|
+
readonly internalType: "bytes32";
|
|
709
|
+
readonly name: "role";
|
|
710
|
+
readonly type: "bytes32";
|
|
711
|
+
}];
|
|
712
|
+
readonly name: "getRoleMembers";
|
|
713
|
+
readonly outputs: readonly [{
|
|
714
|
+
readonly internalType: "address[]";
|
|
715
|
+
readonly name: "";
|
|
716
|
+
readonly type: "address[]";
|
|
717
|
+
}];
|
|
718
|
+
readonly stateMutability: "view";
|
|
719
|
+
readonly type: "function";
|
|
720
|
+
}, {
|
|
721
|
+
readonly inputs: readonly [{
|
|
722
|
+
readonly internalType: "bytes32";
|
|
723
|
+
readonly name: "role";
|
|
724
|
+
readonly type: "bytes32";
|
|
725
|
+
}, {
|
|
726
|
+
readonly internalType: "address";
|
|
727
|
+
readonly name: "account";
|
|
728
|
+
readonly type: "address";
|
|
729
|
+
}];
|
|
730
|
+
readonly name: "grantRole";
|
|
731
|
+
readonly outputs: readonly [];
|
|
732
|
+
readonly stateMutability: "nonpayable";
|
|
733
|
+
readonly type: "function";
|
|
734
|
+
}, {
|
|
735
|
+
readonly inputs: readonly [{
|
|
736
|
+
readonly internalType: "bytes32";
|
|
737
|
+
readonly name: "role";
|
|
738
|
+
readonly type: "bytes32";
|
|
739
|
+
}, {
|
|
740
|
+
readonly internalType: "address";
|
|
741
|
+
readonly name: "account";
|
|
742
|
+
readonly type: "address";
|
|
743
|
+
}];
|
|
744
|
+
readonly name: "hasRole";
|
|
745
|
+
readonly outputs: readonly [{
|
|
746
|
+
readonly internalType: "bool";
|
|
747
|
+
readonly name: "";
|
|
748
|
+
readonly type: "bool";
|
|
749
|
+
}];
|
|
750
|
+
readonly stateMutability: "view";
|
|
751
|
+
readonly type: "function";
|
|
752
|
+
}, {
|
|
753
|
+
readonly inputs: readonly [{
|
|
754
|
+
readonly internalType: "string";
|
|
755
|
+
readonly name: "name";
|
|
756
|
+
readonly type: "string";
|
|
757
|
+
}, {
|
|
758
|
+
readonly internalType: "string";
|
|
759
|
+
readonly name: "symbol";
|
|
760
|
+
readonly type: "string";
|
|
761
|
+
}, {
|
|
762
|
+
readonly internalType: "uint8";
|
|
763
|
+
readonly name: "decimals_";
|
|
764
|
+
readonly type: "uint8";
|
|
765
|
+
}, {
|
|
766
|
+
readonly internalType: "address";
|
|
767
|
+
readonly name: "admin";
|
|
768
|
+
readonly type: "address";
|
|
769
|
+
}, {
|
|
770
|
+
readonly internalType: "address";
|
|
771
|
+
readonly name: "burner";
|
|
772
|
+
readonly type: "address";
|
|
773
|
+
}, {
|
|
774
|
+
readonly internalType: "address";
|
|
775
|
+
readonly name: "pauser";
|
|
776
|
+
readonly type: "address";
|
|
777
|
+
}, {
|
|
778
|
+
readonly internalType: "address";
|
|
779
|
+
readonly name: "freezer";
|
|
780
|
+
readonly type: "address";
|
|
781
|
+
}];
|
|
782
|
+
readonly name: "initialize";
|
|
783
|
+
readonly outputs: readonly [];
|
|
784
|
+
readonly stateMutability: "nonpayable";
|
|
785
|
+
readonly type: "function";
|
|
786
|
+
}, {
|
|
787
|
+
readonly inputs: readonly [{
|
|
788
|
+
readonly internalType: "address";
|
|
789
|
+
readonly name: "to";
|
|
790
|
+
readonly type: "address";
|
|
791
|
+
}, {
|
|
792
|
+
readonly internalType: "uint256";
|
|
793
|
+
readonly name: "value";
|
|
794
|
+
readonly type: "uint256";
|
|
795
|
+
}];
|
|
796
|
+
readonly name: "mint";
|
|
797
|
+
readonly outputs: readonly [];
|
|
798
|
+
readonly stateMutability: "nonpayable";
|
|
799
|
+
readonly type: "function";
|
|
800
|
+
}, {
|
|
801
|
+
readonly inputs: readonly [{
|
|
802
|
+
readonly internalType: "address";
|
|
803
|
+
readonly name: "minter";
|
|
804
|
+
readonly type: "address";
|
|
805
|
+
}];
|
|
806
|
+
readonly name: "minterAllowance";
|
|
807
|
+
readonly outputs: readonly [{
|
|
808
|
+
readonly internalType: "uint256";
|
|
809
|
+
readonly name: "";
|
|
810
|
+
readonly type: "uint256";
|
|
811
|
+
}];
|
|
812
|
+
readonly stateMutability: "view";
|
|
813
|
+
readonly type: "function";
|
|
814
|
+
}, {
|
|
815
|
+
readonly inputs: readonly [{
|
|
816
|
+
readonly internalType: "address";
|
|
817
|
+
readonly name: "minter";
|
|
818
|
+
readonly type: "address";
|
|
819
|
+
}, {
|
|
820
|
+
readonly internalType: "int256";
|
|
821
|
+
readonly name: "delta";
|
|
822
|
+
readonly type: "int256";
|
|
823
|
+
}];
|
|
824
|
+
readonly name: "modifyMinterAllowance";
|
|
825
|
+
readonly outputs: readonly [];
|
|
826
|
+
readonly stateMutability: "nonpayable";
|
|
827
|
+
readonly type: "function";
|
|
828
|
+
}, {
|
|
829
|
+
readonly inputs: readonly [];
|
|
830
|
+
readonly name: "name";
|
|
831
|
+
readonly outputs: readonly [{
|
|
832
|
+
readonly internalType: "string";
|
|
833
|
+
readonly name: "";
|
|
834
|
+
readonly type: "string";
|
|
835
|
+
}];
|
|
836
|
+
readonly stateMutability: "view";
|
|
837
|
+
readonly type: "function";
|
|
838
|
+
}, {
|
|
839
|
+
readonly inputs: readonly [];
|
|
840
|
+
readonly name: "pause";
|
|
841
|
+
readonly outputs: readonly [];
|
|
842
|
+
readonly stateMutability: "nonpayable";
|
|
843
|
+
readonly type: "function";
|
|
844
|
+
}, {
|
|
845
|
+
readonly inputs: readonly [];
|
|
846
|
+
readonly name: "paused";
|
|
847
|
+
readonly outputs: readonly [{
|
|
848
|
+
readonly internalType: "bool";
|
|
849
|
+
readonly name: "";
|
|
850
|
+
readonly type: "bool";
|
|
851
|
+
}];
|
|
852
|
+
readonly stateMutability: "view";
|
|
853
|
+
readonly type: "function";
|
|
854
|
+
}, {
|
|
855
|
+
readonly inputs: readonly [];
|
|
856
|
+
readonly name: "proxiableUUID";
|
|
857
|
+
readonly outputs: readonly [{
|
|
858
|
+
readonly internalType: "bytes32";
|
|
859
|
+
readonly name: "";
|
|
860
|
+
readonly type: "bytes32";
|
|
861
|
+
}];
|
|
862
|
+
readonly stateMutability: "view";
|
|
863
|
+
readonly type: "function";
|
|
864
|
+
}, {
|
|
865
|
+
readonly inputs: readonly [];
|
|
866
|
+
readonly name: "reinitializeAdminRole";
|
|
867
|
+
readonly outputs: readonly [];
|
|
868
|
+
readonly stateMutability: "nonpayable";
|
|
869
|
+
readonly type: "function";
|
|
870
|
+
}, {
|
|
871
|
+
readonly inputs: readonly [{
|
|
872
|
+
readonly internalType: "address";
|
|
873
|
+
readonly name: "minter";
|
|
874
|
+
readonly type: "address";
|
|
875
|
+
}];
|
|
876
|
+
readonly name: "removeMinter";
|
|
877
|
+
readonly outputs: readonly [];
|
|
878
|
+
readonly stateMutability: "nonpayable";
|
|
879
|
+
readonly type: "function";
|
|
880
|
+
}, {
|
|
881
|
+
readonly inputs: readonly [{
|
|
882
|
+
readonly internalType: "bytes32";
|
|
883
|
+
readonly name: "role";
|
|
884
|
+
readonly type: "bytes32";
|
|
885
|
+
}, {
|
|
886
|
+
readonly internalType: "address";
|
|
887
|
+
readonly name: "callerConfirmation";
|
|
888
|
+
readonly type: "address";
|
|
889
|
+
}];
|
|
890
|
+
readonly name: "renounceRole";
|
|
891
|
+
readonly outputs: readonly [];
|
|
892
|
+
readonly stateMutability: "nonpayable";
|
|
893
|
+
readonly type: "function";
|
|
894
|
+
}, {
|
|
895
|
+
readonly inputs: readonly [{
|
|
896
|
+
readonly internalType: "bytes32";
|
|
897
|
+
readonly name: "role";
|
|
898
|
+
readonly type: "bytes32";
|
|
899
|
+
}, {
|
|
900
|
+
readonly internalType: "address";
|
|
901
|
+
readonly name: "account";
|
|
902
|
+
readonly type: "address";
|
|
903
|
+
}];
|
|
904
|
+
readonly name: "revokeRole";
|
|
905
|
+
readonly outputs: readonly [];
|
|
906
|
+
readonly stateMutability: "nonpayable";
|
|
907
|
+
readonly type: "function";
|
|
908
|
+
}, {
|
|
909
|
+
readonly inputs: readonly [{
|
|
910
|
+
readonly internalType: "bytes4";
|
|
911
|
+
readonly name: "interfaceId";
|
|
912
|
+
readonly type: "bytes4";
|
|
913
|
+
}];
|
|
914
|
+
readonly name: "supportsInterface";
|
|
915
|
+
readonly outputs: readonly [{
|
|
916
|
+
readonly internalType: "bool";
|
|
917
|
+
readonly name: "";
|
|
918
|
+
readonly type: "bool";
|
|
919
|
+
}];
|
|
920
|
+
readonly stateMutability: "view";
|
|
921
|
+
readonly type: "function";
|
|
922
|
+
}, {
|
|
923
|
+
readonly inputs: readonly [];
|
|
924
|
+
readonly name: "symbol";
|
|
925
|
+
readonly outputs: readonly [{
|
|
926
|
+
readonly internalType: "string";
|
|
927
|
+
readonly name: "";
|
|
928
|
+
readonly type: "string";
|
|
929
|
+
}];
|
|
930
|
+
readonly stateMutability: "view";
|
|
931
|
+
readonly type: "function";
|
|
932
|
+
}, {
|
|
933
|
+
readonly inputs: readonly [];
|
|
934
|
+
readonly name: "totalSupply";
|
|
935
|
+
readonly outputs: readonly [{
|
|
936
|
+
readonly internalType: "uint256";
|
|
937
|
+
readonly name: "";
|
|
938
|
+
readonly type: "uint256";
|
|
939
|
+
}];
|
|
940
|
+
readonly stateMutability: "view";
|
|
941
|
+
readonly type: "function";
|
|
942
|
+
}, {
|
|
943
|
+
readonly inputs: readonly [{
|
|
944
|
+
readonly internalType: "address";
|
|
945
|
+
readonly name: "to";
|
|
946
|
+
readonly type: "address";
|
|
947
|
+
}, {
|
|
948
|
+
readonly internalType: "uint256";
|
|
949
|
+
readonly name: "value";
|
|
950
|
+
readonly type: "uint256";
|
|
951
|
+
}];
|
|
952
|
+
readonly name: "transfer";
|
|
953
|
+
readonly outputs: readonly [{
|
|
954
|
+
readonly internalType: "bool";
|
|
955
|
+
readonly name: "";
|
|
956
|
+
readonly type: "bool";
|
|
957
|
+
}];
|
|
958
|
+
readonly stateMutability: "nonpayable";
|
|
959
|
+
readonly type: "function";
|
|
960
|
+
}, {
|
|
961
|
+
readonly inputs: readonly [{
|
|
962
|
+
readonly internalType: "address";
|
|
963
|
+
readonly name: "from";
|
|
964
|
+
readonly type: "address";
|
|
965
|
+
}, {
|
|
966
|
+
readonly internalType: "address";
|
|
967
|
+
readonly name: "to";
|
|
968
|
+
readonly type: "address";
|
|
969
|
+
}, {
|
|
970
|
+
readonly internalType: "uint256";
|
|
971
|
+
readonly name: "value";
|
|
972
|
+
readonly type: "uint256";
|
|
973
|
+
}];
|
|
974
|
+
readonly name: "transferFrom";
|
|
975
|
+
readonly outputs: readonly [{
|
|
976
|
+
readonly internalType: "bool";
|
|
977
|
+
readonly name: "";
|
|
978
|
+
readonly type: "bool";
|
|
979
|
+
}];
|
|
980
|
+
readonly stateMutability: "nonpayable";
|
|
981
|
+
readonly type: "function";
|
|
982
|
+
}, {
|
|
983
|
+
readonly inputs: readonly [{
|
|
984
|
+
readonly internalType: "address";
|
|
985
|
+
readonly name: "account";
|
|
986
|
+
readonly type: "address";
|
|
987
|
+
}];
|
|
988
|
+
readonly name: "unfreeze";
|
|
989
|
+
readonly outputs: readonly [];
|
|
990
|
+
readonly stateMutability: "nonpayable";
|
|
991
|
+
readonly type: "function";
|
|
992
|
+
}, {
|
|
993
|
+
readonly inputs: readonly [];
|
|
994
|
+
readonly name: "unpause";
|
|
995
|
+
readonly outputs: readonly [];
|
|
996
|
+
readonly stateMutability: "nonpayable";
|
|
997
|
+
readonly type: "function";
|
|
998
|
+
}, {
|
|
999
|
+
readonly inputs: readonly [{
|
|
1000
|
+
readonly internalType: "address";
|
|
1001
|
+
readonly name: "newImplementation";
|
|
1002
|
+
readonly type: "address";
|
|
1003
|
+
}, {
|
|
1004
|
+
readonly internalType: "bytes";
|
|
1005
|
+
readonly name: "data";
|
|
1006
|
+
readonly type: "bytes";
|
|
1007
|
+
}];
|
|
1008
|
+
readonly name: "upgradeToAndCall";
|
|
1009
|
+
readonly outputs: readonly [];
|
|
1010
|
+
readonly stateMutability: "payable";
|
|
1011
|
+
readonly type: "function";
|
|
1012
|
+
}];
|
|
1013
|
+
/**
|
|
1014
|
+
* Type-safe ABI for Stablecoin
|
|
1015
|
+
*/
|
|
1016
|
+
export type StablecoinAbi = typeof StablecoinAbi;
|
|
1017
|
+
/**
|
|
1018
|
+
* Contract instance type for Stablecoin
|
|
1019
|
+
*/
|
|
1020
|
+
export type StablecoinContract = any;
|
|
1021
|
+
/**
|
|
1022
|
+
* Stablecoin Contract Class
|
|
1023
|
+
*
|
|
1024
|
+
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
1025
|
+
*
|
|
1026
|
+
* @example
|
|
1027
|
+
* ```typescript
|
|
1028
|
+
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
1029
|
+
* import { mainnet } from 'viem/chains';
|
|
1030
|
+
* import { Stablecoin } from 'Stablecoin';
|
|
1031
|
+
*
|
|
1032
|
+
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
1033
|
+
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
1034
|
+
*
|
|
1035
|
+
* const contract = new Stablecoin('0x...', { publicClient, walletClient });
|
|
1036
|
+
*
|
|
1037
|
+
* // Read functions
|
|
1038
|
+
* const result = await contract.balanceOf('0x...');
|
|
1039
|
+
*
|
|
1040
|
+
* // Write functions
|
|
1041
|
+
* const hash = await contract.transfer('0x...', 1000n);
|
|
1042
|
+
*
|
|
1043
|
+
* // Simulate transactions (dry-run)
|
|
1044
|
+
* const simulation = await contract.simulate.transfer('0x...', 1000n);
|
|
1045
|
+
* console.log('Gas estimate:', simulation.request.gas);
|
|
1046
|
+
*
|
|
1047
|
+
* // Watch events
|
|
1048
|
+
* const unwatch = contract.watch.Transfer((event) => {
|
|
1049
|
+
* console.log('Transfer event:', event);
|
|
1050
|
+
* });
|
|
1051
|
+
* ```
|
|
1052
|
+
*/
|
|
1053
|
+
export declare class Stablecoin {
|
|
1054
|
+
private contract;
|
|
1055
|
+
private contractAddress;
|
|
1056
|
+
private publicClient;
|
|
1057
|
+
constructor(address: Address, clients: {
|
|
1058
|
+
publicClient: PublicClient;
|
|
1059
|
+
walletClient?: WalletClient;
|
|
1060
|
+
});
|
|
1061
|
+
/**
|
|
1062
|
+
* Get the contract address
|
|
1063
|
+
*/
|
|
1064
|
+
get address(): Address;
|
|
1065
|
+
/**
|
|
1066
|
+
* Get the underlying viem contract instance.
|
|
1067
|
+
*/
|
|
1068
|
+
getContract(): StablecoinContract;
|
|
1069
|
+
/**
|
|
1070
|
+
* ADMIN_ROLE
|
|
1071
|
+
* view
|
|
1072
|
+
*/
|
|
1073
|
+
ADMIN_ROLE(): Promise<`0x${string}`>;
|
|
1074
|
+
/**
|
|
1075
|
+
* BURNER_ROLE
|
|
1076
|
+
* view
|
|
1077
|
+
*/
|
|
1078
|
+
BURNER_ROLE(): Promise<`0x${string}`>;
|
|
1079
|
+
/**
|
|
1080
|
+
* DEFAULT_ADMIN_ROLE
|
|
1081
|
+
* view
|
|
1082
|
+
*/
|
|
1083
|
+
DEFAULT_ADMIN_ROLE(): Promise<`0x${string}`>;
|
|
1084
|
+
/**
|
|
1085
|
+
* FREEZER_ROLE
|
|
1086
|
+
* view
|
|
1087
|
+
*/
|
|
1088
|
+
FREEZER_ROLE(): Promise<`0x${string}`>;
|
|
1089
|
+
/**
|
|
1090
|
+
* MINTER_ROLE
|
|
1091
|
+
* view
|
|
1092
|
+
*/
|
|
1093
|
+
MINTER_ROLE(): Promise<`0x${string}`>;
|
|
1094
|
+
/**
|
|
1095
|
+
* PAUSER_ROLE
|
|
1096
|
+
* view
|
|
1097
|
+
*/
|
|
1098
|
+
PAUSER_ROLE(): Promise<`0x${string}`>;
|
|
1099
|
+
/**
|
|
1100
|
+
* UPGRADE_INTERFACE_VERSION
|
|
1101
|
+
* view
|
|
1102
|
+
*/
|
|
1103
|
+
UPGRADE_INTERFACE_VERSION(): Promise<string>;
|
|
1104
|
+
/**
|
|
1105
|
+
* allowance
|
|
1106
|
+
* view
|
|
1107
|
+
*/
|
|
1108
|
+
allowance(owner: `0x${string}`, spender: `0x${string}`): Promise<bigint>;
|
|
1109
|
+
/**
|
|
1110
|
+
* balanceOf
|
|
1111
|
+
* view
|
|
1112
|
+
*/
|
|
1113
|
+
balanceOf(account: `0x${string}`): Promise<bigint>;
|
|
1114
|
+
/**
|
|
1115
|
+
* decimals
|
|
1116
|
+
* view
|
|
1117
|
+
*/
|
|
1118
|
+
decimals(): Promise<bigint>;
|
|
1119
|
+
/**
|
|
1120
|
+
* frozen
|
|
1121
|
+
* view
|
|
1122
|
+
*/
|
|
1123
|
+
frozen(account: `0x${string}`): Promise<boolean>;
|
|
1124
|
+
/**
|
|
1125
|
+
* getAllBurners
|
|
1126
|
+
* view
|
|
1127
|
+
*/
|
|
1128
|
+
getAllBurners(): Promise<`0x${string}`[]>;
|
|
1129
|
+
/**
|
|
1130
|
+
* getAllMinters
|
|
1131
|
+
* view
|
|
1132
|
+
*/
|
|
1133
|
+
getAllMinters(): Promise<Stablecoin_MinterInfo[]>;
|
|
1134
|
+
/**
|
|
1135
|
+
* getBurnerCount
|
|
1136
|
+
* view
|
|
1137
|
+
*/
|
|
1138
|
+
getBurnerCount(): Promise<bigint>;
|
|
1139
|
+
/**
|
|
1140
|
+
* getMinterCount
|
|
1141
|
+
* view
|
|
1142
|
+
*/
|
|
1143
|
+
getMinterCount(): Promise<bigint>;
|
|
1144
|
+
/**
|
|
1145
|
+
* getRoleAdmin
|
|
1146
|
+
* view
|
|
1147
|
+
*/
|
|
1148
|
+
getRoleAdmin(role: `0x${string}`): Promise<`0x${string}`>;
|
|
1149
|
+
/**
|
|
1150
|
+
* getRoleMember
|
|
1151
|
+
* view
|
|
1152
|
+
*/
|
|
1153
|
+
getRoleMember(role: `0x${string}`, index: bigint): Promise<`0x${string}`>;
|
|
1154
|
+
/**
|
|
1155
|
+
* getRoleMemberCount
|
|
1156
|
+
* view
|
|
1157
|
+
*/
|
|
1158
|
+
getRoleMemberCount(role: `0x${string}`): Promise<bigint>;
|
|
1159
|
+
/**
|
|
1160
|
+
* getRoleMembers
|
|
1161
|
+
* view
|
|
1162
|
+
*/
|
|
1163
|
+
getRoleMembers(role: `0x${string}`): Promise<`0x${string}`[]>;
|
|
1164
|
+
/**
|
|
1165
|
+
* hasRole
|
|
1166
|
+
* view
|
|
1167
|
+
*/
|
|
1168
|
+
hasRole(role: `0x${string}`, account: `0x${string}`): Promise<boolean>;
|
|
1169
|
+
/**
|
|
1170
|
+
* minterAllowance
|
|
1171
|
+
* view
|
|
1172
|
+
*/
|
|
1173
|
+
minterAllowance(minter: `0x${string}`): Promise<bigint>;
|
|
1174
|
+
/**
|
|
1175
|
+
* name
|
|
1176
|
+
* view
|
|
1177
|
+
*/
|
|
1178
|
+
name(): Promise<string>;
|
|
1179
|
+
/**
|
|
1180
|
+
* paused
|
|
1181
|
+
* view
|
|
1182
|
+
*/
|
|
1183
|
+
paused(): Promise<boolean>;
|
|
1184
|
+
/**
|
|
1185
|
+
* proxiableUUID
|
|
1186
|
+
* view
|
|
1187
|
+
*/
|
|
1188
|
+
proxiableUUID(): Promise<`0x${string}`>;
|
|
1189
|
+
/**
|
|
1190
|
+
* supportsInterface
|
|
1191
|
+
* view
|
|
1192
|
+
*/
|
|
1193
|
+
supportsInterface(interfaceId: `0x${string}`): Promise<boolean>;
|
|
1194
|
+
/**
|
|
1195
|
+
* symbol
|
|
1196
|
+
* view
|
|
1197
|
+
*/
|
|
1198
|
+
symbol(): Promise<string>;
|
|
1199
|
+
/**
|
|
1200
|
+
* totalSupply
|
|
1201
|
+
* view
|
|
1202
|
+
*/
|
|
1203
|
+
totalSupply(): Promise<bigint>;
|
|
1204
|
+
/**
|
|
1205
|
+
* addMinter
|
|
1206
|
+
* nonpayable
|
|
1207
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1208
|
+
*/
|
|
1209
|
+
addMinter(newMinter: `0x${string}`, allowance: bigint, options?: {
|
|
1210
|
+
accessList?: import('viem').AccessList;
|
|
1211
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1212
|
+
chain?: import('viem').Chain | null;
|
|
1213
|
+
dataSuffix?: `0x${string}`;
|
|
1214
|
+
gas?: bigint;
|
|
1215
|
+
gasPrice?: bigint;
|
|
1216
|
+
maxFeePerGas?: bigint;
|
|
1217
|
+
maxPriorityFeePerGas?: bigint;
|
|
1218
|
+
nonce?: number;
|
|
1219
|
+
value?: bigint;
|
|
1220
|
+
}): Promise<`0x${string}`>;
|
|
1221
|
+
/**
|
|
1222
|
+
* approve
|
|
1223
|
+
* nonpayable
|
|
1224
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1225
|
+
*/
|
|
1226
|
+
approve(spender: `0x${string}`, value: bigint, options?: {
|
|
1227
|
+
accessList?: import('viem').AccessList;
|
|
1228
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1229
|
+
chain?: import('viem').Chain | null;
|
|
1230
|
+
dataSuffix?: `0x${string}`;
|
|
1231
|
+
gas?: bigint;
|
|
1232
|
+
gasPrice?: bigint;
|
|
1233
|
+
maxFeePerGas?: bigint;
|
|
1234
|
+
maxPriorityFeePerGas?: bigint;
|
|
1235
|
+
nonce?: number;
|
|
1236
|
+
value?: bigint;
|
|
1237
|
+
}): Promise<`0x${string}`>;
|
|
1238
|
+
/**
|
|
1239
|
+
* burn
|
|
1240
|
+
* nonpayable
|
|
1241
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1242
|
+
*/
|
|
1243
|
+
burn(value: bigint, options?: {
|
|
1244
|
+
accessList?: import('viem').AccessList;
|
|
1245
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1246
|
+
chain?: import('viem').Chain | null;
|
|
1247
|
+
dataSuffix?: `0x${string}`;
|
|
1248
|
+
gas?: bigint;
|
|
1249
|
+
gasPrice?: bigint;
|
|
1250
|
+
maxFeePerGas?: bigint;
|
|
1251
|
+
maxPriorityFeePerGas?: bigint;
|
|
1252
|
+
nonce?: number;
|
|
1253
|
+
value?: bigint;
|
|
1254
|
+
}): Promise<`0x${string}`>;
|
|
1255
|
+
/**
|
|
1256
|
+
* burnFrom
|
|
1257
|
+
* nonpayable
|
|
1258
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1259
|
+
*/
|
|
1260
|
+
burnFrom(account: `0x${string}`, value: bigint, options?: {
|
|
1261
|
+
accessList?: import('viem').AccessList;
|
|
1262
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1263
|
+
chain?: import('viem').Chain | null;
|
|
1264
|
+
dataSuffix?: `0x${string}`;
|
|
1265
|
+
gas?: bigint;
|
|
1266
|
+
gasPrice?: bigint;
|
|
1267
|
+
maxFeePerGas?: bigint;
|
|
1268
|
+
maxPriorityFeePerGas?: bigint;
|
|
1269
|
+
nonce?: number;
|
|
1270
|
+
value?: bigint;
|
|
1271
|
+
}): Promise<`0x${string}`>;
|
|
1272
|
+
/**
|
|
1273
|
+
* freeze
|
|
1274
|
+
* nonpayable
|
|
1275
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1276
|
+
*/
|
|
1277
|
+
freeze(account: `0x${string}`, options?: {
|
|
1278
|
+
accessList?: import('viem').AccessList;
|
|
1279
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1280
|
+
chain?: import('viem').Chain | null;
|
|
1281
|
+
dataSuffix?: `0x${string}`;
|
|
1282
|
+
gas?: bigint;
|
|
1283
|
+
gasPrice?: bigint;
|
|
1284
|
+
maxFeePerGas?: bigint;
|
|
1285
|
+
maxPriorityFeePerGas?: bigint;
|
|
1286
|
+
nonce?: number;
|
|
1287
|
+
value?: bigint;
|
|
1288
|
+
}): Promise<`0x${string}`>;
|
|
1289
|
+
/**
|
|
1290
|
+
* grantRole
|
|
1291
|
+
* nonpayable
|
|
1292
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1293
|
+
*/
|
|
1294
|
+
grantRole(role: `0x${string}`, account: `0x${string}`, options?: {
|
|
1295
|
+
accessList?: import('viem').AccessList;
|
|
1296
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1297
|
+
chain?: import('viem').Chain | null;
|
|
1298
|
+
dataSuffix?: `0x${string}`;
|
|
1299
|
+
gas?: bigint;
|
|
1300
|
+
gasPrice?: bigint;
|
|
1301
|
+
maxFeePerGas?: bigint;
|
|
1302
|
+
maxPriorityFeePerGas?: bigint;
|
|
1303
|
+
nonce?: number;
|
|
1304
|
+
value?: bigint;
|
|
1305
|
+
}): Promise<`0x${string}`>;
|
|
1306
|
+
/**
|
|
1307
|
+
* initialize
|
|
1308
|
+
* nonpayable
|
|
1309
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1310
|
+
*/
|
|
1311
|
+
initialize(name: string, symbol: string, decimals_: bigint, admin: `0x${string}`, burner: `0x${string}`, pauser: `0x${string}`, freezer: `0x${string}`, options?: {
|
|
1312
|
+
accessList?: import('viem').AccessList;
|
|
1313
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1314
|
+
chain?: import('viem').Chain | null;
|
|
1315
|
+
dataSuffix?: `0x${string}`;
|
|
1316
|
+
gas?: bigint;
|
|
1317
|
+
gasPrice?: bigint;
|
|
1318
|
+
maxFeePerGas?: bigint;
|
|
1319
|
+
maxPriorityFeePerGas?: bigint;
|
|
1320
|
+
nonce?: number;
|
|
1321
|
+
value?: bigint;
|
|
1322
|
+
}): Promise<`0x${string}`>;
|
|
1323
|
+
/**
|
|
1324
|
+
* mint
|
|
1325
|
+
* nonpayable
|
|
1326
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1327
|
+
*/
|
|
1328
|
+
mint(to: `0x${string}`, value: bigint, options?: {
|
|
1329
|
+
accessList?: import('viem').AccessList;
|
|
1330
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1331
|
+
chain?: import('viem').Chain | null;
|
|
1332
|
+
dataSuffix?: `0x${string}`;
|
|
1333
|
+
gas?: bigint;
|
|
1334
|
+
gasPrice?: bigint;
|
|
1335
|
+
maxFeePerGas?: bigint;
|
|
1336
|
+
maxPriorityFeePerGas?: bigint;
|
|
1337
|
+
nonce?: number;
|
|
1338
|
+
value?: bigint;
|
|
1339
|
+
}): Promise<`0x${string}`>;
|
|
1340
|
+
/**
|
|
1341
|
+
* modifyMinterAllowance
|
|
1342
|
+
* nonpayable
|
|
1343
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1344
|
+
*/
|
|
1345
|
+
modifyMinterAllowance(minter: `0x${string}`, delta: bigint, options?: {
|
|
1346
|
+
accessList?: import('viem').AccessList;
|
|
1347
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1348
|
+
chain?: import('viem').Chain | null;
|
|
1349
|
+
dataSuffix?: `0x${string}`;
|
|
1350
|
+
gas?: bigint;
|
|
1351
|
+
gasPrice?: bigint;
|
|
1352
|
+
maxFeePerGas?: bigint;
|
|
1353
|
+
maxPriorityFeePerGas?: bigint;
|
|
1354
|
+
nonce?: number;
|
|
1355
|
+
value?: bigint;
|
|
1356
|
+
}): Promise<`0x${string}`>;
|
|
1357
|
+
/**
|
|
1358
|
+
* pause
|
|
1359
|
+
* nonpayable
|
|
1360
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1361
|
+
*/
|
|
1362
|
+
pause(options?: {
|
|
1363
|
+
accessList?: import('viem').AccessList;
|
|
1364
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1365
|
+
chain?: import('viem').Chain | null;
|
|
1366
|
+
dataSuffix?: `0x${string}`;
|
|
1367
|
+
gas?: bigint;
|
|
1368
|
+
gasPrice?: bigint;
|
|
1369
|
+
maxFeePerGas?: bigint;
|
|
1370
|
+
maxPriorityFeePerGas?: bigint;
|
|
1371
|
+
nonce?: number;
|
|
1372
|
+
value?: bigint;
|
|
1373
|
+
}): Promise<`0x${string}`>;
|
|
1374
|
+
/**
|
|
1375
|
+
* reinitializeAdminRole
|
|
1376
|
+
* nonpayable
|
|
1377
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1378
|
+
*/
|
|
1379
|
+
reinitializeAdminRole(options?: {
|
|
1380
|
+
accessList?: import('viem').AccessList;
|
|
1381
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1382
|
+
chain?: import('viem').Chain | null;
|
|
1383
|
+
dataSuffix?: `0x${string}`;
|
|
1384
|
+
gas?: bigint;
|
|
1385
|
+
gasPrice?: bigint;
|
|
1386
|
+
maxFeePerGas?: bigint;
|
|
1387
|
+
maxPriorityFeePerGas?: bigint;
|
|
1388
|
+
nonce?: number;
|
|
1389
|
+
value?: bigint;
|
|
1390
|
+
}): Promise<`0x${string}`>;
|
|
1391
|
+
/**
|
|
1392
|
+
* removeMinter
|
|
1393
|
+
* nonpayable
|
|
1394
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1395
|
+
*/
|
|
1396
|
+
removeMinter(minter: `0x${string}`, options?: {
|
|
1397
|
+
accessList?: import('viem').AccessList;
|
|
1398
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1399
|
+
chain?: import('viem').Chain | null;
|
|
1400
|
+
dataSuffix?: `0x${string}`;
|
|
1401
|
+
gas?: bigint;
|
|
1402
|
+
gasPrice?: bigint;
|
|
1403
|
+
maxFeePerGas?: bigint;
|
|
1404
|
+
maxPriorityFeePerGas?: bigint;
|
|
1405
|
+
nonce?: number;
|
|
1406
|
+
value?: bigint;
|
|
1407
|
+
}): Promise<`0x${string}`>;
|
|
1408
|
+
/**
|
|
1409
|
+
* renounceRole
|
|
1410
|
+
* nonpayable
|
|
1411
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1412
|
+
*/
|
|
1413
|
+
renounceRole(role: `0x${string}`, callerConfirmation: `0x${string}`, options?: {
|
|
1414
|
+
accessList?: import('viem').AccessList;
|
|
1415
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1416
|
+
chain?: import('viem').Chain | null;
|
|
1417
|
+
dataSuffix?: `0x${string}`;
|
|
1418
|
+
gas?: bigint;
|
|
1419
|
+
gasPrice?: bigint;
|
|
1420
|
+
maxFeePerGas?: bigint;
|
|
1421
|
+
maxPriorityFeePerGas?: bigint;
|
|
1422
|
+
nonce?: number;
|
|
1423
|
+
value?: bigint;
|
|
1424
|
+
}): Promise<`0x${string}`>;
|
|
1425
|
+
/**
|
|
1426
|
+
* revokeRole
|
|
1427
|
+
* nonpayable
|
|
1428
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1429
|
+
*/
|
|
1430
|
+
revokeRole(role: `0x${string}`, account: `0x${string}`, options?: {
|
|
1431
|
+
accessList?: import('viem').AccessList;
|
|
1432
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1433
|
+
chain?: import('viem').Chain | null;
|
|
1434
|
+
dataSuffix?: `0x${string}`;
|
|
1435
|
+
gas?: bigint;
|
|
1436
|
+
gasPrice?: bigint;
|
|
1437
|
+
maxFeePerGas?: bigint;
|
|
1438
|
+
maxPriorityFeePerGas?: bigint;
|
|
1439
|
+
nonce?: number;
|
|
1440
|
+
value?: bigint;
|
|
1441
|
+
}): Promise<`0x${string}`>;
|
|
1442
|
+
/**
|
|
1443
|
+
* transfer
|
|
1444
|
+
* nonpayable
|
|
1445
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1446
|
+
*/
|
|
1447
|
+
transfer(to: `0x${string}`, value: bigint, options?: {
|
|
1448
|
+
accessList?: import('viem').AccessList;
|
|
1449
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1450
|
+
chain?: import('viem').Chain | null;
|
|
1451
|
+
dataSuffix?: `0x${string}`;
|
|
1452
|
+
gas?: bigint;
|
|
1453
|
+
gasPrice?: bigint;
|
|
1454
|
+
maxFeePerGas?: bigint;
|
|
1455
|
+
maxPriorityFeePerGas?: bigint;
|
|
1456
|
+
nonce?: number;
|
|
1457
|
+
value?: bigint;
|
|
1458
|
+
}): Promise<`0x${string}`>;
|
|
1459
|
+
/**
|
|
1460
|
+
* transferFrom
|
|
1461
|
+
* nonpayable
|
|
1462
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1463
|
+
*/
|
|
1464
|
+
transferFrom(from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
|
|
1465
|
+
accessList?: import('viem').AccessList;
|
|
1466
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1467
|
+
chain?: import('viem').Chain | null;
|
|
1468
|
+
dataSuffix?: `0x${string}`;
|
|
1469
|
+
gas?: bigint;
|
|
1470
|
+
gasPrice?: bigint;
|
|
1471
|
+
maxFeePerGas?: bigint;
|
|
1472
|
+
maxPriorityFeePerGas?: bigint;
|
|
1473
|
+
nonce?: number;
|
|
1474
|
+
value?: bigint;
|
|
1475
|
+
}): Promise<`0x${string}`>;
|
|
1476
|
+
/**
|
|
1477
|
+
* unfreeze
|
|
1478
|
+
* nonpayable
|
|
1479
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1480
|
+
*/
|
|
1481
|
+
unfreeze(account: `0x${string}`, options?: {
|
|
1482
|
+
accessList?: import('viem').AccessList;
|
|
1483
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1484
|
+
chain?: import('viem').Chain | null;
|
|
1485
|
+
dataSuffix?: `0x${string}`;
|
|
1486
|
+
gas?: bigint;
|
|
1487
|
+
gasPrice?: bigint;
|
|
1488
|
+
maxFeePerGas?: bigint;
|
|
1489
|
+
maxPriorityFeePerGas?: bigint;
|
|
1490
|
+
nonce?: number;
|
|
1491
|
+
value?: bigint;
|
|
1492
|
+
}): Promise<`0x${string}`>;
|
|
1493
|
+
/**
|
|
1494
|
+
* unpause
|
|
1495
|
+
* nonpayable
|
|
1496
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1497
|
+
*/
|
|
1498
|
+
unpause(options?: {
|
|
1499
|
+
accessList?: import('viem').AccessList;
|
|
1500
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1501
|
+
chain?: import('viem').Chain | null;
|
|
1502
|
+
dataSuffix?: `0x${string}`;
|
|
1503
|
+
gas?: bigint;
|
|
1504
|
+
gasPrice?: bigint;
|
|
1505
|
+
maxFeePerGas?: bigint;
|
|
1506
|
+
maxPriorityFeePerGas?: bigint;
|
|
1507
|
+
nonce?: number;
|
|
1508
|
+
value?: bigint;
|
|
1509
|
+
}): Promise<`0x${string}`>;
|
|
1510
|
+
/**
|
|
1511
|
+
* upgradeToAndCall
|
|
1512
|
+
* payable
|
|
1513
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1514
|
+
*/
|
|
1515
|
+
upgradeToAndCall(newImplementation: `0x${string}`, data: `0x${string}`, options?: {
|
|
1516
|
+
accessList?: import('viem').AccessList;
|
|
1517
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1518
|
+
chain?: import('viem').Chain | null;
|
|
1519
|
+
dataSuffix?: `0x${string}`;
|
|
1520
|
+
gas?: bigint;
|
|
1521
|
+
gasPrice?: bigint;
|
|
1522
|
+
maxFeePerGas?: bigint;
|
|
1523
|
+
maxPriorityFeePerGas?: bigint;
|
|
1524
|
+
nonce?: number;
|
|
1525
|
+
value?: bigint;
|
|
1526
|
+
}): Promise<`0x${string}`>;
|
|
1527
|
+
/**
|
|
1528
|
+
* Simulate contract write operations (dry-run without sending transaction)
|
|
1529
|
+
*
|
|
1530
|
+
* @example
|
|
1531
|
+
* const result = await contract.simulate.transfer('0x...', 1000n);
|
|
1532
|
+
* console.log('Gas estimate:', result.request.gas);
|
|
1533
|
+
* console.log('Would succeed:', result.result);
|
|
1534
|
+
*/
|
|
1535
|
+
get simulate(): {
|
|
1536
|
+
/**
|
|
1537
|
+
* Simulate addMinter
|
|
1538
|
+
* Returns gas estimate and result without sending transaction
|
|
1539
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1540
|
+
*/
|
|
1541
|
+
addMinter(newMinter: `0x${string}`, allowance: bigint, options?: {
|
|
1542
|
+
accessList?: import("viem").AccessList;
|
|
1543
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1544
|
+
chain?: import("viem").Chain | null;
|
|
1545
|
+
dataSuffix?: `0x${string}`;
|
|
1546
|
+
gas?: bigint;
|
|
1547
|
+
gasPrice?: bigint;
|
|
1548
|
+
maxFeePerGas?: bigint;
|
|
1549
|
+
maxPriorityFeePerGas?: bigint;
|
|
1550
|
+
nonce?: number;
|
|
1551
|
+
value?: bigint;
|
|
1552
|
+
}): Promise<void>;
|
|
1553
|
+
/**
|
|
1554
|
+
* Simulate approve
|
|
1555
|
+
* Returns gas estimate and result without sending transaction
|
|
1556
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1557
|
+
*/
|
|
1558
|
+
approve(spender: `0x${string}`, value: bigint, options?: {
|
|
1559
|
+
accessList?: import("viem").AccessList;
|
|
1560
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1561
|
+
chain?: import("viem").Chain | null;
|
|
1562
|
+
dataSuffix?: `0x${string}`;
|
|
1563
|
+
gas?: bigint;
|
|
1564
|
+
gasPrice?: bigint;
|
|
1565
|
+
maxFeePerGas?: bigint;
|
|
1566
|
+
maxPriorityFeePerGas?: bigint;
|
|
1567
|
+
nonce?: number;
|
|
1568
|
+
value?: bigint;
|
|
1569
|
+
}): Promise<boolean>;
|
|
1570
|
+
/**
|
|
1571
|
+
* Simulate burn
|
|
1572
|
+
* Returns gas estimate and result without sending transaction
|
|
1573
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1574
|
+
*/
|
|
1575
|
+
burn(value: bigint, options?: {
|
|
1576
|
+
accessList?: import("viem").AccessList;
|
|
1577
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1578
|
+
chain?: import("viem").Chain | null;
|
|
1579
|
+
dataSuffix?: `0x${string}`;
|
|
1580
|
+
gas?: bigint;
|
|
1581
|
+
gasPrice?: bigint;
|
|
1582
|
+
maxFeePerGas?: bigint;
|
|
1583
|
+
maxPriorityFeePerGas?: bigint;
|
|
1584
|
+
nonce?: number;
|
|
1585
|
+
value?: bigint;
|
|
1586
|
+
}): Promise<void>;
|
|
1587
|
+
/**
|
|
1588
|
+
* Simulate burnFrom
|
|
1589
|
+
* Returns gas estimate and result without sending transaction
|
|
1590
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1591
|
+
*/
|
|
1592
|
+
burnFrom(account: `0x${string}`, value: bigint, options?: {
|
|
1593
|
+
accessList?: import("viem").AccessList;
|
|
1594
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1595
|
+
chain?: import("viem").Chain | null;
|
|
1596
|
+
dataSuffix?: `0x${string}`;
|
|
1597
|
+
gas?: bigint;
|
|
1598
|
+
gasPrice?: bigint;
|
|
1599
|
+
maxFeePerGas?: bigint;
|
|
1600
|
+
maxPriorityFeePerGas?: bigint;
|
|
1601
|
+
nonce?: number;
|
|
1602
|
+
value?: bigint;
|
|
1603
|
+
}): Promise<void>;
|
|
1604
|
+
/**
|
|
1605
|
+
* Simulate freeze
|
|
1606
|
+
* Returns gas estimate and result without sending transaction
|
|
1607
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1608
|
+
*/
|
|
1609
|
+
freeze(account: `0x${string}`, options?: {
|
|
1610
|
+
accessList?: import("viem").AccessList;
|
|
1611
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1612
|
+
chain?: import("viem").Chain | null;
|
|
1613
|
+
dataSuffix?: `0x${string}`;
|
|
1614
|
+
gas?: bigint;
|
|
1615
|
+
gasPrice?: bigint;
|
|
1616
|
+
maxFeePerGas?: bigint;
|
|
1617
|
+
maxPriorityFeePerGas?: bigint;
|
|
1618
|
+
nonce?: number;
|
|
1619
|
+
value?: bigint;
|
|
1620
|
+
}): Promise<void>;
|
|
1621
|
+
/**
|
|
1622
|
+
* Simulate grantRole
|
|
1623
|
+
* Returns gas estimate and result without sending transaction
|
|
1624
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1625
|
+
*/
|
|
1626
|
+
grantRole(role: `0x${string}`, account: `0x${string}`, options?: {
|
|
1627
|
+
accessList?: import("viem").AccessList;
|
|
1628
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1629
|
+
chain?: import("viem").Chain | null;
|
|
1630
|
+
dataSuffix?: `0x${string}`;
|
|
1631
|
+
gas?: bigint;
|
|
1632
|
+
gasPrice?: bigint;
|
|
1633
|
+
maxFeePerGas?: bigint;
|
|
1634
|
+
maxPriorityFeePerGas?: bigint;
|
|
1635
|
+
nonce?: number;
|
|
1636
|
+
value?: bigint;
|
|
1637
|
+
}): Promise<void>;
|
|
1638
|
+
/**
|
|
1639
|
+
* Simulate initialize
|
|
1640
|
+
* Returns gas estimate and result without sending transaction
|
|
1641
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1642
|
+
*/
|
|
1643
|
+
initialize(name: string, symbol: string, decimals_: bigint, admin: `0x${string}`, burner: `0x${string}`, pauser: `0x${string}`, freezer: `0x${string}`, options?: {
|
|
1644
|
+
accessList?: import("viem").AccessList;
|
|
1645
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1646
|
+
chain?: import("viem").Chain | null;
|
|
1647
|
+
dataSuffix?: `0x${string}`;
|
|
1648
|
+
gas?: bigint;
|
|
1649
|
+
gasPrice?: bigint;
|
|
1650
|
+
maxFeePerGas?: bigint;
|
|
1651
|
+
maxPriorityFeePerGas?: bigint;
|
|
1652
|
+
nonce?: number;
|
|
1653
|
+
value?: bigint;
|
|
1654
|
+
}): Promise<void>;
|
|
1655
|
+
/**
|
|
1656
|
+
* Simulate mint
|
|
1657
|
+
* Returns gas estimate and result without sending transaction
|
|
1658
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1659
|
+
*/
|
|
1660
|
+
mint(to: `0x${string}`, value: bigint, options?: {
|
|
1661
|
+
accessList?: import("viem").AccessList;
|
|
1662
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1663
|
+
chain?: import("viem").Chain | null;
|
|
1664
|
+
dataSuffix?: `0x${string}`;
|
|
1665
|
+
gas?: bigint;
|
|
1666
|
+
gasPrice?: bigint;
|
|
1667
|
+
maxFeePerGas?: bigint;
|
|
1668
|
+
maxPriorityFeePerGas?: bigint;
|
|
1669
|
+
nonce?: number;
|
|
1670
|
+
value?: bigint;
|
|
1671
|
+
}): Promise<void>;
|
|
1672
|
+
/**
|
|
1673
|
+
* Simulate modifyMinterAllowance
|
|
1674
|
+
* Returns gas estimate and result without sending transaction
|
|
1675
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1676
|
+
*/
|
|
1677
|
+
modifyMinterAllowance(minter: `0x${string}`, delta: bigint, options?: {
|
|
1678
|
+
accessList?: import("viem").AccessList;
|
|
1679
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1680
|
+
chain?: import("viem").Chain | null;
|
|
1681
|
+
dataSuffix?: `0x${string}`;
|
|
1682
|
+
gas?: bigint;
|
|
1683
|
+
gasPrice?: bigint;
|
|
1684
|
+
maxFeePerGas?: bigint;
|
|
1685
|
+
maxPriorityFeePerGas?: bigint;
|
|
1686
|
+
nonce?: number;
|
|
1687
|
+
value?: bigint;
|
|
1688
|
+
}): Promise<void>;
|
|
1689
|
+
/**
|
|
1690
|
+
* Simulate pause
|
|
1691
|
+
* Returns gas estimate and result without sending transaction
|
|
1692
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1693
|
+
*/
|
|
1694
|
+
pause(options?: {
|
|
1695
|
+
accessList?: import("viem").AccessList;
|
|
1696
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1697
|
+
chain?: import("viem").Chain | null;
|
|
1698
|
+
dataSuffix?: `0x${string}`;
|
|
1699
|
+
gas?: bigint;
|
|
1700
|
+
gasPrice?: bigint;
|
|
1701
|
+
maxFeePerGas?: bigint;
|
|
1702
|
+
maxPriorityFeePerGas?: bigint;
|
|
1703
|
+
nonce?: number;
|
|
1704
|
+
value?: bigint;
|
|
1705
|
+
}): Promise<void>;
|
|
1706
|
+
/**
|
|
1707
|
+
* Simulate reinitializeAdminRole
|
|
1708
|
+
* Returns gas estimate and result without sending transaction
|
|
1709
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1710
|
+
*/
|
|
1711
|
+
reinitializeAdminRole(options?: {
|
|
1712
|
+
accessList?: import("viem").AccessList;
|
|
1713
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1714
|
+
chain?: import("viem").Chain | null;
|
|
1715
|
+
dataSuffix?: `0x${string}`;
|
|
1716
|
+
gas?: bigint;
|
|
1717
|
+
gasPrice?: bigint;
|
|
1718
|
+
maxFeePerGas?: bigint;
|
|
1719
|
+
maxPriorityFeePerGas?: bigint;
|
|
1720
|
+
nonce?: number;
|
|
1721
|
+
value?: bigint;
|
|
1722
|
+
}): Promise<void>;
|
|
1723
|
+
/**
|
|
1724
|
+
* Simulate removeMinter
|
|
1725
|
+
* Returns gas estimate and result without sending transaction
|
|
1726
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1727
|
+
*/
|
|
1728
|
+
removeMinter(minter: `0x${string}`, options?: {
|
|
1729
|
+
accessList?: import("viem").AccessList;
|
|
1730
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1731
|
+
chain?: import("viem").Chain | null;
|
|
1732
|
+
dataSuffix?: `0x${string}`;
|
|
1733
|
+
gas?: bigint;
|
|
1734
|
+
gasPrice?: bigint;
|
|
1735
|
+
maxFeePerGas?: bigint;
|
|
1736
|
+
maxPriorityFeePerGas?: bigint;
|
|
1737
|
+
nonce?: number;
|
|
1738
|
+
value?: bigint;
|
|
1739
|
+
}): Promise<void>;
|
|
1740
|
+
/**
|
|
1741
|
+
* Simulate renounceRole
|
|
1742
|
+
* Returns gas estimate and result without sending transaction
|
|
1743
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1744
|
+
*/
|
|
1745
|
+
renounceRole(role: `0x${string}`, callerConfirmation: `0x${string}`, options?: {
|
|
1746
|
+
accessList?: import("viem").AccessList;
|
|
1747
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1748
|
+
chain?: import("viem").Chain | null;
|
|
1749
|
+
dataSuffix?: `0x${string}`;
|
|
1750
|
+
gas?: bigint;
|
|
1751
|
+
gasPrice?: bigint;
|
|
1752
|
+
maxFeePerGas?: bigint;
|
|
1753
|
+
maxPriorityFeePerGas?: bigint;
|
|
1754
|
+
nonce?: number;
|
|
1755
|
+
value?: bigint;
|
|
1756
|
+
}): Promise<void>;
|
|
1757
|
+
/**
|
|
1758
|
+
* Simulate revokeRole
|
|
1759
|
+
* Returns gas estimate and result without sending transaction
|
|
1760
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1761
|
+
*/
|
|
1762
|
+
revokeRole(role: `0x${string}`, account: `0x${string}`, options?: {
|
|
1763
|
+
accessList?: import("viem").AccessList;
|
|
1764
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1765
|
+
chain?: import("viem").Chain | null;
|
|
1766
|
+
dataSuffix?: `0x${string}`;
|
|
1767
|
+
gas?: bigint;
|
|
1768
|
+
gasPrice?: bigint;
|
|
1769
|
+
maxFeePerGas?: bigint;
|
|
1770
|
+
maxPriorityFeePerGas?: bigint;
|
|
1771
|
+
nonce?: number;
|
|
1772
|
+
value?: bigint;
|
|
1773
|
+
}): Promise<void>;
|
|
1774
|
+
/**
|
|
1775
|
+
* Simulate transfer
|
|
1776
|
+
* Returns gas estimate and result without sending transaction
|
|
1777
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1778
|
+
*/
|
|
1779
|
+
transfer(to: `0x${string}`, value: bigint, options?: {
|
|
1780
|
+
accessList?: import("viem").AccessList;
|
|
1781
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1782
|
+
chain?: import("viem").Chain | null;
|
|
1783
|
+
dataSuffix?: `0x${string}`;
|
|
1784
|
+
gas?: bigint;
|
|
1785
|
+
gasPrice?: bigint;
|
|
1786
|
+
maxFeePerGas?: bigint;
|
|
1787
|
+
maxPriorityFeePerGas?: bigint;
|
|
1788
|
+
nonce?: number;
|
|
1789
|
+
value?: bigint;
|
|
1790
|
+
}): Promise<boolean>;
|
|
1791
|
+
/**
|
|
1792
|
+
* Simulate transferFrom
|
|
1793
|
+
* Returns gas estimate and result without sending transaction
|
|
1794
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1795
|
+
*/
|
|
1796
|
+
transferFrom(from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
|
|
1797
|
+
accessList?: import("viem").AccessList;
|
|
1798
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1799
|
+
chain?: import("viem").Chain | null;
|
|
1800
|
+
dataSuffix?: `0x${string}`;
|
|
1801
|
+
gas?: bigint;
|
|
1802
|
+
gasPrice?: bigint;
|
|
1803
|
+
maxFeePerGas?: bigint;
|
|
1804
|
+
maxPriorityFeePerGas?: bigint;
|
|
1805
|
+
nonce?: number;
|
|
1806
|
+
value?: bigint;
|
|
1807
|
+
}): Promise<boolean>;
|
|
1808
|
+
/**
|
|
1809
|
+
* Simulate unfreeze
|
|
1810
|
+
* Returns gas estimate and result without sending transaction
|
|
1811
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1812
|
+
*/
|
|
1813
|
+
unfreeze(account: `0x${string}`, options?: {
|
|
1814
|
+
accessList?: import("viem").AccessList;
|
|
1815
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1816
|
+
chain?: import("viem").Chain | null;
|
|
1817
|
+
dataSuffix?: `0x${string}`;
|
|
1818
|
+
gas?: bigint;
|
|
1819
|
+
gasPrice?: bigint;
|
|
1820
|
+
maxFeePerGas?: bigint;
|
|
1821
|
+
maxPriorityFeePerGas?: bigint;
|
|
1822
|
+
nonce?: number;
|
|
1823
|
+
value?: bigint;
|
|
1824
|
+
}): Promise<void>;
|
|
1825
|
+
/**
|
|
1826
|
+
* Simulate unpause
|
|
1827
|
+
* Returns gas estimate and result without sending transaction
|
|
1828
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1829
|
+
*/
|
|
1830
|
+
unpause(options?: {
|
|
1831
|
+
accessList?: import("viem").AccessList;
|
|
1832
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1833
|
+
chain?: import("viem").Chain | null;
|
|
1834
|
+
dataSuffix?: `0x${string}`;
|
|
1835
|
+
gas?: bigint;
|
|
1836
|
+
gasPrice?: bigint;
|
|
1837
|
+
maxFeePerGas?: bigint;
|
|
1838
|
+
maxPriorityFeePerGas?: bigint;
|
|
1839
|
+
nonce?: number;
|
|
1840
|
+
value?: bigint;
|
|
1841
|
+
}): Promise<void>;
|
|
1842
|
+
/**
|
|
1843
|
+
* Simulate upgradeToAndCall
|
|
1844
|
+
* Returns gas estimate and result without sending transaction
|
|
1845
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1846
|
+
*/
|
|
1847
|
+
upgradeToAndCall(newImplementation: `0x${string}`, data: `0x${string}`, options?: {
|
|
1848
|
+
accessList?: import("viem").AccessList;
|
|
1849
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1850
|
+
chain?: import("viem").Chain | null;
|
|
1851
|
+
dataSuffix?: `0x${string}`;
|
|
1852
|
+
gas?: bigint;
|
|
1853
|
+
gasPrice?: bigint;
|
|
1854
|
+
maxFeePerGas?: bigint;
|
|
1855
|
+
maxPriorityFeePerGas?: bigint;
|
|
1856
|
+
nonce?: number;
|
|
1857
|
+
value?: bigint;
|
|
1858
|
+
}): Promise<void>;
|
|
1859
|
+
};
|
|
1860
|
+
/**
|
|
1861
|
+
* Watch contract events
|
|
1862
|
+
*
|
|
1863
|
+
* @example
|
|
1864
|
+
* // Watch all Transfer events
|
|
1865
|
+
* const unwatch = contract.watch.Transfer((event) => {
|
|
1866
|
+
* console.log('Transfer:', event);
|
|
1867
|
+
* });
|
|
1868
|
+
*
|
|
1869
|
+
* // Stop watching
|
|
1870
|
+
* unwatch();
|
|
1871
|
+
*/
|
|
1872
|
+
get watch(): {
|
|
1873
|
+
/**
|
|
1874
|
+
* Watch AccountFrozen events
|
|
1875
|
+
* @param callback Function to call when event is emitted
|
|
1876
|
+
* @param filter Optional filter for indexed parameters
|
|
1877
|
+
* @returns Unwatch function to stop listening
|
|
1878
|
+
*/
|
|
1879
|
+
AccountFrozen: (callback: (event: {
|
|
1880
|
+
account: `0x${string}`;
|
|
1881
|
+
}) => void, filter?: {
|
|
1882
|
+
account?: `0x${string}` | `0x${string}`[] | null;
|
|
1883
|
+
}) => () => void;
|
|
1884
|
+
/**
|
|
1885
|
+
* Watch AccountUnfrozen events
|
|
1886
|
+
* @param callback Function to call when event is emitted
|
|
1887
|
+
* @param filter Optional filter for indexed parameters
|
|
1888
|
+
* @returns Unwatch function to stop listening
|
|
1889
|
+
*/
|
|
1890
|
+
AccountUnfrozen: (callback: (event: {
|
|
1891
|
+
account: `0x${string}`;
|
|
1892
|
+
}) => void, filter?: {
|
|
1893
|
+
account?: `0x${string}` | `0x${string}`[] | null;
|
|
1894
|
+
}) => () => void;
|
|
1895
|
+
/**
|
|
1896
|
+
* Watch Approval events
|
|
1897
|
+
* @param callback Function to call when event is emitted
|
|
1898
|
+
* @param filter Optional filter for indexed parameters
|
|
1899
|
+
* @returns Unwatch function to stop listening
|
|
1900
|
+
*/
|
|
1901
|
+
Approval: (callback: (event: {
|
|
1902
|
+
owner: `0x${string}`;
|
|
1903
|
+
spender: `0x${string}`;
|
|
1904
|
+
value: bigint;
|
|
1905
|
+
}) => void, filter?: {
|
|
1906
|
+
owner?: `0x${string}` | `0x${string}`[] | null;
|
|
1907
|
+
spender?: `0x${string}` | `0x${string}`[] | null;
|
|
1908
|
+
}) => () => void;
|
|
1909
|
+
/**
|
|
1910
|
+
* Watch Initialized events
|
|
1911
|
+
* @param callback Function to call when event is emitted
|
|
1912
|
+
* @param filter Optional filter for indexed parameters
|
|
1913
|
+
* @returns Unwatch function to stop listening
|
|
1914
|
+
*/
|
|
1915
|
+
Initialized: (callback: (event: {
|
|
1916
|
+
version: bigint;
|
|
1917
|
+
}) => void) => () => void;
|
|
1918
|
+
/**
|
|
1919
|
+
* Watch MinterAdded events
|
|
1920
|
+
* @param callback Function to call when event is emitted
|
|
1921
|
+
* @param filter Optional filter for indexed parameters
|
|
1922
|
+
* @returns Unwatch function to stop listening
|
|
1923
|
+
*/
|
|
1924
|
+
MinterAdded: (callback: (event: {
|
|
1925
|
+
minter: `0x${string}`;
|
|
1926
|
+
allowance: bigint;
|
|
1927
|
+
}) => void, filter?: {
|
|
1928
|
+
minter?: `0x${string}` | `0x${string}`[] | null;
|
|
1929
|
+
}) => () => void;
|
|
1930
|
+
/**
|
|
1931
|
+
* Watch MinterAllowanceChanged events
|
|
1932
|
+
* @param callback Function to call when event is emitted
|
|
1933
|
+
* @param filter Optional filter for indexed parameters
|
|
1934
|
+
* @returns Unwatch function to stop listening
|
|
1935
|
+
*/
|
|
1936
|
+
MinterAllowanceChanged: (callback: (event: {
|
|
1937
|
+
minter: `0x${string}`;
|
|
1938
|
+
oldAllowance: bigint;
|
|
1939
|
+
newAllowance: bigint;
|
|
1940
|
+
}) => void, filter?: {
|
|
1941
|
+
minter?: `0x${string}` | `0x${string}`[] | null;
|
|
1942
|
+
}) => () => void;
|
|
1943
|
+
/**
|
|
1944
|
+
* Watch MinterRemoved events
|
|
1945
|
+
* @param callback Function to call when event is emitted
|
|
1946
|
+
* @param filter Optional filter for indexed parameters
|
|
1947
|
+
* @returns Unwatch function to stop listening
|
|
1948
|
+
*/
|
|
1949
|
+
MinterRemoved: (callback: (event: {
|
|
1950
|
+
minter: `0x${string}`;
|
|
1951
|
+
}) => void, filter?: {
|
|
1952
|
+
minter?: `0x${string}` | `0x${string}`[] | null;
|
|
1953
|
+
}) => () => void;
|
|
1954
|
+
/**
|
|
1955
|
+
* Watch Paused events
|
|
1956
|
+
* @param callback Function to call when event is emitted
|
|
1957
|
+
* @param filter Optional filter for indexed parameters
|
|
1958
|
+
* @returns Unwatch function to stop listening
|
|
1959
|
+
*/
|
|
1960
|
+
Paused: (callback: (event: {
|
|
1961
|
+
account: `0x${string}`;
|
|
1962
|
+
}) => void) => () => void;
|
|
1963
|
+
/**
|
|
1964
|
+
* Watch RoleAdminChanged events
|
|
1965
|
+
* @param callback Function to call when event is emitted
|
|
1966
|
+
* @param filter Optional filter for indexed parameters
|
|
1967
|
+
* @returns Unwatch function to stop listening
|
|
1968
|
+
*/
|
|
1969
|
+
RoleAdminChanged: (callback: (event: {
|
|
1970
|
+
role: `0x${string}`;
|
|
1971
|
+
previousAdminRole: `0x${string}`;
|
|
1972
|
+
newAdminRole: `0x${string}`;
|
|
1973
|
+
}) => void, filter?: {
|
|
1974
|
+
role?: `0x${string}` | `0x${string}`[] | null;
|
|
1975
|
+
previousAdminRole?: `0x${string}` | `0x${string}`[] | null;
|
|
1976
|
+
newAdminRole?: `0x${string}` | `0x${string}`[] | null;
|
|
1977
|
+
}) => () => void;
|
|
1978
|
+
/**
|
|
1979
|
+
* Watch RoleGranted events
|
|
1980
|
+
* @param callback Function to call when event is emitted
|
|
1981
|
+
* @param filter Optional filter for indexed parameters
|
|
1982
|
+
* @returns Unwatch function to stop listening
|
|
1983
|
+
*/
|
|
1984
|
+
RoleGranted: (callback: (event: {
|
|
1985
|
+
role: `0x${string}`;
|
|
1986
|
+
account: `0x${string}`;
|
|
1987
|
+
sender: `0x${string}`;
|
|
1988
|
+
}) => void, filter?: {
|
|
1989
|
+
role?: `0x${string}` | `0x${string}`[] | null;
|
|
1990
|
+
account?: `0x${string}` | `0x${string}`[] | null;
|
|
1991
|
+
sender?: `0x${string}` | `0x${string}`[] | null;
|
|
1992
|
+
}) => () => void;
|
|
1993
|
+
/**
|
|
1994
|
+
* Watch RoleRevoked events
|
|
1995
|
+
* @param callback Function to call when event is emitted
|
|
1996
|
+
* @param filter Optional filter for indexed parameters
|
|
1997
|
+
* @returns Unwatch function to stop listening
|
|
1998
|
+
*/
|
|
1999
|
+
RoleRevoked: (callback: (event: {
|
|
2000
|
+
role: `0x${string}`;
|
|
2001
|
+
account: `0x${string}`;
|
|
2002
|
+
sender: `0x${string}`;
|
|
2003
|
+
}) => void, filter?: {
|
|
2004
|
+
role?: `0x${string}` | `0x${string}`[] | null;
|
|
2005
|
+
account?: `0x${string}` | `0x${string}`[] | null;
|
|
2006
|
+
sender?: `0x${string}` | `0x${string}`[] | null;
|
|
2007
|
+
}) => () => void;
|
|
2008
|
+
/**
|
|
2009
|
+
* Watch Transfer events
|
|
2010
|
+
* @param callback Function to call when event is emitted
|
|
2011
|
+
* @param filter Optional filter for indexed parameters
|
|
2012
|
+
* @returns Unwatch function to stop listening
|
|
2013
|
+
*/
|
|
2014
|
+
Transfer: (callback: (event: {
|
|
2015
|
+
from: `0x${string}`;
|
|
2016
|
+
to: `0x${string}`;
|
|
2017
|
+
value: bigint;
|
|
2018
|
+
}) => void, filter?: {
|
|
2019
|
+
from?: `0x${string}` | `0x${string}`[] | null;
|
|
2020
|
+
to?: `0x${string}` | `0x${string}`[] | null;
|
|
2021
|
+
}) => () => void;
|
|
2022
|
+
/**
|
|
2023
|
+
* Watch Unpaused events
|
|
2024
|
+
* @param callback Function to call when event is emitted
|
|
2025
|
+
* @param filter Optional filter for indexed parameters
|
|
2026
|
+
* @returns Unwatch function to stop listening
|
|
2027
|
+
*/
|
|
2028
|
+
Unpaused: (callback: (event: {
|
|
2029
|
+
account: `0x${string}`;
|
|
2030
|
+
}) => void) => () => void;
|
|
2031
|
+
/**
|
|
2032
|
+
* Watch Upgraded events
|
|
2033
|
+
* @param callback Function to call when event is emitted
|
|
2034
|
+
* @param filter Optional filter for indexed parameters
|
|
2035
|
+
* @returns Unwatch function to stop listening
|
|
2036
|
+
*/
|
|
2037
|
+
Upgraded: (callback: (event: {
|
|
2038
|
+
implementation: `0x${string}`;
|
|
2039
|
+
}) => void, filter?: {
|
|
2040
|
+
implementation?: `0x${string}` | `0x${string}`[] | null;
|
|
2041
|
+
}) => () => void;
|
|
2042
|
+
};
|
|
2043
|
+
}
|