polymarket-apis 0.2.2__py3-none-any.whl

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.

Potentially problematic release.


This version of polymarket-apis might be problematic. Click here for more details.

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