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