@ripe-finance/sdk 1.15.1 → 1.15.3
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/contracts/AeroClassicLego.d.ts +85 -13
- package/dist/contracts/AeroClassicLego.d.ts.map +1 -1
- package/dist/contracts/AeroClassicLego.js +106 -17
- package/dist/contracts/ChainlinkPrices.d.ts +3 -0
- package/dist/contracts/ChainlinkPrices.d.ts.map +1 -1
- package/dist/contracts/ChainlinkPrices.js +5 -1
- package/dist/contracts/DefaultsBase.d.ts +260 -40
- package/dist/contracts/DefaultsBase.d.ts.map +1 -1
- package/dist/contracts/DefaultsBase.js +266 -35
- package/dist/contracts/MissionControl.d.ts +45 -6
- package/dist/contracts/MissionControl.d.ts.map +1 -1
- package/dist/contracts/MissionControl.js +58 -6
- package/dist/contracts/PythPrices.js +1 -1
- package/dist/contracts/RedStone.js +1 -1
- package/dist/contracts/StorkPrices.js +1 -1
- package/dist/contracts/Switchboard.js +1 -1
- package/dist/contracts/SwitchboardAlpha.d.ts +590 -301
- package/dist/contracts/SwitchboardAlpha.d.ts.map +1 -1
- package/dist/contracts/SwitchboardAlpha.js +707 -277
- package/dist/contracts/SwitchboardBravo.d.ts +241 -191
- package/dist/contracts/SwitchboardBravo.d.ts.map +1 -1
- package/dist/contracts/SwitchboardBravo.js +301 -217
- package/dist/contracts/SwitchboardCharlie.d.ts +786 -28
- package/dist/contracts/SwitchboardCharlie.d.ts.map +1 -1
- package/dist/contracts/SwitchboardCharlie.js +1440 -470
- package/dist/contracts/SwitchboardDelta.d.ts +519 -8
- package/dist/contracts/SwitchboardDelta.d.ts.map +1 -1
- package/dist/contracts/SwitchboardDelta.js +702 -33
- package/dist/contracts/SwitchboardEcho.js +1 -1
- package/dist/contracts/UndyVaultPrices.js +1 -1
- package/dist/index.d.ts +96 -61
- package/dist/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -454,6 +454,40 @@ export const abi = [
|
|
|
454
454
|
anonymous: false,
|
|
455
455
|
type: 'event',
|
|
456
456
|
},
|
|
457
|
+
{
|
|
458
|
+
name: 'BondBoosterRemoved',
|
|
459
|
+
inputs: [
|
|
460
|
+
{
|
|
461
|
+
name: 'user',
|
|
462
|
+
type: 'address',
|
|
463
|
+
indexed: true,
|
|
464
|
+
},
|
|
465
|
+
],
|
|
466
|
+
anonymous: false,
|
|
467
|
+
type: 'event',
|
|
468
|
+
},
|
|
469
|
+
{
|
|
470
|
+
name: 'PendingBoosterConfigSet',
|
|
471
|
+
inputs: [
|
|
472
|
+
{
|
|
473
|
+
name: 'user',
|
|
474
|
+
type: 'address',
|
|
475
|
+
indexed: true,
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
name: 'confirmationBlock',
|
|
479
|
+
type: 'uint256',
|
|
480
|
+
indexed: false,
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
name: 'actionId',
|
|
484
|
+
type: 'uint256',
|
|
485
|
+
indexed: false,
|
|
486
|
+
},
|
|
487
|
+
],
|
|
488
|
+
anonymous: false,
|
|
489
|
+
type: 'event',
|
|
490
|
+
},
|
|
457
491
|
{
|
|
458
492
|
name: 'HrContribTemplateSet',
|
|
459
493
|
inputs: [
|
|
@@ -764,6 +798,176 @@ export const abi = [
|
|
|
764
798
|
anonymous: false,
|
|
765
799
|
type: 'event',
|
|
766
800
|
},
|
|
801
|
+
{
|
|
802
|
+
name: 'PendingRipeAvailableForRewardsChange',
|
|
803
|
+
inputs: [
|
|
804
|
+
{
|
|
805
|
+
name: 'amount',
|
|
806
|
+
type: 'uint256',
|
|
807
|
+
indexed: false,
|
|
808
|
+
},
|
|
809
|
+
{
|
|
810
|
+
name: 'confirmationBlock',
|
|
811
|
+
type: 'uint256',
|
|
812
|
+
indexed: false,
|
|
813
|
+
},
|
|
814
|
+
{
|
|
815
|
+
name: 'actionId',
|
|
816
|
+
type: 'uint256',
|
|
817
|
+
indexed: false,
|
|
818
|
+
},
|
|
819
|
+
],
|
|
820
|
+
anonymous: false,
|
|
821
|
+
type: 'event',
|
|
822
|
+
},
|
|
823
|
+
{
|
|
824
|
+
name: 'PendingRipeAvailableForHrChange',
|
|
825
|
+
inputs: [
|
|
826
|
+
{
|
|
827
|
+
name: 'amount',
|
|
828
|
+
type: 'uint256',
|
|
829
|
+
indexed: false,
|
|
830
|
+
},
|
|
831
|
+
{
|
|
832
|
+
name: 'confirmationBlock',
|
|
833
|
+
type: 'uint256',
|
|
834
|
+
indexed: false,
|
|
835
|
+
},
|
|
836
|
+
{
|
|
837
|
+
name: 'actionId',
|
|
838
|
+
type: 'uint256',
|
|
839
|
+
indexed: false,
|
|
840
|
+
},
|
|
841
|
+
],
|
|
842
|
+
anonymous: false,
|
|
843
|
+
type: 'event',
|
|
844
|
+
},
|
|
845
|
+
{
|
|
846
|
+
name: 'PendingRipeAvailableForBondsChange',
|
|
847
|
+
inputs: [
|
|
848
|
+
{
|
|
849
|
+
name: 'amount',
|
|
850
|
+
type: 'uint256',
|
|
851
|
+
indexed: false,
|
|
852
|
+
},
|
|
853
|
+
{
|
|
854
|
+
name: 'confirmationBlock',
|
|
855
|
+
type: 'uint256',
|
|
856
|
+
indexed: false,
|
|
857
|
+
},
|
|
858
|
+
{
|
|
859
|
+
name: 'actionId',
|
|
860
|
+
type: 'uint256',
|
|
861
|
+
indexed: false,
|
|
862
|
+
},
|
|
863
|
+
],
|
|
864
|
+
anonymous: false,
|
|
865
|
+
type: 'event',
|
|
866
|
+
},
|
|
867
|
+
{
|
|
868
|
+
name: 'RipeAvailableForRewardsSet',
|
|
869
|
+
inputs: [
|
|
870
|
+
{
|
|
871
|
+
name: 'amount',
|
|
872
|
+
type: 'uint256',
|
|
873
|
+
indexed: false,
|
|
874
|
+
},
|
|
875
|
+
],
|
|
876
|
+
anonymous: false,
|
|
877
|
+
type: 'event',
|
|
878
|
+
},
|
|
879
|
+
{
|
|
880
|
+
name: 'RipeAvailableForHrSet',
|
|
881
|
+
inputs: [
|
|
882
|
+
{
|
|
883
|
+
name: 'amount',
|
|
884
|
+
type: 'uint256',
|
|
885
|
+
indexed: false,
|
|
886
|
+
},
|
|
887
|
+
],
|
|
888
|
+
anonymous: false,
|
|
889
|
+
type: 'event',
|
|
890
|
+
},
|
|
891
|
+
{
|
|
892
|
+
name: 'RipeAvailableForBondsSet',
|
|
893
|
+
inputs: [
|
|
894
|
+
{
|
|
895
|
+
name: 'amount',
|
|
896
|
+
type: 'uint256',
|
|
897
|
+
indexed: false,
|
|
898
|
+
},
|
|
899
|
+
],
|
|
900
|
+
anonymous: false,
|
|
901
|
+
type: 'event',
|
|
902
|
+
},
|
|
903
|
+
{
|
|
904
|
+
name: 'PendingUnderscoreRegistryChange',
|
|
905
|
+
inputs: [
|
|
906
|
+
{
|
|
907
|
+
name: 'underscoreRegistry',
|
|
908
|
+
type: 'address',
|
|
909
|
+
indexed: false,
|
|
910
|
+
},
|
|
911
|
+
{
|
|
912
|
+
name: 'confirmationBlock',
|
|
913
|
+
type: 'uint256',
|
|
914
|
+
indexed: false,
|
|
915
|
+
},
|
|
916
|
+
{
|
|
917
|
+
name: 'actionId',
|
|
918
|
+
type: 'uint256',
|
|
919
|
+
indexed: false,
|
|
920
|
+
},
|
|
921
|
+
],
|
|
922
|
+
anonymous: false,
|
|
923
|
+
type: 'event',
|
|
924
|
+
},
|
|
925
|
+
{
|
|
926
|
+
name: 'PendingShouldCheckLastTouchChange',
|
|
927
|
+
inputs: [
|
|
928
|
+
{
|
|
929
|
+
name: 'shouldCheck',
|
|
930
|
+
type: 'bool',
|
|
931
|
+
indexed: false,
|
|
932
|
+
},
|
|
933
|
+
{
|
|
934
|
+
name: 'confirmationBlock',
|
|
935
|
+
type: 'uint256',
|
|
936
|
+
indexed: false,
|
|
937
|
+
},
|
|
938
|
+
{
|
|
939
|
+
name: 'actionId',
|
|
940
|
+
type: 'uint256',
|
|
941
|
+
indexed: false,
|
|
942
|
+
},
|
|
943
|
+
],
|
|
944
|
+
anonymous: false,
|
|
945
|
+
type: 'event',
|
|
946
|
+
},
|
|
947
|
+
{
|
|
948
|
+
name: 'UnderscoreRegistrySet',
|
|
949
|
+
inputs: [
|
|
950
|
+
{
|
|
951
|
+
name: 'addr',
|
|
952
|
+
type: 'address',
|
|
953
|
+
indexed: true,
|
|
954
|
+
},
|
|
955
|
+
],
|
|
956
|
+
anonymous: false,
|
|
957
|
+
type: 'event',
|
|
958
|
+
},
|
|
959
|
+
{
|
|
960
|
+
name: 'ShouldCheckLastTouchSet',
|
|
961
|
+
inputs: [
|
|
962
|
+
{
|
|
963
|
+
name: 'shouldCheck',
|
|
964
|
+
type: 'bool',
|
|
965
|
+
indexed: false,
|
|
966
|
+
},
|
|
967
|
+
],
|
|
968
|
+
anonymous: false,
|
|
969
|
+
type: 'event',
|
|
970
|
+
},
|
|
767
971
|
{
|
|
768
972
|
name: 'GovChangeTimeLockModified',
|
|
769
973
|
inputs: [
|
|
@@ -1553,11 +1757,15 @@ export const abi = [
|
|
|
1553
1757
|
{
|
|
1554
1758
|
stateMutability: 'nonpayable',
|
|
1555
1759
|
type: 'function',
|
|
1556
|
-
name: '
|
|
1760
|
+
name: 'setContributorTemplate',
|
|
1557
1761
|
inputs: [
|
|
1558
1762
|
{
|
|
1559
|
-
name: '
|
|
1560
|
-
type: '
|
|
1763
|
+
name: '_contribTemplate',
|
|
1764
|
+
type: 'address',
|
|
1765
|
+
},
|
|
1766
|
+
{
|
|
1767
|
+
name: '_missionControl',
|
|
1768
|
+
type: 'address',
|
|
1561
1769
|
},
|
|
1562
1770
|
],
|
|
1563
1771
|
outputs: [
|
|
@@ -1570,10 +1778,10 @@ export const abi = [
|
|
|
1570
1778
|
{
|
|
1571
1779
|
stateMutability: 'nonpayable',
|
|
1572
1780
|
type: 'function',
|
|
1573
|
-
name: '
|
|
1781
|
+
name: 'setMaxCompensation',
|
|
1574
1782
|
inputs: [
|
|
1575
1783
|
{
|
|
1576
|
-
name: '
|
|
1784
|
+
name: '_maxComp',
|
|
1577
1785
|
type: 'uint256',
|
|
1578
1786
|
},
|
|
1579
1787
|
],
|
|
@@ -1587,12 +1795,16 @@ export const abi = [
|
|
|
1587
1795
|
{
|
|
1588
1796
|
stateMutability: 'nonpayable',
|
|
1589
1797
|
type: 'function',
|
|
1590
|
-
name: '
|
|
1798
|
+
name: 'setMaxCompensation',
|
|
1591
1799
|
inputs: [
|
|
1592
1800
|
{
|
|
1593
|
-
name: '
|
|
1801
|
+
name: '_maxComp',
|
|
1594
1802
|
type: 'uint256',
|
|
1595
1803
|
},
|
|
1804
|
+
{
|
|
1805
|
+
name: '_missionControl',
|
|
1806
|
+
type: 'address',
|
|
1807
|
+
},
|
|
1596
1808
|
],
|
|
1597
1809
|
outputs: [
|
|
1598
1810
|
{
|
|
@@ -1604,14 +1816,10 @@ export const abi = [
|
|
|
1604
1816
|
{
|
|
1605
1817
|
stateMutability: 'nonpayable',
|
|
1606
1818
|
type: 'function',
|
|
1607
|
-
name: '
|
|
1819
|
+
name: 'setMinCliffLength',
|
|
1608
1820
|
inputs: [
|
|
1609
1821
|
{
|
|
1610
|
-
name: '
|
|
1611
|
-
type: 'uint256',
|
|
1612
|
-
},
|
|
1613
|
-
{
|
|
1614
|
-
name: '_maxVestingLength',
|
|
1822
|
+
name: '_minCliffLength',
|
|
1615
1823
|
type: 'uint256',
|
|
1616
1824
|
},
|
|
1617
1825
|
],
|
|
@@ -1625,10 +1833,14 @@ export const abi = [
|
|
|
1625
1833
|
{
|
|
1626
1834
|
stateMutability: 'nonpayable',
|
|
1627
1835
|
type: 'function',
|
|
1628
|
-
name: '
|
|
1836
|
+
name: 'setMinCliffLength',
|
|
1629
1837
|
inputs: [
|
|
1630
1838
|
{
|
|
1631
|
-
name: '
|
|
1839
|
+
name: '_minCliffLength',
|
|
1840
|
+
type: 'uint256',
|
|
1841
|
+
},
|
|
1842
|
+
{
|
|
1843
|
+
name: '_missionControl',
|
|
1632
1844
|
type: 'address',
|
|
1633
1845
|
},
|
|
1634
1846
|
],
|
|
@@ -1642,15 +1854,11 @@ export const abi = [
|
|
|
1642
1854
|
{
|
|
1643
1855
|
stateMutability: 'nonpayable',
|
|
1644
1856
|
type: 'function',
|
|
1645
|
-
name: '
|
|
1857
|
+
name: 'setMaxStartDelay',
|
|
1646
1858
|
inputs: [
|
|
1647
1859
|
{
|
|
1648
|
-
name: '
|
|
1649
|
-
type: '
|
|
1650
|
-
},
|
|
1651
|
-
{
|
|
1652
|
-
name: '_manager',
|
|
1653
|
-
type: 'address',
|
|
1860
|
+
name: '_maxStartDelay',
|
|
1861
|
+
type: 'uint256',
|
|
1654
1862
|
},
|
|
1655
1863
|
],
|
|
1656
1864
|
outputs: [
|
|
@@ -1663,45 +1871,150 @@ export const abi = [
|
|
|
1663
1871
|
{
|
|
1664
1872
|
stateMutability: 'nonpayable',
|
|
1665
1873
|
type: 'function',
|
|
1666
|
-
name: '
|
|
1874
|
+
name: 'setMaxStartDelay',
|
|
1667
1875
|
inputs: [
|
|
1668
1876
|
{
|
|
1669
|
-
name: '
|
|
1877
|
+
name: '_maxStartDelay',
|
|
1878
|
+
type: 'uint256',
|
|
1879
|
+
},
|
|
1880
|
+
{
|
|
1881
|
+
name: '_missionControl',
|
|
1670
1882
|
type: 'address',
|
|
1671
1883
|
},
|
|
1672
1884
|
],
|
|
1673
1885
|
outputs: [
|
|
1674
1886
|
{
|
|
1675
1887
|
name: '',
|
|
1676
|
-
type: '
|
|
1888
|
+
type: 'uint256',
|
|
1677
1889
|
},
|
|
1678
1890
|
],
|
|
1679
1891
|
},
|
|
1680
1892
|
{
|
|
1681
1893
|
stateMutability: 'nonpayable',
|
|
1682
1894
|
type: 'function',
|
|
1683
|
-
name: '
|
|
1895
|
+
name: 'setVestingLengthBoundaries',
|
|
1684
1896
|
inputs: [
|
|
1685
1897
|
{
|
|
1686
|
-
name: '
|
|
1687
|
-
type: '
|
|
1898
|
+
name: '_minVestingLength',
|
|
1899
|
+
type: 'uint256',
|
|
1900
|
+
},
|
|
1901
|
+
{
|
|
1902
|
+
name: '_maxVestingLength',
|
|
1903
|
+
type: 'uint256',
|
|
1688
1904
|
},
|
|
1689
1905
|
],
|
|
1690
1906
|
outputs: [
|
|
1691
1907
|
{
|
|
1692
1908
|
name: '',
|
|
1693
|
-
type: '
|
|
1909
|
+
type: 'uint256',
|
|
1694
1910
|
},
|
|
1695
1911
|
],
|
|
1696
1912
|
},
|
|
1697
1913
|
{
|
|
1698
1914
|
stateMutability: 'nonpayable',
|
|
1699
1915
|
type: 'function',
|
|
1700
|
-
name: '
|
|
1916
|
+
name: 'setVestingLengthBoundaries',
|
|
1701
1917
|
inputs: [
|
|
1702
1918
|
{
|
|
1703
|
-
name: '
|
|
1704
|
-
type: '
|
|
1919
|
+
name: '_minVestingLength',
|
|
1920
|
+
type: 'uint256',
|
|
1921
|
+
},
|
|
1922
|
+
{
|
|
1923
|
+
name: '_maxVestingLength',
|
|
1924
|
+
type: 'uint256',
|
|
1925
|
+
},
|
|
1926
|
+
{
|
|
1927
|
+
name: '_missionControl',
|
|
1928
|
+
type: 'address',
|
|
1929
|
+
},
|
|
1930
|
+
],
|
|
1931
|
+
outputs: [
|
|
1932
|
+
{
|
|
1933
|
+
name: '',
|
|
1934
|
+
type: 'uint256',
|
|
1935
|
+
},
|
|
1936
|
+
],
|
|
1937
|
+
},
|
|
1938
|
+
{
|
|
1939
|
+
stateMutability: 'nonpayable',
|
|
1940
|
+
type: 'function',
|
|
1941
|
+
name: 'cancelPaycheckForContributor',
|
|
1942
|
+
inputs: [
|
|
1943
|
+
{
|
|
1944
|
+
name: '_contributor',
|
|
1945
|
+
type: 'address',
|
|
1946
|
+
},
|
|
1947
|
+
],
|
|
1948
|
+
outputs: [
|
|
1949
|
+
{
|
|
1950
|
+
name: '',
|
|
1951
|
+
type: 'uint256',
|
|
1952
|
+
},
|
|
1953
|
+
],
|
|
1954
|
+
},
|
|
1955
|
+
{
|
|
1956
|
+
stateMutability: 'nonpayable',
|
|
1957
|
+
type: 'function',
|
|
1958
|
+
name: 'setManagerForContributor',
|
|
1959
|
+
inputs: [
|
|
1960
|
+
{
|
|
1961
|
+
name: '_contributor',
|
|
1962
|
+
type: 'address',
|
|
1963
|
+
},
|
|
1964
|
+
{
|
|
1965
|
+
name: '_manager',
|
|
1966
|
+
type: 'address',
|
|
1967
|
+
},
|
|
1968
|
+
],
|
|
1969
|
+
outputs: [
|
|
1970
|
+
{
|
|
1971
|
+
name: '',
|
|
1972
|
+
type: 'uint256',
|
|
1973
|
+
},
|
|
1974
|
+
],
|
|
1975
|
+
},
|
|
1976
|
+
{
|
|
1977
|
+
stateMutability: 'nonpayable',
|
|
1978
|
+
type: 'function',
|
|
1979
|
+
name: 'cashRipeCheckForContributor',
|
|
1980
|
+
inputs: [
|
|
1981
|
+
{
|
|
1982
|
+
name: '_contributor',
|
|
1983
|
+
type: 'address',
|
|
1984
|
+
},
|
|
1985
|
+
],
|
|
1986
|
+
outputs: [
|
|
1987
|
+
{
|
|
1988
|
+
name: '',
|
|
1989
|
+
type: 'bool',
|
|
1990
|
+
},
|
|
1991
|
+
],
|
|
1992
|
+
},
|
|
1993
|
+
{
|
|
1994
|
+
stateMutability: 'nonpayable',
|
|
1995
|
+
type: 'function',
|
|
1996
|
+
name: 'cancelRipeTransferForContributor',
|
|
1997
|
+
inputs: [
|
|
1998
|
+
{
|
|
1999
|
+
name: '_contributor',
|
|
2000
|
+
type: 'address',
|
|
2001
|
+
},
|
|
2002
|
+
],
|
|
2003
|
+
outputs: [
|
|
2004
|
+
{
|
|
2005
|
+
name: '',
|
|
2006
|
+
type: 'bool',
|
|
2007
|
+
},
|
|
2008
|
+
],
|
|
2009
|
+
},
|
|
2010
|
+
{
|
|
2011
|
+
stateMutability: 'nonpayable',
|
|
2012
|
+
type: 'function',
|
|
2013
|
+
name: 'cancelOwnershipChangeForContributor',
|
|
2014
|
+
inputs: [
|
|
2015
|
+
{
|
|
2016
|
+
name: '_contributor',
|
|
2017
|
+
type: 'address',
|
|
1705
2018
|
},
|
|
1706
2019
|
],
|
|
1707
2020
|
outputs: [
|
|
@@ -1773,6 +2086,68 @@ export const abi = [
|
|
|
1773
2086
|
},
|
|
1774
2087
|
],
|
|
1775
2088
|
},
|
|
2089
|
+
{
|
|
2090
|
+
stateMutability: 'nonpayable',
|
|
2091
|
+
type: 'function',
|
|
2092
|
+
name: 'setRipeBondConfig',
|
|
2093
|
+
inputs: [
|
|
2094
|
+
{
|
|
2095
|
+
name: '_asset',
|
|
2096
|
+
type: 'address',
|
|
2097
|
+
},
|
|
2098
|
+
{
|
|
2099
|
+
name: '_amountPerEpoch',
|
|
2100
|
+
type: 'uint256',
|
|
2101
|
+
},
|
|
2102
|
+
{
|
|
2103
|
+
name: '_minRipePerUnit',
|
|
2104
|
+
type: 'uint256',
|
|
2105
|
+
},
|
|
2106
|
+
{
|
|
2107
|
+
name: '_maxRipePerUnit',
|
|
2108
|
+
type: 'uint256',
|
|
2109
|
+
},
|
|
2110
|
+
{
|
|
2111
|
+
name: '_maxRipePerUnitLockBonus',
|
|
2112
|
+
type: 'uint256',
|
|
2113
|
+
},
|
|
2114
|
+
{
|
|
2115
|
+
name: '_shouldAutoRestart',
|
|
2116
|
+
type: 'bool',
|
|
2117
|
+
},
|
|
2118
|
+
{
|
|
2119
|
+
name: '_restartDelayBlocks',
|
|
2120
|
+
type: 'uint256',
|
|
2121
|
+
},
|
|
2122
|
+
{
|
|
2123
|
+
name: '_missionControl',
|
|
2124
|
+
type: 'address',
|
|
2125
|
+
},
|
|
2126
|
+
],
|
|
2127
|
+
outputs: [
|
|
2128
|
+
{
|
|
2129
|
+
name: '',
|
|
2130
|
+
type: 'uint256',
|
|
2131
|
+
},
|
|
2132
|
+
],
|
|
2133
|
+
},
|
|
2134
|
+
{
|
|
2135
|
+
stateMutability: 'nonpayable',
|
|
2136
|
+
type: 'function',
|
|
2137
|
+
name: 'setRipeBondEpochLength',
|
|
2138
|
+
inputs: [
|
|
2139
|
+
{
|
|
2140
|
+
name: '_epochLength',
|
|
2141
|
+
type: 'uint256',
|
|
2142
|
+
},
|
|
2143
|
+
],
|
|
2144
|
+
outputs: [
|
|
2145
|
+
{
|
|
2146
|
+
name: '',
|
|
2147
|
+
type: 'uint256',
|
|
2148
|
+
},
|
|
2149
|
+
],
|
|
2150
|
+
},
|
|
1776
2151
|
{
|
|
1777
2152
|
stateMutability: 'nonpayable',
|
|
1778
2153
|
type: 'function',
|
|
@@ -1782,6 +2157,10 @@ export const abi = [
|
|
|
1782
2157
|
name: '_epochLength',
|
|
1783
2158
|
type: 'uint256',
|
|
1784
2159
|
},
|
|
2160
|
+
{
|
|
2161
|
+
name: '_missionControl',
|
|
2162
|
+
type: 'address',
|
|
2163
|
+
},
|
|
1785
2164
|
],
|
|
1786
2165
|
outputs: [
|
|
1787
2166
|
{
|
|
@@ -1826,6 +2205,27 @@ export const abi = [
|
|
|
1826
2205
|
},
|
|
1827
2206
|
],
|
|
1828
2207
|
},
|
|
2208
|
+
{
|
|
2209
|
+
stateMutability: 'nonpayable',
|
|
2210
|
+
type: 'function',
|
|
2211
|
+
name: 'setCanPurchaseRipeBond',
|
|
2212
|
+
inputs: [
|
|
2213
|
+
{
|
|
2214
|
+
name: '_canBond',
|
|
2215
|
+
type: 'bool',
|
|
2216
|
+
},
|
|
2217
|
+
{
|
|
2218
|
+
name: '_missionControl',
|
|
2219
|
+
type: 'address',
|
|
2220
|
+
},
|
|
2221
|
+
],
|
|
2222
|
+
outputs: [
|
|
2223
|
+
{
|
|
2224
|
+
name: '',
|
|
2225
|
+
type: 'bool',
|
|
2226
|
+
},
|
|
2227
|
+
],
|
|
2228
|
+
},
|
|
1829
2229
|
{
|
|
1830
2230
|
stateMutability: 'nonpayable',
|
|
1831
2231
|
type: 'function',
|
|
@@ -1843,6 +2243,133 @@ export const abi = [
|
|
|
1843
2243
|
},
|
|
1844
2244
|
],
|
|
1845
2245
|
},
|
|
2246
|
+
{
|
|
2247
|
+
stateMutability: 'nonpayable',
|
|
2248
|
+
type: 'function',
|
|
2249
|
+
name: 'setRipeAvailableForRewards',
|
|
2250
|
+
inputs: [
|
|
2251
|
+
{
|
|
2252
|
+
name: '_amount',
|
|
2253
|
+
type: 'uint256',
|
|
2254
|
+
},
|
|
2255
|
+
],
|
|
2256
|
+
outputs: [
|
|
2257
|
+
{
|
|
2258
|
+
name: '',
|
|
2259
|
+
type: 'uint256',
|
|
2260
|
+
},
|
|
2261
|
+
],
|
|
2262
|
+
},
|
|
2263
|
+
{
|
|
2264
|
+
stateMutability: 'nonpayable',
|
|
2265
|
+
type: 'function',
|
|
2266
|
+
name: 'setRipeAvailableForHr',
|
|
2267
|
+
inputs: [
|
|
2268
|
+
{
|
|
2269
|
+
name: '_amount',
|
|
2270
|
+
type: 'uint256',
|
|
2271
|
+
},
|
|
2272
|
+
],
|
|
2273
|
+
outputs: [
|
|
2274
|
+
{
|
|
2275
|
+
name: '',
|
|
2276
|
+
type: 'uint256',
|
|
2277
|
+
},
|
|
2278
|
+
],
|
|
2279
|
+
},
|
|
2280
|
+
{
|
|
2281
|
+
stateMutability: 'nonpayable',
|
|
2282
|
+
type: 'function',
|
|
2283
|
+
name: 'setRipeAvailableForBonds',
|
|
2284
|
+
inputs: [
|
|
2285
|
+
{
|
|
2286
|
+
name: '_amount',
|
|
2287
|
+
type: 'uint256',
|
|
2288
|
+
},
|
|
2289
|
+
],
|
|
2290
|
+
outputs: [
|
|
2291
|
+
{
|
|
2292
|
+
name: '',
|
|
2293
|
+
type: 'uint256',
|
|
2294
|
+
},
|
|
2295
|
+
],
|
|
2296
|
+
},
|
|
2297
|
+
{
|
|
2298
|
+
stateMutability: 'nonpayable',
|
|
2299
|
+
type: 'function',
|
|
2300
|
+
name: 'setUnderscoreRegistry',
|
|
2301
|
+
inputs: [
|
|
2302
|
+
{
|
|
2303
|
+
name: '_underscoreRegistry',
|
|
2304
|
+
type: 'address',
|
|
2305
|
+
},
|
|
2306
|
+
],
|
|
2307
|
+
outputs: [
|
|
2308
|
+
{
|
|
2309
|
+
name: '',
|
|
2310
|
+
type: 'uint256',
|
|
2311
|
+
},
|
|
2312
|
+
],
|
|
2313
|
+
},
|
|
2314
|
+
{
|
|
2315
|
+
stateMutability: 'nonpayable',
|
|
2316
|
+
type: 'function',
|
|
2317
|
+
name: 'setUnderscoreRegistry',
|
|
2318
|
+
inputs: [
|
|
2319
|
+
{
|
|
2320
|
+
name: '_underscoreRegistry',
|
|
2321
|
+
type: 'address',
|
|
2322
|
+
},
|
|
2323
|
+
{
|
|
2324
|
+
name: '_missionControl',
|
|
2325
|
+
type: 'address',
|
|
2326
|
+
},
|
|
2327
|
+
],
|
|
2328
|
+
outputs: [
|
|
2329
|
+
{
|
|
2330
|
+
name: '',
|
|
2331
|
+
type: 'uint256',
|
|
2332
|
+
},
|
|
2333
|
+
],
|
|
2334
|
+
},
|
|
2335
|
+
{
|
|
2336
|
+
stateMutability: 'nonpayable',
|
|
2337
|
+
type: 'function',
|
|
2338
|
+
name: 'setShouldCheckLastTouch',
|
|
2339
|
+
inputs: [
|
|
2340
|
+
{
|
|
2341
|
+
name: '_shouldCheck',
|
|
2342
|
+
type: 'bool',
|
|
2343
|
+
},
|
|
2344
|
+
],
|
|
2345
|
+
outputs: [
|
|
2346
|
+
{
|
|
2347
|
+
name: '',
|
|
2348
|
+
type: 'uint256',
|
|
2349
|
+
},
|
|
2350
|
+
],
|
|
2351
|
+
},
|
|
2352
|
+
{
|
|
2353
|
+
stateMutability: 'nonpayable',
|
|
2354
|
+
type: 'function',
|
|
2355
|
+
name: 'setShouldCheckLastTouch',
|
|
2356
|
+
inputs: [
|
|
2357
|
+
{
|
|
2358
|
+
name: '_shouldCheck',
|
|
2359
|
+
type: 'bool',
|
|
2360
|
+
},
|
|
2361
|
+
{
|
|
2362
|
+
name: '_missionControl',
|
|
2363
|
+
type: 'address',
|
|
2364
|
+
},
|
|
2365
|
+
],
|
|
2366
|
+
outputs: [
|
|
2367
|
+
{
|
|
2368
|
+
name: '',
|
|
2369
|
+
type: 'uint256',
|
|
2370
|
+
},
|
|
2371
|
+
],
|
|
2372
|
+
},
|
|
1846
2373
|
{
|
|
1847
2374
|
stateMutability: 'nonpayable',
|
|
1848
2375
|
type: 'function',
|
|
@@ -1895,6 +2422,41 @@ export const abi = [
|
|
|
1895
2422
|
},
|
|
1896
2423
|
],
|
|
1897
2424
|
},
|
|
2425
|
+
{
|
|
2426
|
+
stateMutability: 'nonpayable',
|
|
2427
|
+
type: 'function',
|
|
2428
|
+
name: 'setBondBooster',
|
|
2429
|
+
inputs: [
|
|
2430
|
+
{
|
|
2431
|
+
name: '_config',
|
|
2432
|
+
type: 'tuple',
|
|
2433
|
+
components: [
|
|
2434
|
+
{
|
|
2435
|
+
name: 'user',
|
|
2436
|
+
type: 'address',
|
|
2437
|
+
},
|
|
2438
|
+
{
|
|
2439
|
+
name: 'boostRatio',
|
|
2440
|
+
type: 'uint256',
|
|
2441
|
+
},
|
|
2442
|
+
{
|
|
2443
|
+
name: 'maxUnitsAllowed',
|
|
2444
|
+
type: 'uint256',
|
|
2445
|
+
},
|
|
2446
|
+
{
|
|
2447
|
+
name: 'expireBlock',
|
|
2448
|
+
type: 'uint256',
|
|
2449
|
+
},
|
|
2450
|
+
],
|
|
2451
|
+
},
|
|
2452
|
+
],
|
|
2453
|
+
outputs: [
|
|
2454
|
+
{
|
|
2455
|
+
name: '',
|
|
2456
|
+
type: 'uint256',
|
|
2457
|
+
},
|
|
2458
|
+
],
|
|
2459
|
+
},
|
|
1898
2460
|
{
|
|
1899
2461
|
stateMutability: 'nonpayable',
|
|
1900
2462
|
type: 'function',
|
|
@@ -1912,6 +2474,23 @@ export const abi = [
|
|
|
1912
2474
|
},
|
|
1913
2475
|
],
|
|
1914
2476
|
},
|
|
2477
|
+
{
|
|
2478
|
+
stateMutability: 'nonpayable',
|
|
2479
|
+
type: 'function',
|
|
2480
|
+
name: 'removeBondBooster',
|
|
2481
|
+
inputs: [
|
|
2482
|
+
{
|
|
2483
|
+
name: '_user',
|
|
2484
|
+
type: 'address',
|
|
2485
|
+
},
|
|
2486
|
+
],
|
|
2487
|
+
outputs: [
|
|
2488
|
+
{
|
|
2489
|
+
name: '',
|
|
2490
|
+
type: 'bool',
|
|
2491
|
+
},
|
|
2492
|
+
],
|
|
2493
|
+
},
|
|
1915
2494
|
{
|
|
1916
2495
|
stateMutability: 'nonpayable',
|
|
1917
2496
|
type: 'function',
|
|
@@ -2405,6 +2984,74 @@ export const abi = [
|
|
|
2405
2984
|
},
|
|
2406
2985
|
],
|
|
2407
2986
|
},
|
|
2987
|
+
{
|
|
2988
|
+
stateMutability: 'view',
|
|
2989
|
+
type: 'function',
|
|
2990
|
+
name: 'pendingRipeAvailable',
|
|
2991
|
+
inputs: [
|
|
2992
|
+
{
|
|
2993
|
+
name: 'arg0',
|
|
2994
|
+
type: 'uint256',
|
|
2995
|
+
},
|
|
2996
|
+
],
|
|
2997
|
+
outputs: [
|
|
2998
|
+
{
|
|
2999
|
+
name: '',
|
|
3000
|
+
type: 'uint256',
|
|
3001
|
+
},
|
|
3002
|
+
],
|
|
3003
|
+
},
|
|
3004
|
+
{
|
|
3005
|
+
stateMutability: 'view',
|
|
3006
|
+
type: 'function',
|
|
3007
|
+
name: 'pendingUnderscoreRegistry',
|
|
3008
|
+
inputs: [
|
|
3009
|
+
{
|
|
3010
|
+
name: 'arg0',
|
|
3011
|
+
type: 'uint256',
|
|
3012
|
+
},
|
|
3013
|
+
],
|
|
3014
|
+
outputs: [
|
|
3015
|
+
{
|
|
3016
|
+
name: '',
|
|
3017
|
+
type: 'address',
|
|
3018
|
+
},
|
|
3019
|
+
],
|
|
3020
|
+
},
|
|
3021
|
+
{
|
|
3022
|
+
stateMutability: 'view',
|
|
3023
|
+
type: 'function',
|
|
3024
|
+
name: 'pendingShouldCheckLastTouch',
|
|
3025
|
+
inputs: [
|
|
3026
|
+
{
|
|
3027
|
+
name: 'arg0',
|
|
3028
|
+
type: 'uint256',
|
|
3029
|
+
},
|
|
3030
|
+
],
|
|
3031
|
+
outputs: [
|
|
3032
|
+
{
|
|
3033
|
+
name: '',
|
|
3034
|
+
type: 'bool',
|
|
3035
|
+
},
|
|
3036
|
+
],
|
|
3037
|
+
},
|
|
3038
|
+
{
|
|
3039
|
+
stateMutability: 'view',
|
|
3040
|
+
type: 'function',
|
|
3041
|
+
name: 'pendingMissionControl',
|
|
3042
|
+
inputs: [
|
|
3043
|
+
{
|
|
3044
|
+
name: 'arg0',
|
|
3045
|
+
type: 'uint256',
|
|
3046
|
+
},
|
|
3047
|
+
],
|
|
3048
|
+
outputs: [
|
|
3049
|
+
{
|
|
3050
|
+
name: '',
|
|
3051
|
+
type: 'address',
|
|
3052
|
+
},
|
|
3053
|
+
],
|
|
3054
|
+
},
|
|
2408
3055
|
{
|
|
2409
3056
|
stateMutability: 'nonpayable',
|
|
2410
3057
|
type: 'constructor',
|
|
@@ -2429,7 +3076,7 @@ export const abi = [
|
|
|
2429
3076
|
outputs: [],
|
|
2430
3077
|
},
|
|
2431
3078
|
];
|
|
2432
|
-
export const deployAddress = '
|
|
3079
|
+
export const deployAddress = '0xc5C49A69D6A8C777EeCE9212c892ba0a6f72CB3e';
|
|
2433
3080
|
function getRequest(method, args, contractAddressOrOptions) {
|
|
2434
3081
|
const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
|
|
2435
3082
|
const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
|
|
@@ -2492,6 +3139,10 @@ export const call = {
|
|
|
2492
3139
|
pendingUserBalanceReset: (...args) => getRequest('pendingUserBalanceReset', args),
|
|
2493
3140
|
pendingAssetReset: (...args) => getRequest('pendingAssetReset', args),
|
|
2494
3141
|
pendingUserBorrowReset: (...args) => getRequest('pendingUserBorrowReset', args),
|
|
3142
|
+
pendingRipeAvailable: (...args) => getRequest('pendingRipeAvailable', args),
|
|
3143
|
+
pendingUnderscoreRegistry: (...args) => getRequest('pendingUnderscoreRegistry', args),
|
|
3144
|
+
pendingShouldCheckLastTouch: (...args) => getRequest('pendingShouldCheckLastTouch', args),
|
|
3145
|
+
pendingMissionControl: (...args) => getRequest('pendingMissionControl', args),
|
|
2495
3146
|
};
|
|
2496
3147
|
function getMutation(functionName) {
|
|
2497
3148
|
return {
|
|
@@ -2532,9 +3183,16 @@ export const mutation = {
|
|
|
2532
3183
|
setStartEpochAtBlock: getMutation('setStartEpochAtBlock'),
|
|
2533
3184
|
setCanPurchaseRipeBond: getMutation('setCanPurchaseRipeBond'),
|
|
2534
3185
|
setBadDebt: getMutation('setBadDebt'),
|
|
3186
|
+
setRipeAvailableForRewards: getMutation('setRipeAvailableForRewards'),
|
|
3187
|
+
setRipeAvailableForHr: getMutation('setRipeAvailableForHr'),
|
|
3188
|
+
setRipeAvailableForBonds: getMutation('setRipeAvailableForBonds'),
|
|
3189
|
+
setUnderscoreRegistry: getMutation('setUnderscoreRegistry'),
|
|
3190
|
+
setShouldCheckLastTouch: getMutation('setShouldCheckLastTouch'),
|
|
2535
3191
|
setRipeBondBooster: getMutation('setRipeBondBooster'),
|
|
2536
3192
|
setManyBondBoosters: getMutation('setManyBondBoosters'),
|
|
3193
|
+
setBondBooster: getMutation('setBondBooster'),
|
|
2537
3194
|
removeManyBondBoosters: getMutation('removeManyBondBoosters'),
|
|
3195
|
+
removeBondBooster: getMutation('removeBondBooster'),
|
|
2538
3196
|
setBoosterBoundaries: getMutation('setBoosterBoundaries'),
|
|
2539
3197
|
setBoosterMinLockDuration: getMutation('setBoosterMinLockDuration'),
|
|
2540
3198
|
resetManyUserBalancePoints: getMutation('resetManyUserBalancePoints'),
|
|
@@ -2582,6 +3240,10 @@ export function toSdk(publicClient, walletClient) {
|
|
|
2582
3240
|
pendingUserBalanceReset: (...args) => singleQuery(publicClient, call.pendingUserBalanceReset(...args)),
|
|
2583
3241
|
pendingAssetReset: (...args) => singleQuery(publicClient, call.pendingAssetReset(...args)),
|
|
2584
3242
|
pendingUserBorrowReset: (...args) => singleQuery(publicClient, call.pendingUserBorrowReset(...args)),
|
|
3243
|
+
pendingRipeAvailable: (...args) => singleQuery(publicClient, call.pendingRipeAvailable(...args)),
|
|
3244
|
+
pendingUnderscoreRegistry: (...args) => singleQuery(publicClient, call.pendingUnderscoreRegistry(...args)),
|
|
3245
|
+
pendingShouldCheckLastTouch: (...args) => singleQuery(publicClient, call.pendingShouldCheckLastTouch(...args)),
|
|
3246
|
+
pendingMissionControl: (...args) => singleQuery(publicClient, call.pendingMissionControl(...args)),
|
|
2585
3247
|
// Mutations
|
|
2586
3248
|
startGovernanceChange: (...args) => mutate(walletClient, mutation.startGovernanceChange)(...args),
|
|
2587
3249
|
confirmGovernanceChange: (...args) => mutate(walletClient, mutation.confirmGovernanceChange)(...args),
|
|
@@ -2612,9 +3274,16 @@ export function toSdk(publicClient, walletClient) {
|
|
|
2612
3274
|
setStartEpochAtBlock: (...args) => mutate(walletClient, mutation.setStartEpochAtBlock)(...args),
|
|
2613
3275
|
setCanPurchaseRipeBond: (...args) => mutate(walletClient, mutation.setCanPurchaseRipeBond)(...args),
|
|
2614
3276
|
setBadDebt: (...args) => mutate(walletClient, mutation.setBadDebt)(...args),
|
|
3277
|
+
setRipeAvailableForRewards: (...args) => mutate(walletClient, mutation.setRipeAvailableForRewards)(...args),
|
|
3278
|
+
setRipeAvailableForHr: (...args) => mutate(walletClient, mutation.setRipeAvailableForHr)(...args),
|
|
3279
|
+
setRipeAvailableForBonds: (...args) => mutate(walletClient, mutation.setRipeAvailableForBonds)(...args),
|
|
3280
|
+
setUnderscoreRegistry: (...args) => mutate(walletClient, mutation.setUnderscoreRegistry)(...args),
|
|
3281
|
+
setShouldCheckLastTouch: (...args) => mutate(walletClient, mutation.setShouldCheckLastTouch)(...args),
|
|
2615
3282
|
setRipeBondBooster: (...args) => mutate(walletClient, mutation.setRipeBondBooster)(...args),
|
|
2616
3283
|
setManyBondBoosters: (...args) => mutate(walletClient, mutation.setManyBondBoosters)(...args),
|
|
3284
|
+
setBondBooster: (...args) => mutate(walletClient, mutation.setBondBooster)(...args),
|
|
2617
3285
|
removeManyBondBoosters: (...args) => mutate(walletClient, mutation.removeManyBondBoosters)(...args),
|
|
3286
|
+
removeBondBooster: (...args) => mutate(walletClient, mutation.removeBondBooster)(...args),
|
|
2618
3287
|
setBoosterBoundaries: (...args) => mutate(walletClient, mutation.setBoosterBoundaries)(...args),
|
|
2619
3288
|
setBoosterMinLockDuration: (...args) => mutate(walletClient, mutation.setBoosterMinLockDuration)(...args),
|
|
2620
3289
|
resetManyUserBalancePoints: (...args) => mutate(walletClient, mutation.resetManyUserBalancePoints)(...args),
|