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