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