@shippedcalls/sdk 0.1.0 → 0.3.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/README.md +6 -1
- package/dist/abi.d.ts +827 -0
- package/dist/abi.js +1060 -0
- package/dist/abi.js.map +1 -1
- package/dist/chain.d.ts +4 -2
- package/dist/chain.js +4 -2
- package/dist/chain.js.map +1 -1
- package/dist/cli.js +5 -1
- package/dist/cli.js.map +1 -1
- package/dist/client.d.ts +45 -1
- package/dist/client.js +74 -5
- package/dist/client.js.map +1 -1
- package/dist/errors.js +7 -0
- package/dist/errors.js.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/odds.d.ts +3 -0
- package/dist/odds.js +3 -0
- package/dist/odds.js.map +1 -1
- package/dist/types.d.ts +116 -0
- package/package.json +1 -1
- package/skill/SKILL.md +2 -1
- package/skill/references/api.md +3 -2
- package/skill/references/rounds.md +47 -0
- package/skill/references/settlement.md +8 -2
- package/skill/references/write-path.md +4 -2
- package/skill/scripts/calls.sh +1 -1
- package/src/abi.ts +1061 -0
- package/src/chain.ts +4 -2
- package/src/cli.ts +6 -1
- package/src/client.ts +76 -6
- package/src/errors.ts +7 -0
- package/src/index.ts +4 -4
- package/src/odds.ts +3 -0
- package/src/types.ts +79 -1
package/dist/abi.d.ts
CHANGED
|
@@ -391,6 +391,16 @@ export declare const callAbi: readonly [{
|
|
|
391
391
|
readonly internalType: "uint256";
|
|
392
392
|
}];
|
|
393
393
|
readonly stateMutability: "view";
|
|
394
|
+
}, {
|
|
395
|
+
readonly type: "function";
|
|
396
|
+
readonly name: "PRICE_DISPUTE_WINDOW";
|
|
397
|
+
readonly inputs: readonly [];
|
|
398
|
+
readonly outputs: readonly [{
|
|
399
|
+
readonly name: "";
|
|
400
|
+
readonly type: "uint256";
|
|
401
|
+
readonly internalType: "uint256";
|
|
402
|
+
}];
|
|
403
|
+
readonly stateMutability: "view";
|
|
394
404
|
}, {
|
|
395
405
|
readonly type: "function";
|
|
396
406
|
readonly name: "RAKE_BPS";
|
|
@@ -575,6 +585,16 @@ export declare const callAbi: readonly [{
|
|
|
575
585
|
readonly internalType: "bool";
|
|
576
586
|
}];
|
|
577
587
|
readonly stateMutability: "view";
|
|
588
|
+
}, {
|
|
589
|
+
readonly type: "function";
|
|
590
|
+
readonly name: "disputeWindow";
|
|
591
|
+
readonly inputs: readonly [];
|
|
592
|
+
readonly outputs: readonly [{
|
|
593
|
+
readonly name: "";
|
|
594
|
+
readonly type: "uint256";
|
|
595
|
+
readonly internalType: "uint256";
|
|
596
|
+
}];
|
|
597
|
+
readonly stateMutability: "view";
|
|
578
598
|
}, {
|
|
579
599
|
readonly type: "function";
|
|
580
600
|
readonly name: "disputer";
|
|
@@ -977,6 +997,16 @@ export declare const callAbi: readonly [{
|
|
|
977
997
|
readonly internalType: "bytes32";
|
|
978
998
|
}];
|
|
979
999
|
readonly anonymous: false;
|
|
1000
|
+
}, {
|
|
1001
|
+
readonly type: "event";
|
|
1002
|
+
readonly name: "WindowSet";
|
|
1003
|
+
readonly inputs: readonly [{
|
|
1004
|
+
readonly name: "disputeWindow";
|
|
1005
|
+
readonly type: "uint256";
|
|
1006
|
+
readonly indexed: false;
|
|
1007
|
+
readonly internalType: "uint256";
|
|
1008
|
+
}];
|
|
1009
|
+
readonly anonymous: false;
|
|
980
1010
|
}, {
|
|
981
1011
|
readonly type: "error";
|
|
982
1012
|
readonly name: "AlreadyInitialized";
|
|
@@ -1621,3 +1651,800 @@ export declare const calledItAbi: readonly [{
|
|
|
1621
1651
|
readonly internalType: "uint256";
|
|
1622
1652
|
}];
|
|
1623
1653
|
}];
|
|
1654
|
+
export declare const roundsAbi: readonly [{
|
|
1655
|
+
readonly type: "constructor";
|
|
1656
|
+
readonly inputs: readonly [{
|
|
1657
|
+
readonly name: "guardian_";
|
|
1658
|
+
readonly type: "address";
|
|
1659
|
+
readonly internalType: "address";
|
|
1660
|
+
}, {
|
|
1661
|
+
readonly name: "treasury_";
|
|
1662
|
+
readonly type: "address";
|
|
1663
|
+
readonly internalType: "address";
|
|
1664
|
+
}, {
|
|
1665
|
+
readonly name: "markets_";
|
|
1666
|
+
readonly type: "bytes32[]";
|
|
1667
|
+
readonly internalType: "bytes32[]";
|
|
1668
|
+
}, {
|
|
1669
|
+
readonly name: "sources_";
|
|
1670
|
+
readonly type: "address[]";
|
|
1671
|
+
readonly internalType: "contract IPriceSource[]";
|
|
1672
|
+
}];
|
|
1673
|
+
readonly stateMutability: "nonpayable";
|
|
1674
|
+
}, {
|
|
1675
|
+
readonly type: "function";
|
|
1676
|
+
readonly name: "BET_CUTOFF";
|
|
1677
|
+
readonly inputs: readonly [];
|
|
1678
|
+
readonly outputs: readonly [{
|
|
1679
|
+
readonly name: "";
|
|
1680
|
+
readonly type: "uint256";
|
|
1681
|
+
readonly internalType: "uint256";
|
|
1682
|
+
}];
|
|
1683
|
+
readonly stateMutability: "view";
|
|
1684
|
+
}, {
|
|
1685
|
+
readonly type: "function";
|
|
1686
|
+
readonly name: "INTERVAL";
|
|
1687
|
+
readonly inputs: readonly [];
|
|
1688
|
+
readonly outputs: readonly [{
|
|
1689
|
+
readonly name: "";
|
|
1690
|
+
readonly type: "uint256";
|
|
1691
|
+
readonly internalType: "uint256";
|
|
1692
|
+
}];
|
|
1693
|
+
readonly stateMutability: "view";
|
|
1694
|
+
}, {
|
|
1695
|
+
readonly type: "function";
|
|
1696
|
+
readonly name: "LIMIT_DELAY";
|
|
1697
|
+
readonly inputs: readonly [];
|
|
1698
|
+
readonly outputs: readonly [{
|
|
1699
|
+
readonly name: "";
|
|
1700
|
+
readonly type: "uint256";
|
|
1701
|
+
readonly internalType: "uint256";
|
|
1702
|
+
}];
|
|
1703
|
+
readonly stateMutability: "view";
|
|
1704
|
+
}, {
|
|
1705
|
+
readonly type: "function";
|
|
1706
|
+
readonly name: "MAX_STAKE";
|
|
1707
|
+
readonly inputs: readonly [];
|
|
1708
|
+
readonly outputs: readonly [{
|
|
1709
|
+
readonly name: "";
|
|
1710
|
+
readonly type: "uint256";
|
|
1711
|
+
readonly internalType: "uint256";
|
|
1712
|
+
}];
|
|
1713
|
+
readonly stateMutability: "view";
|
|
1714
|
+
}, {
|
|
1715
|
+
readonly type: "function";
|
|
1716
|
+
readonly name: "MIN_BET";
|
|
1717
|
+
readonly inputs: readonly [];
|
|
1718
|
+
readonly outputs: readonly [{
|
|
1719
|
+
readonly name: "";
|
|
1720
|
+
readonly type: "uint256";
|
|
1721
|
+
readonly internalType: "uint256";
|
|
1722
|
+
}];
|
|
1723
|
+
readonly stateMutability: "view";
|
|
1724
|
+
}, {
|
|
1725
|
+
readonly type: "function";
|
|
1726
|
+
readonly name: "RAKE_BPS";
|
|
1727
|
+
readonly inputs: readonly [];
|
|
1728
|
+
readonly outputs: readonly [{
|
|
1729
|
+
readonly name: "";
|
|
1730
|
+
readonly type: "uint256";
|
|
1731
|
+
readonly internalType: "uint256";
|
|
1732
|
+
}];
|
|
1733
|
+
readonly stateMutability: "view";
|
|
1734
|
+
}, {
|
|
1735
|
+
readonly type: "function";
|
|
1736
|
+
readonly name: "VOID_AFTER";
|
|
1737
|
+
readonly inputs: readonly [];
|
|
1738
|
+
readonly outputs: readonly [{
|
|
1739
|
+
readonly name: "";
|
|
1740
|
+
readonly type: "uint256";
|
|
1741
|
+
readonly internalType: "uint256";
|
|
1742
|
+
}];
|
|
1743
|
+
readonly stateMutability: "view";
|
|
1744
|
+
}, {
|
|
1745
|
+
readonly type: "function";
|
|
1746
|
+
readonly name: "acceptGuardian";
|
|
1747
|
+
readonly inputs: readonly [];
|
|
1748
|
+
readonly outputs: readonly [];
|
|
1749
|
+
readonly stateMutability: "nonpayable";
|
|
1750
|
+
}, {
|
|
1751
|
+
readonly type: "function";
|
|
1752
|
+
readonly name: "addMarket";
|
|
1753
|
+
readonly inputs: readonly [{
|
|
1754
|
+
readonly name: "market";
|
|
1755
|
+
readonly type: "bytes32";
|
|
1756
|
+
readonly internalType: "bytes32";
|
|
1757
|
+
}, {
|
|
1758
|
+
readonly name: "source";
|
|
1759
|
+
readonly type: "address";
|
|
1760
|
+
readonly internalType: "contract IPriceSource";
|
|
1761
|
+
}];
|
|
1762
|
+
readonly outputs: readonly [];
|
|
1763
|
+
readonly stateMutability: "nonpayable";
|
|
1764
|
+
}, {
|
|
1765
|
+
readonly type: "function";
|
|
1766
|
+
readonly name: "advance";
|
|
1767
|
+
readonly inputs: readonly [{
|
|
1768
|
+
readonly name: "market";
|
|
1769
|
+
readonly type: "bytes32";
|
|
1770
|
+
readonly internalType: "bytes32";
|
|
1771
|
+
}, {
|
|
1772
|
+
readonly name: "boundary";
|
|
1773
|
+
readonly type: "uint64";
|
|
1774
|
+
readonly internalType: "uint64";
|
|
1775
|
+
}, {
|
|
1776
|
+
readonly name: "proof";
|
|
1777
|
+
readonly type: "bytes";
|
|
1778
|
+
readonly internalType: "bytes";
|
|
1779
|
+
}];
|
|
1780
|
+
readonly outputs: readonly [];
|
|
1781
|
+
readonly stateMutability: "payable";
|
|
1782
|
+
}, {
|
|
1783
|
+
readonly type: "function";
|
|
1784
|
+
readonly name: "bet";
|
|
1785
|
+
readonly inputs: readonly [{
|
|
1786
|
+
readonly name: "market";
|
|
1787
|
+
readonly type: "bytes32";
|
|
1788
|
+
readonly internalType: "bytes32";
|
|
1789
|
+
}, {
|
|
1790
|
+
readonly name: "up";
|
|
1791
|
+
readonly type: "bool";
|
|
1792
|
+
readonly internalType: "bool";
|
|
1793
|
+
}];
|
|
1794
|
+
readonly outputs: readonly [];
|
|
1795
|
+
readonly stateMutability: "payable";
|
|
1796
|
+
}, {
|
|
1797
|
+
readonly type: "function";
|
|
1798
|
+
readonly name: "claim";
|
|
1799
|
+
readonly inputs: readonly [{
|
|
1800
|
+
readonly name: "markets_";
|
|
1801
|
+
readonly type: "bytes32[]";
|
|
1802
|
+
readonly internalType: "bytes32[]";
|
|
1803
|
+
}, {
|
|
1804
|
+
readonly name: "epochs";
|
|
1805
|
+
readonly type: "uint256[]";
|
|
1806
|
+
readonly internalType: "uint256[]";
|
|
1807
|
+
}];
|
|
1808
|
+
readonly outputs: readonly [];
|
|
1809
|
+
readonly stateMutability: "nonpayable";
|
|
1810
|
+
}, {
|
|
1811
|
+
readonly type: "function";
|
|
1812
|
+
readonly name: "claimTreasury";
|
|
1813
|
+
readonly inputs: readonly [];
|
|
1814
|
+
readonly outputs: readonly [];
|
|
1815
|
+
readonly stateMutability: "nonpayable";
|
|
1816
|
+
}, {
|
|
1817
|
+
readonly type: "function";
|
|
1818
|
+
readonly name: "claimable";
|
|
1819
|
+
readonly inputs: readonly [{
|
|
1820
|
+
readonly name: "market";
|
|
1821
|
+
readonly type: "bytes32";
|
|
1822
|
+
readonly internalType: "bytes32";
|
|
1823
|
+
}, {
|
|
1824
|
+
readonly name: "epoch";
|
|
1825
|
+
readonly type: "uint256";
|
|
1826
|
+
readonly internalType: "uint256";
|
|
1827
|
+
}, {
|
|
1828
|
+
readonly name: "wallet";
|
|
1829
|
+
readonly type: "address";
|
|
1830
|
+
readonly internalType: "address";
|
|
1831
|
+
}];
|
|
1832
|
+
readonly outputs: readonly [{
|
|
1833
|
+
readonly name: "";
|
|
1834
|
+
readonly type: "uint256";
|
|
1835
|
+
readonly internalType: "uint256";
|
|
1836
|
+
}];
|
|
1837
|
+
readonly stateMutability: "view";
|
|
1838
|
+
}, {
|
|
1839
|
+
readonly type: "function";
|
|
1840
|
+
readonly name: "closeAt";
|
|
1841
|
+
readonly inputs: readonly [{
|
|
1842
|
+
readonly name: "epoch";
|
|
1843
|
+
readonly type: "uint256";
|
|
1844
|
+
readonly internalType: "uint256";
|
|
1845
|
+
}];
|
|
1846
|
+
readonly outputs: readonly [{
|
|
1847
|
+
readonly name: "";
|
|
1848
|
+
readonly type: "uint64";
|
|
1849
|
+
readonly internalType: "uint64";
|
|
1850
|
+
}];
|
|
1851
|
+
readonly stateMutability: "pure";
|
|
1852
|
+
}, {
|
|
1853
|
+
readonly type: "function";
|
|
1854
|
+
readonly name: "currentEpoch";
|
|
1855
|
+
readonly inputs: readonly [];
|
|
1856
|
+
readonly outputs: readonly [{
|
|
1857
|
+
readonly name: "";
|
|
1858
|
+
readonly type: "uint256";
|
|
1859
|
+
readonly internalType: "uint256";
|
|
1860
|
+
}];
|
|
1861
|
+
readonly stateMutability: "view";
|
|
1862
|
+
}, {
|
|
1863
|
+
readonly type: "function";
|
|
1864
|
+
readonly name: "guardian";
|
|
1865
|
+
readonly inputs: readonly [];
|
|
1866
|
+
readonly outputs: readonly [{
|
|
1867
|
+
readonly name: "";
|
|
1868
|
+
readonly type: "address";
|
|
1869
|
+
readonly internalType: "address";
|
|
1870
|
+
}];
|
|
1871
|
+
readonly stateMutability: "view";
|
|
1872
|
+
}, {
|
|
1873
|
+
readonly type: "function";
|
|
1874
|
+
readonly name: "limitOf";
|
|
1875
|
+
readonly inputs: readonly [{
|
|
1876
|
+
readonly name: "wallet";
|
|
1877
|
+
readonly type: "address";
|
|
1878
|
+
readonly internalType: "address";
|
|
1879
|
+
}];
|
|
1880
|
+
readonly outputs: readonly [{
|
|
1881
|
+
readonly name: "cap";
|
|
1882
|
+
readonly type: "uint256";
|
|
1883
|
+
readonly internalType: "uint256";
|
|
1884
|
+
}, {
|
|
1885
|
+
readonly name: "pendingCap";
|
|
1886
|
+
readonly type: "uint256";
|
|
1887
|
+
readonly internalType: "uint256";
|
|
1888
|
+
}, {
|
|
1889
|
+
readonly name: "pendingAt";
|
|
1890
|
+
readonly type: "uint64";
|
|
1891
|
+
readonly internalType: "uint64";
|
|
1892
|
+
}, {
|
|
1893
|
+
readonly name: "spentToday";
|
|
1894
|
+
readonly type: "uint256";
|
|
1895
|
+
readonly internalType: "uint256";
|
|
1896
|
+
}];
|
|
1897
|
+
readonly stateMutability: "view";
|
|
1898
|
+
}, {
|
|
1899
|
+
readonly type: "function";
|
|
1900
|
+
readonly name: "lockAt";
|
|
1901
|
+
readonly inputs: readonly [{
|
|
1902
|
+
readonly name: "epoch";
|
|
1903
|
+
readonly type: "uint256";
|
|
1904
|
+
readonly internalType: "uint256";
|
|
1905
|
+
}];
|
|
1906
|
+
readonly outputs: readonly [{
|
|
1907
|
+
readonly name: "";
|
|
1908
|
+
readonly type: "uint64";
|
|
1909
|
+
readonly internalType: "uint64";
|
|
1910
|
+
}];
|
|
1911
|
+
readonly stateMutability: "pure";
|
|
1912
|
+
}, {
|
|
1913
|
+
readonly type: "function";
|
|
1914
|
+
readonly name: "markets";
|
|
1915
|
+
readonly inputs: readonly [{
|
|
1916
|
+
readonly name: "market";
|
|
1917
|
+
readonly type: "bytes32";
|
|
1918
|
+
readonly internalType: "bytes32";
|
|
1919
|
+
}];
|
|
1920
|
+
readonly outputs: readonly [{
|
|
1921
|
+
readonly name: "source";
|
|
1922
|
+
readonly type: "address";
|
|
1923
|
+
readonly internalType: "contract IPriceSource";
|
|
1924
|
+
}, {
|
|
1925
|
+
readonly name: "paused";
|
|
1926
|
+
readonly type: "bool";
|
|
1927
|
+
readonly internalType: "bool";
|
|
1928
|
+
}];
|
|
1929
|
+
readonly stateMutability: "view";
|
|
1930
|
+
}, {
|
|
1931
|
+
readonly type: "function";
|
|
1932
|
+
readonly name: "payoutIfWon";
|
|
1933
|
+
readonly inputs: readonly [{
|
|
1934
|
+
readonly name: "market";
|
|
1935
|
+
readonly type: "bytes32";
|
|
1936
|
+
readonly internalType: "bytes32";
|
|
1937
|
+
}, {
|
|
1938
|
+
readonly name: "epoch";
|
|
1939
|
+
readonly type: "uint256";
|
|
1940
|
+
readonly internalType: "uint256";
|
|
1941
|
+
}, {
|
|
1942
|
+
readonly name: "up";
|
|
1943
|
+
readonly type: "bool";
|
|
1944
|
+
readonly internalType: "bool";
|
|
1945
|
+
}, {
|
|
1946
|
+
readonly name: "stake";
|
|
1947
|
+
readonly type: "uint256";
|
|
1948
|
+
readonly internalType: "uint256";
|
|
1949
|
+
}];
|
|
1950
|
+
readonly outputs: readonly [{
|
|
1951
|
+
readonly name: "";
|
|
1952
|
+
readonly type: "uint256";
|
|
1953
|
+
readonly internalType: "uint256";
|
|
1954
|
+
}];
|
|
1955
|
+
readonly stateMutability: "view";
|
|
1956
|
+
}, {
|
|
1957
|
+
readonly type: "function";
|
|
1958
|
+
readonly name: "pendingGuardian";
|
|
1959
|
+
readonly inputs: readonly [];
|
|
1960
|
+
readonly outputs: readonly [{
|
|
1961
|
+
readonly name: "";
|
|
1962
|
+
readonly type: "address";
|
|
1963
|
+
readonly internalType: "address";
|
|
1964
|
+
}];
|
|
1965
|
+
readonly stateMutability: "view";
|
|
1966
|
+
}, {
|
|
1967
|
+
readonly type: "function";
|
|
1968
|
+
readonly name: "positionOf";
|
|
1969
|
+
readonly inputs: readonly [{
|
|
1970
|
+
readonly name: "market";
|
|
1971
|
+
readonly type: "bytes32";
|
|
1972
|
+
readonly internalType: "bytes32";
|
|
1973
|
+
}, {
|
|
1974
|
+
readonly name: "epoch";
|
|
1975
|
+
readonly type: "uint256";
|
|
1976
|
+
readonly internalType: "uint256";
|
|
1977
|
+
}, {
|
|
1978
|
+
readonly name: "wallet";
|
|
1979
|
+
readonly type: "address";
|
|
1980
|
+
readonly internalType: "address";
|
|
1981
|
+
}];
|
|
1982
|
+
readonly outputs: readonly [{
|
|
1983
|
+
readonly name: "stake";
|
|
1984
|
+
readonly type: "uint256";
|
|
1985
|
+
readonly internalType: "uint256";
|
|
1986
|
+
}, {
|
|
1987
|
+
readonly name: "up";
|
|
1988
|
+
readonly type: "bool";
|
|
1989
|
+
readonly internalType: "bool";
|
|
1990
|
+
}, {
|
|
1991
|
+
readonly name: "claimed";
|
|
1992
|
+
readonly type: "bool";
|
|
1993
|
+
readonly internalType: "bool";
|
|
1994
|
+
}];
|
|
1995
|
+
readonly stateMutability: "view";
|
|
1996
|
+
}, {
|
|
1997
|
+
readonly type: "function";
|
|
1998
|
+
readonly name: "prices";
|
|
1999
|
+
readonly inputs: readonly [{
|
|
2000
|
+
readonly name: "market";
|
|
2001
|
+
readonly type: "bytes32";
|
|
2002
|
+
readonly internalType: "bytes32";
|
|
2003
|
+
}, {
|
|
2004
|
+
readonly name: "boundary";
|
|
2005
|
+
readonly type: "uint64";
|
|
2006
|
+
readonly internalType: "uint64";
|
|
2007
|
+
}];
|
|
2008
|
+
readonly outputs: readonly [{
|
|
2009
|
+
readonly name: "";
|
|
2010
|
+
readonly type: "uint64";
|
|
2011
|
+
readonly internalType: "uint64";
|
|
2012
|
+
}];
|
|
2013
|
+
readonly stateMutability: "view";
|
|
2014
|
+
}, {
|
|
2015
|
+
readonly type: "function";
|
|
2016
|
+
readonly name: "proposeGuardian";
|
|
2017
|
+
readonly inputs: readonly [{
|
|
2018
|
+
readonly name: "guardian_";
|
|
2019
|
+
readonly type: "address";
|
|
2020
|
+
readonly internalType: "address";
|
|
2021
|
+
}];
|
|
2022
|
+
readonly outputs: readonly [];
|
|
2023
|
+
readonly stateMutability: "nonpayable";
|
|
2024
|
+
}, {
|
|
2025
|
+
readonly type: "function";
|
|
2026
|
+
readonly name: "roundOf";
|
|
2027
|
+
readonly inputs: readonly [{
|
|
2028
|
+
readonly name: "market";
|
|
2029
|
+
readonly type: "bytes32";
|
|
2030
|
+
readonly internalType: "bytes32";
|
|
2031
|
+
}, {
|
|
2032
|
+
readonly name: "epoch";
|
|
2033
|
+
readonly type: "uint256";
|
|
2034
|
+
readonly internalType: "uint256";
|
|
2035
|
+
}];
|
|
2036
|
+
readonly outputs: readonly [{
|
|
2037
|
+
readonly name: "upPool";
|
|
2038
|
+
readonly type: "uint256";
|
|
2039
|
+
readonly internalType: "uint256";
|
|
2040
|
+
}, {
|
|
2041
|
+
readonly name: "downPool";
|
|
2042
|
+
readonly type: "uint256";
|
|
2043
|
+
readonly internalType: "uint256";
|
|
2044
|
+
}, {
|
|
2045
|
+
readonly name: "outcome";
|
|
2046
|
+
readonly type: "uint8";
|
|
2047
|
+
readonly internalType: "enum Outcome";
|
|
2048
|
+
}, {
|
|
2049
|
+
readonly name: "lockPrice";
|
|
2050
|
+
readonly type: "uint64";
|
|
2051
|
+
readonly internalType: "uint64";
|
|
2052
|
+
}, {
|
|
2053
|
+
readonly name: "closePrice";
|
|
2054
|
+
readonly type: "uint64";
|
|
2055
|
+
readonly internalType: "uint64";
|
|
2056
|
+
}, {
|
|
2057
|
+
readonly name: "decidedAt";
|
|
2058
|
+
readonly type: "uint64";
|
|
2059
|
+
readonly internalType: "uint64";
|
|
2060
|
+
}];
|
|
2061
|
+
readonly stateMutability: "view";
|
|
2062
|
+
}, {
|
|
2063
|
+
readonly type: "function";
|
|
2064
|
+
readonly name: "setLimit";
|
|
2065
|
+
readonly inputs: readonly [{
|
|
2066
|
+
readonly name: "cap";
|
|
2067
|
+
readonly type: "uint256";
|
|
2068
|
+
readonly internalType: "uint256";
|
|
2069
|
+
}];
|
|
2070
|
+
readonly outputs: readonly [];
|
|
2071
|
+
readonly stateMutability: "nonpayable";
|
|
2072
|
+
}, {
|
|
2073
|
+
readonly type: "function";
|
|
2074
|
+
readonly name: "setPaused";
|
|
2075
|
+
readonly inputs: readonly [{
|
|
2076
|
+
readonly name: "market";
|
|
2077
|
+
readonly type: "bytes32";
|
|
2078
|
+
readonly internalType: "bytes32";
|
|
2079
|
+
}, {
|
|
2080
|
+
readonly name: "paused";
|
|
2081
|
+
readonly type: "bool";
|
|
2082
|
+
readonly internalType: "bool";
|
|
2083
|
+
}];
|
|
2084
|
+
readonly outputs: readonly [];
|
|
2085
|
+
readonly stateMutability: "nonpayable";
|
|
2086
|
+
}, {
|
|
2087
|
+
readonly type: "function";
|
|
2088
|
+
readonly name: "setTreasury";
|
|
2089
|
+
readonly inputs: readonly [{
|
|
2090
|
+
readonly name: "treasury_";
|
|
2091
|
+
readonly type: "address";
|
|
2092
|
+
readonly internalType: "address";
|
|
2093
|
+
}];
|
|
2094
|
+
readonly outputs: readonly [];
|
|
2095
|
+
readonly stateMutability: "nonpayable";
|
|
2096
|
+
}, {
|
|
2097
|
+
readonly type: "function";
|
|
2098
|
+
readonly name: "treasury";
|
|
2099
|
+
readonly inputs: readonly [];
|
|
2100
|
+
readonly outputs: readonly [{
|
|
2101
|
+
readonly name: "";
|
|
2102
|
+
readonly type: "address";
|
|
2103
|
+
readonly internalType: "address";
|
|
2104
|
+
}];
|
|
2105
|
+
readonly stateMutability: "view";
|
|
2106
|
+
}, {
|
|
2107
|
+
readonly type: "function";
|
|
2108
|
+
readonly name: "treasuryOwed";
|
|
2109
|
+
readonly inputs: readonly [];
|
|
2110
|
+
readonly outputs: readonly [{
|
|
2111
|
+
readonly name: "";
|
|
2112
|
+
readonly type: "uint256";
|
|
2113
|
+
readonly internalType: "uint256";
|
|
2114
|
+
}];
|
|
2115
|
+
readonly stateMutability: "view";
|
|
2116
|
+
}, {
|
|
2117
|
+
readonly type: "function";
|
|
2118
|
+
readonly name: "voidRound";
|
|
2119
|
+
readonly inputs: readonly [{
|
|
2120
|
+
readonly name: "market";
|
|
2121
|
+
readonly type: "bytes32";
|
|
2122
|
+
readonly internalType: "bytes32";
|
|
2123
|
+
}, {
|
|
2124
|
+
readonly name: "epoch";
|
|
2125
|
+
readonly type: "uint256";
|
|
2126
|
+
readonly internalType: "uint256";
|
|
2127
|
+
}];
|
|
2128
|
+
readonly outputs: readonly [];
|
|
2129
|
+
readonly stateMutability: "nonpayable";
|
|
2130
|
+
}, {
|
|
2131
|
+
readonly type: "event";
|
|
2132
|
+
readonly name: "Bet";
|
|
2133
|
+
readonly inputs: readonly [{
|
|
2134
|
+
readonly name: "market";
|
|
2135
|
+
readonly type: "bytes32";
|
|
2136
|
+
readonly indexed: true;
|
|
2137
|
+
readonly internalType: "bytes32";
|
|
2138
|
+
}, {
|
|
2139
|
+
readonly name: "epoch";
|
|
2140
|
+
readonly type: "uint256";
|
|
2141
|
+
readonly indexed: true;
|
|
2142
|
+
readonly internalType: "uint256";
|
|
2143
|
+
}, {
|
|
2144
|
+
readonly name: "wallet";
|
|
2145
|
+
readonly type: "address";
|
|
2146
|
+
readonly indexed: true;
|
|
2147
|
+
readonly internalType: "address";
|
|
2148
|
+
}, {
|
|
2149
|
+
readonly name: "up";
|
|
2150
|
+
readonly type: "bool";
|
|
2151
|
+
readonly indexed: false;
|
|
2152
|
+
readonly internalType: "bool";
|
|
2153
|
+
}, {
|
|
2154
|
+
readonly name: "amount";
|
|
2155
|
+
readonly type: "uint256";
|
|
2156
|
+
readonly indexed: false;
|
|
2157
|
+
readonly internalType: "uint256";
|
|
2158
|
+
}, {
|
|
2159
|
+
readonly name: "upPool";
|
|
2160
|
+
readonly type: "uint256";
|
|
2161
|
+
readonly indexed: false;
|
|
2162
|
+
readonly internalType: "uint256";
|
|
2163
|
+
}, {
|
|
2164
|
+
readonly name: "downPool";
|
|
2165
|
+
readonly type: "uint256";
|
|
2166
|
+
readonly indexed: false;
|
|
2167
|
+
readonly internalType: "uint256";
|
|
2168
|
+
}];
|
|
2169
|
+
readonly anonymous: false;
|
|
2170
|
+
}, {
|
|
2171
|
+
readonly type: "event";
|
|
2172
|
+
readonly name: "Claimed";
|
|
2173
|
+
readonly inputs: readonly [{
|
|
2174
|
+
readonly name: "market";
|
|
2175
|
+
readonly type: "bytes32";
|
|
2176
|
+
readonly indexed: true;
|
|
2177
|
+
readonly internalType: "bytes32";
|
|
2178
|
+
}, {
|
|
2179
|
+
readonly name: "epoch";
|
|
2180
|
+
readonly type: "uint256";
|
|
2181
|
+
readonly indexed: true;
|
|
2182
|
+
readonly internalType: "uint256";
|
|
2183
|
+
}, {
|
|
2184
|
+
readonly name: "wallet";
|
|
2185
|
+
readonly type: "address";
|
|
2186
|
+
readonly indexed: true;
|
|
2187
|
+
readonly internalType: "address";
|
|
2188
|
+
}, {
|
|
2189
|
+
readonly name: "amount";
|
|
2190
|
+
readonly type: "uint256";
|
|
2191
|
+
readonly indexed: false;
|
|
2192
|
+
readonly internalType: "uint256";
|
|
2193
|
+
}];
|
|
2194
|
+
readonly anonymous: false;
|
|
2195
|
+
}, {
|
|
2196
|
+
readonly type: "event";
|
|
2197
|
+
readonly name: "Decided";
|
|
2198
|
+
readonly inputs: readonly [{
|
|
2199
|
+
readonly name: "market";
|
|
2200
|
+
readonly type: "bytes32";
|
|
2201
|
+
readonly indexed: true;
|
|
2202
|
+
readonly internalType: "bytes32";
|
|
2203
|
+
}, {
|
|
2204
|
+
readonly name: "epoch";
|
|
2205
|
+
readonly type: "uint256";
|
|
2206
|
+
readonly indexed: true;
|
|
2207
|
+
readonly internalType: "uint256";
|
|
2208
|
+
}, {
|
|
2209
|
+
readonly name: "outcome";
|
|
2210
|
+
readonly type: "uint8";
|
|
2211
|
+
readonly indexed: false;
|
|
2212
|
+
readonly internalType: "enum Outcome";
|
|
2213
|
+
}, {
|
|
2214
|
+
readonly name: "lockPrice";
|
|
2215
|
+
readonly type: "uint64";
|
|
2216
|
+
readonly indexed: false;
|
|
2217
|
+
readonly internalType: "uint64";
|
|
2218
|
+
}, {
|
|
2219
|
+
readonly name: "closePrice";
|
|
2220
|
+
readonly type: "uint64";
|
|
2221
|
+
readonly indexed: false;
|
|
2222
|
+
readonly internalType: "uint64";
|
|
2223
|
+
}, {
|
|
2224
|
+
readonly name: "pool";
|
|
2225
|
+
readonly type: "uint256";
|
|
2226
|
+
readonly indexed: false;
|
|
2227
|
+
readonly internalType: "uint256";
|
|
2228
|
+
}, {
|
|
2229
|
+
readonly name: "rake";
|
|
2230
|
+
readonly type: "uint256";
|
|
2231
|
+
readonly indexed: false;
|
|
2232
|
+
readonly internalType: "uint256";
|
|
2233
|
+
}];
|
|
2234
|
+
readonly anonymous: false;
|
|
2235
|
+
}, {
|
|
2236
|
+
readonly type: "event";
|
|
2237
|
+
readonly name: "GuardianChanged";
|
|
2238
|
+
readonly inputs: readonly [{
|
|
2239
|
+
readonly name: "guardian";
|
|
2240
|
+
readonly type: "address";
|
|
2241
|
+
readonly indexed: true;
|
|
2242
|
+
readonly internalType: "address";
|
|
2243
|
+
}];
|
|
2244
|
+
readonly anonymous: false;
|
|
2245
|
+
}, {
|
|
2246
|
+
readonly type: "event";
|
|
2247
|
+
readonly name: "GuardianProposed";
|
|
2248
|
+
readonly inputs: readonly [{
|
|
2249
|
+
readonly name: "guardian";
|
|
2250
|
+
readonly type: "address";
|
|
2251
|
+
readonly indexed: true;
|
|
2252
|
+
readonly internalType: "address";
|
|
2253
|
+
}];
|
|
2254
|
+
readonly anonymous: false;
|
|
2255
|
+
}, {
|
|
2256
|
+
readonly type: "event";
|
|
2257
|
+
readonly name: "LimitSet";
|
|
2258
|
+
readonly inputs: readonly [{
|
|
2259
|
+
readonly name: "wallet";
|
|
2260
|
+
readonly type: "address";
|
|
2261
|
+
readonly indexed: true;
|
|
2262
|
+
readonly internalType: "address";
|
|
2263
|
+
}, {
|
|
2264
|
+
readonly name: "cap";
|
|
2265
|
+
readonly type: "uint256";
|
|
2266
|
+
readonly indexed: false;
|
|
2267
|
+
readonly internalType: "uint256";
|
|
2268
|
+
}, {
|
|
2269
|
+
readonly name: "effectiveAt";
|
|
2270
|
+
readonly type: "uint64";
|
|
2271
|
+
readonly indexed: false;
|
|
2272
|
+
readonly internalType: "uint64";
|
|
2273
|
+
}];
|
|
2274
|
+
readonly anonymous: false;
|
|
2275
|
+
}, {
|
|
2276
|
+
readonly type: "event";
|
|
2277
|
+
readonly name: "MarketAdded";
|
|
2278
|
+
readonly inputs: readonly [{
|
|
2279
|
+
readonly name: "market";
|
|
2280
|
+
readonly type: "bytes32";
|
|
2281
|
+
readonly indexed: true;
|
|
2282
|
+
readonly internalType: "bytes32";
|
|
2283
|
+
}, {
|
|
2284
|
+
readonly name: "source";
|
|
2285
|
+
readonly type: "address";
|
|
2286
|
+
readonly indexed: false;
|
|
2287
|
+
readonly internalType: "address";
|
|
2288
|
+
}];
|
|
2289
|
+
readonly anonymous: false;
|
|
2290
|
+
}, {
|
|
2291
|
+
readonly type: "event";
|
|
2292
|
+
readonly name: "MarketPauseSet";
|
|
2293
|
+
readonly inputs: readonly [{
|
|
2294
|
+
readonly name: "market";
|
|
2295
|
+
readonly type: "bytes32";
|
|
2296
|
+
readonly indexed: true;
|
|
2297
|
+
readonly internalType: "bytes32";
|
|
2298
|
+
}, {
|
|
2299
|
+
readonly name: "paused";
|
|
2300
|
+
readonly type: "bool";
|
|
2301
|
+
readonly indexed: false;
|
|
2302
|
+
readonly internalType: "bool";
|
|
2303
|
+
}];
|
|
2304
|
+
readonly anonymous: false;
|
|
2305
|
+
}, {
|
|
2306
|
+
readonly type: "event";
|
|
2307
|
+
readonly name: "Priced";
|
|
2308
|
+
readonly inputs: readonly [{
|
|
2309
|
+
readonly name: "market";
|
|
2310
|
+
readonly type: "bytes32";
|
|
2311
|
+
readonly indexed: true;
|
|
2312
|
+
readonly internalType: "bytes32";
|
|
2313
|
+
}, {
|
|
2314
|
+
readonly name: "boundary";
|
|
2315
|
+
readonly type: "uint64";
|
|
2316
|
+
readonly indexed: true;
|
|
2317
|
+
readonly internalType: "uint64";
|
|
2318
|
+
}, {
|
|
2319
|
+
readonly name: "price";
|
|
2320
|
+
readonly type: "uint64";
|
|
2321
|
+
readonly indexed: false;
|
|
2322
|
+
readonly internalType: "uint64";
|
|
2323
|
+
}, {
|
|
2324
|
+
readonly name: "sender";
|
|
2325
|
+
readonly type: "address";
|
|
2326
|
+
readonly indexed: false;
|
|
2327
|
+
readonly internalType: "address";
|
|
2328
|
+
}];
|
|
2329
|
+
readonly anonymous: false;
|
|
2330
|
+
}, {
|
|
2331
|
+
readonly type: "event";
|
|
2332
|
+
readonly name: "TreasuryChanged";
|
|
2333
|
+
readonly inputs: readonly [{
|
|
2334
|
+
readonly name: "treasury";
|
|
2335
|
+
readonly type: "address";
|
|
2336
|
+
readonly indexed: true;
|
|
2337
|
+
readonly internalType: "address";
|
|
2338
|
+
}];
|
|
2339
|
+
readonly anonymous: false;
|
|
2340
|
+
}, {
|
|
2341
|
+
readonly type: "event";
|
|
2342
|
+
readonly name: "TreasuryPaid";
|
|
2343
|
+
readonly inputs: readonly [{
|
|
2344
|
+
readonly name: "treasury";
|
|
2345
|
+
readonly type: "address";
|
|
2346
|
+
readonly indexed: true;
|
|
2347
|
+
readonly internalType: "address";
|
|
2348
|
+
}, {
|
|
2349
|
+
readonly name: "amount";
|
|
2350
|
+
readonly type: "uint256";
|
|
2351
|
+
readonly indexed: false;
|
|
2352
|
+
readonly internalType: "uint256";
|
|
2353
|
+
}];
|
|
2354
|
+
readonly anonymous: false;
|
|
2355
|
+
}, {
|
|
2356
|
+
readonly type: "event";
|
|
2357
|
+
readonly name: "Voided";
|
|
2358
|
+
readonly inputs: readonly [{
|
|
2359
|
+
readonly name: "market";
|
|
2360
|
+
readonly type: "bytes32";
|
|
2361
|
+
readonly indexed: true;
|
|
2362
|
+
readonly internalType: "bytes32";
|
|
2363
|
+
}, {
|
|
2364
|
+
readonly name: "epoch";
|
|
2365
|
+
readonly type: "uint256";
|
|
2366
|
+
readonly indexed: true;
|
|
2367
|
+
readonly internalType: "uint256";
|
|
2368
|
+
}];
|
|
2369
|
+
readonly anonymous: false;
|
|
2370
|
+
}, {
|
|
2371
|
+
readonly type: "error";
|
|
2372
|
+
readonly name: "AlreadyDecided";
|
|
2373
|
+
readonly inputs: readonly [];
|
|
2374
|
+
}, {
|
|
2375
|
+
readonly type: "error";
|
|
2376
|
+
readonly name: "AlreadyPriced";
|
|
2377
|
+
readonly inputs: readonly [];
|
|
2378
|
+
}, {
|
|
2379
|
+
readonly type: "error";
|
|
2380
|
+
readonly name: "BadBoundary";
|
|
2381
|
+
readonly inputs: readonly [];
|
|
2382
|
+
}, {
|
|
2383
|
+
readonly type: "error";
|
|
2384
|
+
readonly name: "BadInput";
|
|
2385
|
+
readonly inputs: readonly [];
|
|
2386
|
+
}, {
|
|
2387
|
+
readonly type: "error";
|
|
2388
|
+
readonly name: "BadPrice";
|
|
2389
|
+
readonly inputs: readonly [];
|
|
2390
|
+
}, {
|
|
2391
|
+
readonly type: "error";
|
|
2392
|
+
readonly name: "BelowMinimum";
|
|
2393
|
+
readonly inputs: readonly [];
|
|
2394
|
+
}, {
|
|
2395
|
+
readonly type: "error";
|
|
2396
|
+
readonly name: "MarketExists";
|
|
2397
|
+
readonly inputs: readonly [];
|
|
2398
|
+
}, {
|
|
2399
|
+
readonly type: "error";
|
|
2400
|
+
readonly name: "MarketPaused";
|
|
2401
|
+
readonly inputs: readonly [];
|
|
2402
|
+
}, {
|
|
2403
|
+
readonly type: "error";
|
|
2404
|
+
readonly name: "NotGuardian";
|
|
2405
|
+
readonly inputs: readonly [];
|
|
2406
|
+
}, {
|
|
2407
|
+
readonly type: "error";
|
|
2408
|
+
readonly name: "NotPendingGuardian";
|
|
2409
|
+
readonly inputs: readonly [];
|
|
2410
|
+
}, {
|
|
2411
|
+
readonly type: "error";
|
|
2412
|
+
readonly name: "NothingToClaim";
|
|
2413
|
+
readonly inputs: readonly [];
|
|
2414
|
+
}, {
|
|
2415
|
+
readonly type: "error";
|
|
2416
|
+
readonly name: "OtherSide";
|
|
2417
|
+
readonly inputs: readonly [];
|
|
2418
|
+
}, {
|
|
2419
|
+
readonly type: "error";
|
|
2420
|
+
readonly name: "OverDailyLimit";
|
|
2421
|
+
readonly inputs: readonly [];
|
|
2422
|
+
}, {
|
|
2423
|
+
readonly type: "error";
|
|
2424
|
+
readonly name: "OverStakeCap";
|
|
2425
|
+
readonly inputs: readonly [];
|
|
2426
|
+
}, {
|
|
2427
|
+
readonly type: "error";
|
|
2428
|
+
readonly name: "ReentrancyGuardReentrantCall";
|
|
2429
|
+
readonly inputs: readonly [];
|
|
2430
|
+
}, {
|
|
2431
|
+
readonly type: "error";
|
|
2432
|
+
readonly name: "TooEarly";
|
|
2433
|
+
readonly inputs: readonly [];
|
|
2434
|
+
}, {
|
|
2435
|
+
readonly type: "error";
|
|
2436
|
+
readonly name: "TooLate";
|
|
2437
|
+
readonly inputs: readonly [];
|
|
2438
|
+
}, {
|
|
2439
|
+
readonly type: "error";
|
|
2440
|
+
readonly name: "TransferFailed";
|
|
2441
|
+
readonly inputs: readonly [];
|
|
2442
|
+
}, {
|
|
2443
|
+
readonly type: "error";
|
|
2444
|
+
readonly name: "UnknownMarket";
|
|
2445
|
+
readonly inputs: readonly [];
|
|
2446
|
+
}, {
|
|
2447
|
+
readonly type: "error";
|
|
2448
|
+
readonly name: "ZeroAddress";
|
|
2449
|
+
readonly inputs: readonly [];
|
|
2450
|
+
}];
|