@shippedcalls/sdk 0.0.0-stage → 0.2.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 +87 -2
  3. package/dist/abi.d.ts +1653 -0
  4. package/dist/abi.js +2135 -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 +21 -0
  10. package/dist/chain.js +40 -0
  11. package/dist/chain.js.map +1 -0
  12. package/dist/cli.d.ts +2 -0
  13. package/dist/cli.js +298 -0
  14. package/dist/cli.js.map +1 -0
  15. package/dist/client.d.ts +158 -0
  16. package/dist/client.js +419 -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 +43 -0
  28. package/dist/odds.js +73 -0
  29. package/dist/odds.js.map +1 -0
  30. package/dist/types.d.ts +417 -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 +45 -0
  38. package/skill/references/write-path.md +68 -0
  39. package/skill/scripts/calls.sh +3 -0
  40. package/src/abi.ts +2137 -0
  41. package/src/canonical.ts +24 -0
  42. package/src/chain.ts +43 -0
  43. package/src/cli.ts +291 -0
  44. package/src/client.ts +447 -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 +82 -0
  49. package/src/types.ts +305 -0
package/dist/abi.js ADDED
@@ -0,0 +1,2135 @@
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": "PRICE_DISPUTE_WINDOW",
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": "RAKE_BPS",
524
+ "inputs": [],
525
+ "outputs": [
526
+ {
527
+ "name": "",
528
+ "type": "uint256",
529
+ "internalType": "uint256"
530
+ }
531
+ ],
532
+ "stateMutability": "view"
533
+ },
534
+ {
535
+ "type": "function",
536
+ "name": "REASON_COURT_TIMEOUT",
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_DEED_INVALID",
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": "REASON_RESOLVER_TIMEOUT",
563
+ "inputs": [],
564
+ "outputs": [
565
+ {
566
+ "name": "",
567
+ "type": "bytes32",
568
+ "internalType": "bytes32"
569
+ }
570
+ ],
571
+ "stateMutability": "view"
572
+ },
573
+ {
574
+ "type": "function",
575
+ "name": "RESOLVER_TIMEOUT",
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": "TREASURY_BPS",
589
+ "inputs": [],
590
+ "outputs": [
591
+ {
592
+ "name": "",
593
+ "type": "uint256",
594
+ "internalType": "uint256"
595
+ }
596
+ ],
597
+ "stateMutability": "view"
598
+ },
599
+ {
600
+ "type": "function",
601
+ "name": "bet",
602
+ "inputs": [
603
+ {
604
+ "name": "side",
605
+ "type": "uint8",
606
+ "internalType": "enum Side"
607
+ }
608
+ ],
609
+ "outputs": [],
610
+ "stateMutability": "payable"
611
+ },
612
+ {
613
+ "type": "function",
614
+ "name": "bond",
615
+ "inputs": [],
616
+ "outputs": [
617
+ {
618
+ "name": "",
619
+ "type": "uint256",
620
+ "internalType": "uint256"
621
+ }
622
+ ],
623
+ "stateMutability": "view"
624
+ },
625
+ {
626
+ "type": "function",
627
+ "name": "callType",
628
+ "inputs": [],
629
+ "outputs": [
630
+ {
631
+ "name": "",
632
+ "type": "uint8",
633
+ "internalType": "enum CallType"
634
+ }
635
+ ],
636
+ "stateMutability": "view"
637
+ },
638
+ {
639
+ "type": "function",
640
+ "name": "claim",
641
+ "inputs": [],
642
+ "outputs": [],
643
+ "stateMutability": "nonpayable"
644
+ },
645
+ {
646
+ "type": "function",
647
+ "name": "claimOpener",
648
+ "inputs": [],
649
+ "outputs": [],
650
+ "stateMutability": "nonpayable"
651
+ },
652
+ {
653
+ "type": "function",
654
+ "name": "claimTreasury",
655
+ "inputs": [],
656
+ "outputs": [],
657
+ "stateMutability": "nonpayable"
658
+ },
659
+ {
660
+ "type": "function",
661
+ "name": "claimed",
662
+ "inputs": [
663
+ {
664
+ "name": "",
665
+ "type": "address",
666
+ "internalType": "address"
667
+ }
668
+ ],
669
+ "outputs": [
670
+ {
671
+ "name": "",
672
+ "type": "bool",
673
+ "internalType": "bool"
674
+ }
675
+ ],
676
+ "stateMutability": "view"
677
+ },
678
+ {
679
+ "type": "function",
680
+ "name": "claimedStakes",
681
+ "inputs": [],
682
+ "outputs": [
683
+ {
684
+ "name": "",
685
+ "type": "uint256",
686
+ "internalType": "uint256"
687
+ }
688
+ ],
689
+ "stateMutability": "view"
690
+ },
691
+ {
692
+ "type": "function",
693
+ "name": "close",
694
+ "inputs": [],
695
+ "outputs": [],
696
+ "stateMutability": "nonpayable"
697
+ },
698
+ {
699
+ "type": "function",
700
+ "name": "closeAt",
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": "deadline",
714
+ "inputs": [],
715
+ "outputs": [
716
+ {
717
+ "name": "",
718
+ "type": "uint64",
719
+ "internalType": "uint64"
720
+ }
721
+ ],
722
+ "stateMutability": "view"
723
+ },
724
+ {
725
+ "type": "function",
726
+ "name": "deedId",
727
+ "inputs": [],
728
+ "outputs": [
729
+ {
730
+ "name": "",
731
+ "type": "uint256",
732
+ "internalType": "uint256"
733
+ }
734
+ ],
735
+ "stateMutability": "view"
736
+ },
737
+ {
738
+ "type": "function",
739
+ "name": "dispute",
740
+ "inputs": [],
741
+ "outputs": [],
742
+ "stateMutability": "payable"
743
+ },
744
+ {
745
+ "type": "function",
746
+ "name": "disputeBondReturns",
747
+ "inputs": [],
748
+ "outputs": [
749
+ {
750
+ "name": "",
751
+ "type": "bool",
752
+ "internalType": "bool"
753
+ }
754
+ ],
755
+ "stateMutability": "view"
756
+ },
757
+ {
758
+ "type": "function",
759
+ "name": "disputeWindow",
760
+ "inputs": [],
761
+ "outputs": [
762
+ {
763
+ "name": "",
764
+ "type": "uint256",
765
+ "internalType": "uint256"
766
+ }
767
+ ],
768
+ "stateMutability": "view"
769
+ },
770
+ {
771
+ "type": "function",
772
+ "name": "disputer",
773
+ "inputs": [],
774
+ "outputs": [
775
+ {
776
+ "name": "",
777
+ "type": "address",
778
+ "internalType": "address"
779
+ }
780
+ ],
781
+ "stateMutability": "view"
782
+ },
783
+ {
784
+ "type": "function",
785
+ "name": "evidenceHash",
786
+ "inputs": [],
787
+ "outputs": [
788
+ {
789
+ "name": "",
790
+ "type": "bytes32",
791
+ "internalType": "bytes32"
792
+ }
793
+ ],
794
+ "stateMutability": "view"
795
+ },
796
+ {
797
+ "type": "function",
798
+ "name": "factory",
799
+ "inputs": [],
800
+ "outputs": [
801
+ {
802
+ "name": "",
803
+ "type": "address",
804
+ "internalType": "contract ICallsFactory"
805
+ }
806
+ ],
807
+ "stateMutability": "view"
808
+ },
809
+ {
810
+ "type": "function",
811
+ "name": "finalize",
812
+ "inputs": [],
813
+ "outputs": [],
814
+ "stateMutability": "nonpayable"
815
+ },
816
+ {
817
+ "type": "function",
818
+ "name": "initialize",
819
+ "inputs": [
820
+ {
821
+ "name": "opener_",
822
+ "type": "address",
823
+ "internalType": "address"
824
+ },
825
+ {
826
+ "name": "callType_",
827
+ "type": "uint8",
828
+ "internalType": "enum CallType"
829
+ },
830
+ {
831
+ "name": "closeAt_",
832
+ "type": "uint64",
833
+ "internalType": "uint64"
834
+ },
835
+ {
836
+ "name": "deadline_",
837
+ "type": "uint64",
838
+ "internalType": "uint64"
839
+ },
840
+ {
841
+ "name": "deedId_",
842
+ "type": "uint256",
843
+ "internalType": "uint256"
844
+ }
845
+ ],
846
+ "outputs": [],
847
+ "stateMutability": "payable"
848
+ },
849
+ {
850
+ "type": "function",
851
+ "name": "odds",
852
+ "inputs": [],
853
+ "outputs": [
854
+ {
855
+ "name": "",
856
+ "type": "uint256",
857
+ "internalType": "uint256"
858
+ }
859
+ ],
860
+ "stateMutability": "view"
861
+ },
862
+ {
863
+ "type": "function",
864
+ "name": "opener",
865
+ "inputs": [],
866
+ "outputs": [
867
+ {
868
+ "name": "",
869
+ "type": "address",
870
+ "internalType": "address"
871
+ }
872
+ ],
873
+ "stateMutability": "view"
874
+ },
875
+ {
876
+ "type": "function",
877
+ "name": "openerAtFault",
878
+ "inputs": [],
879
+ "outputs": [
880
+ {
881
+ "name": "",
882
+ "type": "bool",
883
+ "internalType": "bool"
884
+ }
885
+ ],
886
+ "stateMutability": "view"
887
+ },
888
+ {
889
+ "type": "function",
890
+ "name": "openerClaimed",
891
+ "inputs": [],
892
+ "outputs": [
893
+ {
894
+ "name": "",
895
+ "type": "bool",
896
+ "internalType": "bool"
897
+ }
898
+ ],
899
+ "stateMutability": "view"
900
+ },
901
+ {
902
+ "type": "function",
903
+ "name": "outcome",
904
+ "inputs": [],
905
+ "outputs": [
906
+ {
907
+ "name": "",
908
+ "type": "uint8",
909
+ "internalType": "enum Side"
910
+ }
911
+ ],
912
+ "stateMutability": "view"
913
+ },
914
+ {
915
+ "type": "function",
916
+ "name": "payoutOf",
917
+ "inputs": [
918
+ {
919
+ "name": "account",
920
+ "type": "address",
921
+ "internalType": "address"
922
+ }
923
+ ],
924
+ "outputs": [
925
+ {
926
+ "name": "amount",
927
+ "type": "uint256",
928
+ "internalType": "uint256"
929
+ }
930
+ ],
931
+ "stateMutability": "view"
932
+ },
933
+ {
934
+ "type": "function",
935
+ "name": "pool",
936
+ "inputs": [
937
+ {
938
+ "name": "",
939
+ "type": "uint8",
940
+ "internalType": "enum Side"
941
+ }
942
+ ],
943
+ "outputs": [
944
+ {
945
+ "name": "",
946
+ "type": "uint256",
947
+ "internalType": "uint256"
948
+ }
949
+ ],
950
+ "stateMutability": "view"
951
+ },
952
+ {
953
+ "type": "function",
954
+ "name": "resolveDispute",
955
+ "inputs": [
956
+ {
957
+ "name": "outcome_",
958
+ "type": "uint8",
959
+ "internalType": "enum Side"
960
+ },
961
+ {
962
+ "name": "evidenceHash_",
963
+ "type": "bytes32",
964
+ "internalType": "bytes32"
965
+ }
966
+ ],
967
+ "outputs": [],
968
+ "stateMutability": "nonpayable"
969
+ },
970
+ {
971
+ "type": "function",
972
+ "name": "settle",
973
+ "inputs": [
974
+ {
975
+ "name": "outcome_",
976
+ "type": "uint8",
977
+ "internalType": "enum Side"
978
+ },
979
+ {
980
+ "name": "evidenceHash_",
981
+ "type": "bytes32",
982
+ "internalType": "bytes32"
983
+ }
984
+ ],
985
+ "outputs": [],
986
+ "stateMutability": "nonpayable"
987
+ },
988
+ {
989
+ "type": "function",
990
+ "name": "settleDeed",
991
+ "inputs": [],
992
+ "outputs": [],
993
+ "stateMutability": "nonpayable"
994
+ },
995
+ {
996
+ "type": "function",
997
+ "name": "settledAt",
998
+ "inputs": [],
999
+ "outputs": [
1000
+ {
1001
+ "name": "",
1002
+ "type": "uint64",
1003
+ "internalType": "uint64"
1004
+ }
1005
+ ],
1006
+ "stateMutability": "view"
1007
+ },
1008
+ {
1009
+ "type": "function",
1010
+ "name": "stake",
1011
+ "inputs": [
1012
+ {
1013
+ "name": "",
1014
+ "type": "address",
1015
+ "internalType": "address"
1016
+ },
1017
+ {
1018
+ "name": "",
1019
+ "type": "uint8",
1020
+ "internalType": "enum Side"
1021
+ }
1022
+ ],
1023
+ "outputs": [
1024
+ {
1025
+ "name": "",
1026
+ "type": "uint256",
1027
+ "internalType": "uint256"
1028
+ }
1029
+ ],
1030
+ "stateMutability": "view"
1031
+ },
1032
+ {
1033
+ "type": "function",
1034
+ "name": "status",
1035
+ "inputs": [],
1036
+ "outputs": [
1037
+ {
1038
+ "name": "",
1039
+ "type": "uint8",
1040
+ "internalType": "enum Status"
1041
+ }
1042
+ ],
1043
+ "stateMutability": "view"
1044
+ },
1045
+ {
1046
+ "type": "function",
1047
+ "name": "void",
1048
+ "inputs": [
1049
+ {
1050
+ "name": "openerAtFault_",
1051
+ "type": "bool",
1052
+ "internalType": "bool"
1053
+ },
1054
+ {
1055
+ "name": "reasonHash",
1056
+ "type": "bytes32",
1057
+ "internalType": "bytes32"
1058
+ }
1059
+ ],
1060
+ "outputs": [],
1061
+ "stateMutability": "nonpayable"
1062
+ },
1063
+ {
1064
+ "type": "function",
1065
+ "name": "voidTimeout",
1066
+ "inputs": [],
1067
+ "outputs": [],
1068
+ "stateMutability": "nonpayable"
1069
+ },
1070
+ {
1071
+ "type": "event",
1072
+ "name": "Bet",
1073
+ "inputs": [
1074
+ {
1075
+ "name": "bettor",
1076
+ "type": "address",
1077
+ "indexed": true,
1078
+ "internalType": "address"
1079
+ },
1080
+ {
1081
+ "name": "side",
1082
+ "type": "uint8",
1083
+ "indexed": false,
1084
+ "internalType": "enum Side"
1085
+ },
1086
+ {
1087
+ "name": "amount",
1088
+ "type": "uint256",
1089
+ "indexed": false,
1090
+ "internalType": "uint256"
1091
+ },
1092
+ {
1093
+ "name": "holdsPool",
1094
+ "type": "uint256",
1095
+ "indexed": false,
1096
+ "internalType": "uint256"
1097
+ },
1098
+ {
1099
+ "name": "breaksPool",
1100
+ "type": "uint256",
1101
+ "indexed": false,
1102
+ "internalType": "uint256"
1103
+ }
1104
+ ],
1105
+ "anonymous": false
1106
+ },
1107
+ {
1108
+ "type": "event",
1109
+ "name": "Claimed",
1110
+ "inputs": [
1111
+ {
1112
+ "name": "account",
1113
+ "type": "address",
1114
+ "indexed": true,
1115
+ "internalType": "address"
1116
+ },
1117
+ {
1118
+ "name": "amount",
1119
+ "type": "uint256",
1120
+ "indexed": false,
1121
+ "internalType": "uint256"
1122
+ }
1123
+ ],
1124
+ "anonymous": false
1125
+ },
1126
+ {
1127
+ "type": "event",
1128
+ "name": "Closed",
1129
+ "inputs": [
1130
+ {
1131
+ "name": "closedAt",
1132
+ "type": "uint64",
1133
+ "indexed": false,
1134
+ "internalType": "uint64"
1135
+ }
1136
+ ],
1137
+ "anonymous": false
1138
+ },
1139
+ {
1140
+ "type": "event",
1141
+ "name": "Disputed",
1142
+ "inputs": [
1143
+ {
1144
+ "name": "disputer",
1145
+ "type": "address",
1146
+ "indexed": true,
1147
+ "internalType": "address"
1148
+ },
1149
+ {
1150
+ "name": "bond",
1151
+ "type": "uint256",
1152
+ "indexed": false,
1153
+ "internalType": "uint256"
1154
+ }
1155
+ ],
1156
+ "anonymous": false
1157
+ },
1158
+ {
1159
+ "type": "event",
1160
+ "name": "Finalized",
1161
+ "inputs": [
1162
+ {
1163
+ "name": "outcome",
1164
+ "type": "uint8",
1165
+ "indexed": false,
1166
+ "internalType": "enum Side"
1167
+ },
1168
+ {
1169
+ "name": "winnersPool",
1170
+ "type": "uint256",
1171
+ "indexed": false,
1172
+ "internalType": "uint256"
1173
+ },
1174
+ {
1175
+ "name": "losersPool",
1176
+ "type": "uint256",
1177
+ "indexed": false,
1178
+ "internalType": "uint256"
1179
+ },
1180
+ {
1181
+ "name": "rake",
1182
+ "type": "uint256",
1183
+ "indexed": false,
1184
+ "internalType": "uint256"
1185
+ }
1186
+ ],
1187
+ "anonymous": false
1188
+ },
1189
+ {
1190
+ "type": "event",
1191
+ "name": "OpenerPaid",
1192
+ "inputs": [
1193
+ {
1194
+ "name": "opener",
1195
+ "type": "address",
1196
+ "indexed": true,
1197
+ "internalType": "address"
1198
+ },
1199
+ {
1200
+ "name": "amount",
1201
+ "type": "uint256",
1202
+ "indexed": false,
1203
+ "internalType": "uint256"
1204
+ }
1205
+ ],
1206
+ "anonymous": false
1207
+ },
1208
+ {
1209
+ "type": "event",
1210
+ "name": "Resolved",
1211
+ "inputs": [
1212
+ {
1213
+ "name": "outcome",
1214
+ "type": "uint8",
1215
+ "indexed": false,
1216
+ "internalType": "enum Side"
1217
+ },
1218
+ {
1219
+ "name": "evidenceHash",
1220
+ "type": "bytes32",
1221
+ "indexed": false,
1222
+ "internalType": "bytes32"
1223
+ }
1224
+ ],
1225
+ "anonymous": false
1226
+ },
1227
+ {
1228
+ "type": "event",
1229
+ "name": "Settled",
1230
+ "inputs": [
1231
+ {
1232
+ "name": "outcome",
1233
+ "type": "uint8",
1234
+ "indexed": false,
1235
+ "internalType": "enum Side"
1236
+ },
1237
+ {
1238
+ "name": "evidenceHash",
1239
+ "type": "bytes32",
1240
+ "indexed": false,
1241
+ "internalType": "bytes32"
1242
+ },
1243
+ {
1244
+ "name": "by",
1245
+ "type": "address",
1246
+ "indexed": false,
1247
+ "internalType": "address"
1248
+ }
1249
+ ],
1250
+ "anonymous": false
1251
+ },
1252
+ {
1253
+ "type": "event",
1254
+ "name": "TreasuryPaid",
1255
+ "inputs": [
1256
+ {
1257
+ "name": "amount",
1258
+ "type": "uint256",
1259
+ "indexed": false,
1260
+ "internalType": "uint256"
1261
+ }
1262
+ ],
1263
+ "anonymous": false
1264
+ },
1265
+ {
1266
+ "type": "event",
1267
+ "name": "Voided",
1268
+ "inputs": [
1269
+ {
1270
+ "name": "openerAtFault",
1271
+ "type": "bool",
1272
+ "indexed": false,
1273
+ "internalType": "bool"
1274
+ },
1275
+ {
1276
+ "name": "reasonHash",
1277
+ "type": "bytes32",
1278
+ "indexed": false,
1279
+ "internalType": "bytes32"
1280
+ }
1281
+ ],
1282
+ "anonymous": false
1283
+ },
1284
+ {
1285
+ "type": "event",
1286
+ "name": "WindowSet",
1287
+ "inputs": [
1288
+ {
1289
+ "name": "disputeWindow",
1290
+ "type": "uint256",
1291
+ "indexed": false,
1292
+ "internalType": "uint256"
1293
+ }
1294
+ ],
1295
+ "anonymous": false
1296
+ },
1297
+ {
1298
+ "type": "error",
1299
+ "name": "AlreadyInitialized",
1300
+ "inputs": []
1301
+ },
1302
+ {
1303
+ "type": "error",
1304
+ "name": "BadDeed",
1305
+ "inputs": []
1306
+ },
1307
+ {
1308
+ "type": "error",
1309
+ "name": "BadSide",
1310
+ "inputs": []
1311
+ },
1312
+ {
1313
+ "type": "error",
1314
+ "name": "BadWindow",
1315
+ "inputs": []
1316
+ },
1317
+ {
1318
+ "type": "error",
1319
+ "name": "BetTooSmall",
1320
+ "inputs": []
1321
+ },
1322
+ {
1323
+ "type": "error",
1324
+ "name": "BettingClosed",
1325
+ "inputs": []
1326
+ },
1327
+ {
1328
+ "type": "error",
1329
+ "name": "BondTooSmall",
1330
+ "inputs": []
1331
+ },
1332
+ {
1333
+ "type": "error",
1334
+ "name": "DeedNotSettled",
1335
+ "inputs": []
1336
+ },
1337
+ {
1338
+ "type": "error",
1339
+ "name": "DeedSettled",
1340
+ "inputs": []
1341
+ },
1342
+ {
1343
+ "type": "error",
1344
+ "name": "IsDeedCall",
1345
+ "inputs": []
1346
+ },
1347
+ {
1348
+ "type": "error",
1349
+ "name": "NotCourt",
1350
+ "inputs": []
1351
+ },
1352
+ {
1353
+ "type": "error",
1354
+ "name": "NotDeedCall",
1355
+ "inputs": []
1356
+ },
1357
+ {
1358
+ "type": "error",
1359
+ "name": "NotResolver",
1360
+ "inputs": []
1361
+ },
1362
+ {
1363
+ "type": "error",
1364
+ "name": "NothingToClaim",
1365
+ "inputs": []
1366
+ },
1367
+ {
1368
+ "type": "error",
1369
+ "name": "ReentrancyGuardReentrantCall",
1370
+ "inputs": []
1371
+ },
1372
+ {
1373
+ "type": "error",
1374
+ "name": "TooEarly",
1375
+ "inputs": []
1376
+ },
1377
+ {
1378
+ "type": "error",
1379
+ "name": "TransferFailed",
1380
+ "inputs": []
1381
+ },
1382
+ {
1383
+ "type": "error",
1384
+ "name": "WindowClosed",
1385
+ "inputs": []
1386
+ },
1387
+ {
1388
+ "type": "error",
1389
+ "name": "WrongBond",
1390
+ "inputs": []
1391
+ },
1392
+ {
1393
+ "type": "error",
1394
+ "name": "WrongStatus",
1395
+ "inputs": []
1396
+ }
1397
+ ];
1398
+ export const calledItAbi = [
1399
+ {
1400
+ "type": "constructor",
1401
+ "inputs": [
1402
+ {
1403
+ "name": "factory",
1404
+ "type": "address",
1405
+ "internalType": "contract ICallsFactory"
1406
+ },
1407
+ {
1408
+ "name": "renderer",
1409
+ "type": "address",
1410
+ "internalType": "contract ICalledItRenderer"
1411
+ }
1412
+ ],
1413
+ "stateMutability": "nonpayable"
1414
+ },
1415
+ {
1416
+ "type": "function",
1417
+ "name": "FACTORY",
1418
+ "inputs": [],
1419
+ "outputs": [
1420
+ {
1421
+ "name": "",
1422
+ "type": "address",
1423
+ "internalType": "contract ICallsFactory"
1424
+ }
1425
+ ],
1426
+ "stateMutability": "view"
1427
+ },
1428
+ {
1429
+ "type": "function",
1430
+ "name": "MAX_TEXT",
1431
+ "inputs": [],
1432
+ "outputs": [
1433
+ {
1434
+ "name": "",
1435
+ "type": "uint256",
1436
+ "internalType": "uint256"
1437
+ }
1438
+ ],
1439
+ "stateMutability": "view"
1440
+ },
1441
+ {
1442
+ "type": "function",
1443
+ "name": "RENDERER",
1444
+ "inputs": [],
1445
+ "outputs": [
1446
+ {
1447
+ "name": "",
1448
+ "type": "address",
1449
+ "internalType": "contract ICalledItRenderer"
1450
+ }
1451
+ ],
1452
+ "stateMutability": "view"
1453
+ },
1454
+ {
1455
+ "type": "function",
1456
+ "name": "approve",
1457
+ "inputs": [
1458
+ {
1459
+ "name": "to",
1460
+ "type": "address",
1461
+ "internalType": "address"
1462
+ },
1463
+ {
1464
+ "name": "tokenId",
1465
+ "type": "uint256",
1466
+ "internalType": "uint256"
1467
+ }
1468
+ ],
1469
+ "outputs": [],
1470
+ "stateMutability": "nonpayable"
1471
+ },
1472
+ {
1473
+ "type": "function",
1474
+ "name": "balanceOf",
1475
+ "inputs": [
1476
+ {
1477
+ "name": "owner",
1478
+ "type": "address",
1479
+ "internalType": "address"
1480
+ }
1481
+ ],
1482
+ "outputs": [
1483
+ {
1484
+ "name": "",
1485
+ "type": "uint256",
1486
+ "internalType": "uint256"
1487
+ }
1488
+ ],
1489
+ "stateMutability": "view"
1490
+ },
1491
+ {
1492
+ "type": "function",
1493
+ "name": "callText",
1494
+ "inputs": [
1495
+ {
1496
+ "name": "call",
1497
+ "type": "address",
1498
+ "internalType": "address"
1499
+ }
1500
+ ],
1501
+ "outputs": [
1502
+ {
1503
+ "name": "",
1504
+ "type": "string",
1505
+ "internalType": "string"
1506
+ }
1507
+ ],
1508
+ "stateMutability": "view"
1509
+ },
1510
+ {
1511
+ "type": "function",
1512
+ "name": "getApproved",
1513
+ "inputs": [
1514
+ {
1515
+ "name": "tokenId",
1516
+ "type": "uint256",
1517
+ "internalType": "uint256"
1518
+ }
1519
+ ],
1520
+ "outputs": [
1521
+ {
1522
+ "name": "",
1523
+ "type": "address",
1524
+ "internalType": "address"
1525
+ }
1526
+ ],
1527
+ "stateMutability": "view"
1528
+ },
1529
+ {
1530
+ "type": "function",
1531
+ "name": "isApprovedForAll",
1532
+ "inputs": [
1533
+ {
1534
+ "name": "owner",
1535
+ "type": "address",
1536
+ "internalType": "address"
1537
+ },
1538
+ {
1539
+ "name": "operator",
1540
+ "type": "address",
1541
+ "internalType": "address"
1542
+ }
1543
+ ],
1544
+ "outputs": [
1545
+ {
1546
+ "name": "",
1547
+ "type": "bool",
1548
+ "internalType": "bool"
1549
+ }
1550
+ ],
1551
+ "stateMutability": "view"
1552
+ },
1553
+ {
1554
+ "type": "function",
1555
+ "name": "mint",
1556
+ "inputs": [
1557
+ {
1558
+ "name": "call",
1559
+ "type": "address",
1560
+ "internalType": "address"
1561
+ },
1562
+ {
1563
+ "name": "winner",
1564
+ "type": "address",
1565
+ "internalType": "address"
1566
+ },
1567
+ {
1568
+ "name": "text",
1569
+ "type": "string",
1570
+ "internalType": "string"
1571
+ }
1572
+ ],
1573
+ "outputs": [
1574
+ {
1575
+ "name": "tokenId",
1576
+ "type": "uint256",
1577
+ "internalType": "uint256"
1578
+ }
1579
+ ],
1580
+ "stateMutability": "nonpayable"
1581
+ },
1582
+ {
1583
+ "type": "function",
1584
+ "name": "mintMany",
1585
+ "inputs": [
1586
+ {
1587
+ "name": "call",
1588
+ "type": "address",
1589
+ "internalType": "address"
1590
+ },
1591
+ {
1592
+ "name": "winners",
1593
+ "type": "address[]",
1594
+ "internalType": "address[]"
1595
+ },
1596
+ {
1597
+ "name": "text",
1598
+ "type": "string",
1599
+ "internalType": "string"
1600
+ }
1601
+ ],
1602
+ "outputs": [
1603
+ {
1604
+ "name": "tokenIds",
1605
+ "type": "uint256[]",
1606
+ "internalType": "uint256[]"
1607
+ }
1608
+ ],
1609
+ "stateMutability": "nonpayable"
1610
+ },
1611
+ {
1612
+ "type": "function",
1613
+ "name": "name",
1614
+ "inputs": [],
1615
+ "outputs": [
1616
+ {
1617
+ "name": "",
1618
+ "type": "string",
1619
+ "internalType": "string"
1620
+ }
1621
+ ],
1622
+ "stateMutability": "view"
1623
+ },
1624
+ {
1625
+ "type": "function",
1626
+ "name": "ownerOf",
1627
+ "inputs": [
1628
+ {
1629
+ "name": "tokenId",
1630
+ "type": "uint256",
1631
+ "internalType": "uint256"
1632
+ }
1633
+ ],
1634
+ "outputs": [
1635
+ {
1636
+ "name": "",
1637
+ "type": "address",
1638
+ "internalType": "address"
1639
+ }
1640
+ ],
1641
+ "stateMutability": "view"
1642
+ },
1643
+ {
1644
+ "type": "function",
1645
+ "name": "record",
1646
+ "inputs": [
1647
+ {
1648
+ "name": "tokenId",
1649
+ "type": "uint256",
1650
+ "internalType": "uint256"
1651
+ }
1652
+ ],
1653
+ "outputs": [
1654
+ {
1655
+ "name": "",
1656
+ "type": "tuple",
1657
+ "internalType": "struct Record",
1658
+ "components": [
1659
+ {
1660
+ "name": "call",
1661
+ "type": "address",
1662
+ "internalType": "address"
1663
+ },
1664
+ {
1665
+ "name": "winner",
1666
+ "type": "address",
1667
+ "internalType": "address"
1668
+ },
1669
+ {
1670
+ "name": "settledAt",
1671
+ "type": "uint64",
1672
+ "internalType": "uint64"
1673
+ },
1674
+ {
1675
+ "name": "side",
1676
+ "type": "uint8",
1677
+ "internalType": "enum Side"
1678
+ },
1679
+ {
1680
+ "name": "oddsBps",
1681
+ "type": "uint16",
1682
+ "internalType": "uint16"
1683
+ },
1684
+ {
1685
+ "name": "stake",
1686
+ "type": "uint128",
1687
+ "internalType": "uint128"
1688
+ },
1689
+ {
1690
+ "name": "payout",
1691
+ "type": "uint128",
1692
+ "internalType": "uint128"
1693
+ }
1694
+ ]
1695
+ }
1696
+ ],
1697
+ "stateMutability": "view"
1698
+ },
1699
+ {
1700
+ "type": "function",
1701
+ "name": "safeTransferFrom",
1702
+ "inputs": [
1703
+ {
1704
+ "name": "from",
1705
+ "type": "address",
1706
+ "internalType": "address"
1707
+ },
1708
+ {
1709
+ "name": "to",
1710
+ "type": "address",
1711
+ "internalType": "address"
1712
+ },
1713
+ {
1714
+ "name": "tokenId",
1715
+ "type": "uint256",
1716
+ "internalType": "uint256"
1717
+ }
1718
+ ],
1719
+ "outputs": [],
1720
+ "stateMutability": "nonpayable"
1721
+ },
1722
+ {
1723
+ "type": "function",
1724
+ "name": "safeTransferFrom",
1725
+ "inputs": [
1726
+ {
1727
+ "name": "from",
1728
+ "type": "address",
1729
+ "internalType": "address"
1730
+ },
1731
+ {
1732
+ "name": "to",
1733
+ "type": "address",
1734
+ "internalType": "address"
1735
+ },
1736
+ {
1737
+ "name": "tokenId",
1738
+ "type": "uint256",
1739
+ "internalType": "uint256"
1740
+ },
1741
+ {
1742
+ "name": "data",
1743
+ "type": "bytes",
1744
+ "internalType": "bytes"
1745
+ }
1746
+ ],
1747
+ "outputs": [],
1748
+ "stateMutability": "nonpayable"
1749
+ },
1750
+ {
1751
+ "type": "function",
1752
+ "name": "setApprovalForAll",
1753
+ "inputs": [
1754
+ {
1755
+ "name": "operator",
1756
+ "type": "address",
1757
+ "internalType": "address"
1758
+ },
1759
+ {
1760
+ "name": "approved",
1761
+ "type": "bool",
1762
+ "internalType": "bool"
1763
+ }
1764
+ ],
1765
+ "outputs": [],
1766
+ "stateMutability": "nonpayable"
1767
+ },
1768
+ {
1769
+ "type": "function",
1770
+ "name": "supportsInterface",
1771
+ "inputs": [
1772
+ {
1773
+ "name": "interfaceId",
1774
+ "type": "bytes4",
1775
+ "internalType": "bytes4"
1776
+ }
1777
+ ],
1778
+ "outputs": [
1779
+ {
1780
+ "name": "",
1781
+ "type": "bool",
1782
+ "internalType": "bool"
1783
+ }
1784
+ ],
1785
+ "stateMutability": "view"
1786
+ },
1787
+ {
1788
+ "type": "function",
1789
+ "name": "symbol",
1790
+ "inputs": [],
1791
+ "outputs": [
1792
+ {
1793
+ "name": "",
1794
+ "type": "string",
1795
+ "internalType": "string"
1796
+ }
1797
+ ],
1798
+ "stateMutability": "view"
1799
+ },
1800
+ {
1801
+ "type": "function",
1802
+ "name": "tokenOf",
1803
+ "inputs": [
1804
+ {
1805
+ "name": "call",
1806
+ "type": "address",
1807
+ "internalType": "address"
1808
+ },
1809
+ {
1810
+ "name": "winner",
1811
+ "type": "address",
1812
+ "internalType": "address"
1813
+ }
1814
+ ],
1815
+ "outputs": [
1816
+ {
1817
+ "name": "tokenId",
1818
+ "type": "uint256",
1819
+ "internalType": "uint256"
1820
+ }
1821
+ ],
1822
+ "stateMutability": "view"
1823
+ },
1824
+ {
1825
+ "type": "function",
1826
+ "name": "tokenURI",
1827
+ "inputs": [
1828
+ {
1829
+ "name": "tokenId",
1830
+ "type": "uint256",
1831
+ "internalType": "uint256"
1832
+ }
1833
+ ],
1834
+ "outputs": [
1835
+ {
1836
+ "name": "",
1837
+ "type": "string",
1838
+ "internalType": "string"
1839
+ }
1840
+ ],
1841
+ "stateMutability": "view"
1842
+ },
1843
+ {
1844
+ "type": "function",
1845
+ "name": "totalSupply",
1846
+ "inputs": [],
1847
+ "outputs": [
1848
+ {
1849
+ "name": "",
1850
+ "type": "uint256",
1851
+ "internalType": "uint256"
1852
+ }
1853
+ ],
1854
+ "stateMutability": "view"
1855
+ },
1856
+ {
1857
+ "type": "function",
1858
+ "name": "transferFrom",
1859
+ "inputs": [
1860
+ {
1861
+ "name": "from",
1862
+ "type": "address",
1863
+ "internalType": "address"
1864
+ },
1865
+ {
1866
+ "name": "to",
1867
+ "type": "address",
1868
+ "internalType": "address"
1869
+ },
1870
+ {
1871
+ "name": "tokenId",
1872
+ "type": "uint256",
1873
+ "internalType": "uint256"
1874
+ }
1875
+ ],
1876
+ "outputs": [],
1877
+ "stateMutability": "nonpayable"
1878
+ },
1879
+ {
1880
+ "type": "event",
1881
+ "name": "Approval",
1882
+ "inputs": [
1883
+ {
1884
+ "name": "owner",
1885
+ "type": "address",
1886
+ "indexed": true,
1887
+ "internalType": "address"
1888
+ },
1889
+ {
1890
+ "name": "approved",
1891
+ "type": "address",
1892
+ "indexed": true,
1893
+ "internalType": "address"
1894
+ },
1895
+ {
1896
+ "name": "tokenId",
1897
+ "type": "uint256",
1898
+ "indexed": true,
1899
+ "internalType": "uint256"
1900
+ }
1901
+ ],
1902
+ "anonymous": false
1903
+ },
1904
+ {
1905
+ "type": "event",
1906
+ "name": "ApprovalForAll",
1907
+ "inputs": [
1908
+ {
1909
+ "name": "owner",
1910
+ "type": "address",
1911
+ "indexed": true,
1912
+ "internalType": "address"
1913
+ },
1914
+ {
1915
+ "name": "operator",
1916
+ "type": "address",
1917
+ "indexed": true,
1918
+ "internalType": "address"
1919
+ },
1920
+ {
1921
+ "name": "approved",
1922
+ "type": "bool",
1923
+ "indexed": false,
1924
+ "internalType": "bool"
1925
+ }
1926
+ ],
1927
+ "anonymous": false
1928
+ },
1929
+ {
1930
+ "type": "event",
1931
+ "name": "Minted",
1932
+ "inputs": [
1933
+ {
1934
+ "name": "call",
1935
+ "type": "address",
1936
+ "indexed": true,
1937
+ "internalType": "address"
1938
+ },
1939
+ {
1940
+ "name": "winner",
1941
+ "type": "address",
1942
+ "indexed": true,
1943
+ "internalType": "address"
1944
+ },
1945
+ {
1946
+ "name": "tokenId",
1947
+ "type": "uint256",
1948
+ "indexed": true,
1949
+ "internalType": "uint256"
1950
+ },
1951
+ {
1952
+ "name": "callTextHash",
1953
+ "type": "bytes32",
1954
+ "indexed": false,
1955
+ "internalType": "bytes32"
1956
+ }
1957
+ ],
1958
+ "anonymous": false
1959
+ },
1960
+ {
1961
+ "type": "event",
1962
+ "name": "Transfer",
1963
+ "inputs": [
1964
+ {
1965
+ "name": "from",
1966
+ "type": "address",
1967
+ "indexed": true,
1968
+ "internalType": "address"
1969
+ },
1970
+ {
1971
+ "name": "to",
1972
+ "type": "address",
1973
+ "indexed": true,
1974
+ "internalType": "address"
1975
+ },
1976
+ {
1977
+ "name": "tokenId",
1978
+ "type": "uint256",
1979
+ "indexed": true,
1980
+ "internalType": "uint256"
1981
+ }
1982
+ ],
1983
+ "anonymous": false
1984
+ },
1985
+ {
1986
+ "type": "error",
1987
+ "name": "AlreadyMinted",
1988
+ "inputs": []
1989
+ },
1990
+ {
1991
+ "type": "error",
1992
+ "name": "BadText",
1993
+ "inputs": []
1994
+ },
1995
+ {
1996
+ "type": "error",
1997
+ "name": "ERC721IncorrectOwner",
1998
+ "inputs": [
1999
+ {
2000
+ "name": "sender",
2001
+ "type": "address",
2002
+ "internalType": "address"
2003
+ },
2004
+ {
2005
+ "name": "tokenId",
2006
+ "type": "uint256",
2007
+ "internalType": "uint256"
2008
+ },
2009
+ {
2010
+ "name": "owner",
2011
+ "type": "address",
2012
+ "internalType": "address"
2013
+ }
2014
+ ]
2015
+ },
2016
+ {
2017
+ "type": "error",
2018
+ "name": "ERC721InsufficientApproval",
2019
+ "inputs": [
2020
+ {
2021
+ "name": "operator",
2022
+ "type": "address",
2023
+ "internalType": "address"
2024
+ },
2025
+ {
2026
+ "name": "tokenId",
2027
+ "type": "uint256",
2028
+ "internalType": "uint256"
2029
+ }
2030
+ ]
2031
+ },
2032
+ {
2033
+ "type": "error",
2034
+ "name": "ERC721InvalidApprover",
2035
+ "inputs": [
2036
+ {
2037
+ "name": "approver",
2038
+ "type": "address",
2039
+ "internalType": "address"
2040
+ }
2041
+ ]
2042
+ },
2043
+ {
2044
+ "type": "error",
2045
+ "name": "ERC721InvalidOperator",
2046
+ "inputs": [
2047
+ {
2048
+ "name": "operator",
2049
+ "type": "address",
2050
+ "internalType": "address"
2051
+ }
2052
+ ]
2053
+ },
2054
+ {
2055
+ "type": "error",
2056
+ "name": "ERC721InvalidOwner",
2057
+ "inputs": [
2058
+ {
2059
+ "name": "owner",
2060
+ "type": "address",
2061
+ "internalType": "address"
2062
+ }
2063
+ ]
2064
+ },
2065
+ {
2066
+ "type": "error",
2067
+ "name": "ERC721InvalidReceiver",
2068
+ "inputs": [
2069
+ {
2070
+ "name": "receiver",
2071
+ "type": "address",
2072
+ "internalType": "address"
2073
+ }
2074
+ ]
2075
+ },
2076
+ {
2077
+ "type": "error",
2078
+ "name": "ERC721InvalidSender",
2079
+ "inputs": [
2080
+ {
2081
+ "name": "sender",
2082
+ "type": "address",
2083
+ "internalType": "address"
2084
+ }
2085
+ ]
2086
+ },
2087
+ {
2088
+ "type": "error",
2089
+ "name": "ERC721NonexistentToken",
2090
+ "inputs": [
2091
+ {
2092
+ "name": "tokenId",
2093
+ "type": "uint256",
2094
+ "internalType": "uint256"
2095
+ }
2096
+ ]
2097
+ },
2098
+ {
2099
+ "type": "error",
2100
+ "name": "NotACall",
2101
+ "inputs": []
2102
+ },
2103
+ {
2104
+ "type": "error",
2105
+ "name": "NotAWinner",
2106
+ "inputs": []
2107
+ },
2108
+ {
2109
+ "type": "error",
2110
+ "name": "NotFinal",
2111
+ "inputs": []
2112
+ },
2113
+ {
2114
+ "type": "error",
2115
+ "name": "NotResolver",
2116
+ "inputs": []
2117
+ },
2118
+ {
2119
+ "type": "error",
2120
+ "name": "SafeCastOverflowedUintDowncast",
2121
+ "inputs": [
2122
+ {
2123
+ "name": "bits",
2124
+ "type": "uint8",
2125
+ "internalType": "uint8"
2126
+ },
2127
+ {
2128
+ "name": "value",
2129
+ "type": "uint256",
2130
+ "internalType": "uint256"
2131
+ }
2132
+ ]
2133
+ }
2134
+ ];
2135
+ //# sourceMappingURL=abi.js.map