@optimex-xyz/market-maker-sdk 0.9.0-dev-c1dabf3 → 0.9.0-dev-beddfdc
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/index.d.mts +158 -124
- package/dist/index.d.ts +158 -124
- package/dist/index.js +99 -70
- package/dist/index.mjs +99 -70
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -83,7 +83,7 @@ var environments = {
|
|
|
83
83
|
ethereum_sepolia: "0x1d8b58438D5Ccc8Fcb4b738C89078f7b4168C9c0"
|
|
84
84
|
},
|
|
85
85
|
liquidationAddressMap: {
|
|
86
|
-
ethereum_sepolia: "
|
|
86
|
+
ethereum_sepolia: "0xc2F376B105BcAcE161Cb5A04B4Eb32e1439b215F"
|
|
87
87
|
}
|
|
88
88
|
},
|
|
89
89
|
staging: {
|
|
@@ -1659,24 +1659,13 @@ var _abi2 = [
|
|
|
1659
1659
|
type: "error"
|
|
1660
1660
|
},
|
|
1661
1661
|
{
|
|
1662
|
-
inputs: [
|
|
1663
|
-
|
|
1664
|
-
internalType: "address",
|
|
1665
|
-
name: "expected",
|
|
1666
|
-
type: "address"
|
|
1667
|
-
},
|
|
1668
|
-
{
|
|
1669
|
-
internalType: "address",
|
|
1670
|
-
name: "actual",
|
|
1671
|
-
type: "address"
|
|
1672
|
-
}
|
|
1673
|
-
],
|
|
1674
|
-
name: "InconsistentAsset",
|
|
1662
|
+
inputs: [],
|
|
1663
|
+
name: "InvalidAmount",
|
|
1675
1664
|
type: "error"
|
|
1676
1665
|
},
|
|
1677
1666
|
{
|
|
1678
1667
|
inputs: [],
|
|
1679
|
-
name: "
|
|
1668
|
+
name: "InvalidBorrowShares",
|
|
1680
1669
|
type: "error"
|
|
1681
1670
|
},
|
|
1682
1671
|
{
|
|
@@ -1703,12 +1692,7 @@ var _abi2 = [
|
|
|
1703
1692
|
type: "address"
|
|
1704
1693
|
}
|
|
1705
1694
|
],
|
|
1706
|
-
name: "
|
|
1707
|
-
type: "error"
|
|
1708
|
-
},
|
|
1709
|
-
{
|
|
1710
|
-
inputs: [],
|
|
1711
|
-
name: "NotEnoughPaymentAmount",
|
|
1695
|
+
name: "InvalidValidator",
|
|
1712
1696
|
type: "error"
|
|
1713
1697
|
},
|
|
1714
1698
|
{
|
|
@@ -1759,6 +1743,33 @@ var _abi2 = [
|
|
|
1759
1743
|
name: "StringTooLong",
|
|
1760
1744
|
type: "error"
|
|
1761
1745
|
},
|
|
1746
|
+
{
|
|
1747
|
+
inputs: [
|
|
1748
|
+
{
|
|
1749
|
+
internalType: "address",
|
|
1750
|
+
name: "expected",
|
|
1751
|
+
type: "address"
|
|
1752
|
+
},
|
|
1753
|
+
{
|
|
1754
|
+
internalType: "address",
|
|
1755
|
+
name: "actual",
|
|
1756
|
+
type: "address"
|
|
1757
|
+
}
|
|
1758
|
+
],
|
|
1759
|
+
name: "TokenMismatch",
|
|
1760
|
+
type: "error"
|
|
1761
|
+
},
|
|
1762
|
+
{
|
|
1763
|
+
inputs: [
|
|
1764
|
+
{
|
|
1765
|
+
internalType: "address",
|
|
1766
|
+
name: "sender",
|
|
1767
|
+
type: "address"
|
|
1768
|
+
}
|
|
1769
|
+
],
|
|
1770
|
+
name: "Unauthorized",
|
|
1771
|
+
type: "error"
|
|
1772
|
+
},
|
|
1762
1773
|
{
|
|
1763
1774
|
inputs: [],
|
|
1764
1775
|
name: "ZeroAddress",
|
|
@@ -1778,22 +1789,35 @@ var _abi2 = [
|
|
|
1778
1789
|
{
|
|
1779
1790
|
anonymous: false,
|
|
1780
1791
|
inputs: [
|
|
1781
|
-
{
|
|
1782
|
-
indexed: true,
|
|
1783
|
-
internalType: "address",
|
|
1784
|
-
name: "positionManager",
|
|
1785
|
-
type: "address"
|
|
1786
|
-
},
|
|
1787
1792
|
{
|
|
1788
1793
|
indexed: true,
|
|
1789
1794
|
internalType: "bytes32",
|
|
1790
1795
|
name: "positionId",
|
|
1791
1796
|
type: "bytes32"
|
|
1792
1797
|
},
|
|
1798
|
+
{
|
|
1799
|
+
indexed: true,
|
|
1800
|
+
internalType: "address",
|
|
1801
|
+
name: "apm",
|
|
1802
|
+
type: "address"
|
|
1803
|
+
},
|
|
1793
1804
|
{
|
|
1794
1805
|
indexed: false,
|
|
1806
|
+
internalType: "uint256",
|
|
1807
|
+
name: "amount",
|
|
1808
|
+
type: "uint256"
|
|
1809
|
+
}
|
|
1810
|
+
],
|
|
1811
|
+
name: "FinalizePosition",
|
|
1812
|
+
type: "event"
|
|
1813
|
+
},
|
|
1814
|
+
{
|
|
1815
|
+
anonymous: false,
|
|
1816
|
+
inputs: [
|
|
1817
|
+
{
|
|
1818
|
+
indexed: true,
|
|
1795
1819
|
internalType: "bytes32",
|
|
1796
|
-
name: "
|
|
1820
|
+
name: "positionId",
|
|
1797
1821
|
type: "bytes32"
|
|
1798
1822
|
},
|
|
1799
1823
|
{
|
|
@@ -1821,24 +1845,12 @@ var _abi2 = [
|
|
|
1821
1845
|
{
|
|
1822
1846
|
anonymous: false,
|
|
1823
1847
|
inputs: [
|
|
1824
|
-
{
|
|
1825
|
-
indexed: true,
|
|
1826
|
-
internalType: "address",
|
|
1827
|
-
name: "positionManager",
|
|
1828
|
-
type: "address"
|
|
1829
|
-
},
|
|
1830
1848
|
{
|
|
1831
1849
|
indexed: true,
|
|
1832
1850
|
internalType: "bytes32",
|
|
1833
1851
|
name: "positionId",
|
|
1834
1852
|
type: "bytes32"
|
|
1835
1853
|
},
|
|
1836
|
-
{
|
|
1837
|
-
indexed: false,
|
|
1838
|
-
internalType: "bytes32",
|
|
1839
|
-
name: "marketId",
|
|
1840
|
-
type: "bytes32"
|
|
1841
|
-
},
|
|
1842
1854
|
{
|
|
1843
1855
|
indexed: false,
|
|
1844
1856
|
internalType: "uint256",
|
|
@@ -1873,7 +1885,7 @@ var _abi2 = [
|
|
|
1873
1885
|
{
|
|
1874
1886
|
indexed: true,
|
|
1875
1887
|
internalType: "address",
|
|
1876
|
-
name: "
|
|
1888
|
+
name: "apm",
|
|
1877
1889
|
type: "address"
|
|
1878
1890
|
},
|
|
1879
1891
|
{
|
|
@@ -1898,7 +1910,7 @@ var _abi2 = [
|
|
|
1898
1910
|
{
|
|
1899
1911
|
indexed: true,
|
|
1900
1912
|
internalType: "address",
|
|
1901
|
-
name: "
|
|
1913
|
+
name: "apm",
|
|
1902
1914
|
type: "address"
|
|
1903
1915
|
},
|
|
1904
1916
|
{
|
|
@@ -1923,27 +1935,21 @@ var _abi2 = [
|
|
|
1923
1935
|
{
|
|
1924
1936
|
indexed: true,
|
|
1925
1937
|
internalType: "bytes32",
|
|
1926
|
-
name: "
|
|
1938
|
+
name: "positionId",
|
|
1927
1939
|
type: "bytes32"
|
|
1928
1940
|
},
|
|
1929
1941
|
{
|
|
1930
1942
|
indexed: true,
|
|
1931
1943
|
internalType: "address",
|
|
1932
|
-
name: "
|
|
1944
|
+
name: "apm",
|
|
1933
1945
|
type: "address"
|
|
1934
1946
|
},
|
|
1935
1947
|
{
|
|
1936
1948
|
indexed: true,
|
|
1937
1949
|
internalType: "bytes32",
|
|
1938
|
-
name: "
|
|
1950
|
+
name: "tradeId",
|
|
1939
1951
|
type: "bytes32"
|
|
1940
1952
|
},
|
|
1941
|
-
{
|
|
1942
|
-
indexed: false,
|
|
1943
|
-
internalType: "address",
|
|
1944
|
-
name: "sender",
|
|
1945
|
-
type: "address"
|
|
1946
|
-
},
|
|
1947
1953
|
{
|
|
1948
1954
|
indexed: false,
|
|
1949
1955
|
internalType: "bytes32",
|
|
@@ -1952,15 +1958,15 @@ var _abi2 = [
|
|
|
1952
1958
|
},
|
|
1953
1959
|
{
|
|
1954
1960
|
indexed: false,
|
|
1955
|
-
internalType: "
|
|
1956
|
-
name: "
|
|
1957
|
-
type: "
|
|
1961
|
+
internalType: "address",
|
|
1962
|
+
name: "payer",
|
|
1963
|
+
type: "address"
|
|
1958
1964
|
},
|
|
1959
1965
|
{
|
|
1960
1966
|
indexed: false,
|
|
1961
|
-
internalType: "
|
|
1962
|
-
name: "
|
|
1963
|
-
type: "
|
|
1967
|
+
internalType: "bool",
|
|
1968
|
+
name: "isLiquidated",
|
|
1969
|
+
type: "bool"
|
|
1964
1970
|
}
|
|
1965
1971
|
],
|
|
1966
1972
|
name: "Payment",
|
|
@@ -1984,7 +1990,7 @@ var _abi2 = [
|
|
|
1984
1990
|
{
|
|
1985
1991
|
indexed: true,
|
|
1986
1992
|
internalType: "address",
|
|
1987
|
-
name: "
|
|
1993
|
+
name: "recipient",
|
|
1988
1994
|
type: "address"
|
|
1989
1995
|
},
|
|
1990
1996
|
{
|
|
@@ -2021,11 +2027,11 @@ var _abi2 = [
|
|
|
2021
2027
|
{
|
|
2022
2028
|
indexed: false,
|
|
2023
2029
|
internalType: "uint256",
|
|
2024
|
-
name: "
|
|
2030
|
+
name: "amount",
|
|
2025
2031
|
type: "uint256"
|
|
2026
2032
|
}
|
|
2027
2033
|
],
|
|
2028
|
-
name: "
|
|
2034
|
+
name: "Refund",
|
|
2029
2035
|
type: "event"
|
|
2030
2036
|
},
|
|
2031
2037
|
{
|
|
@@ -2084,6 +2090,29 @@ var _abi2 = [
|
|
|
2084
2090
|
stateMutability: "view",
|
|
2085
2091
|
type: "function"
|
|
2086
2092
|
},
|
|
2093
|
+
{
|
|
2094
|
+
inputs: [
|
|
2095
|
+
{
|
|
2096
|
+
internalType: "address",
|
|
2097
|
+
name: "apm",
|
|
2098
|
+
type: "address"
|
|
2099
|
+
},
|
|
2100
|
+
{
|
|
2101
|
+
internalType: "bytes32",
|
|
2102
|
+
name: "positionId",
|
|
2103
|
+
type: "bytes32"
|
|
2104
|
+
},
|
|
2105
|
+
{
|
|
2106
|
+
internalType: "bytes",
|
|
2107
|
+
name: "signature",
|
|
2108
|
+
type: "bytes"
|
|
2109
|
+
}
|
|
2110
|
+
],
|
|
2111
|
+
name: "finalizePosition",
|
|
2112
|
+
outputs: [],
|
|
2113
|
+
stateMutability: "nonpayable",
|
|
2114
|
+
type: "function"
|
|
2115
|
+
},
|
|
2087
2116
|
{
|
|
2088
2117
|
inputs: [
|
|
2089
2118
|
{
|
|
@@ -2140,26 +2169,26 @@ var _abi2 = [
|
|
|
2140
2169
|
},
|
|
2141
2170
|
{
|
|
2142
2171
|
inputs: [
|
|
2172
|
+
{
|
|
2173
|
+
internalType: "address",
|
|
2174
|
+
name: "apm",
|
|
2175
|
+
type: "address"
|
|
2176
|
+
},
|
|
2143
2177
|
{
|
|
2144
2178
|
internalType: "bytes32",
|
|
2145
|
-
name: "
|
|
2179
|
+
name: "positionId",
|
|
2146
2180
|
type: "bytes32"
|
|
2147
2181
|
},
|
|
2148
2182
|
{
|
|
2149
|
-
internalType: "
|
|
2150
|
-
name: "
|
|
2151
|
-
type: "
|
|
2183
|
+
internalType: "bytes32",
|
|
2184
|
+
name: "tradeId",
|
|
2185
|
+
type: "bytes32"
|
|
2152
2186
|
},
|
|
2153
2187
|
{
|
|
2154
2188
|
internalType: "uint256",
|
|
2155
2189
|
name: "amount",
|
|
2156
2190
|
type: "uint256"
|
|
2157
2191
|
},
|
|
2158
|
-
{
|
|
2159
|
-
internalType: "bytes32",
|
|
2160
|
-
name: "positionId",
|
|
2161
|
-
type: "bytes32"
|
|
2162
|
-
},
|
|
2163
2192
|
{
|
|
2164
2193
|
internalType: "bool",
|
|
2165
2194
|
name: "isLiquidate",
|
|
@@ -2167,7 +2196,7 @@ var _abi2 = [
|
|
|
2167
2196
|
},
|
|
2168
2197
|
{
|
|
2169
2198
|
internalType: "bytes",
|
|
2170
|
-
name: "
|
|
2199
|
+
name: "signature",
|
|
2171
2200
|
type: "bytes"
|
|
2172
2201
|
}
|
|
2173
2202
|
],
|
package/dist/index.mjs
CHANGED
|
@@ -14,7 +14,7 @@ var environments = {
|
|
|
14
14
|
ethereum_sepolia: "0x1d8b58438D5Ccc8Fcb4b738C89078f7b4168C9c0"
|
|
15
15
|
},
|
|
16
16
|
liquidationAddressMap: {
|
|
17
|
-
ethereum_sepolia: "
|
|
17
|
+
ethereum_sepolia: "0xc2F376B105BcAcE161Cb5A04B4Eb32e1439b215F"
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
staging: {
|
|
@@ -1590,24 +1590,13 @@ var _abi2 = [
|
|
|
1590
1590
|
type: "error"
|
|
1591
1591
|
},
|
|
1592
1592
|
{
|
|
1593
|
-
inputs: [
|
|
1594
|
-
|
|
1595
|
-
internalType: "address",
|
|
1596
|
-
name: "expected",
|
|
1597
|
-
type: "address"
|
|
1598
|
-
},
|
|
1599
|
-
{
|
|
1600
|
-
internalType: "address",
|
|
1601
|
-
name: "actual",
|
|
1602
|
-
type: "address"
|
|
1603
|
-
}
|
|
1604
|
-
],
|
|
1605
|
-
name: "InconsistentAsset",
|
|
1593
|
+
inputs: [],
|
|
1594
|
+
name: "InvalidAmount",
|
|
1606
1595
|
type: "error"
|
|
1607
1596
|
},
|
|
1608
1597
|
{
|
|
1609
1598
|
inputs: [],
|
|
1610
|
-
name: "
|
|
1599
|
+
name: "InvalidBorrowShares",
|
|
1611
1600
|
type: "error"
|
|
1612
1601
|
},
|
|
1613
1602
|
{
|
|
@@ -1634,12 +1623,7 @@ var _abi2 = [
|
|
|
1634
1623
|
type: "address"
|
|
1635
1624
|
}
|
|
1636
1625
|
],
|
|
1637
|
-
name: "
|
|
1638
|
-
type: "error"
|
|
1639
|
-
},
|
|
1640
|
-
{
|
|
1641
|
-
inputs: [],
|
|
1642
|
-
name: "NotEnoughPaymentAmount",
|
|
1626
|
+
name: "InvalidValidator",
|
|
1643
1627
|
type: "error"
|
|
1644
1628
|
},
|
|
1645
1629
|
{
|
|
@@ -1690,6 +1674,33 @@ var _abi2 = [
|
|
|
1690
1674
|
name: "StringTooLong",
|
|
1691
1675
|
type: "error"
|
|
1692
1676
|
},
|
|
1677
|
+
{
|
|
1678
|
+
inputs: [
|
|
1679
|
+
{
|
|
1680
|
+
internalType: "address",
|
|
1681
|
+
name: "expected",
|
|
1682
|
+
type: "address"
|
|
1683
|
+
},
|
|
1684
|
+
{
|
|
1685
|
+
internalType: "address",
|
|
1686
|
+
name: "actual",
|
|
1687
|
+
type: "address"
|
|
1688
|
+
}
|
|
1689
|
+
],
|
|
1690
|
+
name: "TokenMismatch",
|
|
1691
|
+
type: "error"
|
|
1692
|
+
},
|
|
1693
|
+
{
|
|
1694
|
+
inputs: [
|
|
1695
|
+
{
|
|
1696
|
+
internalType: "address",
|
|
1697
|
+
name: "sender",
|
|
1698
|
+
type: "address"
|
|
1699
|
+
}
|
|
1700
|
+
],
|
|
1701
|
+
name: "Unauthorized",
|
|
1702
|
+
type: "error"
|
|
1703
|
+
},
|
|
1693
1704
|
{
|
|
1694
1705
|
inputs: [],
|
|
1695
1706
|
name: "ZeroAddress",
|
|
@@ -1709,22 +1720,35 @@ var _abi2 = [
|
|
|
1709
1720
|
{
|
|
1710
1721
|
anonymous: false,
|
|
1711
1722
|
inputs: [
|
|
1712
|
-
{
|
|
1713
|
-
indexed: true,
|
|
1714
|
-
internalType: "address",
|
|
1715
|
-
name: "positionManager",
|
|
1716
|
-
type: "address"
|
|
1717
|
-
},
|
|
1718
1723
|
{
|
|
1719
1724
|
indexed: true,
|
|
1720
1725
|
internalType: "bytes32",
|
|
1721
1726
|
name: "positionId",
|
|
1722
1727
|
type: "bytes32"
|
|
1723
1728
|
},
|
|
1729
|
+
{
|
|
1730
|
+
indexed: true,
|
|
1731
|
+
internalType: "address",
|
|
1732
|
+
name: "apm",
|
|
1733
|
+
type: "address"
|
|
1734
|
+
},
|
|
1724
1735
|
{
|
|
1725
1736
|
indexed: false,
|
|
1737
|
+
internalType: "uint256",
|
|
1738
|
+
name: "amount",
|
|
1739
|
+
type: "uint256"
|
|
1740
|
+
}
|
|
1741
|
+
],
|
|
1742
|
+
name: "FinalizePosition",
|
|
1743
|
+
type: "event"
|
|
1744
|
+
},
|
|
1745
|
+
{
|
|
1746
|
+
anonymous: false,
|
|
1747
|
+
inputs: [
|
|
1748
|
+
{
|
|
1749
|
+
indexed: true,
|
|
1726
1750
|
internalType: "bytes32",
|
|
1727
|
-
name: "
|
|
1751
|
+
name: "positionId",
|
|
1728
1752
|
type: "bytes32"
|
|
1729
1753
|
},
|
|
1730
1754
|
{
|
|
@@ -1752,24 +1776,12 @@ var _abi2 = [
|
|
|
1752
1776
|
{
|
|
1753
1777
|
anonymous: false,
|
|
1754
1778
|
inputs: [
|
|
1755
|
-
{
|
|
1756
|
-
indexed: true,
|
|
1757
|
-
internalType: "address",
|
|
1758
|
-
name: "positionManager",
|
|
1759
|
-
type: "address"
|
|
1760
|
-
},
|
|
1761
1779
|
{
|
|
1762
1780
|
indexed: true,
|
|
1763
1781
|
internalType: "bytes32",
|
|
1764
1782
|
name: "positionId",
|
|
1765
1783
|
type: "bytes32"
|
|
1766
1784
|
},
|
|
1767
|
-
{
|
|
1768
|
-
indexed: false,
|
|
1769
|
-
internalType: "bytes32",
|
|
1770
|
-
name: "marketId",
|
|
1771
|
-
type: "bytes32"
|
|
1772
|
-
},
|
|
1773
1785
|
{
|
|
1774
1786
|
indexed: false,
|
|
1775
1787
|
internalType: "uint256",
|
|
@@ -1804,7 +1816,7 @@ var _abi2 = [
|
|
|
1804
1816
|
{
|
|
1805
1817
|
indexed: true,
|
|
1806
1818
|
internalType: "address",
|
|
1807
|
-
name: "
|
|
1819
|
+
name: "apm",
|
|
1808
1820
|
type: "address"
|
|
1809
1821
|
},
|
|
1810
1822
|
{
|
|
@@ -1829,7 +1841,7 @@ var _abi2 = [
|
|
|
1829
1841
|
{
|
|
1830
1842
|
indexed: true,
|
|
1831
1843
|
internalType: "address",
|
|
1832
|
-
name: "
|
|
1844
|
+
name: "apm",
|
|
1833
1845
|
type: "address"
|
|
1834
1846
|
},
|
|
1835
1847
|
{
|
|
@@ -1854,27 +1866,21 @@ var _abi2 = [
|
|
|
1854
1866
|
{
|
|
1855
1867
|
indexed: true,
|
|
1856
1868
|
internalType: "bytes32",
|
|
1857
|
-
name: "
|
|
1869
|
+
name: "positionId",
|
|
1858
1870
|
type: "bytes32"
|
|
1859
1871
|
},
|
|
1860
1872
|
{
|
|
1861
1873
|
indexed: true,
|
|
1862
1874
|
internalType: "address",
|
|
1863
|
-
name: "
|
|
1875
|
+
name: "apm",
|
|
1864
1876
|
type: "address"
|
|
1865
1877
|
},
|
|
1866
1878
|
{
|
|
1867
1879
|
indexed: true,
|
|
1868
1880
|
internalType: "bytes32",
|
|
1869
|
-
name: "
|
|
1881
|
+
name: "tradeId",
|
|
1870
1882
|
type: "bytes32"
|
|
1871
1883
|
},
|
|
1872
|
-
{
|
|
1873
|
-
indexed: false,
|
|
1874
|
-
internalType: "address",
|
|
1875
|
-
name: "sender",
|
|
1876
|
-
type: "address"
|
|
1877
|
-
},
|
|
1878
1884
|
{
|
|
1879
1885
|
indexed: false,
|
|
1880
1886
|
internalType: "bytes32",
|
|
@@ -1883,15 +1889,15 @@ var _abi2 = [
|
|
|
1883
1889
|
},
|
|
1884
1890
|
{
|
|
1885
1891
|
indexed: false,
|
|
1886
|
-
internalType: "
|
|
1887
|
-
name: "
|
|
1888
|
-
type: "
|
|
1892
|
+
internalType: "address",
|
|
1893
|
+
name: "payer",
|
|
1894
|
+
type: "address"
|
|
1889
1895
|
},
|
|
1890
1896
|
{
|
|
1891
1897
|
indexed: false,
|
|
1892
|
-
internalType: "
|
|
1893
|
-
name: "
|
|
1894
|
-
type: "
|
|
1898
|
+
internalType: "bool",
|
|
1899
|
+
name: "isLiquidated",
|
|
1900
|
+
type: "bool"
|
|
1895
1901
|
}
|
|
1896
1902
|
],
|
|
1897
1903
|
name: "Payment",
|
|
@@ -1915,7 +1921,7 @@ var _abi2 = [
|
|
|
1915
1921
|
{
|
|
1916
1922
|
indexed: true,
|
|
1917
1923
|
internalType: "address",
|
|
1918
|
-
name: "
|
|
1924
|
+
name: "recipient",
|
|
1919
1925
|
type: "address"
|
|
1920
1926
|
},
|
|
1921
1927
|
{
|
|
@@ -1952,11 +1958,11 @@ var _abi2 = [
|
|
|
1952
1958
|
{
|
|
1953
1959
|
indexed: false,
|
|
1954
1960
|
internalType: "uint256",
|
|
1955
|
-
name: "
|
|
1961
|
+
name: "amount",
|
|
1956
1962
|
type: "uint256"
|
|
1957
1963
|
}
|
|
1958
1964
|
],
|
|
1959
|
-
name: "
|
|
1965
|
+
name: "Refund",
|
|
1960
1966
|
type: "event"
|
|
1961
1967
|
},
|
|
1962
1968
|
{
|
|
@@ -2015,6 +2021,29 @@ var _abi2 = [
|
|
|
2015
2021
|
stateMutability: "view",
|
|
2016
2022
|
type: "function"
|
|
2017
2023
|
},
|
|
2024
|
+
{
|
|
2025
|
+
inputs: [
|
|
2026
|
+
{
|
|
2027
|
+
internalType: "address",
|
|
2028
|
+
name: "apm",
|
|
2029
|
+
type: "address"
|
|
2030
|
+
},
|
|
2031
|
+
{
|
|
2032
|
+
internalType: "bytes32",
|
|
2033
|
+
name: "positionId",
|
|
2034
|
+
type: "bytes32"
|
|
2035
|
+
},
|
|
2036
|
+
{
|
|
2037
|
+
internalType: "bytes",
|
|
2038
|
+
name: "signature",
|
|
2039
|
+
type: "bytes"
|
|
2040
|
+
}
|
|
2041
|
+
],
|
|
2042
|
+
name: "finalizePosition",
|
|
2043
|
+
outputs: [],
|
|
2044
|
+
stateMutability: "nonpayable",
|
|
2045
|
+
type: "function"
|
|
2046
|
+
},
|
|
2018
2047
|
{
|
|
2019
2048
|
inputs: [
|
|
2020
2049
|
{
|
|
@@ -2071,26 +2100,26 @@ var _abi2 = [
|
|
|
2071
2100
|
},
|
|
2072
2101
|
{
|
|
2073
2102
|
inputs: [
|
|
2103
|
+
{
|
|
2104
|
+
internalType: "address",
|
|
2105
|
+
name: "apm",
|
|
2106
|
+
type: "address"
|
|
2107
|
+
},
|
|
2074
2108
|
{
|
|
2075
2109
|
internalType: "bytes32",
|
|
2076
|
-
name: "
|
|
2110
|
+
name: "positionId",
|
|
2077
2111
|
type: "bytes32"
|
|
2078
2112
|
},
|
|
2079
2113
|
{
|
|
2080
|
-
internalType: "
|
|
2081
|
-
name: "
|
|
2082
|
-
type: "
|
|
2114
|
+
internalType: "bytes32",
|
|
2115
|
+
name: "tradeId",
|
|
2116
|
+
type: "bytes32"
|
|
2083
2117
|
},
|
|
2084
2118
|
{
|
|
2085
2119
|
internalType: "uint256",
|
|
2086
2120
|
name: "amount",
|
|
2087
2121
|
type: "uint256"
|
|
2088
2122
|
},
|
|
2089
|
-
{
|
|
2090
|
-
internalType: "bytes32",
|
|
2091
|
-
name: "positionId",
|
|
2092
|
-
type: "bytes32"
|
|
2093
|
-
},
|
|
2094
2123
|
{
|
|
2095
2124
|
internalType: "bool",
|
|
2096
2125
|
name: "isLiquidate",
|
|
@@ -2098,7 +2127,7 @@ var _abi2 = [
|
|
|
2098
2127
|
},
|
|
2099
2128
|
{
|
|
2100
2129
|
internalType: "bytes",
|
|
2101
|
-
name: "
|
|
2130
|
+
name: "signature",
|
|
2102
2131
|
type: "bytes"
|
|
2103
2132
|
}
|
|
2104
2133
|
],
|