@gitmyabi/sx 1.0.0 → 1.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 +3 -3
- package/contracts/{SXNetwork_json.d.ts → SportX_json.d.ts} +84 -542
- package/contracts/{SXNetwork_json.js → SportX_json.js} +105 -522
- package/contracts/SportX_json.ts +886 -0
- package/contracts/index.d.ts +2 -2
- package/contracts/index.js +4 -4
- package/contracts/index.ts +2 -2
- package/package.json +3 -3
- package/contracts/SXNetwork_json.ts +0 -1467
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import type { Address, PublicClient, WalletClient } from 'viem';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* SportX_json ABI
|
|
4
4
|
*
|
|
5
5
|
* This ABI is typed using viem's type system for full type safety.
|
|
6
6
|
*/
|
|
7
|
-
export declare const
|
|
8
|
-
readonly inputs: readonly [
|
|
7
|
+
export declare const SportX_jsonAbi: readonly [{
|
|
8
|
+
readonly inputs: readonly [{
|
|
9
|
+
readonly internalType: "uint256";
|
|
10
|
+
readonly name: "_chainId";
|
|
11
|
+
readonly type: "uint256";
|
|
12
|
+
}];
|
|
9
13
|
readonly stateMutability: "nonpayable";
|
|
10
14
|
readonly type: "constructor";
|
|
11
15
|
}, {
|
|
@@ -28,66 +32,6 @@ export declare const SXNetwork_jsonAbi: readonly [{
|
|
|
28
32
|
}];
|
|
29
33
|
readonly name: "Approval";
|
|
30
34
|
readonly type: "event";
|
|
31
|
-
}, {
|
|
32
|
-
readonly anonymous: false;
|
|
33
|
-
readonly inputs: readonly [{
|
|
34
|
-
readonly indexed: true;
|
|
35
|
-
readonly internalType: "bytes32";
|
|
36
|
-
readonly name: "role";
|
|
37
|
-
readonly type: "bytes32";
|
|
38
|
-
}, {
|
|
39
|
-
readonly indexed: true;
|
|
40
|
-
readonly internalType: "bytes32";
|
|
41
|
-
readonly name: "previousAdminRole";
|
|
42
|
-
readonly type: "bytes32";
|
|
43
|
-
}, {
|
|
44
|
-
readonly indexed: true;
|
|
45
|
-
readonly internalType: "bytes32";
|
|
46
|
-
readonly name: "newAdminRole";
|
|
47
|
-
readonly type: "bytes32";
|
|
48
|
-
}];
|
|
49
|
-
readonly name: "RoleAdminChanged";
|
|
50
|
-
readonly type: "event";
|
|
51
|
-
}, {
|
|
52
|
-
readonly anonymous: false;
|
|
53
|
-
readonly inputs: readonly [{
|
|
54
|
-
readonly indexed: true;
|
|
55
|
-
readonly internalType: "bytes32";
|
|
56
|
-
readonly name: "role";
|
|
57
|
-
readonly type: "bytes32";
|
|
58
|
-
}, {
|
|
59
|
-
readonly indexed: true;
|
|
60
|
-
readonly internalType: "address";
|
|
61
|
-
readonly name: "account";
|
|
62
|
-
readonly type: "address";
|
|
63
|
-
}, {
|
|
64
|
-
readonly indexed: true;
|
|
65
|
-
readonly internalType: "address";
|
|
66
|
-
readonly name: "sender";
|
|
67
|
-
readonly type: "address";
|
|
68
|
-
}];
|
|
69
|
-
readonly name: "RoleGranted";
|
|
70
|
-
readonly type: "event";
|
|
71
|
-
}, {
|
|
72
|
-
readonly anonymous: false;
|
|
73
|
-
readonly inputs: readonly [{
|
|
74
|
-
readonly indexed: true;
|
|
75
|
-
readonly internalType: "bytes32";
|
|
76
|
-
readonly name: "role";
|
|
77
|
-
readonly type: "bytes32";
|
|
78
|
-
}, {
|
|
79
|
-
readonly indexed: true;
|
|
80
|
-
readonly internalType: "address";
|
|
81
|
-
readonly name: "account";
|
|
82
|
-
readonly type: "address";
|
|
83
|
-
}, {
|
|
84
|
-
readonly indexed: true;
|
|
85
|
-
readonly internalType: "address";
|
|
86
|
-
readonly name: "sender";
|
|
87
|
-
readonly type: "address";
|
|
88
|
-
}];
|
|
89
|
-
readonly name: "RoleRevoked";
|
|
90
|
-
readonly type: "event";
|
|
91
35
|
}, {
|
|
92
36
|
readonly anonymous: false;
|
|
93
37
|
readonly inputs: readonly [{
|
|
@@ -110,7 +54,7 @@ export declare const SXNetwork_jsonAbi: readonly [{
|
|
|
110
54
|
readonly type: "event";
|
|
111
55
|
}, {
|
|
112
56
|
readonly inputs: readonly [];
|
|
113
|
-
readonly name: "
|
|
57
|
+
readonly name: "EIP712_DOMAIN_SEPARATOR";
|
|
114
58
|
readonly outputs: readonly [{
|
|
115
59
|
readonly internalType: "bytes32";
|
|
116
60
|
readonly name: "";
|
|
@@ -120,7 +64,7 @@ export declare const SXNetwork_jsonAbi: readonly [{
|
|
|
120
64
|
readonly type: "function";
|
|
121
65
|
}, {
|
|
122
66
|
readonly inputs: readonly [];
|
|
123
|
-
readonly name: "
|
|
67
|
+
readonly name: "PERMIT_TYPEHASH";
|
|
124
68
|
readonly outputs: readonly [{
|
|
125
69
|
readonly internalType: "bytes32";
|
|
126
70
|
readonly name: "";
|
|
@@ -178,30 +122,6 @@ export declare const SXNetwork_jsonAbi: readonly [{
|
|
|
178
122
|
}];
|
|
179
123
|
readonly stateMutability: "view";
|
|
180
124
|
readonly type: "function";
|
|
181
|
-
}, {
|
|
182
|
-
readonly inputs: readonly [{
|
|
183
|
-
readonly internalType: "uint256";
|
|
184
|
-
readonly name: "amount";
|
|
185
|
-
readonly type: "uint256";
|
|
186
|
-
}];
|
|
187
|
-
readonly name: "burn";
|
|
188
|
-
readonly outputs: readonly [];
|
|
189
|
-
readonly stateMutability: "nonpayable";
|
|
190
|
-
readonly type: "function";
|
|
191
|
-
}, {
|
|
192
|
-
readonly inputs: readonly [{
|
|
193
|
-
readonly internalType: "address";
|
|
194
|
-
readonly name: "account";
|
|
195
|
-
readonly type: "address";
|
|
196
|
-
}, {
|
|
197
|
-
readonly internalType: "uint256";
|
|
198
|
-
readonly name: "amount";
|
|
199
|
-
readonly type: "uint256";
|
|
200
|
-
}];
|
|
201
|
-
readonly name: "burnFrom";
|
|
202
|
-
readonly outputs: readonly [];
|
|
203
|
-
readonly stateMutability: "nonpayable";
|
|
204
|
-
readonly type: "function";
|
|
205
125
|
}, {
|
|
206
126
|
readonly inputs: readonly [];
|
|
207
127
|
readonly name: "decimals";
|
|
@@ -230,62 +150,6 @@ export declare const SXNetwork_jsonAbi: readonly [{
|
|
|
230
150
|
}];
|
|
231
151
|
readonly stateMutability: "nonpayable";
|
|
232
152
|
readonly type: "function";
|
|
233
|
-
}, {
|
|
234
|
-
readonly inputs: readonly [{
|
|
235
|
-
readonly internalType: "bytes32";
|
|
236
|
-
readonly name: "role";
|
|
237
|
-
readonly type: "bytes32";
|
|
238
|
-
}];
|
|
239
|
-
readonly name: "getRoleAdmin";
|
|
240
|
-
readonly outputs: readonly [{
|
|
241
|
-
readonly internalType: "bytes32";
|
|
242
|
-
readonly name: "";
|
|
243
|
-
readonly type: "bytes32";
|
|
244
|
-
}];
|
|
245
|
-
readonly stateMutability: "view";
|
|
246
|
-
readonly type: "function";
|
|
247
|
-
}, {
|
|
248
|
-
readonly inputs: readonly [{
|
|
249
|
-
readonly internalType: "address";
|
|
250
|
-
readonly name: "account";
|
|
251
|
-
readonly type: "address";
|
|
252
|
-
}];
|
|
253
|
-
readonly name: "grantMinterRole";
|
|
254
|
-
readonly outputs: readonly [];
|
|
255
|
-
readonly stateMutability: "nonpayable";
|
|
256
|
-
readonly type: "function";
|
|
257
|
-
}, {
|
|
258
|
-
readonly inputs: readonly [{
|
|
259
|
-
readonly internalType: "bytes32";
|
|
260
|
-
readonly name: "role";
|
|
261
|
-
readonly type: "bytes32";
|
|
262
|
-
}, {
|
|
263
|
-
readonly internalType: "address";
|
|
264
|
-
readonly name: "account";
|
|
265
|
-
readonly type: "address";
|
|
266
|
-
}];
|
|
267
|
-
readonly name: "grantRole";
|
|
268
|
-
readonly outputs: readonly [];
|
|
269
|
-
readonly stateMutability: "nonpayable";
|
|
270
|
-
readonly type: "function";
|
|
271
|
-
}, {
|
|
272
|
-
readonly inputs: readonly [{
|
|
273
|
-
readonly internalType: "bytes32";
|
|
274
|
-
readonly name: "role";
|
|
275
|
-
readonly type: "bytes32";
|
|
276
|
-
}, {
|
|
277
|
-
readonly internalType: "address";
|
|
278
|
-
readonly name: "account";
|
|
279
|
-
readonly type: "address";
|
|
280
|
-
}];
|
|
281
|
-
readonly name: "hasRole";
|
|
282
|
-
readonly outputs: readonly [{
|
|
283
|
-
readonly internalType: "bool";
|
|
284
|
-
readonly name: "";
|
|
285
|
-
readonly type: "bool";
|
|
286
|
-
}];
|
|
287
|
-
readonly stateMutability: "view";
|
|
288
|
-
readonly type: "function";
|
|
289
153
|
}, {
|
|
290
154
|
readonly inputs: readonly [{
|
|
291
155
|
readonly internalType: "address";
|
|
@@ -304,20 +168,6 @@ export declare const SXNetwork_jsonAbi: readonly [{
|
|
|
304
168
|
}];
|
|
305
169
|
readonly stateMutability: "nonpayable";
|
|
306
170
|
readonly type: "function";
|
|
307
|
-
}, {
|
|
308
|
-
readonly inputs: readonly [{
|
|
309
|
-
readonly internalType: "address";
|
|
310
|
-
readonly name: "to";
|
|
311
|
-
readonly type: "address";
|
|
312
|
-
}, {
|
|
313
|
-
readonly internalType: "uint256";
|
|
314
|
-
readonly name: "amount";
|
|
315
|
-
readonly type: "uint256";
|
|
316
|
-
}];
|
|
317
|
-
readonly name: "mint";
|
|
318
|
-
readonly outputs: readonly [];
|
|
319
|
-
readonly stateMutability: "nonpayable";
|
|
320
|
-
readonly type: "function";
|
|
321
171
|
}, {
|
|
322
172
|
readonly inputs: readonly [];
|
|
323
173
|
readonly name: "name";
|
|
@@ -330,56 +180,56 @@ export declare const SXNetwork_jsonAbi: readonly [{
|
|
|
330
180
|
readonly type: "function";
|
|
331
181
|
}, {
|
|
332
182
|
readonly inputs: readonly [{
|
|
333
|
-
readonly internalType: "bytes32";
|
|
334
|
-
readonly name: "role";
|
|
335
|
-
readonly type: "bytes32";
|
|
336
|
-
}, {
|
|
337
183
|
readonly internalType: "address";
|
|
338
|
-
readonly name: "
|
|
184
|
+
readonly name: "";
|
|
339
185
|
readonly type: "address";
|
|
340
186
|
}];
|
|
341
|
-
readonly name: "
|
|
342
|
-
readonly outputs: readonly [
|
|
343
|
-
|
|
187
|
+
readonly name: "nonces";
|
|
188
|
+
readonly outputs: readonly [{
|
|
189
|
+
readonly internalType: "uint256";
|
|
190
|
+
readonly name: "";
|
|
191
|
+
readonly type: "uint256";
|
|
192
|
+
}];
|
|
193
|
+
readonly stateMutability: "view";
|
|
344
194
|
readonly type: "function";
|
|
345
195
|
}, {
|
|
346
196
|
readonly inputs: readonly [{
|
|
347
197
|
readonly internalType: "address";
|
|
348
|
-
readonly name: "
|
|
198
|
+
readonly name: "holder";
|
|
349
199
|
readonly type: "address";
|
|
350
|
-
}];
|
|
351
|
-
readonly name: "revokeMinterRole";
|
|
352
|
-
readonly outputs: readonly [];
|
|
353
|
-
readonly stateMutability: "nonpayable";
|
|
354
|
-
readonly type: "function";
|
|
355
|
-
}, {
|
|
356
|
-
readonly inputs: readonly [{
|
|
357
|
-
readonly internalType: "bytes32";
|
|
358
|
-
readonly name: "role";
|
|
359
|
-
readonly type: "bytes32";
|
|
360
200
|
}, {
|
|
361
201
|
readonly internalType: "address";
|
|
362
|
-
readonly name: "
|
|
202
|
+
readonly name: "spender";
|
|
363
203
|
readonly type: "address";
|
|
204
|
+
}, {
|
|
205
|
+
readonly internalType: "uint256";
|
|
206
|
+
readonly name: "nonce";
|
|
207
|
+
readonly type: "uint256";
|
|
208
|
+
}, {
|
|
209
|
+
readonly internalType: "uint256";
|
|
210
|
+
readonly name: "expiry";
|
|
211
|
+
readonly type: "uint256";
|
|
212
|
+
}, {
|
|
213
|
+
readonly internalType: "uint256";
|
|
214
|
+
readonly name: "amount";
|
|
215
|
+
readonly type: "uint256";
|
|
216
|
+
}, {
|
|
217
|
+
readonly internalType: "uint8";
|
|
218
|
+
readonly name: "v";
|
|
219
|
+
readonly type: "uint8";
|
|
220
|
+
}, {
|
|
221
|
+
readonly internalType: "bytes32";
|
|
222
|
+
readonly name: "r";
|
|
223
|
+
readonly type: "bytes32";
|
|
224
|
+
}, {
|
|
225
|
+
readonly internalType: "bytes32";
|
|
226
|
+
readonly name: "s";
|
|
227
|
+
readonly type: "bytes32";
|
|
364
228
|
}];
|
|
365
|
-
readonly name: "
|
|
229
|
+
readonly name: "permit";
|
|
366
230
|
readonly outputs: readonly [];
|
|
367
231
|
readonly stateMutability: "nonpayable";
|
|
368
232
|
readonly type: "function";
|
|
369
|
-
}, {
|
|
370
|
-
readonly inputs: readonly [{
|
|
371
|
-
readonly internalType: "bytes4";
|
|
372
|
-
readonly name: "interfaceId";
|
|
373
|
-
readonly type: "bytes4";
|
|
374
|
-
}];
|
|
375
|
-
readonly name: "supportsInterface";
|
|
376
|
-
readonly outputs: readonly [{
|
|
377
|
-
readonly internalType: "bool";
|
|
378
|
-
readonly name: "";
|
|
379
|
-
readonly type: "bool";
|
|
380
|
-
}];
|
|
381
|
-
readonly stateMutability: "view";
|
|
382
|
-
readonly type: "function";
|
|
383
233
|
}, {
|
|
384
234
|
readonly inputs: readonly [];
|
|
385
235
|
readonly name: "symbol";
|
|
@@ -390,26 +240,6 @@ export declare const SXNetwork_jsonAbi: readonly [{
|
|
|
390
240
|
}];
|
|
391
241
|
readonly stateMutability: "view";
|
|
392
242
|
readonly type: "function";
|
|
393
|
-
}, {
|
|
394
|
-
readonly inputs: readonly [];
|
|
395
|
-
readonly name: "tokenName";
|
|
396
|
-
readonly outputs: readonly [{
|
|
397
|
-
readonly internalType: "string";
|
|
398
|
-
readonly name: "";
|
|
399
|
-
readonly type: "string";
|
|
400
|
-
}];
|
|
401
|
-
readonly stateMutability: "view";
|
|
402
|
-
readonly type: "function";
|
|
403
|
-
}, {
|
|
404
|
-
readonly inputs: readonly [];
|
|
405
|
-
readonly name: "tokenSymbol";
|
|
406
|
-
readonly outputs: readonly [{
|
|
407
|
-
readonly internalType: "string";
|
|
408
|
-
readonly name: "";
|
|
409
|
-
readonly type: "string";
|
|
410
|
-
}];
|
|
411
|
-
readonly stateMutability: "view";
|
|
412
|
-
readonly type: "function";
|
|
413
243
|
}, {
|
|
414
244
|
readonly inputs: readonly [];
|
|
415
245
|
readonly name: "totalSupply";
|
|
@@ -423,7 +253,7 @@ export declare const SXNetwork_jsonAbi: readonly [{
|
|
|
423
253
|
}, {
|
|
424
254
|
readonly inputs: readonly [{
|
|
425
255
|
readonly internalType: "address";
|
|
426
|
-
readonly name: "
|
|
256
|
+
readonly name: "recipient";
|
|
427
257
|
readonly type: "address";
|
|
428
258
|
}, {
|
|
429
259
|
readonly internalType: "uint256";
|
|
@@ -441,11 +271,11 @@ export declare const SXNetwork_jsonAbi: readonly [{
|
|
|
441
271
|
}, {
|
|
442
272
|
readonly inputs: readonly [{
|
|
443
273
|
readonly internalType: "address";
|
|
444
|
-
readonly name: "
|
|
274
|
+
readonly name: "sender";
|
|
445
275
|
readonly type: "address";
|
|
446
276
|
}, {
|
|
447
277
|
readonly internalType: "address";
|
|
448
|
-
readonly name: "
|
|
278
|
+
readonly name: "recipient";
|
|
449
279
|
readonly type: "address";
|
|
450
280
|
}, {
|
|
451
281
|
readonly internalType: "uint256";
|
|
@@ -460,17 +290,27 @@ export declare const SXNetwork_jsonAbi: readonly [{
|
|
|
460
290
|
}];
|
|
461
291
|
readonly stateMutability: "nonpayable";
|
|
462
292
|
readonly type: "function";
|
|
293
|
+
}, {
|
|
294
|
+
readonly inputs: readonly [];
|
|
295
|
+
readonly name: "version";
|
|
296
|
+
readonly outputs: readonly [{
|
|
297
|
+
readonly internalType: "string";
|
|
298
|
+
readonly name: "";
|
|
299
|
+
readonly type: "string";
|
|
300
|
+
}];
|
|
301
|
+
readonly stateMutability: "view";
|
|
302
|
+
readonly type: "function";
|
|
463
303
|
}];
|
|
464
304
|
/**
|
|
465
|
-
* Type-safe ABI for
|
|
305
|
+
* Type-safe ABI for SportX_json
|
|
466
306
|
*/
|
|
467
|
-
export type
|
|
307
|
+
export type SportX_jsonAbi = typeof SportX_jsonAbi;
|
|
468
308
|
/**
|
|
469
|
-
* Contract instance type for
|
|
309
|
+
* Contract instance type for SportX_json
|
|
470
310
|
*/
|
|
471
|
-
export type
|
|
311
|
+
export type SportX_jsonContract = any;
|
|
472
312
|
/**
|
|
473
|
-
*
|
|
313
|
+
* SportX_json Contract Class
|
|
474
314
|
*
|
|
475
315
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
476
316
|
*
|
|
@@ -478,12 +318,12 @@ export type SXNetwork_jsonContract = any;
|
|
|
478
318
|
* ```typescript
|
|
479
319
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
480
320
|
* import { mainnet } from 'viem/chains';
|
|
481
|
-
* import {
|
|
321
|
+
* import { SportX_json } from 'SportX_json';
|
|
482
322
|
*
|
|
483
323
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
484
324
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
485
325
|
*
|
|
486
|
-
* const contract = new
|
|
326
|
+
* const contract = new SportX_json('0x...', { publicClient, walletClient });
|
|
487
327
|
*
|
|
488
328
|
* // Read functions
|
|
489
329
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -501,7 +341,7 @@ export type SXNetwork_jsonContract = any;
|
|
|
501
341
|
* });
|
|
502
342
|
* ```
|
|
503
343
|
*/
|
|
504
|
-
export declare class
|
|
344
|
+
export declare class SportX_json {
|
|
505
345
|
private contract;
|
|
506
346
|
private contractAddress;
|
|
507
347
|
private publicClient;
|
|
@@ -516,17 +356,17 @@ export declare class SXNetwork_json {
|
|
|
516
356
|
/**
|
|
517
357
|
* Get the underlying viem contract instance
|
|
518
358
|
*/
|
|
519
|
-
getContract():
|
|
359
|
+
getContract(): SportX_jsonContract;
|
|
520
360
|
/**
|
|
521
|
-
*
|
|
361
|
+
* EIP712_DOMAIN_SEPARATOR
|
|
522
362
|
* view
|
|
523
363
|
*/
|
|
524
|
-
|
|
364
|
+
EIP712_DOMAIN_SEPARATOR(): Promise<`0x${string}`>;
|
|
525
365
|
/**
|
|
526
|
-
*
|
|
366
|
+
* PERMIT_TYPEHASH
|
|
527
367
|
* view
|
|
528
368
|
*/
|
|
529
|
-
|
|
369
|
+
PERMIT_TYPEHASH(): Promise<`0x${string}`>;
|
|
530
370
|
/**
|
|
531
371
|
* allowance
|
|
532
372
|
* view
|
|
@@ -542,46 +382,31 @@ export declare class SXNetwork_json {
|
|
|
542
382
|
* view
|
|
543
383
|
*/
|
|
544
384
|
decimals(): Promise<bigint>;
|
|
545
|
-
/**
|
|
546
|
-
* getRoleAdmin
|
|
547
|
-
* view
|
|
548
|
-
*/
|
|
549
|
-
getRoleAdmin(role: `0x${string}`): Promise<`0x${string}`>;
|
|
550
|
-
/**
|
|
551
|
-
* hasRole
|
|
552
|
-
* view
|
|
553
|
-
*/
|
|
554
|
-
hasRole(role: `0x${string}`, account: `0x${string}`): Promise<boolean>;
|
|
555
385
|
/**
|
|
556
386
|
* name
|
|
557
387
|
* view
|
|
558
388
|
*/
|
|
559
389
|
name(): Promise<string>;
|
|
560
390
|
/**
|
|
561
|
-
*
|
|
391
|
+
* nonces
|
|
562
392
|
* view
|
|
563
393
|
*/
|
|
564
|
-
|
|
394
|
+
nonces(arg0: `0x${string}`): Promise<bigint>;
|
|
565
395
|
/**
|
|
566
396
|
* symbol
|
|
567
397
|
* view
|
|
568
398
|
*/
|
|
569
399
|
symbol(): Promise<string>;
|
|
570
400
|
/**
|
|
571
|
-
*
|
|
572
|
-
* view
|
|
573
|
-
*/
|
|
574
|
-
tokenName(): Promise<string>;
|
|
575
|
-
/**
|
|
576
|
-
* tokenSymbol
|
|
401
|
+
* totalSupply
|
|
577
402
|
* view
|
|
578
403
|
*/
|
|
579
|
-
|
|
404
|
+
totalSupply(): Promise<bigint>;
|
|
580
405
|
/**
|
|
581
|
-
*
|
|
406
|
+
* version
|
|
582
407
|
* view
|
|
583
408
|
*/
|
|
584
|
-
|
|
409
|
+
version(): Promise<string>;
|
|
585
410
|
/**
|
|
586
411
|
* approve
|
|
587
412
|
* nonpayable
|
|
@@ -599,40 +424,6 @@ export declare class SXNetwork_json {
|
|
|
599
424
|
nonce?: number;
|
|
600
425
|
value?: bigint;
|
|
601
426
|
}): Promise<`0x${string}`>;
|
|
602
|
-
/**
|
|
603
|
-
* burn
|
|
604
|
-
* nonpayable
|
|
605
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
606
|
-
*/
|
|
607
|
-
burn(amount: bigint, options?: {
|
|
608
|
-
accessList?: import('viem').AccessList;
|
|
609
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
610
|
-
chain?: import('viem').Chain | null;
|
|
611
|
-
dataSuffix?: `0x${string}`;
|
|
612
|
-
gas?: bigint;
|
|
613
|
-
gasPrice?: bigint;
|
|
614
|
-
maxFeePerGas?: bigint;
|
|
615
|
-
maxPriorityFeePerGas?: bigint;
|
|
616
|
-
nonce?: number;
|
|
617
|
-
value?: bigint;
|
|
618
|
-
}): Promise<`0x${string}`>;
|
|
619
|
-
/**
|
|
620
|
-
* burnFrom
|
|
621
|
-
* nonpayable
|
|
622
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
623
|
-
*/
|
|
624
|
-
burnFrom(account: `0x${string}`, amount: bigint, options?: {
|
|
625
|
-
accessList?: import('viem').AccessList;
|
|
626
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
627
|
-
chain?: import('viem').Chain | null;
|
|
628
|
-
dataSuffix?: `0x${string}`;
|
|
629
|
-
gas?: bigint;
|
|
630
|
-
gasPrice?: bigint;
|
|
631
|
-
maxFeePerGas?: bigint;
|
|
632
|
-
maxPriorityFeePerGas?: bigint;
|
|
633
|
-
nonce?: number;
|
|
634
|
-
value?: bigint;
|
|
635
|
-
}): Promise<`0x${string}`>;
|
|
636
427
|
/**
|
|
637
428
|
* decreaseAllowance
|
|
638
429
|
* nonpayable
|
|
@@ -650,40 +441,6 @@ export declare class SXNetwork_json {
|
|
|
650
441
|
nonce?: number;
|
|
651
442
|
value?: bigint;
|
|
652
443
|
}): Promise<`0x${string}`>;
|
|
653
|
-
/**
|
|
654
|
-
* grantMinterRole
|
|
655
|
-
* nonpayable
|
|
656
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
657
|
-
*/
|
|
658
|
-
grantMinterRole(account: `0x${string}`, options?: {
|
|
659
|
-
accessList?: import('viem').AccessList;
|
|
660
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
661
|
-
chain?: import('viem').Chain | null;
|
|
662
|
-
dataSuffix?: `0x${string}`;
|
|
663
|
-
gas?: bigint;
|
|
664
|
-
gasPrice?: bigint;
|
|
665
|
-
maxFeePerGas?: bigint;
|
|
666
|
-
maxPriorityFeePerGas?: bigint;
|
|
667
|
-
nonce?: number;
|
|
668
|
-
value?: bigint;
|
|
669
|
-
}): Promise<`0x${string}`>;
|
|
670
|
-
/**
|
|
671
|
-
* grantRole
|
|
672
|
-
* nonpayable
|
|
673
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
674
|
-
*/
|
|
675
|
-
grantRole(role: `0x${string}`, account: `0x${string}`, options?: {
|
|
676
|
-
accessList?: import('viem').AccessList;
|
|
677
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
678
|
-
chain?: import('viem').Chain | null;
|
|
679
|
-
dataSuffix?: `0x${string}`;
|
|
680
|
-
gas?: bigint;
|
|
681
|
-
gasPrice?: bigint;
|
|
682
|
-
maxFeePerGas?: bigint;
|
|
683
|
-
maxPriorityFeePerGas?: bigint;
|
|
684
|
-
nonce?: number;
|
|
685
|
-
value?: bigint;
|
|
686
|
-
}): Promise<`0x${string}`>;
|
|
687
444
|
/**
|
|
688
445
|
* increaseAllowance
|
|
689
446
|
* nonpayable
|
|
@@ -702,62 +459,11 @@ export declare class SXNetwork_json {
|
|
|
702
459
|
value?: bigint;
|
|
703
460
|
}): Promise<`0x${string}`>;
|
|
704
461
|
/**
|
|
705
|
-
*
|
|
706
|
-
* nonpayable
|
|
707
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
708
|
-
*/
|
|
709
|
-
mint(to: `0x${string}`, amount: bigint, options?: {
|
|
710
|
-
accessList?: import('viem').AccessList;
|
|
711
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
712
|
-
chain?: import('viem').Chain | null;
|
|
713
|
-
dataSuffix?: `0x${string}`;
|
|
714
|
-
gas?: bigint;
|
|
715
|
-
gasPrice?: bigint;
|
|
716
|
-
maxFeePerGas?: bigint;
|
|
717
|
-
maxPriorityFeePerGas?: bigint;
|
|
718
|
-
nonce?: number;
|
|
719
|
-
value?: bigint;
|
|
720
|
-
}): Promise<`0x${string}`>;
|
|
721
|
-
/**
|
|
722
|
-
* renounceRole
|
|
723
|
-
* nonpayable
|
|
724
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
725
|
-
*/
|
|
726
|
-
renounceRole(role: `0x${string}`, account: `0x${string}`, options?: {
|
|
727
|
-
accessList?: import('viem').AccessList;
|
|
728
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
729
|
-
chain?: import('viem').Chain | null;
|
|
730
|
-
dataSuffix?: `0x${string}`;
|
|
731
|
-
gas?: bigint;
|
|
732
|
-
gasPrice?: bigint;
|
|
733
|
-
maxFeePerGas?: bigint;
|
|
734
|
-
maxPriorityFeePerGas?: bigint;
|
|
735
|
-
nonce?: number;
|
|
736
|
-
value?: bigint;
|
|
737
|
-
}): Promise<`0x${string}`>;
|
|
738
|
-
/**
|
|
739
|
-
* revokeMinterRole
|
|
462
|
+
* permit
|
|
740
463
|
* nonpayable
|
|
741
464
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
742
465
|
*/
|
|
743
|
-
|
|
744
|
-
accessList?: import('viem').AccessList;
|
|
745
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
746
|
-
chain?: import('viem').Chain | null;
|
|
747
|
-
dataSuffix?: `0x${string}`;
|
|
748
|
-
gas?: bigint;
|
|
749
|
-
gasPrice?: bigint;
|
|
750
|
-
maxFeePerGas?: bigint;
|
|
751
|
-
maxPriorityFeePerGas?: bigint;
|
|
752
|
-
nonce?: number;
|
|
753
|
-
value?: bigint;
|
|
754
|
-
}): Promise<`0x${string}`>;
|
|
755
|
-
/**
|
|
756
|
-
* revokeRole
|
|
757
|
-
* nonpayable
|
|
758
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
759
|
-
*/
|
|
760
|
-
revokeRole(role: `0x${string}`, account: `0x${string}`, options?: {
|
|
466
|
+
permit(holder: `0x${string}`, spender: `0x${string}`, nonce: bigint, expiry: bigint, amount: bigint, v: bigint, r: `0x${string}`, s: `0x${string}`, options?: {
|
|
761
467
|
accessList?: import('viem').AccessList;
|
|
762
468
|
authorizationList?: import('viem').AuthorizationList;
|
|
763
469
|
chain?: import('viem').Chain | null;
|
|
@@ -774,7 +480,7 @@ export declare class SXNetwork_json {
|
|
|
774
480
|
* nonpayable
|
|
775
481
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
776
482
|
*/
|
|
777
|
-
transfer(
|
|
483
|
+
transfer(recipient: `0x${string}`, amount: bigint, options?: {
|
|
778
484
|
accessList?: import('viem').AccessList;
|
|
779
485
|
authorizationList?: import('viem').AuthorizationList;
|
|
780
486
|
chain?: import('viem').Chain | null;
|
|
@@ -791,7 +497,7 @@ export declare class SXNetwork_json {
|
|
|
791
497
|
* nonpayable
|
|
792
498
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
793
499
|
*/
|
|
794
|
-
transferFrom(
|
|
500
|
+
transferFrom(sender: `0x${string}`, recipient: `0x${string}`, amount: bigint, options?: {
|
|
795
501
|
accessList?: import('viem').AccessList;
|
|
796
502
|
authorizationList?: import('viem').AuthorizationList;
|
|
797
503
|
chain?: import('viem').Chain | null;
|
|
@@ -829,40 +535,6 @@ export declare class SXNetwork_json {
|
|
|
829
535
|
nonce?: number;
|
|
830
536
|
value?: bigint;
|
|
831
537
|
}): Promise<boolean>;
|
|
832
|
-
/**
|
|
833
|
-
* Simulate burn
|
|
834
|
-
* Returns gas estimate and result without sending transaction
|
|
835
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
836
|
-
*/
|
|
837
|
-
burn(amount: bigint, options?: {
|
|
838
|
-
accessList?: import("viem").AccessList;
|
|
839
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
840
|
-
chain?: import("viem").Chain | null;
|
|
841
|
-
dataSuffix?: `0x${string}`;
|
|
842
|
-
gas?: bigint;
|
|
843
|
-
gasPrice?: bigint;
|
|
844
|
-
maxFeePerGas?: bigint;
|
|
845
|
-
maxPriorityFeePerGas?: bigint;
|
|
846
|
-
nonce?: number;
|
|
847
|
-
value?: bigint;
|
|
848
|
-
}): Promise<void>;
|
|
849
|
-
/**
|
|
850
|
-
* Simulate burnFrom
|
|
851
|
-
* Returns gas estimate and result without sending transaction
|
|
852
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
853
|
-
*/
|
|
854
|
-
burnFrom(account: `0x${string}`, amount: bigint, options?: {
|
|
855
|
-
accessList?: import("viem").AccessList;
|
|
856
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
857
|
-
chain?: import("viem").Chain | null;
|
|
858
|
-
dataSuffix?: `0x${string}`;
|
|
859
|
-
gas?: bigint;
|
|
860
|
-
gasPrice?: bigint;
|
|
861
|
-
maxFeePerGas?: bigint;
|
|
862
|
-
maxPriorityFeePerGas?: bigint;
|
|
863
|
-
nonce?: number;
|
|
864
|
-
value?: bigint;
|
|
865
|
-
}): Promise<void>;
|
|
866
538
|
/**
|
|
867
539
|
* Simulate decreaseAllowance
|
|
868
540
|
* Returns gas estimate and result without sending transaction
|
|
@@ -880,40 +552,6 @@ export declare class SXNetwork_json {
|
|
|
880
552
|
nonce?: number;
|
|
881
553
|
value?: bigint;
|
|
882
554
|
}): Promise<boolean>;
|
|
883
|
-
/**
|
|
884
|
-
* Simulate grantMinterRole
|
|
885
|
-
* Returns gas estimate and result without sending transaction
|
|
886
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
887
|
-
*/
|
|
888
|
-
grantMinterRole(account: `0x${string}`, options?: {
|
|
889
|
-
accessList?: import("viem").AccessList;
|
|
890
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
891
|
-
chain?: import("viem").Chain | null;
|
|
892
|
-
dataSuffix?: `0x${string}`;
|
|
893
|
-
gas?: bigint;
|
|
894
|
-
gasPrice?: bigint;
|
|
895
|
-
maxFeePerGas?: bigint;
|
|
896
|
-
maxPriorityFeePerGas?: bigint;
|
|
897
|
-
nonce?: number;
|
|
898
|
-
value?: bigint;
|
|
899
|
-
}): Promise<void>;
|
|
900
|
-
/**
|
|
901
|
-
* Simulate grantRole
|
|
902
|
-
* Returns gas estimate and result without sending transaction
|
|
903
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
904
|
-
*/
|
|
905
|
-
grantRole(role: `0x${string}`, account: `0x${string}`, options?: {
|
|
906
|
-
accessList?: import("viem").AccessList;
|
|
907
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
908
|
-
chain?: import("viem").Chain | null;
|
|
909
|
-
dataSuffix?: `0x${string}`;
|
|
910
|
-
gas?: bigint;
|
|
911
|
-
gasPrice?: bigint;
|
|
912
|
-
maxFeePerGas?: bigint;
|
|
913
|
-
maxPriorityFeePerGas?: bigint;
|
|
914
|
-
nonce?: number;
|
|
915
|
-
value?: bigint;
|
|
916
|
-
}): Promise<void>;
|
|
917
555
|
/**
|
|
918
556
|
* Simulate increaseAllowance
|
|
919
557
|
* Returns gas estimate and result without sending transaction
|
|
@@ -932,62 +570,11 @@ export declare class SXNetwork_json {
|
|
|
932
570
|
value?: bigint;
|
|
933
571
|
}): Promise<boolean>;
|
|
934
572
|
/**
|
|
935
|
-
* Simulate
|
|
573
|
+
* Simulate permit
|
|
936
574
|
* Returns gas estimate and result without sending transaction
|
|
937
575
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
938
576
|
*/
|
|
939
|
-
|
|
940
|
-
accessList?: import("viem").AccessList;
|
|
941
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
942
|
-
chain?: import("viem").Chain | null;
|
|
943
|
-
dataSuffix?: `0x${string}`;
|
|
944
|
-
gas?: bigint;
|
|
945
|
-
gasPrice?: bigint;
|
|
946
|
-
maxFeePerGas?: bigint;
|
|
947
|
-
maxPriorityFeePerGas?: bigint;
|
|
948
|
-
nonce?: number;
|
|
949
|
-
value?: bigint;
|
|
950
|
-
}): Promise<void>;
|
|
951
|
-
/**
|
|
952
|
-
* Simulate renounceRole
|
|
953
|
-
* Returns gas estimate and result without sending transaction
|
|
954
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
955
|
-
*/
|
|
956
|
-
renounceRole(role: `0x${string}`, account: `0x${string}`, options?: {
|
|
957
|
-
accessList?: import("viem").AccessList;
|
|
958
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
959
|
-
chain?: import("viem").Chain | null;
|
|
960
|
-
dataSuffix?: `0x${string}`;
|
|
961
|
-
gas?: bigint;
|
|
962
|
-
gasPrice?: bigint;
|
|
963
|
-
maxFeePerGas?: bigint;
|
|
964
|
-
maxPriorityFeePerGas?: bigint;
|
|
965
|
-
nonce?: number;
|
|
966
|
-
value?: bigint;
|
|
967
|
-
}): Promise<void>;
|
|
968
|
-
/**
|
|
969
|
-
* Simulate revokeMinterRole
|
|
970
|
-
* Returns gas estimate and result without sending transaction
|
|
971
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
972
|
-
*/
|
|
973
|
-
revokeMinterRole(account: `0x${string}`, options?: {
|
|
974
|
-
accessList?: import("viem").AccessList;
|
|
975
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
976
|
-
chain?: import("viem").Chain | null;
|
|
977
|
-
dataSuffix?: `0x${string}`;
|
|
978
|
-
gas?: bigint;
|
|
979
|
-
gasPrice?: bigint;
|
|
980
|
-
maxFeePerGas?: bigint;
|
|
981
|
-
maxPriorityFeePerGas?: bigint;
|
|
982
|
-
nonce?: number;
|
|
983
|
-
value?: bigint;
|
|
984
|
-
}): Promise<void>;
|
|
985
|
-
/**
|
|
986
|
-
* Simulate revokeRole
|
|
987
|
-
* Returns gas estimate and result without sending transaction
|
|
988
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
989
|
-
*/
|
|
990
|
-
revokeRole(role: `0x${string}`, account: `0x${string}`, options?: {
|
|
577
|
+
permit(holder: `0x${string}`, spender: `0x${string}`, nonce: bigint, expiry: bigint, amount: bigint, v: bigint, r: `0x${string}`, s: `0x${string}`, options?: {
|
|
991
578
|
accessList?: import("viem").AccessList;
|
|
992
579
|
authorizationList?: import("viem").AuthorizationList;
|
|
993
580
|
chain?: import("viem").Chain | null;
|
|
@@ -1004,7 +591,7 @@ export declare class SXNetwork_json {
|
|
|
1004
591
|
* Returns gas estimate and result without sending transaction
|
|
1005
592
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1006
593
|
*/
|
|
1007
|
-
transfer(
|
|
594
|
+
transfer(recipient: `0x${string}`, amount: bigint, options?: {
|
|
1008
595
|
accessList?: import("viem").AccessList;
|
|
1009
596
|
authorizationList?: import("viem").AuthorizationList;
|
|
1010
597
|
chain?: import("viem").Chain | null;
|
|
@@ -1021,7 +608,7 @@ export declare class SXNetwork_json {
|
|
|
1021
608
|
* Returns gas estimate and result without sending transaction
|
|
1022
609
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1023
610
|
*/
|
|
1024
|
-
transferFrom(
|
|
611
|
+
transferFrom(sender: `0x${string}`, recipient: `0x${string}`, amount: bigint, options?: {
|
|
1025
612
|
accessList?: import("viem").AccessList;
|
|
1026
613
|
authorizationList?: import("viem").AuthorizationList;
|
|
1027
614
|
chain?: import("viem").Chain | null;
|
|
@@ -1061,51 +648,6 @@ export declare class SXNetwork_json {
|
|
|
1061
648
|
owner: `0x${string}`;
|
|
1062
649
|
spender: `0x${string}`;
|
|
1063
650
|
}) => () => void;
|
|
1064
|
-
/**
|
|
1065
|
-
* Watch RoleAdminChanged events
|
|
1066
|
-
* @param callback Function to call when event is emitted
|
|
1067
|
-
* @param filter Optional filter for indexed parameters
|
|
1068
|
-
* @returns Unwatch function to stop listening
|
|
1069
|
-
*/
|
|
1070
|
-
RoleAdminChanged: (callback: (event: {
|
|
1071
|
-
role: `0x${string}`;
|
|
1072
|
-
previousAdminRole: `0x${string}`;
|
|
1073
|
-
newAdminRole: `0x${string}`;
|
|
1074
|
-
}) => void, filter?: {
|
|
1075
|
-
role: `0x${string}`;
|
|
1076
|
-
previousAdminRole: `0x${string}`;
|
|
1077
|
-
newAdminRole: `0x${string}`;
|
|
1078
|
-
}) => () => void;
|
|
1079
|
-
/**
|
|
1080
|
-
* Watch RoleGranted events
|
|
1081
|
-
* @param callback Function to call when event is emitted
|
|
1082
|
-
* @param filter Optional filter for indexed parameters
|
|
1083
|
-
* @returns Unwatch function to stop listening
|
|
1084
|
-
*/
|
|
1085
|
-
RoleGranted: (callback: (event: {
|
|
1086
|
-
role: `0x${string}`;
|
|
1087
|
-
account: `0x${string}`;
|
|
1088
|
-
sender: `0x${string}`;
|
|
1089
|
-
}) => void, filter?: {
|
|
1090
|
-
role: `0x${string}`;
|
|
1091
|
-
account: `0x${string}`;
|
|
1092
|
-
sender: `0x${string}`;
|
|
1093
|
-
}) => () => void;
|
|
1094
|
-
/**
|
|
1095
|
-
* Watch RoleRevoked events
|
|
1096
|
-
* @param callback Function to call when event is emitted
|
|
1097
|
-
* @param filter Optional filter for indexed parameters
|
|
1098
|
-
* @returns Unwatch function to stop listening
|
|
1099
|
-
*/
|
|
1100
|
-
RoleRevoked: (callback: (event: {
|
|
1101
|
-
role: `0x${string}`;
|
|
1102
|
-
account: `0x${string}`;
|
|
1103
|
-
sender: `0x${string}`;
|
|
1104
|
-
}) => void, filter?: {
|
|
1105
|
-
role: `0x${string}`;
|
|
1106
|
-
account: `0x${string}`;
|
|
1107
|
-
sender: `0x${string}`;
|
|
1108
|
-
}) => () => void;
|
|
1109
651
|
/**
|
|
1110
652
|
* Watch Transfer events
|
|
1111
653
|
* @param callback Function to call when event is emitted
|