@shippedcalls/sdk 0.4.0 → 0.5.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.
package/src/abi.ts CHANGED
@@ -1411,10 +1411,28 @@ export const calledItAbi = [
1411
1411
  "name": "renderer",
1412
1412
  "type": "address",
1413
1413
  "internalType": "contract ICalledItRenderer"
1414
+ },
1415
+ {
1416
+ "name": "countsBonus",
1417
+ "type": "bool",
1418
+ "internalType": "bool"
1414
1419
  }
1415
1420
  ],
1416
1421
  "stateMutability": "nonpayable"
1417
1422
  },
1423
+ {
1424
+ "type": "function",
1425
+ "name": "COUNTS_BONUS",
1426
+ "inputs": [],
1427
+ "outputs": [
1428
+ {
1429
+ "name": "",
1430
+ "type": "bool",
1431
+ "internalType": "bool"
1432
+ }
1433
+ ],
1434
+ "stateMutability": "view"
1435
+ },
1418
1436
  {
1419
1437
  "type": "function",
1420
1438
  "name": "FACTORY",
@@ -3499,3 +3517,1690 @@ export const roundsAbi = [
3499
3517
  "inputs": []
3500
3518
  }
3501
3519
  ] as const;
3520
+
3521
+ export const tokenFactoryAbi = [
3522
+ {
3523
+ "type": "constructor",
3524
+ "inputs": [
3525
+ {
3526
+ "name": "asset_",
3527
+ "type": "address",
3528
+ "internalType": "address"
3529
+ },
3530
+ {
3531
+ "name": "minBet",
3532
+ "type": "uint256",
3533
+ "internalType": "uint256"
3534
+ },
3535
+ {
3536
+ "name": "minOpenerBond",
3537
+ "type": "uint256",
3538
+ "internalType": "uint256"
3539
+ },
3540
+ {
3541
+ "name": "disputeBond",
3542
+ "type": "uint256",
3543
+ "internalType": "uint256"
3544
+ },
3545
+ {
3546
+ "name": "resolver_",
3547
+ "type": "address",
3548
+ "internalType": "address"
3549
+ },
3550
+ {
3551
+ "name": "court_",
3552
+ "type": "address",
3553
+ "internalType": "address"
3554
+ },
3555
+ {
3556
+ "name": "treasury_",
3557
+ "type": "address",
3558
+ "internalType": "address"
3559
+ }
3560
+ ],
3561
+ "stateMutability": "nonpayable"
3562
+ },
3563
+ {
3564
+ "type": "function",
3565
+ "name": "acceptCourt",
3566
+ "inputs": [],
3567
+ "outputs": [],
3568
+ "stateMutability": "nonpayable"
3569
+ },
3570
+ {
3571
+ "type": "function",
3572
+ "name": "addBonus",
3573
+ "inputs": [
3574
+ {
3575
+ "name": "call",
3576
+ "type": "address",
3577
+ "internalType": "address"
3578
+ },
3579
+ {
3580
+ "name": "amount",
3581
+ "type": "uint256",
3582
+ "internalType": "uint256"
3583
+ }
3584
+ ],
3585
+ "outputs": [],
3586
+ "stateMutability": "nonpayable"
3587
+ },
3588
+ {
3589
+ "type": "function",
3590
+ "name": "asset",
3591
+ "inputs": [],
3592
+ "outputs": [
3593
+ {
3594
+ "name": "",
3595
+ "type": "address",
3596
+ "internalType": "address"
3597
+ }
3598
+ ],
3599
+ "stateMutability": "view"
3600
+ },
3601
+ {
3602
+ "type": "function",
3603
+ "name": "bet",
3604
+ "inputs": [
3605
+ {
3606
+ "name": "call",
3607
+ "type": "address",
3608
+ "internalType": "address"
3609
+ },
3610
+ {
3611
+ "name": "side",
3612
+ "type": "uint8",
3613
+ "internalType": "enum Side"
3614
+ },
3615
+ {
3616
+ "name": "amount",
3617
+ "type": "uint256",
3618
+ "internalType": "uint256"
3619
+ }
3620
+ ],
3621
+ "outputs": [],
3622
+ "stateMutability": "nonpayable"
3623
+ },
3624
+ {
3625
+ "type": "function",
3626
+ "name": "calls",
3627
+ "inputs": [
3628
+ {
3629
+ "name": "index",
3630
+ "type": "uint256",
3631
+ "internalType": "uint256"
3632
+ }
3633
+ ],
3634
+ "outputs": [
3635
+ {
3636
+ "name": "",
3637
+ "type": "address",
3638
+ "internalType": "address"
3639
+ }
3640
+ ],
3641
+ "stateMutability": "view"
3642
+ },
3643
+ {
3644
+ "type": "function",
3645
+ "name": "count",
3646
+ "inputs": [],
3647
+ "outputs": [
3648
+ {
3649
+ "name": "",
3650
+ "type": "uint256",
3651
+ "internalType": "uint256"
3652
+ }
3653
+ ],
3654
+ "stateMutability": "view"
3655
+ },
3656
+ {
3657
+ "type": "function",
3658
+ "name": "court",
3659
+ "inputs": [],
3660
+ "outputs": [
3661
+ {
3662
+ "name": "",
3663
+ "type": "address",
3664
+ "internalType": "address"
3665
+ }
3666
+ ],
3667
+ "stateMutability": "view"
3668
+ },
3669
+ {
3670
+ "type": "function",
3671
+ "name": "deeds",
3672
+ "inputs": [],
3673
+ "outputs": [
3674
+ {
3675
+ "name": "",
3676
+ "type": "address",
3677
+ "internalType": "address"
3678
+ }
3679
+ ],
3680
+ "stateMutability": "view"
3681
+ },
3682
+ {
3683
+ "type": "function",
3684
+ "name": "implementation",
3685
+ "inputs": [],
3686
+ "outputs": [
3687
+ {
3688
+ "name": "",
3689
+ "type": "address",
3690
+ "internalType": "address"
3691
+ }
3692
+ ],
3693
+ "stateMutability": "view"
3694
+ },
3695
+ {
3696
+ "type": "function",
3697
+ "name": "isCall",
3698
+ "inputs": [
3699
+ {
3700
+ "name": "",
3701
+ "type": "address",
3702
+ "internalType": "address"
3703
+ }
3704
+ ],
3705
+ "outputs": [
3706
+ {
3707
+ "name": "",
3708
+ "type": "bool",
3709
+ "internalType": "bool"
3710
+ }
3711
+ ],
3712
+ "stateMutability": "view"
3713
+ },
3714
+ {
3715
+ "type": "function",
3716
+ "name": "open",
3717
+ "inputs": [
3718
+ {
3719
+ "name": "subject",
3720
+ "type": "bytes32",
3721
+ "internalType": "bytes32"
3722
+ },
3723
+ {
3724
+ "name": "postRef",
3725
+ "type": "bytes32",
3726
+ "internalType": "bytes32"
3727
+ },
3728
+ {
3729
+ "name": "callTextHash",
3730
+ "type": "bytes32",
3731
+ "internalType": "bytes32"
3732
+ },
3733
+ {
3734
+ "name": "callType",
3735
+ "type": "uint8",
3736
+ "internalType": "enum CallType"
3737
+ },
3738
+ {
3739
+ "name": "closeAt",
3740
+ "type": "uint64",
3741
+ "internalType": "uint64"
3742
+ },
3743
+ {
3744
+ "name": "deadline",
3745
+ "type": "uint64",
3746
+ "internalType": "uint64"
3747
+ },
3748
+ {
3749
+ "name": "evidenceSpec",
3750
+ "type": "bytes32",
3751
+ "internalType": "bytes32"
3752
+ },
3753
+ {
3754
+ "name": "deedId",
3755
+ "type": "uint256",
3756
+ "internalType": "uint256"
3757
+ },
3758
+ {
3759
+ "name": "bond",
3760
+ "type": "uint256",
3761
+ "internalType": "uint256"
3762
+ }
3763
+ ],
3764
+ "outputs": [
3765
+ {
3766
+ "name": "call",
3767
+ "type": "address",
3768
+ "internalType": "address"
3769
+ }
3770
+ ],
3771
+ "stateMutability": "nonpayable"
3772
+ },
3773
+ {
3774
+ "type": "function",
3775
+ "name": "pendingCourt",
3776
+ "inputs": [],
3777
+ "outputs": [
3778
+ {
3779
+ "name": "",
3780
+ "type": "address",
3781
+ "internalType": "address"
3782
+ }
3783
+ ],
3784
+ "stateMutability": "view"
3785
+ },
3786
+ {
3787
+ "type": "function",
3788
+ "name": "resolver",
3789
+ "inputs": [],
3790
+ "outputs": [
3791
+ {
3792
+ "name": "",
3793
+ "type": "address",
3794
+ "internalType": "address"
3795
+ }
3796
+ ],
3797
+ "stateMutability": "view"
3798
+ },
3799
+ {
3800
+ "type": "function",
3801
+ "name": "setRoles",
3802
+ "inputs": [
3803
+ {
3804
+ "name": "resolver_",
3805
+ "type": "address",
3806
+ "internalType": "address"
3807
+ },
3808
+ {
3809
+ "name": "court_",
3810
+ "type": "address",
3811
+ "internalType": "address"
3812
+ },
3813
+ {
3814
+ "name": "treasury_",
3815
+ "type": "address",
3816
+ "internalType": "address"
3817
+ }
3818
+ ],
3819
+ "outputs": [],
3820
+ "stateMutability": "nonpayable"
3821
+ },
3822
+ {
3823
+ "type": "function",
3824
+ "name": "treasury",
3825
+ "inputs": [],
3826
+ "outputs": [
3827
+ {
3828
+ "name": "",
3829
+ "type": "address",
3830
+ "internalType": "address"
3831
+ }
3832
+ ],
3833
+ "stateMutability": "view"
3834
+ },
3835
+ {
3836
+ "type": "event",
3837
+ "name": "CallOpened",
3838
+ "inputs": [
3839
+ {
3840
+ "name": "call",
3841
+ "type": "address",
3842
+ "indexed": true,
3843
+ "internalType": "address"
3844
+ },
3845
+ {
3846
+ "name": "opener",
3847
+ "type": "address",
3848
+ "indexed": true,
3849
+ "internalType": "address"
3850
+ },
3851
+ {
3852
+ "name": "subject",
3853
+ "type": "bytes32",
3854
+ "indexed": true,
3855
+ "internalType": "bytes32"
3856
+ },
3857
+ {
3858
+ "name": "callType",
3859
+ "type": "uint8",
3860
+ "indexed": false,
3861
+ "internalType": "enum CallType"
3862
+ },
3863
+ {
3864
+ "name": "postRef",
3865
+ "type": "bytes32",
3866
+ "indexed": false,
3867
+ "internalType": "bytes32"
3868
+ },
3869
+ {
3870
+ "name": "callTextHash",
3871
+ "type": "bytes32",
3872
+ "indexed": false,
3873
+ "internalType": "bytes32"
3874
+ },
3875
+ {
3876
+ "name": "closeAt",
3877
+ "type": "uint64",
3878
+ "indexed": false,
3879
+ "internalType": "uint64"
3880
+ },
3881
+ {
3882
+ "name": "deadline",
3883
+ "type": "uint64",
3884
+ "indexed": false,
3885
+ "internalType": "uint64"
3886
+ },
3887
+ {
3888
+ "name": "evidenceSpec",
3889
+ "type": "bytes32",
3890
+ "indexed": false,
3891
+ "internalType": "bytes32"
3892
+ },
3893
+ {
3894
+ "name": "deedId",
3895
+ "type": "uint256",
3896
+ "indexed": false,
3897
+ "internalType": "uint256"
3898
+ },
3899
+ {
3900
+ "name": "bond",
3901
+ "type": "uint256",
3902
+ "indexed": false,
3903
+ "internalType": "uint256"
3904
+ }
3905
+ ],
3906
+ "anonymous": false
3907
+ },
3908
+ {
3909
+ "type": "event",
3910
+ "name": "CourtAccepted",
3911
+ "inputs": [
3912
+ {
3913
+ "name": "court",
3914
+ "type": "address",
3915
+ "indexed": false,
3916
+ "internalType": "address"
3917
+ }
3918
+ ],
3919
+ "anonymous": false
3920
+ },
3921
+ {
3922
+ "type": "event",
3923
+ "name": "CourtProposed",
3924
+ "inputs": [
3925
+ {
3926
+ "name": "court",
3927
+ "type": "address",
3928
+ "indexed": false,
3929
+ "internalType": "address"
3930
+ }
3931
+ ],
3932
+ "anonymous": false
3933
+ },
3934
+ {
3935
+ "type": "event",
3936
+ "name": "RolesSet",
3937
+ "inputs": [
3938
+ {
3939
+ "name": "resolver",
3940
+ "type": "address",
3941
+ "indexed": false,
3942
+ "internalType": "address"
3943
+ },
3944
+ {
3945
+ "name": "court",
3946
+ "type": "address",
3947
+ "indexed": false,
3948
+ "internalType": "address"
3949
+ },
3950
+ {
3951
+ "name": "treasury",
3952
+ "type": "address",
3953
+ "indexed": false,
3954
+ "internalType": "address"
3955
+ }
3956
+ ],
3957
+ "anonymous": false
3958
+ },
3959
+ {
3960
+ "type": "error",
3961
+ "name": "FailedDeployment",
3962
+ "inputs": []
3963
+ },
3964
+ {
3965
+ "type": "error",
3966
+ "name": "InsufficientBalance",
3967
+ "inputs": [
3968
+ {
3969
+ "name": "balance",
3970
+ "type": "uint256",
3971
+ "internalType": "uint256"
3972
+ },
3973
+ {
3974
+ "name": "needed",
3975
+ "type": "uint256",
3976
+ "internalType": "uint256"
3977
+ }
3978
+ ]
3979
+ },
3980
+ {
3981
+ "type": "error",
3982
+ "name": "NotACall",
3983
+ "inputs": []
3984
+ },
3985
+ {
3986
+ "type": "error",
3987
+ "name": "NotCourt",
3988
+ "inputs": []
3989
+ },
3990
+ {
3991
+ "type": "error",
3992
+ "name": "NotPendingCourt",
3993
+ "inputs": []
3994
+ },
3995
+ {
3996
+ "type": "error",
3997
+ "name": "SafeERC20FailedOperation",
3998
+ "inputs": [
3999
+ {
4000
+ "name": "token",
4001
+ "type": "address",
4002
+ "internalType": "address"
4003
+ }
4004
+ ]
4005
+ },
4006
+ {
4007
+ "type": "error",
4008
+ "name": "ShortTransfer",
4009
+ "inputs": []
4010
+ },
4011
+ {
4012
+ "type": "error",
4013
+ "name": "ZeroAddress",
4014
+ "inputs": []
4015
+ }
4016
+ ] as const;
4017
+
4018
+ export const tokenCallAbi = [
4019
+ {
4020
+ "type": "constructor",
4021
+ "inputs": [
4022
+ {
4023
+ "name": "asset_",
4024
+ "type": "address",
4025
+ "internalType": "contract IERC20"
4026
+ },
4027
+ {
4028
+ "name": "minBet",
4029
+ "type": "uint256",
4030
+ "internalType": "uint256"
4031
+ },
4032
+ {
4033
+ "name": "minOpenerBond",
4034
+ "type": "uint256",
4035
+ "internalType": "uint256"
4036
+ },
4037
+ {
4038
+ "name": "disputeBond",
4039
+ "type": "uint256",
4040
+ "internalType": "uint256"
4041
+ }
4042
+ ],
4043
+ "stateMutability": "nonpayable"
4044
+ },
4045
+ {
4046
+ "type": "function",
4047
+ "name": "ASSET",
4048
+ "inputs": [],
4049
+ "outputs": [
4050
+ {
4051
+ "name": "",
4052
+ "type": "address",
4053
+ "internalType": "contract IERC20"
4054
+ }
4055
+ ],
4056
+ "stateMutability": "view"
4057
+ },
4058
+ {
4059
+ "type": "function",
4060
+ "name": "COURT_TIMEOUT",
4061
+ "inputs": [],
4062
+ "outputs": [
4063
+ {
4064
+ "name": "",
4065
+ "type": "uint256",
4066
+ "internalType": "uint256"
4067
+ }
4068
+ ],
4069
+ "stateMutability": "view"
4070
+ },
4071
+ {
4072
+ "type": "function",
4073
+ "name": "DEEDS",
4074
+ "inputs": [],
4075
+ "outputs": [
4076
+ {
4077
+ "name": "",
4078
+ "type": "address",
4079
+ "internalType": "contract IShippedDeeds"
4080
+ }
4081
+ ],
4082
+ "stateMutability": "view"
4083
+ },
4084
+ {
4085
+ "type": "function",
4086
+ "name": "DISPUTE_BOND",
4087
+ "inputs": [],
4088
+ "outputs": [
4089
+ {
4090
+ "name": "",
4091
+ "type": "uint256",
4092
+ "internalType": "uint256"
4093
+ }
4094
+ ],
4095
+ "stateMutability": "view"
4096
+ },
4097
+ {
4098
+ "type": "function",
4099
+ "name": "DISPUTE_WINDOW",
4100
+ "inputs": [],
4101
+ "outputs": [
4102
+ {
4103
+ "name": "",
4104
+ "type": "uint256",
4105
+ "internalType": "uint256"
4106
+ }
4107
+ ],
4108
+ "stateMutability": "view"
4109
+ },
4110
+ {
4111
+ "type": "function",
4112
+ "name": "MAX_TERM",
4113
+ "inputs": [],
4114
+ "outputs": [
4115
+ {
4116
+ "name": "",
4117
+ "type": "uint256",
4118
+ "internalType": "uint256"
4119
+ }
4120
+ ],
4121
+ "stateMutability": "view"
4122
+ },
4123
+ {
4124
+ "type": "function",
4125
+ "name": "MIN_BET",
4126
+ "inputs": [],
4127
+ "outputs": [
4128
+ {
4129
+ "name": "",
4130
+ "type": "uint256",
4131
+ "internalType": "uint256"
4132
+ }
4133
+ ],
4134
+ "stateMutability": "view"
4135
+ },
4136
+ {
4137
+ "type": "function",
4138
+ "name": "MIN_OPENER_BOND",
4139
+ "inputs": [],
4140
+ "outputs": [
4141
+ {
4142
+ "name": "",
4143
+ "type": "uint256",
4144
+ "internalType": "uint256"
4145
+ }
4146
+ ],
4147
+ "stateMutability": "view"
4148
+ },
4149
+ {
4150
+ "type": "function",
4151
+ "name": "OPENER_BPS",
4152
+ "inputs": [],
4153
+ "outputs": [
4154
+ {
4155
+ "name": "",
4156
+ "type": "uint256",
4157
+ "internalType": "uint256"
4158
+ }
4159
+ ],
4160
+ "stateMutability": "view"
4161
+ },
4162
+ {
4163
+ "type": "function",
4164
+ "name": "PRICE_DISPUTE_WINDOW",
4165
+ "inputs": [],
4166
+ "outputs": [
4167
+ {
4168
+ "name": "",
4169
+ "type": "uint256",
4170
+ "internalType": "uint256"
4171
+ }
4172
+ ],
4173
+ "stateMutability": "view"
4174
+ },
4175
+ {
4176
+ "type": "function",
4177
+ "name": "RAKE_BPS",
4178
+ "inputs": [],
4179
+ "outputs": [
4180
+ {
4181
+ "name": "",
4182
+ "type": "uint256",
4183
+ "internalType": "uint256"
4184
+ }
4185
+ ],
4186
+ "stateMutability": "view"
4187
+ },
4188
+ {
4189
+ "type": "function",
4190
+ "name": "REASON_COURT_TIMEOUT",
4191
+ "inputs": [],
4192
+ "outputs": [
4193
+ {
4194
+ "name": "",
4195
+ "type": "bytes32",
4196
+ "internalType": "bytes32"
4197
+ }
4198
+ ],
4199
+ "stateMutability": "view"
4200
+ },
4201
+ {
4202
+ "type": "function",
4203
+ "name": "REASON_DEED_INVALID",
4204
+ "inputs": [],
4205
+ "outputs": [
4206
+ {
4207
+ "name": "",
4208
+ "type": "bytes32",
4209
+ "internalType": "bytes32"
4210
+ }
4211
+ ],
4212
+ "stateMutability": "view"
4213
+ },
4214
+ {
4215
+ "type": "function",
4216
+ "name": "REASON_RESOLVER_TIMEOUT",
4217
+ "inputs": [],
4218
+ "outputs": [
4219
+ {
4220
+ "name": "",
4221
+ "type": "bytes32",
4222
+ "internalType": "bytes32"
4223
+ }
4224
+ ],
4225
+ "stateMutability": "view"
4226
+ },
4227
+ {
4228
+ "type": "function",
4229
+ "name": "RESOLVER_TIMEOUT",
4230
+ "inputs": [],
4231
+ "outputs": [
4232
+ {
4233
+ "name": "",
4234
+ "type": "uint256",
4235
+ "internalType": "uint256"
4236
+ }
4237
+ ],
4238
+ "stateMutability": "view"
4239
+ },
4240
+ {
4241
+ "type": "function",
4242
+ "name": "TREASURY_BPS",
4243
+ "inputs": [],
4244
+ "outputs": [
4245
+ {
4246
+ "name": "",
4247
+ "type": "uint256",
4248
+ "internalType": "uint256"
4249
+ }
4250
+ ],
4251
+ "stateMutability": "view"
4252
+ },
4253
+ {
4254
+ "type": "function",
4255
+ "name": "addBonus",
4256
+ "inputs": [
4257
+ {
4258
+ "name": "amount",
4259
+ "type": "uint256",
4260
+ "internalType": "uint256"
4261
+ }
4262
+ ],
4263
+ "outputs": [],
4264
+ "stateMutability": "nonpayable"
4265
+ },
4266
+ {
4267
+ "type": "function",
4268
+ "name": "addBonusFor",
4269
+ "inputs": [
4270
+ {
4271
+ "name": "sponsor",
4272
+ "type": "address",
4273
+ "internalType": "address"
4274
+ },
4275
+ {
4276
+ "name": "amount",
4277
+ "type": "uint256",
4278
+ "internalType": "uint256"
4279
+ }
4280
+ ],
4281
+ "outputs": [],
4282
+ "stateMutability": "nonpayable"
4283
+ },
4284
+ {
4285
+ "type": "function",
4286
+ "name": "bet",
4287
+ "inputs": [
4288
+ {
4289
+ "name": "side",
4290
+ "type": "uint8",
4291
+ "internalType": "enum Side"
4292
+ },
4293
+ {
4294
+ "name": "amount",
4295
+ "type": "uint256",
4296
+ "internalType": "uint256"
4297
+ }
4298
+ ],
4299
+ "outputs": [],
4300
+ "stateMutability": "nonpayable"
4301
+ },
4302
+ {
4303
+ "type": "function",
4304
+ "name": "betFor",
4305
+ "inputs": [
4306
+ {
4307
+ "name": "bettor",
4308
+ "type": "address",
4309
+ "internalType": "address"
4310
+ },
4311
+ {
4312
+ "name": "side",
4313
+ "type": "uint8",
4314
+ "internalType": "enum Side"
4315
+ },
4316
+ {
4317
+ "name": "amount",
4318
+ "type": "uint256",
4319
+ "internalType": "uint256"
4320
+ }
4321
+ ],
4322
+ "outputs": [],
4323
+ "stateMutability": "nonpayable"
4324
+ },
4325
+ {
4326
+ "type": "function",
4327
+ "name": "bond",
4328
+ "inputs": [],
4329
+ "outputs": [
4330
+ {
4331
+ "name": "",
4332
+ "type": "uint256",
4333
+ "internalType": "uint256"
4334
+ }
4335
+ ],
4336
+ "stateMutability": "view"
4337
+ },
4338
+ {
4339
+ "type": "function",
4340
+ "name": "bonus",
4341
+ "inputs": [],
4342
+ "outputs": [
4343
+ {
4344
+ "name": "",
4345
+ "type": "uint256",
4346
+ "internalType": "uint256"
4347
+ }
4348
+ ],
4349
+ "stateMutability": "view"
4350
+ },
4351
+ {
4352
+ "type": "function",
4353
+ "name": "bonusOf",
4354
+ "inputs": [
4355
+ {
4356
+ "name": "",
4357
+ "type": "address",
4358
+ "internalType": "address"
4359
+ }
4360
+ ],
4361
+ "outputs": [
4362
+ {
4363
+ "name": "",
4364
+ "type": "uint256",
4365
+ "internalType": "uint256"
4366
+ }
4367
+ ],
4368
+ "stateMutability": "view"
4369
+ },
4370
+ {
4371
+ "type": "function",
4372
+ "name": "callType",
4373
+ "inputs": [],
4374
+ "outputs": [
4375
+ {
4376
+ "name": "",
4377
+ "type": "uint8",
4378
+ "internalType": "enum CallType"
4379
+ }
4380
+ ],
4381
+ "stateMutability": "view"
4382
+ },
4383
+ {
4384
+ "type": "function",
4385
+ "name": "claim",
4386
+ "inputs": [],
4387
+ "outputs": [],
4388
+ "stateMutability": "nonpayable"
4389
+ },
4390
+ {
4391
+ "type": "function",
4392
+ "name": "claimOpener",
4393
+ "inputs": [],
4394
+ "outputs": [],
4395
+ "stateMutability": "nonpayable"
4396
+ },
4397
+ {
4398
+ "type": "function",
4399
+ "name": "claimTreasury",
4400
+ "inputs": [],
4401
+ "outputs": [],
4402
+ "stateMutability": "nonpayable"
4403
+ },
4404
+ {
4405
+ "type": "function",
4406
+ "name": "claimed",
4407
+ "inputs": [
4408
+ {
4409
+ "name": "",
4410
+ "type": "address",
4411
+ "internalType": "address"
4412
+ }
4413
+ ],
4414
+ "outputs": [
4415
+ {
4416
+ "name": "",
4417
+ "type": "bool",
4418
+ "internalType": "bool"
4419
+ }
4420
+ ],
4421
+ "stateMutability": "view"
4422
+ },
4423
+ {
4424
+ "type": "function",
4425
+ "name": "claimedBonus",
4426
+ "inputs": [],
4427
+ "outputs": [
4428
+ {
4429
+ "name": "",
4430
+ "type": "uint256",
4431
+ "internalType": "uint256"
4432
+ }
4433
+ ],
4434
+ "stateMutability": "view"
4435
+ },
4436
+ {
4437
+ "type": "function",
4438
+ "name": "claimedStakes",
4439
+ "inputs": [],
4440
+ "outputs": [
4441
+ {
4442
+ "name": "",
4443
+ "type": "uint256",
4444
+ "internalType": "uint256"
4445
+ }
4446
+ ],
4447
+ "stateMutability": "view"
4448
+ },
4449
+ {
4450
+ "type": "function",
4451
+ "name": "close",
4452
+ "inputs": [],
4453
+ "outputs": [],
4454
+ "stateMutability": "nonpayable"
4455
+ },
4456
+ {
4457
+ "type": "function",
4458
+ "name": "closeAt",
4459
+ "inputs": [],
4460
+ "outputs": [
4461
+ {
4462
+ "name": "",
4463
+ "type": "uint64",
4464
+ "internalType": "uint64"
4465
+ }
4466
+ ],
4467
+ "stateMutability": "view"
4468
+ },
4469
+ {
4470
+ "type": "function",
4471
+ "name": "deadline",
4472
+ "inputs": [],
4473
+ "outputs": [
4474
+ {
4475
+ "name": "",
4476
+ "type": "uint64",
4477
+ "internalType": "uint64"
4478
+ }
4479
+ ],
4480
+ "stateMutability": "view"
4481
+ },
4482
+ {
4483
+ "type": "function",
4484
+ "name": "deedId",
4485
+ "inputs": [],
4486
+ "outputs": [
4487
+ {
4488
+ "name": "",
4489
+ "type": "uint256",
4490
+ "internalType": "uint256"
4491
+ }
4492
+ ],
4493
+ "stateMutability": "view"
4494
+ },
4495
+ {
4496
+ "type": "function",
4497
+ "name": "dispute",
4498
+ "inputs": [],
4499
+ "outputs": [],
4500
+ "stateMutability": "nonpayable"
4501
+ },
4502
+ {
4503
+ "type": "function",
4504
+ "name": "disputeBondReturns",
4505
+ "inputs": [],
4506
+ "outputs": [
4507
+ {
4508
+ "name": "",
4509
+ "type": "bool",
4510
+ "internalType": "bool"
4511
+ }
4512
+ ],
4513
+ "stateMutability": "view"
4514
+ },
4515
+ {
4516
+ "type": "function",
4517
+ "name": "disputeWindow",
4518
+ "inputs": [],
4519
+ "outputs": [
4520
+ {
4521
+ "name": "",
4522
+ "type": "uint256",
4523
+ "internalType": "uint256"
4524
+ }
4525
+ ],
4526
+ "stateMutability": "view"
4527
+ },
4528
+ {
4529
+ "type": "function",
4530
+ "name": "disputer",
4531
+ "inputs": [],
4532
+ "outputs": [
4533
+ {
4534
+ "name": "",
4535
+ "type": "address",
4536
+ "internalType": "address"
4537
+ }
4538
+ ],
4539
+ "stateMutability": "view"
4540
+ },
4541
+ {
4542
+ "type": "function",
4543
+ "name": "evidenceHash",
4544
+ "inputs": [],
4545
+ "outputs": [
4546
+ {
4547
+ "name": "",
4548
+ "type": "bytes32",
4549
+ "internalType": "bytes32"
4550
+ }
4551
+ ],
4552
+ "stateMutability": "view"
4553
+ },
4554
+ {
4555
+ "type": "function",
4556
+ "name": "factory",
4557
+ "inputs": [],
4558
+ "outputs": [
4559
+ {
4560
+ "name": "",
4561
+ "type": "address",
4562
+ "internalType": "contract ITokenCallsFactory"
4563
+ }
4564
+ ],
4565
+ "stateMutability": "view"
4566
+ },
4567
+ {
4568
+ "type": "function",
4569
+ "name": "finalize",
4570
+ "inputs": [],
4571
+ "outputs": [],
4572
+ "stateMutability": "nonpayable"
4573
+ },
4574
+ {
4575
+ "type": "function",
4576
+ "name": "initialize",
4577
+ "inputs": [
4578
+ {
4579
+ "name": "opener_",
4580
+ "type": "address",
4581
+ "internalType": "address"
4582
+ },
4583
+ {
4584
+ "name": "callType_",
4585
+ "type": "uint8",
4586
+ "internalType": "enum CallType"
4587
+ },
4588
+ {
4589
+ "name": "closeAt_",
4590
+ "type": "uint64",
4591
+ "internalType": "uint64"
4592
+ },
4593
+ {
4594
+ "name": "deadline_",
4595
+ "type": "uint64",
4596
+ "internalType": "uint64"
4597
+ },
4598
+ {
4599
+ "name": "deedId_",
4600
+ "type": "uint256",
4601
+ "internalType": "uint256"
4602
+ },
4603
+ {
4604
+ "name": "bond_",
4605
+ "type": "uint256",
4606
+ "internalType": "uint256"
4607
+ }
4608
+ ],
4609
+ "outputs": [],
4610
+ "stateMutability": "nonpayable"
4611
+ },
4612
+ {
4613
+ "type": "function",
4614
+ "name": "odds",
4615
+ "inputs": [],
4616
+ "outputs": [
4617
+ {
4618
+ "name": "",
4619
+ "type": "uint256",
4620
+ "internalType": "uint256"
4621
+ }
4622
+ ],
4623
+ "stateMutability": "view"
4624
+ },
4625
+ {
4626
+ "type": "function",
4627
+ "name": "opener",
4628
+ "inputs": [],
4629
+ "outputs": [
4630
+ {
4631
+ "name": "",
4632
+ "type": "address",
4633
+ "internalType": "address"
4634
+ }
4635
+ ],
4636
+ "stateMutability": "view"
4637
+ },
4638
+ {
4639
+ "type": "function",
4640
+ "name": "openerAtFault",
4641
+ "inputs": [],
4642
+ "outputs": [
4643
+ {
4644
+ "name": "",
4645
+ "type": "bool",
4646
+ "internalType": "bool"
4647
+ }
4648
+ ],
4649
+ "stateMutability": "view"
4650
+ },
4651
+ {
4652
+ "type": "function",
4653
+ "name": "openerClaimed",
4654
+ "inputs": [],
4655
+ "outputs": [
4656
+ {
4657
+ "name": "",
4658
+ "type": "bool",
4659
+ "internalType": "bool"
4660
+ }
4661
+ ],
4662
+ "stateMutability": "view"
4663
+ },
4664
+ {
4665
+ "type": "function",
4666
+ "name": "outcome",
4667
+ "inputs": [],
4668
+ "outputs": [
4669
+ {
4670
+ "name": "",
4671
+ "type": "uint8",
4672
+ "internalType": "enum Side"
4673
+ }
4674
+ ],
4675
+ "stateMutability": "view"
4676
+ },
4677
+ {
4678
+ "type": "function",
4679
+ "name": "payoutOf",
4680
+ "inputs": [
4681
+ {
4682
+ "name": "account",
4683
+ "type": "address",
4684
+ "internalType": "address"
4685
+ }
4686
+ ],
4687
+ "outputs": [
4688
+ {
4689
+ "name": "amount",
4690
+ "type": "uint256",
4691
+ "internalType": "uint256"
4692
+ }
4693
+ ],
4694
+ "stateMutability": "view"
4695
+ },
4696
+ {
4697
+ "type": "function",
4698
+ "name": "pool",
4699
+ "inputs": [
4700
+ {
4701
+ "name": "",
4702
+ "type": "uint8",
4703
+ "internalType": "enum Side"
4704
+ }
4705
+ ],
4706
+ "outputs": [
4707
+ {
4708
+ "name": "",
4709
+ "type": "uint256",
4710
+ "internalType": "uint256"
4711
+ }
4712
+ ],
4713
+ "stateMutability": "view"
4714
+ },
4715
+ {
4716
+ "type": "function",
4717
+ "name": "resolveDispute",
4718
+ "inputs": [
4719
+ {
4720
+ "name": "outcome_",
4721
+ "type": "uint8",
4722
+ "internalType": "enum Side"
4723
+ },
4724
+ {
4725
+ "name": "evidenceHash_",
4726
+ "type": "bytes32",
4727
+ "internalType": "bytes32"
4728
+ }
4729
+ ],
4730
+ "outputs": [],
4731
+ "stateMutability": "nonpayable"
4732
+ },
4733
+ {
4734
+ "type": "function",
4735
+ "name": "settle",
4736
+ "inputs": [
4737
+ {
4738
+ "name": "outcome_",
4739
+ "type": "uint8",
4740
+ "internalType": "enum Side"
4741
+ },
4742
+ {
4743
+ "name": "evidenceHash_",
4744
+ "type": "bytes32",
4745
+ "internalType": "bytes32"
4746
+ }
4747
+ ],
4748
+ "outputs": [],
4749
+ "stateMutability": "nonpayable"
4750
+ },
4751
+ {
4752
+ "type": "function",
4753
+ "name": "settleDeed",
4754
+ "inputs": [],
4755
+ "outputs": [],
4756
+ "stateMutability": "nonpayable"
4757
+ },
4758
+ {
4759
+ "type": "function",
4760
+ "name": "settledAt",
4761
+ "inputs": [],
4762
+ "outputs": [
4763
+ {
4764
+ "name": "",
4765
+ "type": "uint64",
4766
+ "internalType": "uint64"
4767
+ }
4768
+ ],
4769
+ "stateMutability": "view"
4770
+ },
4771
+ {
4772
+ "type": "function",
4773
+ "name": "stake",
4774
+ "inputs": [
4775
+ {
4776
+ "name": "",
4777
+ "type": "address",
4778
+ "internalType": "address"
4779
+ },
4780
+ {
4781
+ "name": "",
4782
+ "type": "uint8",
4783
+ "internalType": "enum Side"
4784
+ }
4785
+ ],
4786
+ "outputs": [
4787
+ {
4788
+ "name": "",
4789
+ "type": "uint256",
4790
+ "internalType": "uint256"
4791
+ }
4792
+ ],
4793
+ "stateMutability": "view"
4794
+ },
4795
+ {
4796
+ "type": "function",
4797
+ "name": "status",
4798
+ "inputs": [],
4799
+ "outputs": [
4800
+ {
4801
+ "name": "",
4802
+ "type": "uint8",
4803
+ "internalType": "enum Status"
4804
+ }
4805
+ ],
4806
+ "stateMutability": "view"
4807
+ },
4808
+ {
4809
+ "type": "function",
4810
+ "name": "void",
4811
+ "inputs": [
4812
+ {
4813
+ "name": "openerAtFault_",
4814
+ "type": "bool",
4815
+ "internalType": "bool"
4816
+ },
4817
+ {
4818
+ "name": "reasonHash",
4819
+ "type": "bytes32",
4820
+ "internalType": "bytes32"
4821
+ }
4822
+ ],
4823
+ "outputs": [],
4824
+ "stateMutability": "nonpayable"
4825
+ },
4826
+ {
4827
+ "type": "function",
4828
+ "name": "voidTimeout",
4829
+ "inputs": [],
4830
+ "outputs": [],
4831
+ "stateMutability": "nonpayable"
4832
+ },
4833
+ {
4834
+ "type": "event",
4835
+ "name": "Bet",
4836
+ "inputs": [
4837
+ {
4838
+ "name": "bettor",
4839
+ "type": "address",
4840
+ "indexed": true,
4841
+ "internalType": "address"
4842
+ },
4843
+ {
4844
+ "name": "side",
4845
+ "type": "uint8",
4846
+ "indexed": false,
4847
+ "internalType": "enum Side"
4848
+ },
4849
+ {
4850
+ "name": "amount",
4851
+ "type": "uint256",
4852
+ "indexed": false,
4853
+ "internalType": "uint256"
4854
+ },
4855
+ {
4856
+ "name": "holdsPool",
4857
+ "type": "uint256",
4858
+ "indexed": false,
4859
+ "internalType": "uint256"
4860
+ },
4861
+ {
4862
+ "name": "breaksPool",
4863
+ "type": "uint256",
4864
+ "indexed": false,
4865
+ "internalType": "uint256"
4866
+ }
4867
+ ],
4868
+ "anonymous": false
4869
+ },
4870
+ {
4871
+ "type": "event",
4872
+ "name": "BonusAdded",
4873
+ "inputs": [
4874
+ {
4875
+ "name": "sponsor",
4876
+ "type": "address",
4877
+ "indexed": true,
4878
+ "internalType": "address"
4879
+ },
4880
+ {
4881
+ "name": "amount",
4882
+ "type": "uint256",
4883
+ "indexed": false,
4884
+ "internalType": "uint256"
4885
+ },
4886
+ {
4887
+ "name": "bonus",
4888
+ "type": "uint256",
4889
+ "indexed": false,
4890
+ "internalType": "uint256"
4891
+ }
4892
+ ],
4893
+ "anonymous": false
4894
+ },
4895
+ {
4896
+ "type": "event",
4897
+ "name": "Claimed",
4898
+ "inputs": [
4899
+ {
4900
+ "name": "account",
4901
+ "type": "address",
4902
+ "indexed": true,
4903
+ "internalType": "address"
4904
+ },
4905
+ {
4906
+ "name": "amount",
4907
+ "type": "uint256",
4908
+ "indexed": false,
4909
+ "internalType": "uint256"
4910
+ }
4911
+ ],
4912
+ "anonymous": false
4913
+ },
4914
+ {
4915
+ "type": "event",
4916
+ "name": "Closed",
4917
+ "inputs": [
4918
+ {
4919
+ "name": "closedAt",
4920
+ "type": "uint64",
4921
+ "indexed": false,
4922
+ "internalType": "uint64"
4923
+ }
4924
+ ],
4925
+ "anonymous": false
4926
+ },
4927
+ {
4928
+ "type": "event",
4929
+ "name": "Disputed",
4930
+ "inputs": [
4931
+ {
4932
+ "name": "disputer",
4933
+ "type": "address",
4934
+ "indexed": true,
4935
+ "internalType": "address"
4936
+ },
4937
+ {
4938
+ "name": "bond",
4939
+ "type": "uint256",
4940
+ "indexed": false,
4941
+ "internalType": "uint256"
4942
+ }
4943
+ ],
4944
+ "anonymous": false
4945
+ },
4946
+ {
4947
+ "type": "event",
4948
+ "name": "Finalized",
4949
+ "inputs": [
4950
+ {
4951
+ "name": "outcome",
4952
+ "type": "uint8",
4953
+ "indexed": false,
4954
+ "internalType": "enum Side"
4955
+ },
4956
+ {
4957
+ "name": "winnersPool",
4958
+ "type": "uint256",
4959
+ "indexed": false,
4960
+ "internalType": "uint256"
4961
+ },
4962
+ {
4963
+ "name": "losersPool",
4964
+ "type": "uint256",
4965
+ "indexed": false,
4966
+ "internalType": "uint256"
4967
+ },
4968
+ {
4969
+ "name": "rake",
4970
+ "type": "uint256",
4971
+ "indexed": false,
4972
+ "internalType": "uint256"
4973
+ }
4974
+ ],
4975
+ "anonymous": false
4976
+ },
4977
+ {
4978
+ "type": "event",
4979
+ "name": "OpenerPaid",
4980
+ "inputs": [
4981
+ {
4982
+ "name": "opener",
4983
+ "type": "address",
4984
+ "indexed": true,
4985
+ "internalType": "address"
4986
+ },
4987
+ {
4988
+ "name": "amount",
4989
+ "type": "uint256",
4990
+ "indexed": false,
4991
+ "internalType": "uint256"
4992
+ }
4993
+ ],
4994
+ "anonymous": false
4995
+ },
4996
+ {
4997
+ "type": "event",
4998
+ "name": "Resolved",
4999
+ "inputs": [
5000
+ {
5001
+ "name": "outcome",
5002
+ "type": "uint8",
5003
+ "indexed": false,
5004
+ "internalType": "enum Side"
5005
+ },
5006
+ {
5007
+ "name": "evidenceHash",
5008
+ "type": "bytes32",
5009
+ "indexed": false,
5010
+ "internalType": "bytes32"
5011
+ }
5012
+ ],
5013
+ "anonymous": false
5014
+ },
5015
+ {
5016
+ "type": "event",
5017
+ "name": "Settled",
5018
+ "inputs": [
5019
+ {
5020
+ "name": "outcome",
5021
+ "type": "uint8",
5022
+ "indexed": false,
5023
+ "internalType": "enum Side"
5024
+ },
5025
+ {
5026
+ "name": "evidenceHash",
5027
+ "type": "bytes32",
5028
+ "indexed": false,
5029
+ "internalType": "bytes32"
5030
+ },
5031
+ {
5032
+ "name": "by",
5033
+ "type": "address",
5034
+ "indexed": false,
5035
+ "internalType": "address"
5036
+ }
5037
+ ],
5038
+ "anonymous": false
5039
+ },
5040
+ {
5041
+ "type": "event",
5042
+ "name": "TreasuryPaid",
5043
+ "inputs": [
5044
+ {
5045
+ "name": "amount",
5046
+ "type": "uint256",
5047
+ "indexed": false,
5048
+ "internalType": "uint256"
5049
+ }
5050
+ ],
5051
+ "anonymous": false
5052
+ },
5053
+ {
5054
+ "type": "event",
5055
+ "name": "Voided",
5056
+ "inputs": [
5057
+ {
5058
+ "name": "openerAtFault",
5059
+ "type": "bool",
5060
+ "indexed": false,
5061
+ "internalType": "bool"
5062
+ },
5063
+ {
5064
+ "name": "reasonHash",
5065
+ "type": "bytes32",
5066
+ "indexed": false,
5067
+ "internalType": "bytes32"
5068
+ }
5069
+ ],
5070
+ "anonymous": false
5071
+ },
5072
+ {
5073
+ "type": "event",
5074
+ "name": "WindowSet",
5075
+ "inputs": [
5076
+ {
5077
+ "name": "disputeWindow",
5078
+ "type": "uint256",
5079
+ "indexed": false,
5080
+ "internalType": "uint256"
5081
+ }
5082
+ ],
5083
+ "anonymous": false
5084
+ },
5085
+ {
5086
+ "type": "error",
5087
+ "name": "AlreadyInitialized",
5088
+ "inputs": []
5089
+ },
5090
+ {
5091
+ "type": "error",
5092
+ "name": "AssetPaused",
5093
+ "inputs": []
5094
+ },
5095
+ {
5096
+ "type": "error",
5097
+ "name": "BadDeed",
5098
+ "inputs": []
5099
+ },
5100
+ {
5101
+ "type": "error",
5102
+ "name": "BadSide",
5103
+ "inputs": []
5104
+ },
5105
+ {
5106
+ "type": "error",
5107
+ "name": "BadWindow",
5108
+ "inputs": []
5109
+ },
5110
+ {
5111
+ "type": "error",
5112
+ "name": "BetTooSmall",
5113
+ "inputs": []
5114
+ },
5115
+ {
5116
+ "type": "error",
5117
+ "name": "BettingClosed",
5118
+ "inputs": []
5119
+ },
5120
+ {
5121
+ "type": "error",
5122
+ "name": "BondTooSmall",
5123
+ "inputs": []
5124
+ },
5125
+ {
5126
+ "type": "error",
5127
+ "name": "BonusTooSmall",
5128
+ "inputs": []
5129
+ },
5130
+ {
5131
+ "type": "error",
5132
+ "name": "DeedNotSettled",
5133
+ "inputs": []
5134
+ },
5135
+ {
5136
+ "type": "error",
5137
+ "name": "DeedSettled",
5138
+ "inputs": []
5139
+ },
5140
+ {
5141
+ "type": "error",
5142
+ "name": "IsDeedCall",
5143
+ "inputs": []
5144
+ },
5145
+ {
5146
+ "type": "error",
5147
+ "name": "NotCourt",
5148
+ "inputs": []
5149
+ },
5150
+ {
5151
+ "type": "error",
5152
+ "name": "NotDeedCall",
5153
+ "inputs": []
5154
+ },
5155
+ {
5156
+ "type": "error",
5157
+ "name": "NotFactory",
5158
+ "inputs": []
5159
+ },
5160
+ {
5161
+ "type": "error",
5162
+ "name": "NotResolver",
5163
+ "inputs": []
5164
+ },
5165
+ {
5166
+ "type": "error",
5167
+ "name": "NothingToClaim",
5168
+ "inputs": []
5169
+ },
5170
+ {
5171
+ "type": "error",
5172
+ "name": "ReentrancyGuardReentrantCall",
5173
+ "inputs": []
5174
+ },
5175
+ {
5176
+ "type": "error",
5177
+ "name": "SafeERC20FailedOperation",
5178
+ "inputs": [
5179
+ {
5180
+ "name": "token",
5181
+ "type": "address",
5182
+ "internalType": "address"
5183
+ }
5184
+ ]
5185
+ },
5186
+ {
5187
+ "type": "error",
5188
+ "name": "ShortTransfer",
5189
+ "inputs": []
5190
+ },
5191
+ {
5192
+ "type": "error",
5193
+ "name": "TooEarly",
5194
+ "inputs": []
5195
+ },
5196
+ {
5197
+ "type": "error",
5198
+ "name": "WindowClosed",
5199
+ "inputs": []
5200
+ },
5201
+ {
5202
+ "type": "error",
5203
+ "name": "WrongStatus",
5204
+ "inputs": []
5205
+ }
5206
+ ] as const;