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