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