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