@gitmyabi-stg/crclon 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/BeaconProxy.d.ts +169 -0
- package/contracts/BeaconProxy.js +221 -0
- package/contracts/BeaconProxy.ts +251 -0
- package/contracts/GMToken.d.ts +1488 -0
- package/contracts/GMToken.js +1546 -0
- package/contracts/GMToken.ts +1963 -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,1488 @@
|
|
|
1
|
+
import type { Address, PublicClient, WalletClient } from 'viem';
|
|
2
|
+
/**
|
|
3
|
+
* GMToken ABI
|
|
4
|
+
*
|
|
5
|
+
* This ABI is typed using viem's type system for full type safety.
|
|
6
|
+
*/
|
|
7
|
+
export declare const GMTokenAbi: readonly [{
|
|
8
|
+
readonly inputs: readonly [];
|
|
9
|
+
readonly stateMutability: "nonpayable";
|
|
10
|
+
readonly type: "constructor";
|
|
11
|
+
}, {
|
|
12
|
+
readonly inputs: readonly [];
|
|
13
|
+
readonly name: "ComplianceZeroAddress";
|
|
14
|
+
readonly type: "error";
|
|
15
|
+
}, {
|
|
16
|
+
readonly inputs: readonly [];
|
|
17
|
+
readonly name: "TokenPauseManagerCantBeZero";
|
|
18
|
+
readonly type: "error";
|
|
19
|
+
}, {
|
|
20
|
+
readonly inputs: readonly [];
|
|
21
|
+
readonly name: "TokenPaused";
|
|
22
|
+
readonly type: "error";
|
|
23
|
+
}, {
|
|
24
|
+
readonly anonymous: false;
|
|
25
|
+
readonly inputs: readonly [{
|
|
26
|
+
readonly indexed: true;
|
|
27
|
+
readonly internalType: "address";
|
|
28
|
+
readonly name: "owner";
|
|
29
|
+
readonly type: "address";
|
|
30
|
+
}, {
|
|
31
|
+
readonly indexed: true;
|
|
32
|
+
readonly internalType: "address";
|
|
33
|
+
readonly name: "spender";
|
|
34
|
+
readonly type: "address";
|
|
35
|
+
}, {
|
|
36
|
+
readonly indexed: false;
|
|
37
|
+
readonly internalType: "uint256";
|
|
38
|
+
readonly name: "value";
|
|
39
|
+
readonly type: "uint256";
|
|
40
|
+
}];
|
|
41
|
+
readonly name: "Approval";
|
|
42
|
+
readonly type: "event";
|
|
43
|
+
}, {
|
|
44
|
+
readonly anonymous: false;
|
|
45
|
+
readonly inputs: readonly [{
|
|
46
|
+
readonly indexed: true;
|
|
47
|
+
readonly internalType: "address";
|
|
48
|
+
readonly name: "oldCompliance";
|
|
49
|
+
readonly type: "address";
|
|
50
|
+
}, {
|
|
51
|
+
readonly indexed: true;
|
|
52
|
+
readonly internalType: "address";
|
|
53
|
+
readonly name: "newCompliance";
|
|
54
|
+
readonly type: "address";
|
|
55
|
+
}];
|
|
56
|
+
readonly name: "ComplianceSet";
|
|
57
|
+
readonly type: "event";
|
|
58
|
+
}, {
|
|
59
|
+
readonly anonymous: false;
|
|
60
|
+
readonly inputs: readonly [{
|
|
61
|
+
readonly indexed: false;
|
|
62
|
+
readonly internalType: "uint8";
|
|
63
|
+
readonly name: "version";
|
|
64
|
+
readonly type: "uint8";
|
|
65
|
+
}];
|
|
66
|
+
readonly name: "Initialized";
|
|
67
|
+
readonly type: "event";
|
|
68
|
+
}, {
|
|
69
|
+
readonly anonymous: false;
|
|
70
|
+
readonly inputs: readonly [{
|
|
71
|
+
readonly indexed: false;
|
|
72
|
+
readonly internalType: "string";
|
|
73
|
+
readonly name: "oldName";
|
|
74
|
+
readonly type: "string";
|
|
75
|
+
}, {
|
|
76
|
+
readonly indexed: false;
|
|
77
|
+
readonly internalType: "string";
|
|
78
|
+
readonly name: "newName";
|
|
79
|
+
readonly type: "string";
|
|
80
|
+
}];
|
|
81
|
+
readonly name: "NameChanged";
|
|
82
|
+
readonly type: "event";
|
|
83
|
+
}, {
|
|
84
|
+
readonly anonymous: false;
|
|
85
|
+
readonly inputs: readonly [{
|
|
86
|
+
readonly indexed: true;
|
|
87
|
+
readonly internalType: "bytes32";
|
|
88
|
+
readonly name: "role";
|
|
89
|
+
readonly type: "bytes32";
|
|
90
|
+
}, {
|
|
91
|
+
readonly indexed: true;
|
|
92
|
+
readonly internalType: "bytes32";
|
|
93
|
+
readonly name: "previousAdminRole";
|
|
94
|
+
readonly type: "bytes32";
|
|
95
|
+
}, {
|
|
96
|
+
readonly indexed: true;
|
|
97
|
+
readonly internalType: "bytes32";
|
|
98
|
+
readonly name: "newAdminRole";
|
|
99
|
+
readonly type: "bytes32";
|
|
100
|
+
}];
|
|
101
|
+
readonly name: "RoleAdminChanged";
|
|
102
|
+
readonly type: "event";
|
|
103
|
+
}, {
|
|
104
|
+
readonly anonymous: false;
|
|
105
|
+
readonly inputs: readonly [{
|
|
106
|
+
readonly indexed: true;
|
|
107
|
+
readonly internalType: "bytes32";
|
|
108
|
+
readonly name: "role";
|
|
109
|
+
readonly type: "bytes32";
|
|
110
|
+
}, {
|
|
111
|
+
readonly indexed: true;
|
|
112
|
+
readonly internalType: "address";
|
|
113
|
+
readonly name: "account";
|
|
114
|
+
readonly type: "address";
|
|
115
|
+
}, {
|
|
116
|
+
readonly indexed: true;
|
|
117
|
+
readonly internalType: "address";
|
|
118
|
+
readonly name: "sender";
|
|
119
|
+
readonly type: "address";
|
|
120
|
+
}];
|
|
121
|
+
readonly name: "RoleGranted";
|
|
122
|
+
readonly type: "event";
|
|
123
|
+
}, {
|
|
124
|
+
readonly anonymous: false;
|
|
125
|
+
readonly inputs: readonly [{
|
|
126
|
+
readonly indexed: true;
|
|
127
|
+
readonly internalType: "bytes32";
|
|
128
|
+
readonly name: "role";
|
|
129
|
+
readonly type: "bytes32";
|
|
130
|
+
}, {
|
|
131
|
+
readonly indexed: true;
|
|
132
|
+
readonly internalType: "address";
|
|
133
|
+
readonly name: "account";
|
|
134
|
+
readonly type: "address";
|
|
135
|
+
}, {
|
|
136
|
+
readonly indexed: true;
|
|
137
|
+
readonly internalType: "address";
|
|
138
|
+
readonly name: "sender";
|
|
139
|
+
readonly type: "address";
|
|
140
|
+
}];
|
|
141
|
+
readonly name: "RoleRevoked";
|
|
142
|
+
readonly type: "event";
|
|
143
|
+
}, {
|
|
144
|
+
readonly anonymous: false;
|
|
145
|
+
readonly inputs: readonly [{
|
|
146
|
+
readonly indexed: false;
|
|
147
|
+
readonly internalType: "string";
|
|
148
|
+
readonly name: "oldSymbol";
|
|
149
|
+
readonly type: "string";
|
|
150
|
+
}, {
|
|
151
|
+
readonly indexed: false;
|
|
152
|
+
readonly internalType: "string";
|
|
153
|
+
readonly name: "newSymbol";
|
|
154
|
+
readonly type: "string";
|
|
155
|
+
}];
|
|
156
|
+
readonly name: "SymbolChanged";
|
|
157
|
+
readonly type: "event";
|
|
158
|
+
}, {
|
|
159
|
+
readonly anonymous: false;
|
|
160
|
+
readonly inputs: readonly [{
|
|
161
|
+
readonly indexed: true;
|
|
162
|
+
readonly internalType: "address";
|
|
163
|
+
readonly name: "oldTokenPauseManager";
|
|
164
|
+
readonly type: "address";
|
|
165
|
+
}, {
|
|
166
|
+
readonly indexed: true;
|
|
167
|
+
readonly internalType: "address";
|
|
168
|
+
readonly name: "newTokenPauseManager";
|
|
169
|
+
readonly type: "address";
|
|
170
|
+
}];
|
|
171
|
+
readonly name: "TokenPauseManagerSet";
|
|
172
|
+
readonly type: "event";
|
|
173
|
+
}, {
|
|
174
|
+
readonly anonymous: false;
|
|
175
|
+
readonly inputs: readonly [{
|
|
176
|
+
readonly indexed: true;
|
|
177
|
+
readonly internalType: "address";
|
|
178
|
+
readonly name: "from";
|
|
179
|
+
readonly type: "address";
|
|
180
|
+
}, {
|
|
181
|
+
readonly indexed: true;
|
|
182
|
+
readonly internalType: "address";
|
|
183
|
+
readonly name: "to";
|
|
184
|
+
readonly type: "address";
|
|
185
|
+
}, {
|
|
186
|
+
readonly indexed: false;
|
|
187
|
+
readonly internalType: "uint256";
|
|
188
|
+
readonly name: "value";
|
|
189
|
+
readonly type: "uint256";
|
|
190
|
+
}];
|
|
191
|
+
readonly name: "Transfer";
|
|
192
|
+
readonly type: "event";
|
|
193
|
+
}, {
|
|
194
|
+
readonly inputs: readonly [];
|
|
195
|
+
readonly name: "BURNER_ROLE";
|
|
196
|
+
readonly outputs: readonly [{
|
|
197
|
+
readonly internalType: "bytes32";
|
|
198
|
+
readonly name: "";
|
|
199
|
+
readonly type: "bytes32";
|
|
200
|
+
}];
|
|
201
|
+
readonly stateMutability: "view";
|
|
202
|
+
readonly type: "function";
|
|
203
|
+
}, {
|
|
204
|
+
readonly inputs: readonly [];
|
|
205
|
+
readonly name: "CONFIGURER_ROLE";
|
|
206
|
+
readonly outputs: readonly [{
|
|
207
|
+
readonly internalType: "bytes32";
|
|
208
|
+
readonly name: "";
|
|
209
|
+
readonly type: "bytes32";
|
|
210
|
+
}];
|
|
211
|
+
readonly stateMutability: "view";
|
|
212
|
+
readonly type: "function";
|
|
213
|
+
}, {
|
|
214
|
+
readonly inputs: readonly [];
|
|
215
|
+
readonly name: "DEFAULT_ADMIN_ROLE";
|
|
216
|
+
readonly outputs: readonly [{
|
|
217
|
+
readonly internalType: "bytes32";
|
|
218
|
+
readonly name: "";
|
|
219
|
+
readonly type: "bytes32";
|
|
220
|
+
}];
|
|
221
|
+
readonly stateMutability: "view";
|
|
222
|
+
readonly type: "function";
|
|
223
|
+
}, {
|
|
224
|
+
readonly inputs: readonly [];
|
|
225
|
+
readonly name: "MINTER_ROLE";
|
|
226
|
+
readonly outputs: readonly [{
|
|
227
|
+
readonly internalType: "bytes32";
|
|
228
|
+
readonly name: "";
|
|
229
|
+
readonly type: "bytes32";
|
|
230
|
+
}];
|
|
231
|
+
readonly stateMutability: "view";
|
|
232
|
+
readonly type: "function";
|
|
233
|
+
}, {
|
|
234
|
+
readonly inputs: readonly [{
|
|
235
|
+
readonly internalType: "address";
|
|
236
|
+
readonly name: "owner";
|
|
237
|
+
readonly type: "address";
|
|
238
|
+
}, {
|
|
239
|
+
readonly internalType: "address";
|
|
240
|
+
readonly name: "spender";
|
|
241
|
+
readonly type: "address";
|
|
242
|
+
}];
|
|
243
|
+
readonly name: "allowance";
|
|
244
|
+
readonly outputs: readonly [{
|
|
245
|
+
readonly internalType: "uint256";
|
|
246
|
+
readonly name: "";
|
|
247
|
+
readonly type: "uint256";
|
|
248
|
+
}];
|
|
249
|
+
readonly stateMutability: "view";
|
|
250
|
+
readonly type: "function";
|
|
251
|
+
}, {
|
|
252
|
+
readonly inputs: readonly [{
|
|
253
|
+
readonly internalType: "address";
|
|
254
|
+
readonly name: "spender";
|
|
255
|
+
readonly type: "address";
|
|
256
|
+
}, {
|
|
257
|
+
readonly internalType: "uint256";
|
|
258
|
+
readonly name: "amount";
|
|
259
|
+
readonly type: "uint256";
|
|
260
|
+
}];
|
|
261
|
+
readonly name: "approve";
|
|
262
|
+
readonly outputs: readonly [{
|
|
263
|
+
readonly internalType: "bool";
|
|
264
|
+
readonly name: "";
|
|
265
|
+
readonly type: "bool";
|
|
266
|
+
}];
|
|
267
|
+
readonly stateMutability: "nonpayable";
|
|
268
|
+
readonly type: "function";
|
|
269
|
+
}, {
|
|
270
|
+
readonly inputs: readonly [{
|
|
271
|
+
readonly internalType: "address";
|
|
272
|
+
readonly name: "account";
|
|
273
|
+
readonly type: "address";
|
|
274
|
+
}];
|
|
275
|
+
readonly name: "balanceOf";
|
|
276
|
+
readonly outputs: readonly [{
|
|
277
|
+
readonly internalType: "uint256";
|
|
278
|
+
readonly name: "";
|
|
279
|
+
readonly type: "uint256";
|
|
280
|
+
}];
|
|
281
|
+
readonly stateMutability: "view";
|
|
282
|
+
readonly type: "function";
|
|
283
|
+
}, {
|
|
284
|
+
readonly inputs: readonly [{
|
|
285
|
+
readonly internalType: "uint256";
|
|
286
|
+
readonly name: "amount";
|
|
287
|
+
readonly type: "uint256";
|
|
288
|
+
}];
|
|
289
|
+
readonly name: "burn";
|
|
290
|
+
readonly outputs: readonly [];
|
|
291
|
+
readonly stateMutability: "nonpayable";
|
|
292
|
+
readonly type: "function";
|
|
293
|
+
}, {
|
|
294
|
+
readonly inputs: readonly [{
|
|
295
|
+
readonly internalType: "address";
|
|
296
|
+
readonly name: "from";
|
|
297
|
+
readonly type: "address";
|
|
298
|
+
}, {
|
|
299
|
+
readonly internalType: "uint256";
|
|
300
|
+
readonly name: "amount";
|
|
301
|
+
readonly type: "uint256";
|
|
302
|
+
}];
|
|
303
|
+
readonly name: "burn";
|
|
304
|
+
readonly outputs: readonly [];
|
|
305
|
+
readonly stateMutability: "nonpayable";
|
|
306
|
+
readonly type: "function";
|
|
307
|
+
}, {
|
|
308
|
+
readonly inputs: readonly [{
|
|
309
|
+
readonly internalType: "address";
|
|
310
|
+
readonly name: "account";
|
|
311
|
+
readonly type: "address";
|
|
312
|
+
}, {
|
|
313
|
+
readonly internalType: "uint256";
|
|
314
|
+
readonly name: "amount";
|
|
315
|
+
readonly type: "uint256";
|
|
316
|
+
}];
|
|
317
|
+
readonly name: "burnFrom";
|
|
318
|
+
readonly outputs: readonly [];
|
|
319
|
+
readonly stateMutability: "nonpayable";
|
|
320
|
+
readonly type: "function";
|
|
321
|
+
}, {
|
|
322
|
+
readonly inputs: readonly [];
|
|
323
|
+
readonly name: "compliance";
|
|
324
|
+
readonly outputs: readonly [{
|
|
325
|
+
readonly internalType: "contract IOndoComplianceGMView";
|
|
326
|
+
readonly name: "";
|
|
327
|
+
readonly type: "address";
|
|
328
|
+
}];
|
|
329
|
+
readonly stateMutability: "view";
|
|
330
|
+
readonly type: "function";
|
|
331
|
+
}, {
|
|
332
|
+
readonly inputs: readonly [];
|
|
333
|
+
readonly name: "decimals";
|
|
334
|
+
readonly outputs: readonly [{
|
|
335
|
+
readonly internalType: "uint8";
|
|
336
|
+
readonly name: "";
|
|
337
|
+
readonly type: "uint8";
|
|
338
|
+
}];
|
|
339
|
+
readonly stateMutability: "view";
|
|
340
|
+
readonly type: "function";
|
|
341
|
+
}, {
|
|
342
|
+
readonly inputs: readonly [{
|
|
343
|
+
readonly internalType: "address";
|
|
344
|
+
readonly name: "spender";
|
|
345
|
+
readonly type: "address";
|
|
346
|
+
}, {
|
|
347
|
+
readonly internalType: "uint256";
|
|
348
|
+
readonly name: "subtractedValue";
|
|
349
|
+
readonly type: "uint256";
|
|
350
|
+
}];
|
|
351
|
+
readonly name: "decreaseAllowance";
|
|
352
|
+
readonly outputs: readonly [{
|
|
353
|
+
readonly internalType: "bool";
|
|
354
|
+
readonly name: "";
|
|
355
|
+
readonly type: "bool";
|
|
356
|
+
}];
|
|
357
|
+
readonly stateMutability: "nonpayable";
|
|
358
|
+
readonly type: "function";
|
|
359
|
+
}, {
|
|
360
|
+
readonly inputs: readonly [{
|
|
361
|
+
readonly internalType: "bytes32";
|
|
362
|
+
readonly name: "role";
|
|
363
|
+
readonly type: "bytes32";
|
|
364
|
+
}];
|
|
365
|
+
readonly name: "getRoleAdmin";
|
|
366
|
+
readonly outputs: readonly [{
|
|
367
|
+
readonly internalType: "bytes32";
|
|
368
|
+
readonly name: "";
|
|
369
|
+
readonly type: "bytes32";
|
|
370
|
+
}];
|
|
371
|
+
readonly stateMutability: "view";
|
|
372
|
+
readonly type: "function";
|
|
373
|
+
}, {
|
|
374
|
+
readonly inputs: readonly [{
|
|
375
|
+
readonly internalType: "bytes32";
|
|
376
|
+
readonly name: "role";
|
|
377
|
+
readonly type: "bytes32";
|
|
378
|
+
}, {
|
|
379
|
+
readonly internalType: "uint256";
|
|
380
|
+
readonly name: "index";
|
|
381
|
+
readonly type: "uint256";
|
|
382
|
+
}];
|
|
383
|
+
readonly name: "getRoleMember";
|
|
384
|
+
readonly outputs: readonly [{
|
|
385
|
+
readonly internalType: "address";
|
|
386
|
+
readonly name: "";
|
|
387
|
+
readonly type: "address";
|
|
388
|
+
}];
|
|
389
|
+
readonly stateMutability: "view";
|
|
390
|
+
readonly type: "function";
|
|
391
|
+
}, {
|
|
392
|
+
readonly inputs: readonly [{
|
|
393
|
+
readonly internalType: "bytes32";
|
|
394
|
+
readonly name: "role";
|
|
395
|
+
readonly type: "bytes32";
|
|
396
|
+
}];
|
|
397
|
+
readonly name: "getRoleMemberCount";
|
|
398
|
+
readonly outputs: readonly [{
|
|
399
|
+
readonly internalType: "uint256";
|
|
400
|
+
readonly name: "";
|
|
401
|
+
readonly type: "uint256";
|
|
402
|
+
}];
|
|
403
|
+
readonly stateMutability: "view";
|
|
404
|
+
readonly type: "function";
|
|
405
|
+
}, {
|
|
406
|
+
readonly inputs: readonly [{
|
|
407
|
+
readonly internalType: "bytes32";
|
|
408
|
+
readonly name: "role";
|
|
409
|
+
readonly type: "bytes32";
|
|
410
|
+
}, {
|
|
411
|
+
readonly internalType: "address";
|
|
412
|
+
readonly name: "account";
|
|
413
|
+
readonly type: "address";
|
|
414
|
+
}];
|
|
415
|
+
readonly name: "grantRole";
|
|
416
|
+
readonly outputs: readonly [];
|
|
417
|
+
readonly stateMutability: "nonpayable";
|
|
418
|
+
readonly type: "function";
|
|
419
|
+
}, {
|
|
420
|
+
readonly inputs: readonly [{
|
|
421
|
+
readonly internalType: "bytes32";
|
|
422
|
+
readonly name: "role";
|
|
423
|
+
readonly type: "bytes32";
|
|
424
|
+
}, {
|
|
425
|
+
readonly internalType: "address";
|
|
426
|
+
readonly name: "account";
|
|
427
|
+
readonly type: "address";
|
|
428
|
+
}];
|
|
429
|
+
readonly name: "hasRole";
|
|
430
|
+
readonly outputs: readonly [{
|
|
431
|
+
readonly internalType: "bool";
|
|
432
|
+
readonly name: "";
|
|
433
|
+
readonly type: "bool";
|
|
434
|
+
}];
|
|
435
|
+
readonly stateMutability: "view";
|
|
436
|
+
readonly type: "function";
|
|
437
|
+
}, {
|
|
438
|
+
readonly inputs: readonly [{
|
|
439
|
+
readonly internalType: "address";
|
|
440
|
+
readonly name: "spender";
|
|
441
|
+
readonly type: "address";
|
|
442
|
+
}, {
|
|
443
|
+
readonly internalType: "uint256";
|
|
444
|
+
readonly name: "addedValue";
|
|
445
|
+
readonly type: "uint256";
|
|
446
|
+
}];
|
|
447
|
+
readonly name: "increaseAllowance";
|
|
448
|
+
readonly outputs: readonly [{
|
|
449
|
+
readonly internalType: "bool";
|
|
450
|
+
readonly name: "";
|
|
451
|
+
readonly type: "bool";
|
|
452
|
+
}];
|
|
453
|
+
readonly stateMutability: "nonpayable";
|
|
454
|
+
readonly type: "function";
|
|
455
|
+
}, {
|
|
456
|
+
readonly inputs: readonly [{
|
|
457
|
+
readonly internalType: "string";
|
|
458
|
+
readonly name: "_nameOverride";
|
|
459
|
+
readonly type: "string";
|
|
460
|
+
}, {
|
|
461
|
+
readonly internalType: "string";
|
|
462
|
+
readonly name: "_symbolOverride";
|
|
463
|
+
readonly type: "string";
|
|
464
|
+
}, {
|
|
465
|
+
readonly internalType: "address";
|
|
466
|
+
readonly name: "_compliance";
|
|
467
|
+
readonly type: "address";
|
|
468
|
+
}, {
|
|
469
|
+
readonly internalType: "address";
|
|
470
|
+
readonly name: "_tokenPauseManager";
|
|
471
|
+
readonly type: "address";
|
|
472
|
+
}];
|
|
473
|
+
readonly name: "initialize";
|
|
474
|
+
readonly outputs: readonly [];
|
|
475
|
+
readonly stateMutability: "nonpayable";
|
|
476
|
+
readonly type: "function";
|
|
477
|
+
}, {
|
|
478
|
+
readonly inputs: readonly [{
|
|
479
|
+
readonly internalType: "address";
|
|
480
|
+
readonly name: "to";
|
|
481
|
+
readonly type: "address";
|
|
482
|
+
}, {
|
|
483
|
+
readonly internalType: "uint256";
|
|
484
|
+
readonly name: "amount";
|
|
485
|
+
readonly type: "uint256";
|
|
486
|
+
}];
|
|
487
|
+
readonly name: "mint";
|
|
488
|
+
readonly outputs: readonly [];
|
|
489
|
+
readonly stateMutability: "nonpayable";
|
|
490
|
+
readonly type: "function";
|
|
491
|
+
}, {
|
|
492
|
+
readonly inputs: readonly [];
|
|
493
|
+
readonly name: "name";
|
|
494
|
+
readonly outputs: readonly [{
|
|
495
|
+
readonly internalType: "string";
|
|
496
|
+
readonly name: "";
|
|
497
|
+
readonly type: "string";
|
|
498
|
+
}];
|
|
499
|
+
readonly stateMutability: "view";
|
|
500
|
+
readonly type: "function";
|
|
501
|
+
}, {
|
|
502
|
+
readonly inputs: readonly [{
|
|
503
|
+
readonly internalType: "bytes32";
|
|
504
|
+
readonly name: "role";
|
|
505
|
+
readonly type: "bytes32";
|
|
506
|
+
}, {
|
|
507
|
+
readonly internalType: "address";
|
|
508
|
+
readonly name: "account";
|
|
509
|
+
readonly type: "address";
|
|
510
|
+
}];
|
|
511
|
+
readonly name: "renounceRole";
|
|
512
|
+
readonly outputs: readonly [];
|
|
513
|
+
readonly stateMutability: "nonpayable";
|
|
514
|
+
readonly type: "function";
|
|
515
|
+
}, {
|
|
516
|
+
readonly inputs: readonly [{
|
|
517
|
+
readonly internalType: "bytes32";
|
|
518
|
+
readonly name: "role";
|
|
519
|
+
readonly type: "bytes32";
|
|
520
|
+
}, {
|
|
521
|
+
readonly internalType: "address";
|
|
522
|
+
readonly name: "account";
|
|
523
|
+
readonly type: "address";
|
|
524
|
+
}];
|
|
525
|
+
readonly name: "revokeRole";
|
|
526
|
+
readonly outputs: readonly [];
|
|
527
|
+
readonly stateMutability: "nonpayable";
|
|
528
|
+
readonly type: "function";
|
|
529
|
+
}, {
|
|
530
|
+
readonly inputs: readonly [{
|
|
531
|
+
readonly internalType: "address";
|
|
532
|
+
readonly name: "_compliance";
|
|
533
|
+
readonly type: "address";
|
|
534
|
+
}];
|
|
535
|
+
readonly name: "setCompliance";
|
|
536
|
+
readonly outputs: readonly [];
|
|
537
|
+
readonly stateMutability: "nonpayable";
|
|
538
|
+
readonly type: "function";
|
|
539
|
+
}, {
|
|
540
|
+
readonly inputs: readonly [{
|
|
541
|
+
readonly internalType: "string";
|
|
542
|
+
readonly name: "_nameOverride";
|
|
543
|
+
readonly type: "string";
|
|
544
|
+
}];
|
|
545
|
+
readonly name: "setName";
|
|
546
|
+
readonly outputs: readonly [];
|
|
547
|
+
readonly stateMutability: "nonpayable";
|
|
548
|
+
readonly type: "function";
|
|
549
|
+
}, {
|
|
550
|
+
readonly inputs: readonly [{
|
|
551
|
+
readonly internalType: "string";
|
|
552
|
+
readonly name: "_symbolOverride";
|
|
553
|
+
readonly type: "string";
|
|
554
|
+
}];
|
|
555
|
+
readonly name: "setSymbol";
|
|
556
|
+
readonly outputs: readonly [];
|
|
557
|
+
readonly stateMutability: "nonpayable";
|
|
558
|
+
readonly type: "function";
|
|
559
|
+
}, {
|
|
560
|
+
readonly inputs: readonly [{
|
|
561
|
+
readonly internalType: "address";
|
|
562
|
+
readonly name: "_tokenPauseManager";
|
|
563
|
+
readonly type: "address";
|
|
564
|
+
}];
|
|
565
|
+
readonly name: "setTokenPauseManager";
|
|
566
|
+
readonly outputs: readonly [];
|
|
567
|
+
readonly stateMutability: "nonpayable";
|
|
568
|
+
readonly type: "function";
|
|
569
|
+
}, {
|
|
570
|
+
readonly inputs: readonly [{
|
|
571
|
+
readonly internalType: "bytes4";
|
|
572
|
+
readonly name: "interfaceId";
|
|
573
|
+
readonly type: "bytes4";
|
|
574
|
+
}];
|
|
575
|
+
readonly name: "supportsInterface";
|
|
576
|
+
readonly outputs: readonly [{
|
|
577
|
+
readonly internalType: "bool";
|
|
578
|
+
readonly name: "";
|
|
579
|
+
readonly type: "bool";
|
|
580
|
+
}];
|
|
581
|
+
readonly stateMutability: "view";
|
|
582
|
+
readonly type: "function";
|
|
583
|
+
}, {
|
|
584
|
+
readonly inputs: readonly [];
|
|
585
|
+
readonly name: "symbol";
|
|
586
|
+
readonly outputs: readonly [{
|
|
587
|
+
readonly internalType: "string";
|
|
588
|
+
readonly name: "";
|
|
589
|
+
readonly type: "string";
|
|
590
|
+
}];
|
|
591
|
+
readonly stateMutability: "view";
|
|
592
|
+
readonly type: "function";
|
|
593
|
+
}, {
|
|
594
|
+
readonly inputs: readonly [];
|
|
595
|
+
readonly name: "tokenPauseManager";
|
|
596
|
+
readonly outputs: readonly [{
|
|
597
|
+
readonly internalType: "contract ITokenPauseManager";
|
|
598
|
+
readonly name: "";
|
|
599
|
+
readonly type: "address";
|
|
600
|
+
}];
|
|
601
|
+
readonly stateMutability: "view";
|
|
602
|
+
readonly type: "function";
|
|
603
|
+
}, {
|
|
604
|
+
readonly inputs: readonly [];
|
|
605
|
+
readonly name: "totalSupply";
|
|
606
|
+
readonly outputs: readonly [{
|
|
607
|
+
readonly internalType: "uint256";
|
|
608
|
+
readonly name: "";
|
|
609
|
+
readonly type: "uint256";
|
|
610
|
+
}];
|
|
611
|
+
readonly stateMutability: "view";
|
|
612
|
+
readonly type: "function";
|
|
613
|
+
}, {
|
|
614
|
+
readonly inputs: readonly [{
|
|
615
|
+
readonly internalType: "address";
|
|
616
|
+
readonly name: "to";
|
|
617
|
+
readonly type: "address";
|
|
618
|
+
}, {
|
|
619
|
+
readonly internalType: "uint256";
|
|
620
|
+
readonly name: "amount";
|
|
621
|
+
readonly type: "uint256";
|
|
622
|
+
}];
|
|
623
|
+
readonly name: "transfer";
|
|
624
|
+
readonly outputs: readonly [{
|
|
625
|
+
readonly internalType: "bool";
|
|
626
|
+
readonly name: "";
|
|
627
|
+
readonly type: "bool";
|
|
628
|
+
}];
|
|
629
|
+
readonly stateMutability: "nonpayable";
|
|
630
|
+
readonly type: "function";
|
|
631
|
+
}, {
|
|
632
|
+
readonly inputs: readonly [{
|
|
633
|
+
readonly internalType: "address";
|
|
634
|
+
readonly name: "from";
|
|
635
|
+
readonly type: "address";
|
|
636
|
+
}, {
|
|
637
|
+
readonly internalType: "address";
|
|
638
|
+
readonly name: "to";
|
|
639
|
+
readonly type: "address";
|
|
640
|
+
}, {
|
|
641
|
+
readonly internalType: "uint256";
|
|
642
|
+
readonly name: "amount";
|
|
643
|
+
readonly type: "uint256";
|
|
644
|
+
}];
|
|
645
|
+
readonly name: "transferFrom";
|
|
646
|
+
readonly outputs: readonly [{
|
|
647
|
+
readonly internalType: "bool";
|
|
648
|
+
readonly name: "";
|
|
649
|
+
readonly type: "bool";
|
|
650
|
+
}];
|
|
651
|
+
readonly stateMutability: "nonpayable";
|
|
652
|
+
readonly type: "function";
|
|
653
|
+
}];
|
|
654
|
+
/**
|
|
655
|
+
* Type-safe ABI for GMToken
|
|
656
|
+
*/
|
|
657
|
+
export type GMTokenAbi = typeof GMTokenAbi;
|
|
658
|
+
/**
|
|
659
|
+
* Contract instance type for GMToken
|
|
660
|
+
*/
|
|
661
|
+
export type GMTokenContract = any;
|
|
662
|
+
/**
|
|
663
|
+
* GMToken Contract Class
|
|
664
|
+
*
|
|
665
|
+
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
666
|
+
*
|
|
667
|
+
* @example
|
|
668
|
+
* ```typescript
|
|
669
|
+
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
670
|
+
* import { mainnet } from 'viem/chains';
|
|
671
|
+
* import { GMToken } from 'GMToken';
|
|
672
|
+
*
|
|
673
|
+
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
674
|
+
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
675
|
+
*
|
|
676
|
+
* const contract = new GMToken('0x...', { publicClient, walletClient });
|
|
677
|
+
*
|
|
678
|
+
* // Read functions
|
|
679
|
+
* const result = await contract.balanceOf('0x...');
|
|
680
|
+
*
|
|
681
|
+
* // Write functions
|
|
682
|
+
* const hash = await contract.transfer('0x...', 1000n);
|
|
683
|
+
*
|
|
684
|
+
* // Simulate transactions (dry-run)
|
|
685
|
+
* const simulation = await contract.simulate.transfer('0x...', 1000n);
|
|
686
|
+
* console.log('Gas estimate:', simulation.request.gas);
|
|
687
|
+
*
|
|
688
|
+
* // Watch events
|
|
689
|
+
* const unwatch = contract.watch.Transfer((event) => {
|
|
690
|
+
* console.log('Transfer event:', event);
|
|
691
|
+
* });
|
|
692
|
+
* ```
|
|
693
|
+
*/
|
|
694
|
+
export declare class GMToken {
|
|
695
|
+
private contract;
|
|
696
|
+
private contractAddress;
|
|
697
|
+
private publicClient;
|
|
698
|
+
constructor(address: Address, clients: {
|
|
699
|
+
publicClient: PublicClient;
|
|
700
|
+
walletClient?: WalletClient;
|
|
701
|
+
});
|
|
702
|
+
/**
|
|
703
|
+
* Get the contract address
|
|
704
|
+
*/
|
|
705
|
+
get address(): Address;
|
|
706
|
+
/**
|
|
707
|
+
* Get the underlying viem contract instance.
|
|
708
|
+
*/
|
|
709
|
+
getContract(): GMTokenContract;
|
|
710
|
+
/**
|
|
711
|
+
* BURNER_ROLE
|
|
712
|
+
* view
|
|
713
|
+
*/
|
|
714
|
+
BURNER_ROLE(): Promise<`0x${string}`>;
|
|
715
|
+
/**
|
|
716
|
+
* CONFIGURER_ROLE
|
|
717
|
+
* view
|
|
718
|
+
*/
|
|
719
|
+
CONFIGURER_ROLE(): Promise<`0x${string}`>;
|
|
720
|
+
/**
|
|
721
|
+
* DEFAULT_ADMIN_ROLE
|
|
722
|
+
* view
|
|
723
|
+
*/
|
|
724
|
+
DEFAULT_ADMIN_ROLE(): Promise<`0x${string}`>;
|
|
725
|
+
/**
|
|
726
|
+
* MINTER_ROLE
|
|
727
|
+
* view
|
|
728
|
+
*/
|
|
729
|
+
MINTER_ROLE(): Promise<`0x${string}`>;
|
|
730
|
+
/**
|
|
731
|
+
* allowance
|
|
732
|
+
* view
|
|
733
|
+
*/
|
|
734
|
+
allowance(owner: `0x${string}`, spender: `0x${string}`): Promise<bigint>;
|
|
735
|
+
/**
|
|
736
|
+
* balanceOf
|
|
737
|
+
* view
|
|
738
|
+
*/
|
|
739
|
+
balanceOf(account: `0x${string}`): Promise<bigint>;
|
|
740
|
+
/**
|
|
741
|
+
* compliance
|
|
742
|
+
* view
|
|
743
|
+
*/
|
|
744
|
+
compliance(): Promise<`0x${string}`>;
|
|
745
|
+
/**
|
|
746
|
+
* decimals
|
|
747
|
+
* view
|
|
748
|
+
*/
|
|
749
|
+
decimals(): Promise<bigint>;
|
|
750
|
+
/**
|
|
751
|
+
* getRoleAdmin
|
|
752
|
+
* view
|
|
753
|
+
*/
|
|
754
|
+
getRoleAdmin(role: `0x${string}`): Promise<`0x${string}`>;
|
|
755
|
+
/**
|
|
756
|
+
* getRoleMember
|
|
757
|
+
* view
|
|
758
|
+
*/
|
|
759
|
+
getRoleMember(role: `0x${string}`, index: bigint): Promise<`0x${string}`>;
|
|
760
|
+
/**
|
|
761
|
+
* getRoleMemberCount
|
|
762
|
+
* view
|
|
763
|
+
*/
|
|
764
|
+
getRoleMemberCount(role: `0x${string}`): Promise<bigint>;
|
|
765
|
+
/**
|
|
766
|
+
* hasRole
|
|
767
|
+
* view
|
|
768
|
+
*/
|
|
769
|
+
hasRole(role: `0x${string}`, account: `0x${string}`): Promise<boolean>;
|
|
770
|
+
/**
|
|
771
|
+
* name
|
|
772
|
+
* view
|
|
773
|
+
*/
|
|
774
|
+
name(): Promise<string>;
|
|
775
|
+
/**
|
|
776
|
+
* supportsInterface
|
|
777
|
+
* view
|
|
778
|
+
*/
|
|
779
|
+
supportsInterface(interfaceId: `0x${string}`): Promise<boolean>;
|
|
780
|
+
/**
|
|
781
|
+
* symbol
|
|
782
|
+
* view
|
|
783
|
+
*/
|
|
784
|
+
symbol(): Promise<string>;
|
|
785
|
+
/**
|
|
786
|
+
* tokenPauseManager
|
|
787
|
+
* view
|
|
788
|
+
*/
|
|
789
|
+
tokenPauseManager(): Promise<`0x${string}`>;
|
|
790
|
+
/**
|
|
791
|
+
* totalSupply
|
|
792
|
+
* view
|
|
793
|
+
*/
|
|
794
|
+
totalSupply(): Promise<bigint>;
|
|
795
|
+
/**
|
|
796
|
+
* approve
|
|
797
|
+
* nonpayable
|
|
798
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
799
|
+
*/
|
|
800
|
+
approve(spender: `0x${string}`, amount: bigint, options?: {
|
|
801
|
+
accessList?: import('viem').AccessList;
|
|
802
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
803
|
+
chain?: import('viem').Chain | null;
|
|
804
|
+
dataSuffix?: `0x${string}`;
|
|
805
|
+
gas?: bigint;
|
|
806
|
+
gasPrice?: bigint;
|
|
807
|
+
maxFeePerGas?: bigint;
|
|
808
|
+
maxPriorityFeePerGas?: bigint;
|
|
809
|
+
nonce?: number;
|
|
810
|
+
value?: bigint;
|
|
811
|
+
}): Promise<`0x${string}`>;
|
|
812
|
+
burn(amount: bigint, options?: {
|
|
813
|
+
accessList?: import('viem').AccessList;
|
|
814
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
815
|
+
chain?: import('viem').Chain | null;
|
|
816
|
+
dataSuffix?: `0x${string}`;
|
|
817
|
+
gas?: bigint;
|
|
818
|
+
gasPrice?: bigint;
|
|
819
|
+
maxFeePerGas?: bigint;
|
|
820
|
+
maxPriorityFeePerGas?: bigint;
|
|
821
|
+
nonce?: number;
|
|
822
|
+
value?: bigint;
|
|
823
|
+
}): Promise<`0x${string}`>;
|
|
824
|
+
burn(from: `0x${string}`, amount: bigint, options?: {
|
|
825
|
+
accessList?: import('viem').AccessList;
|
|
826
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
827
|
+
chain?: import('viem').Chain | null;
|
|
828
|
+
dataSuffix?: `0x${string}`;
|
|
829
|
+
gas?: bigint;
|
|
830
|
+
gasPrice?: bigint;
|
|
831
|
+
maxFeePerGas?: bigint;
|
|
832
|
+
maxPriorityFeePerGas?: bigint;
|
|
833
|
+
nonce?: number;
|
|
834
|
+
value?: bigint;
|
|
835
|
+
}): Promise<`0x${string}`>;
|
|
836
|
+
/**
|
|
837
|
+
* burnFrom
|
|
838
|
+
* nonpayable
|
|
839
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
840
|
+
*/
|
|
841
|
+
burnFrom(account: `0x${string}`, amount: bigint, options?: {
|
|
842
|
+
accessList?: import('viem').AccessList;
|
|
843
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
844
|
+
chain?: import('viem').Chain | null;
|
|
845
|
+
dataSuffix?: `0x${string}`;
|
|
846
|
+
gas?: bigint;
|
|
847
|
+
gasPrice?: bigint;
|
|
848
|
+
maxFeePerGas?: bigint;
|
|
849
|
+
maxPriorityFeePerGas?: bigint;
|
|
850
|
+
nonce?: number;
|
|
851
|
+
value?: bigint;
|
|
852
|
+
}): Promise<`0x${string}`>;
|
|
853
|
+
/**
|
|
854
|
+
* decreaseAllowance
|
|
855
|
+
* nonpayable
|
|
856
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
857
|
+
*/
|
|
858
|
+
decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
|
|
859
|
+
accessList?: import('viem').AccessList;
|
|
860
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
861
|
+
chain?: import('viem').Chain | null;
|
|
862
|
+
dataSuffix?: `0x${string}`;
|
|
863
|
+
gas?: bigint;
|
|
864
|
+
gasPrice?: bigint;
|
|
865
|
+
maxFeePerGas?: bigint;
|
|
866
|
+
maxPriorityFeePerGas?: bigint;
|
|
867
|
+
nonce?: number;
|
|
868
|
+
value?: bigint;
|
|
869
|
+
}): Promise<`0x${string}`>;
|
|
870
|
+
/**
|
|
871
|
+
* grantRole
|
|
872
|
+
* nonpayable
|
|
873
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
874
|
+
*/
|
|
875
|
+
grantRole(role: `0x${string}`, account: `0x${string}`, options?: {
|
|
876
|
+
accessList?: import('viem').AccessList;
|
|
877
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
878
|
+
chain?: import('viem').Chain | null;
|
|
879
|
+
dataSuffix?: `0x${string}`;
|
|
880
|
+
gas?: bigint;
|
|
881
|
+
gasPrice?: bigint;
|
|
882
|
+
maxFeePerGas?: bigint;
|
|
883
|
+
maxPriorityFeePerGas?: bigint;
|
|
884
|
+
nonce?: number;
|
|
885
|
+
value?: bigint;
|
|
886
|
+
}): Promise<`0x${string}`>;
|
|
887
|
+
/**
|
|
888
|
+
* increaseAllowance
|
|
889
|
+
* nonpayable
|
|
890
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
891
|
+
*/
|
|
892
|
+
increaseAllowance(spender: `0x${string}`, addedValue: bigint, options?: {
|
|
893
|
+
accessList?: import('viem').AccessList;
|
|
894
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
895
|
+
chain?: import('viem').Chain | null;
|
|
896
|
+
dataSuffix?: `0x${string}`;
|
|
897
|
+
gas?: bigint;
|
|
898
|
+
gasPrice?: bigint;
|
|
899
|
+
maxFeePerGas?: bigint;
|
|
900
|
+
maxPriorityFeePerGas?: bigint;
|
|
901
|
+
nonce?: number;
|
|
902
|
+
value?: bigint;
|
|
903
|
+
}): Promise<`0x${string}`>;
|
|
904
|
+
/**
|
|
905
|
+
* initialize
|
|
906
|
+
* nonpayable
|
|
907
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
908
|
+
*/
|
|
909
|
+
initialize(_nameOverride: string, _symbolOverride: string, _compliance: `0x${string}`, _tokenPauseManager: `0x${string}`, options?: {
|
|
910
|
+
accessList?: import('viem').AccessList;
|
|
911
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
912
|
+
chain?: import('viem').Chain | null;
|
|
913
|
+
dataSuffix?: `0x${string}`;
|
|
914
|
+
gas?: bigint;
|
|
915
|
+
gasPrice?: bigint;
|
|
916
|
+
maxFeePerGas?: bigint;
|
|
917
|
+
maxPriorityFeePerGas?: bigint;
|
|
918
|
+
nonce?: number;
|
|
919
|
+
value?: bigint;
|
|
920
|
+
}): Promise<`0x${string}`>;
|
|
921
|
+
/**
|
|
922
|
+
* mint
|
|
923
|
+
* nonpayable
|
|
924
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
925
|
+
*/
|
|
926
|
+
mint(to: `0x${string}`, amount: bigint, options?: {
|
|
927
|
+
accessList?: import('viem').AccessList;
|
|
928
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
929
|
+
chain?: import('viem').Chain | null;
|
|
930
|
+
dataSuffix?: `0x${string}`;
|
|
931
|
+
gas?: bigint;
|
|
932
|
+
gasPrice?: bigint;
|
|
933
|
+
maxFeePerGas?: bigint;
|
|
934
|
+
maxPriorityFeePerGas?: bigint;
|
|
935
|
+
nonce?: number;
|
|
936
|
+
value?: bigint;
|
|
937
|
+
}): Promise<`0x${string}`>;
|
|
938
|
+
/**
|
|
939
|
+
* renounceRole
|
|
940
|
+
* nonpayable
|
|
941
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
942
|
+
*/
|
|
943
|
+
renounceRole(role: `0x${string}`, account: `0x${string}`, options?: {
|
|
944
|
+
accessList?: import('viem').AccessList;
|
|
945
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
946
|
+
chain?: import('viem').Chain | null;
|
|
947
|
+
dataSuffix?: `0x${string}`;
|
|
948
|
+
gas?: bigint;
|
|
949
|
+
gasPrice?: bigint;
|
|
950
|
+
maxFeePerGas?: bigint;
|
|
951
|
+
maxPriorityFeePerGas?: bigint;
|
|
952
|
+
nonce?: number;
|
|
953
|
+
value?: bigint;
|
|
954
|
+
}): Promise<`0x${string}`>;
|
|
955
|
+
/**
|
|
956
|
+
* revokeRole
|
|
957
|
+
* nonpayable
|
|
958
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
959
|
+
*/
|
|
960
|
+
revokeRole(role: `0x${string}`, account: `0x${string}`, options?: {
|
|
961
|
+
accessList?: import('viem').AccessList;
|
|
962
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
963
|
+
chain?: import('viem').Chain | null;
|
|
964
|
+
dataSuffix?: `0x${string}`;
|
|
965
|
+
gas?: bigint;
|
|
966
|
+
gasPrice?: bigint;
|
|
967
|
+
maxFeePerGas?: bigint;
|
|
968
|
+
maxPriorityFeePerGas?: bigint;
|
|
969
|
+
nonce?: number;
|
|
970
|
+
value?: bigint;
|
|
971
|
+
}): Promise<`0x${string}`>;
|
|
972
|
+
/**
|
|
973
|
+
* setCompliance
|
|
974
|
+
* nonpayable
|
|
975
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
976
|
+
*/
|
|
977
|
+
setCompliance(_compliance: `0x${string}`, options?: {
|
|
978
|
+
accessList?: import('viem').AccessList;
|
|
979
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
980
|
+
chain?: import('viem').Chain | null;
|
|
981
|
+
dataSuffix?: `0x${string}`;
|
|
982
|
+
gas?: bigint;
|
|
983
|
+
gasPrice?: bigint;
|
|
984
|
+
maxFeePerGas?: bigint;
|
|
985
|
+
maxPriorityFeePerGas?: bigint;
|
|
986
|
+
nonce?: number;
|
|
987
|
+
value?: bigint;
|
|
988
|
+
}): Promise<`0x${string}`>;
|
|
989
|
+
/**
|
|
990
|
+
* setName
|
|
991
|
+
* nonpayable
|
|
992
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
993
|
+
*/
|
|
994
|
+
setName(_nameOverride: string, options?: {
|
|
995
|
+
accessList?: import('viem').AccessList;
|
|
996
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
997
|
+
chain?: import('viem').Chain | null;
|
|
998
|
+
dataSuffix?: `0x${string}`;
|
|
999
|
+
gas?: bigint;
|
|
1000
|
+
gasPrice?: bigint;
|
|
1001
|
+
maxFeePerGas?: bigint;
|
|
1002
|
+
maxPriorityFeePerGas?: bigint;
|
|
1003
|
+
nonce?: number;
|
|
1004
|
+
value?: bigint;
|
|
1005
|
+
}): Promise<`0x${string}`>;
|
|
1006
|
+
/**
|
|
1007
|
+
* setSymbol
|
|
1008
|
+
* nonpayable
|
|
1009
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1010
|
+
*/
|
|
1011
|
+
setSymbol(_symbolOverride: string, options?: {
|
|
1012
|
+
accessList?: import('viem').AccessList;
|
|
1013
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1014
|
+
chain?: import('viem').Chain | null;
|
|
1015
|
+
dataSuffix?: `0x${string}`;
|
|
1016
|
+
gas?: bigint;
|
|
1017
|
+
gasPrice?: bigint;
|
|
1018
|
+
maxFeePerGas?: bigint;
|
|
1019
|
+
maxPriorityFeePerGas?: bigint;
|
|
1020
|
+
nonce?: number;
|
|
1021
|
+
value?: bigint;
|
|
1022
|
+
}): Promise<`0x${string}`>;
|
|
1023
|
+
/**
|
|
1024
|
+
* setTokenPauseManager
|
|
1025
|
+
* nonpayable
|
|
1026
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1027
|
+
*/
|
|
1028
|
+
setTokenPauseManager(_tokenPauseManager: `0x${string}`, options?: {
|
|
1029
|
+
accessList?: import('viem').AccessList;
|
|
1030
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1031
|
+
chain?: import('viem').Chain | null;
|
|
1032
|
+
dataSuffix?: `0x${string}`;
|
|
1033
|
+
gas?: bigint;
|
|
1034
|
+
gasPrice?: bigint;
|
|
1035
|
+
maxFeePerGas?: bigint;
|
|
1036
|
+
maxPriorityFeePerGas?: bigint;
|
|
1037
|
+
nonce?: number;
|
|
1038
|
+
value?: bigint;
|
|
1039
|
+
}): Promise<`0x${string}`>;
|
|
1040
|
+
/**
|
|
1041
|
+
* transfer
|
|
1042
|
+
* nonpayable
|
|
1043
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1044
|
+
*/
|
|
1045
|
+
transfer(to: `0x${string}`, amount: bigint, options?: {
|
|
1046
|
+
accessList?: import('viem').AccessList;
|
|
1047
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1048
|
+
chain?: import('viem').Chain | null;
|
|
1049
|
+
dataSuffix?: `0x${string}`;
|
|
1050
|
+
gas?: bigint;
|
|
1051
|
+
gasPrice?: bigint;
|
|
1052
|
+
maxFeePerGas?: bigint;
|
|
1053
|
+
maxPriorityFeePerGas?: bigint;
|
|
1054
|
+
nonce?: number;
|
|
1055
|
+
value?: bigint;
|
|
1056
|
+
}): Promise<`0x${string}`>;
|
|
1057
|
+
/**
|
|
1058
|
+
* transferFrom
|
|
1059
|
+
* nonpayable
|
|
1060
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1061
|
+
*/
|
|
1062
|
+
transferFrom(from: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
|
|
1063
|
+
accessList?: import('viem').AccessList;
|
|
1064
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1065
|
+
chain?: import('viem').Chain | null;
|
|
1066
|
+
dataSuffix?: `0x${string}`;
|
|
1067
|
+
gas?: bigint;
|
|
1068
|
+
gasPrice?: bigint;
|
|
1069
|
+
maxFeePerGas?: bigint;
|
|
1070
|
+
maxPriorityFeePerGas?: bigint;
|
|
1071
|
+
nonce?: number;
|
|
1072
|
+
value?: bigint;
|
|
1073
|
+
}): Promise<`0x${string}`>;
|
|
1074
|
+
/**
|
|
1075
|
+
* Simulate contract write operations (dry-run without sending transaction)
|
|
1076
|
+
*
|
|
1077
|
+
* @example
|
|
1078
|
+
* const result = await contract.simulate.transfer('0x...', 1000n);
|
|
1079
|
+
* console.log('Gas estimate:', result.request.gas);
|
|
1080
|
+
* console.log('Would succeed:', result.result);
|
|
1081
|
+
*/
|
|
1082
|
+
get simulate(): {
|
|
1083
|
+
/**
|
|
1084
|
+
* Simulate approve
|
|
1085
|
+
* Returns gas estimate and result without sending transaction
|
|
1086
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1087
|
+
*/
|
|
1088
|
+
approve(spender: `0x${string}`, amount: bigint, options?: {
|
|
1089
|
+
accessList?: import("viem").AccessList;
|
|
1090
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1091
|
+
chain?: import("viem").Chain | null;
|
|
1092
|
+
dataSuffix?: `0x${string}`;
|
|
1093
|
+
gas?: bigint;
|
|
1094
|
+
gasPrice?: bigint;
|
|
1095
|
+
maxFeePerGas?: bigint;
|
|
1096
|
+
maxPriorityFeePerGas?: bigint;
|
|
1097
|
+
nonce?: number;
|
|
1098
|
+
value?: bigint;
|
|
1099
|
+
}): Promise<boolean>;
|
|
1100
|
+
/**
|
|
1101
|
+
* Simulate burn
|
|
1102
|
+
* Returns gas estimate and result without sending transaction
|
|
1103
|
+
* Supports multiple overloads: (uint256), (address, uint256)
|
|
1104
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1105
|
+
*/
|
|
1106
|
+
burn(...args: any[]): Promise<any>;
|
|
1107
|
+
/**
|
|
1108
|
+
* Simulate burnFrom
|
|
1109
|
+
* Returns gas estimate and result without sending transaction
|
|
1110
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1111
|
+
*/
|
|
1112
|
+
burnFrom(account: `0x${string}`, amount: bigint, options?: {
|
|
1113
|
+
accessList?: import("viem").AccessList;
|
|
1114
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1115
|
+
chain?: import("viem").Chain | null;
|
|
1116
|
+
dataSuffix?: `0x${string}`;
|
|
1117
|
+
gas?: bigint;
|
|
1118
|
+
gasPrice?: bigint;
|
|
1119
|
+
maxFeePerGas?: bigint;
|
|
1120
|
+
maxPriorityFeePerGas?: bigint;
|
|
1121
|
+
nonce?: number;
|
|
1122
|
+
value?: bigint;
|
|
1123
|
+
}): Promise<void>;
|
|
1124
|
+
/**
|
|
1125
|
+
* Simulate decreaseAllowance
|
|
1126
|
+
* Returns gas estimate and result without sending transaction
|
|
1127
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1128
|
+
*/
|
|
1129
|
+
decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
|
|
1130
|
+
accessList?: import("viem").AccessList;
|
|
1131
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1132
|
+
chain?: import("viem").Chain | null;
|
|
1133
|
+
dataSuffix?: `0x${string}`;
|
|
1134
|
+
gas?: bigint;
|
|
1135
|
+
gasPrice?: bigint;
|
|
1136
|
+
maxFeePerGas?: bigint;
|
|
1137
|
+
maxPriorityFeePerGas?: bigint;
|
|
1138
|
+
nonce?: number;
|
|
1139
|
+
value?: bigint;
|
|
1140
|
+
}): Promise<boolean>;
|
|
1141
|
+
/**
|
|
1142
|
+
* Simulate grantRole
|
|
1143
|
+
* Returns gas estimate and result without sending transaction
|
|
1144
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1145
|
+
*/
|
|
1146
|
+
grantRole(role: `0x${string}`, account: `0x${string}`, options?: {
|
|
1147
|
+
accessList?: import("viem").AccessList;
|
|
1148
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1149
|
+
chain?: import("viem").Chain | null;
|
|
1150
|
+
dataSuffix?: `0x${string}`;
|
|
1151
|
+
gas?: bigint;
|
|
1152
|
+
gasPrice?: bigint;
|
|
1153
|
+
maxFeePerGas?: bigint;
|
|
1154
|
+
maxPriorityFeePerGas?: bigint;
|
|
1155
|
+
nonce?: number;
|
|
1156
|
+
value?: bigint;
|
|
1157
|
+
}): Promise<void>;
|
|
1158
|
+
/**
|
|
1159
|
+
* Simulate increaseAllowance
|
|
1160
|
+
* Returns gas estimate and result without sending transaction
|
|
1161
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1162
|
+
*/
|
|
1163
|
+
increaseAllowance(spender: `0x${string}`, addedValue: bigint, options?: {
|
|
1164
|
+
accessList?: import("viem").AccessList;
|
|
1165
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1166
|
+
chain?: import("viem").Chain | null;
|
|
1167
|
+
dataSuffix?: `0x${string}`;
|
|
1168
|
+
gas?: bigint;
|
|
1169
|
+
gasPrice?: bigint;
|
|
1170
|
+
maxFeePerGas?: bigint;
|
|
1171
|
+
maxPriorityFeePerGas?: bigint;
|
|
1172
|
+
nonce?: number;
|
|
1173
|
+
value?: bigint;
|
|
1174
|
+
}): Promise<boolean>;
|
|
1175
|
+
/**
|
|
1176
|
+
* Simulate initialize
|
|
1177
|
+
* Returns gas estimate and result without sending transaction
|
|
1178
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1179
|
+
*/
|
|
1180
|
+
initialize(_nameOverride: string, _symbolOverride: string, _compliance: `0x${string}`, _tokenPauseManager: `0x${string}`, options?: {
|
|
1181
|
+
accessList?: import("viem").AccessList;
|
|
1182
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1183
|
+
chain?: import("viem").Chain | null;
|
|
1184
|
+
dataSuffix?: `0x${string}`;
|
|
1185
|
+
gas?: bigint;
|
|
1186
|
+
gasPrice?: bigint;
|
|
1187
|
+
maxFeePerGas?: bigint;
|
|
1188
|
+
maxPriorityFeePerGas?: bigint;
|
|
1189
|
+
nonce?: number;
|
|
1190
|
+
value?: bigint;
|
|
1191
|
+
}): Promise<void>;
|
|
1192
|
+
/**
|
|
1193
|
+
* Simulate mint
|
|
1194
|
+
* Returns gas estimate and result without sending transaction
|
|
1195
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1196
|
+
*/
|
|
1197
|
+
mint(to: `0x${string}`, amount: bigint, options?: {
|
|
1198
|
+
accessList?: import("viem").AccessList;
|
|
1199
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1200
|
+
chain?: import("viem").Chain | null;
|
|
1201
|
+
dataSuffix?: `0x${string}`;
|
|
1202
|
+
gas?: bigint;
|
|
1203
|
+
gasPrice?: bigint;
|
|
1204
|
+
maxFeePerGas?: bigint;
|
|
1205
|
+
maxPriorityFeePerGas?: bigint;
|
|
1206
|
+
nonce?: number;
|
|
1207
|
+
value?: bigint;
|
|
1208
|
+
}): Promise<void>;
|
|
1209
|
+
/**
|
|
1210
|
+
* Simulate renounceRole
|
|
1211
|
+
* Returns gas estimate and result without sending transaction
|
|
1212
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1213
|
+
*/
|
|
1214
|
+
renounceRole(role: `0x${string}`, account: `0x${string}`, options?: {
|
|
1215
|
+
accessList?: import("viem").AccessList;
|
|
1216
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1217
|
+
chain?: import("viem").Chain | null;
|
|
1218
|
+
dataSuffix?: `0x${string}`;
|
|
1219
|
+
gas?: bigint;
|
|
1220
|
+
gasPrice?: bigint;
|
|
1221
|
+
maxFeePerGas?: bigint;
|
|
1222
|
+
maxPriorityFeePerGas?: bigint;
|
|
1223
|
+
nonce?: number;
|
|
1224
|
+
value?: bigint;
|
|
1225
|
+
}): Promise<void>;
|
|
1226
|
+
/**
|
|
1227
|
+
* Simulate revokeRole
|
|
1228
|
+
* Returns gas estimate and result without sending transaction
|
|
1229
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1230
|
+
*/
|
|
1231
|
+
revokeRole(role: `0x${string}`, account: `0x${string}`, options?: {
|
|
1232
|
+
accessList?: import("viem").AccessList;
|
|
1233
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1234
|
+
chain?: import("viem").Chain | null;
|
|
1235
|
+
dataSuffix?: `0x${string}`;
|
|
1236
|
+
gas?: bigint;
|
|
1237
|
+
gasPrice?: bigint;
|
|
1238
|
+
maxFeePerGas?: bigint;
|
|
1239
|
+
maxPriorityFeePerGas?: bigint;
|
|
1240
|
+
nonce?: number;
|
|
1241
|
+
value?: bigint;
|
|
1242
|
+
}): Promise<void>;
|
|
1243
|
+
/**
|
|
1244
|
+
* Simulate setCompliance
|
|
1245
|
+
* Returns gas estimate and result without sending transaction
|
|
1246
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1247
|
+
*/
|
|
1248
|
+
setCompliance(_compliance: `0x${string}`, options?: {
|
|
1249
|
+
accessList?: import("viem").AccessList;
|
|
1250
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1251
|
+
chain?: import("viem").Chain | null;
|
|
1252
|
+
dataSuffix?: `0x${string}`;
|
|
1253
|
+
gas?: bigint;
|
|
1254
|
+
gasPrice?: bigint;
|
|
1255
|
+
maxFeePerGas?: bigint;
|
|
1256
|
+
maxPriorityFeePerGas?: bigint;
|
|
1257
|
+
nonce?: number;
|
|
1258
|
+
value?: bigint;
|
|
1259
|
+
}): Promise<void>;
|
|
1260
|
+
/**
|
|
1261
|
+
* Simulate setName
|
|
1262
|
+
* Returns gas estimate and result without sending transaction
|
|
1263
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1264
|
+
*/
|
|
1265
|
+
setName(_nameOverride: string, options?: {
|
|
1266
|
+
accessList?: import("viem").AccessList;
|
|
1267
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1268
|
+
chain?: import("viem").Chain | null;
|
|
1269
|
+
dataSuffix?: `0x${string}`;
|
|
1270
|
+
gas?: bigint;
|
|
1271
|
+
gasPrice?: bigint;
|
|
1272
|
+
maxFeePerGas?: bigint;
|
|
1273
|
+
maxPriorityFeePerGas?: bigint;
|
|
1274
|
+
nonce?: number;
|
|
1275
|
+
value?: bigint;
|
|
1276
|
+
}): Promise<void>;
|
|
1277
|
+
/**
|
|
1278
|
+
* Simulate setSymbol
|
|
1279
|
+
* Returns gas estimate and result without sending transaction
|
|
1280
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1281
|
+
*/
|
|
1282
|
+
setSymbol(_symbolOverride: string, options?: {
|
|
1283
|
+
accessList?: import("viem").AccessList;
|
|
1284
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1285
|
+
chain?: import("viem").Chain | null;
|
|
1286
|
+
dataSuffix?: `0x${string}`;
|
|
1287
|
+
gas?: bigint;
|
|
1288
|
+
gasPrice?: bigint;
|
|
1289
|
+
maxFeePerGas?: bigint;
|
|
1290
|
+
maxPriorityFeePerGas?: bigint;
|
|
1291
|
+
nonce?: number;
|
|
1292
|
+
value?: bigint;
|
|
1293
|
+
}): Promise<void>;
|
|
1294
|
+
/**
|
|
1295
|
+
* Simulate setTokenPauseManager
|
|
1296
|
+
* Returns gas estimate and result without sending transaction
|
|
1297
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1298
|
+
*/
|
|
1299
|
+
setTokenPauseManager(_tokenPauseManager: `0x${string}`, options?: {
|
|
1300
|
+
accessList?: import("viem").AccessList;
|
|
1301
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1302
|
+
chain?: import("viem").Chain | null;
|
|
1303
|
+
dataSuffix?: `0x${string}`;
|
|
1304
|
+
gas?: bigint;
|
|
1305
|
+
gasPrice?: bigint;
|
|
1306
|
+
maxFeePerGas?: bigint;
|
|
1307
|
+
maxPriorityFeePerGas?: bigint;
|
|
1308
|
+
nonce?: number;
|
|
1309
|
+
value?: bigint;
|
|
1310
|
+
}): Promise<void>;
|
|
1311
|
+
/**
|
|
1312
|
+
* Simulate transfer
|
|
1313
|
+
* Returns gas estimate and result without sending transaction
|
|
1314
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1315
|
+
*/
|
|
1316
|
+
transfer(to: `0x${string}`, amount: bigint, options?: {
|
|
1317
|
+
accessList?: import("viem").AccessList;
|
|
1318
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1319
|
+
chain?: import("viem").Chain | null;
|
|
1320
|
+
dataSuffix?: `0x${string}`;
|
|
1321
|
+
gas?: bigint;
|
|
1322
|
+
gasPrice?: bigint;
|
|
1323
|
+
maxFeePerGas?: bigint;
|
|
1324
|
+
maxPriorityFeePerGas?: bigint;
|
|
1325
|
+
nonce?: number;
|
|
1326
|
+
value?: bigint;
|
|
1327
|
+
}): Promise<boolean>;
|
|
1328
|
+
/**
|
|
1329
|
+
* Simulate transferFrom
|
|
1330
|
+
* Returns gas estimate and result without sending transaction
|
|
1331
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1332
|
+
*/
|
|
1333
|
+
transferFrom(from: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
|
|
1334
|
+
accessList?: import("viem").AccessList;
|
|
1335
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1336
|
+
chain?: import("viem").Chain | null;
|
|
1337
|
+
dataSuffix?: `0x${string}`;
|
|
1338
|
+
gas?: bigint;
|
|
1339
|
+
gasPrice?: bigint;
|
|
1340
|
+
maxFeePerGas?: bigint;
|
|
1341
|
+
maxPriorityFeePerGas?: bigint;
|
|
1342
|
+
nonce?: number;
|
|
1343
|
+
value?: bigint;
|
|
1344
|
+
}): Promise<boolean>;
|
|
1345
|
+
};
|
|
1346
|
+
/**
|
|
1347
|
+
* Watch contract events
|
|
1348
|
+
*
|
|
1349
|
+
* @example
|
|
1350
|
+
* // Watch all Transfer events
|
|
1351
|
+
* const unwatch = contract.watch.Transfer((event) => {
|
|
1352
|
+
* console.log('Transfer:', event);
|
|
1353
|
+
* });
|
|
1354
|
+
*
|
|
1355
|
+
* // Stop watching
|
|
1356
|
+
* unwatch();
|
|
1357
|
+
*/
|
|
1358
|
+
get watch(): {
|
|
1359
|
+
/**
|
|
1360
|
+
* Watch Approval events
|
|
1361
|
+
* @param callback Function to call when event is emitted
|
|
1362
|
+
* @param filter Optional filter for indexed parameters
|
|
1363
|
+
* @returns Unwatch function to stop listening
|
|
1364
|
+
*/
|
|
1365
|
+
Approval: (callback: (event: {
|
|
1366
|
+
owner: `0x${string}`;
|
|
1367
|
+
spender: `0x${string}`;
|
|
1368
|
+
value: bigint;
|
|
1369
|
+
}) => void, filter?: {
|
|
1370
|
+
owner?: `0x${string}` | `0x${string}`[] | null;
|
|
1371
|
+
spender?: `0x${string}` | `0x${string}`[] | null;
|
|
1372
|
+
}) => () => void;
|
|
1373
|
+
/**
|
|
1374
|
+
* Watch ComplianceSet events
|
|
1375
|
+
* @param callback Function to call when event is emitted
|
|
1376
|
+
* @param filter Optional filter for indexed parameters
|
|
1377
|
+
* @returns Unwatch function to stop listening
|
|
1378
|
+
*/
|
|
1379
|
+
ComplianceSet: (callback: (event: {
|
|
1380
|
+
oldCompliance: `0x${string}`;
|
|
1381
|
+
newCompliance: `0x${string}`;
|
|
1382
|
+
}) => void, filter?: {
|
|
1383
|
+
oldCompliance?: `0x${string}` | `0x${string}`[] | null;
|
|
1384
|
+
newCompliance?: `0x${string}` | `0x${string}`[] | null;
|
|
1385
|
+
}) => () => void;
|
|
1386
|
+
/**
|
|
1387
|
+
* Watch Initialized events
|
|
1388
|
+
* @param callback Function to call when event is emitted
|
|
1389
|
+
* @param filter Optional filter for indexed parameters
|
|
1390
|
+
* @returns Unwatch function to stop listening
|
|
1391
|
+
*/
|
|
1392
|
+
Initialized: (callback: (event: {
|
|
1393
|
+
version: bigint;
|
|
1394
|
+
}) => void) => () => void;
|
|
1395
|
+
/**
|
|
1396
|
+
* Watch NameChanged events
|
|
1397
|
+
* @param callback Function to call when event is emitted
|
|
1398
|
+
* @param filter Optional filter for indexed parameters
|
|
1399
|
+
* @returns Unwatch function to stop listening
|
|
1400
|
+
*/
|
|
1401
|
+
NameChanged: (callback: (event: {
|
|
1402
|
+
oldName: string;
|
|
1403
|
+
newName: string;
|
|
1404
|
+
}) => void) => () => void;
|
|
1405
|
+
/**
|
|
1406
|
+
* Watch RoleAdminChanged events
|
|
1407
|
+
* @param callback Function to call when event is emitted
|
|
1408
|
+
* @param filter Optional filter for indexed parameters
|
|
1409
|
+
* @returns Unwatch function to stop listening
|
|
1410
|
+
*/
|
|
1411
|
+
RoleAdminChanged: (callback: (event: {
|
|
1412
|
+
role: `0x${string}`;
|
|
1413
|
+
previousAdminRole: `0x${string}`;
|
|
1414
|
+
newAdminRole: `0x${string}`;
|
|
1415
|
+
}) => void, filter?: {
|
|
1416
|
+
role?: `0x${string}` | `0x${string}`[] | null;
|
|
1417
|
+
previousAdminRole?: `0x${string}` | `0x${string}`[] | null;
|
|
1418
|
+
newAdminRole?: `0x${string}` | `0x${string}`[] | null;
|
|
1419
|
+
}) => () => void;
|
|
1420
|
+
/**
|
|
1421
|
+
* Watch RoleGranted events
|
|
1422
|
+
* @param callback Function to call when event is emitted
|
|
1423
|
+
* @param filter Optional filter for indexed parameters
|
|
1424
|
+
* @returns Unwatch function to stop listening
|
|
1425
|
+
*/
|
|
1426
|
+
RoleGranted: (callback: (event: {
|
|
1427
|
+
role: `0x${string}`;
|
|
1428
|
+
account: `0x${string}`;
|
|
1429
|
+
sender: `0x${string}`;
|
|
1430
|
+
}) => void, filter?: {
|
|
1431
|
+
role?: `0x${string}` | `0x${string}`[] | null;
|
|
1432
|
+
account?: `0x${string}` | `0x${string}`[] | null;
|
|
1433
|
+
sender?: `0x${string}` | `0x${string}`[] | null;
|
|
1434
|
+
}) => () => void;
|
|
1435
|
+
/**
|
|
1436
|
+
* Watch RoleRevoked events
|
|
1437
|
+
* @param callback Function to call when event is emitted
|
|
1438
|
+
* @param filter Optional filter for indexed parameters
|
|
1439
|
+
* @returns Unwatch function to stop listening
|
|
1440
|
+
*/
|
|
1441
|
+
RoleRevoked: (callback: (event: {
|
|
1442
|
+
role: `0x${string}`;
|
|
1443
|
+
account: `0x${string}`;
|
|
1444
|
+
sender: `0x${string}`;
|
|
1445
|
+
}) => void, filter?: {
|
|
1446
|
+
role?: `0x${string}` | `0x${string}`[] | null;
|
|
1447
|
+
account?: `0x${string}` | `0x${string}`[] | null;
|
|
1448
|
+
sender?: `0x${string}` | `0x${string}`[] | null;
|
|
1449
|
+
}) => () => void;
|
|
1450
|
+
/**
|
|
1451
|
+
* Watch SymbolChanged events
|
|
1452
|
+
* @param callback Function to call when event is emitted
|
|
1453
|
+
* @param filter Optional filter for indexed parameters
|
|
1454
|
+
* @returns Unwatch function to stop listening
|
|
1455
|
+
*/
|
|
1456
|
+
SymbolChanged: (callback: (event: {
|
|
1457
|
+
oldSymbol: string;
|
|
1458
|
+
newSymbol: string;
|
|
1459
|
+
}) => void) => () => void;
|
|
1460
|
+
/**
|
|
1461
|
+
* Watch TokenPauseManagerSet events
|
|
1462
|
+
* @param callback Function to call when event is emitted
|
|
1463
|
+
* @param filter Optional filter for indexed parameters
|
|
1464
|
+
* @returns Unwatch function to stop listening
|
|
1465
|
+
*/
|
|
1466
|
+
TokenPauseManagerSet: (callback: (event: {
|
|
1467
|
+
oldTokenPauseManager: `0x${string}`;
|
|
1468
|
+
newTokenPauseManager: `0x${string}`;
|
|
1469
|
+
}) => void, filter?: {
|
|
1470
|
+
oldTokenPauseManager?: `0x${string}` | `0x${string}`[] | null;
|
|
1471
|
+
newTokenPauseManager?: `0x${string}` | `0x${string}`[] | null;
|
|
1472
|
+
}) => () => void;
|
|
1473
|
+
/**
|
|
1474
|
+
* Watch Transfer events
|
|
1475
|
+
* @param callback Function to call when event is emitted
|
|
1476
|
+
* @param filter Optional filter for indexed parameters
|
|
1477
|
+
* @returns Unwatch function to stop listening
|
|
1478
|
+
*/
|
|
1479
|
+
Transfer: (callback: (event: {
|
|
1480
|
+
from: `0x${string}`;
|
|
1481
|
+
to: `0x${string}`;
|
|
1482
|
+
value: bigint;
|
|
1483
|
+
}) => void, filter?: {
|
|
1484
|
+
from?: `0x${string}` | `0x${string}`[] | null;
|
|
1485
|
+
to?: `0x${string}` | `0x${string}`[] | null;
|
|
1486
|
+
}) => () => void;
|
|
1487
|
+
};
|
|
1488
|
+
}
|