@optimex-xyz/market-maker-sdk 0.9.0-dev-d2e92dd → 0.9.0-dev-d18dfd7
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 +106 -635
- package/dist/index.d.ts +106 -635
- package/dist/index.js +53 -420
- package/dist/index.mjs +51 -418
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -112,7 +112,7 @@ var sdk = new SDK();
|
|
|
112
112
|
var factories_exports = {};
|
|
113
113
|
__export(factories_exports, {
|
|
114
114
|
ERC20__factory: () => ERC20__factory,
|
|
115
|
-
|
|
115
|
+
MorphoLiquidationGateway__factory: () => MorphoLiquidationGateway__factory,
|
|
116
116
|
Payment__factory: () => Payment__factory,
|
|
117
117
|
ProtocolFetcherProxy__factory: () => ProtocolFetcherProxy__factory,
|
|
118
118
|
Router__factory: () => Router__factory,
|
|
@@ -1519,14 +1519,14 @@ var ERC20__factory = class {
|
|
|
1519
1519
|
};
|
|
1520
1520
|
ERC20__factory.abi = _abi;
|
|
1521
1521
|
|
|
1522
|
-
// src/contracts/contracts/factories/
|
|
1522
|
+
// src/contracts/contracts/factories/MorphoLiquidationGateway__factory.ts
|
|
1523
1523
|
import { Contract as Contract2, Interface as Interface2 } from "ethers";
|
|
1524
1524
|
var _abi2 = [
|
|
1525
1525
|
{
|
|
1526
1526
|
inputs: [
|
|
1527
1527
|
{
|
|
1528
1528
|
internalType: "address",
|
|
1529
|
-
name: "
|
|
1529
|
+
name: "initProtocol",
|
|
1530
1530
|
type: "address"
|
|
1531
1531
|
},
|
|
1532
1532
|
{
|
|
@@ -1536,82 +1536,18 @@ var _abi2 = [
|
|
|
1536
1536
|
},
|
|
1537
1537
|
{
|
|
1538
1538
|
internalType: "string",
|
|
1539
|
-
name: "
|
|
1539
|
+
name: "symbol",
|
|
1540
1540
|
type: "string"
|
|
1541
1541
|
}
|
|
1542
1542
|
],
|
|
1543
1543
|
stateMutability: "nonpayable",
|
|
1544
1544
|
type: "constructor"
|
|
1545
1545
|
},
|
|
1546
|
-
{
|
|
1547
|
-
inputs: [],
|
|
1548
|
-
name: "ECDSAInvalidSignature",
|
|
1549
|
-
type: "error"
|
|
1550
|
-
},
|
|
1551
|
-
{
|
|
1552
|
-
inputs: [
|
|
1553
|
-
{
|
|
1554
|
-
internalType: "uint256",
|
|
1555
|
-
name: "length",
|
|
1556
|
-
type: "uint256"
|
|
1557
|
-
}
|
|
1558
|
-
],
|
|
1559
|
-
name: "ECDSAInvalidSignatureLength",
|
|
1560
|
-
type: "error"
|
|
1561
|
-
},
|
|
1562
|
-
{
|
|
1563
|
-
inputs: [
|
|
1564
|
-
{
|
|
1565
|
-
internalType: "bytes32",
|
|
1566
|
-
name: "s",
|
|
1567
|
-
type: "bytes32"
|
|
1568
|
-
}
|
|
1569
|
-
],
|
|
1570
|
-
name: "ECDSAInvalidSignatureS",
|
|
1571
|
-
type: "error"
|
|
1572
|
-
},
|
|
1573
1546
|
{
|
|
1574
1547
|
inputs: [],
|
|
1575
1548
|
name: "InvalidAmount",
|
|
1576
1549
|
type: "error"
|
|
1577
1550
|
},
|
|
1578
|
-
{
|
|
1579
|
-
inputs: [],
|
|
1580
|
-
name: "InvalidBorrowShares",
|
|
1581
|
-
type: "error"
|
|
1582
|
-
},
|
|
1583
|
-
{
|
|
1584
|
-
inputs: [
|
|
1585
|
-
{
|
|
1586
|
-
internalType: "bytes32",
|
|
1587
|
-
name: "positionId",
|
|
1588
|
-
type: "bytes32"
|
|
1589
|
-
}
|
|
1590
|
-
],
|
|
1591
|
-
name: "InvalidPositionId",
|
|
1592
|
-
type: "error"
|
|
1593
|
-
},
|
|
1594
|
-
{
|
|
1595
|
-
inputs: [],
|
|
1596
|
-
name: "InvalidShortString",
|
|
1597
|
-
type: "error"
|
|
1598
|
-
},
|
|
1599
|
-
{
|
|
1600
|
-
inputs: [
|
|
1601
|
-
{
|
|
1602
|
-
internalType: "address",
|
|
1603
|
-
name: "validator",
|
|
1604
|
-
type: "address"
|
|
1605
|
-
}
|
|
1606
|
-
],
|
|
1607
|
-
name: "InvalidValidator",
|
|
1608
|
-
type: "error"
|
|
1609
|
-
},
|
|
1610
|
-
{
|
|
1611
|
-
inputs: [],
|
|
1612
|
-
name: "ReentrancyGuardReentrantCall",
|
|
1613
|
-
type: "error"
|
|
1614
|
-
},
|
|
1615
1551
|
{
|
|
1616
1552
|
inputs: [
|
|
1617
1553
|
{
|
|
@@ -1644,33 +1580,6 @@ var _abi2 = [
|
|
|
1644
1580
|
name: "SafeERC20FailedOperation",
|
|
1645
1581
|
type: "error"
|
|
1646
1582
|
},
|
|
1647
|
-
{
|
|
1648
|
-
inputs: [
|
|
1649
|
-
{
|
|
1650
|
-
internalType: "string",
|
|
1651
|
-
name: "str",
|
|
1652
|
-
type: "string"
|
|
1653
|
-
}
|
|
1654
|
-
],
|
|
1655
|
-
name: "StringTooLong",
|
|
1656
|
-
type: "error"
|
|
1657
|
-
},
|
|
1658
|
-
{
|
|
1659
|
-
inputs: [
|
|
1660
|
-
{
|
|
1661
|
-
internalType: "address",
|
|
1662
|
-
name: "expected",
|
|
1663
|
-
type: "address"
|
|
1664
|
-
},
|
|
1665
|
-
{
|
|
1666
|
-
internalType: "address",
|
|
1667
|
-
name: "actual",
|
|
1668
|
-
type: "address"
|
|
1669
|
-
}
|
|
1670
|
-
],
|
|
1671
|
-
name: "TokenMismatch",
|
|
1672
|
-
type: "error"
|
|
1673
|
-
},
|
|
1674
1583
|
{
|
|
1675
1584
|
inputs: [
|
|
1676
1585
|
{
|
|
@@ -1687,61 +1596,25 @@ var _abi2 = [
|
|
|
1687
1596
|
name: "ZeroAddress",
|
|
1688
1597
|
type: "error"
|
|
1689
1598
|
},
|
|
1690
|
-
{
|
|
1691
|
-
inputs: [],
|
|
1692
|
-
name: "ZeroAmount",
|
|
1693
|
-
type: "error"
|
|
1694
|
-
},
|
|
1695
1599
|
{
|
|
1696
1600
|
anonymous: false,
|
|
1697
1601
|
inputs: [
|
|
1698
|
-
{
|
|
1699
|
-
indexed: true,
|
|
1700
|
-
internalType: "bytes32",
|
|
1701
|
-
name: "positionId",
|
|
1702
|
-
type: "bytes32"
|
|
1703
|
-
},
|
|
1704
1602
|
{
|
|
1705
1603
|
indexed: true,
|
|
1706
1604
|
internalType: "address",
|
|
1707
|
-
name: "
|
|
1605
|
+
name: "payer",
|
|
1708
1606
|
type: "address"
|
|
1709
1607
|
},
|
|
1710
1608
|
{
|
|
1711
1609
|
indexed: true,
|
|
1712
1610
|
internalType: "address",
|
|
1713
|
-
name: "
|
|
1611
|
+
name: "liquidator",
|
|
1714
1612
|
type: "address"
|
|
1715
1613
|
},
|
|
1716
1614
|
{
|
|
1717
1615
|
indexed: false,
|
|
1718
|
-
internalType: "uint256",
|
|
1719
|
-
name: "amount",
|
|
1720
|
-
type: "uint256"
|
|
1721
|
-
}
|
|
1722
|
-
],
|
|
1723
|
-
name: "Credit",
|
|
1724
|
-
type: "event"
|
|
1725
|
-
},
|
|
1726
|
-
{
|
|
1727
|
-
anonymous: false,
|
|
1728
|
-
inputs: [],
|
|
1729
|
-
name: "EIP712DomainChanged",
|
|
1730
|
-
type: "event"
|
|
1731
|
-
},
|
|
1732
|
-
{
|
|
1733
|
-
anonymous: false,
|
|
1734
|
-
inputs: [
|
|
1735
|
-
{
|
|
1736
|
-
indexed: true,
|
|
1737
|
-
internalType: "bytes32",
|
|
1738
|
-
name: "positionId",
|
|
1739
|
-
type: "bytes32"
|
|
1740
|
-
},
|
|
1741
|
-
{
|
|
1742
|
-
indexed: true,
|
|
1743
1616
|
internalType: "address",
|
|
1744
|
-
name: "
|
|
1617
|
+
name: "token",
|
|
1745
1618
|
type: "address"
|
|
1746
1619
|
},
|
|
1747
1620
|
{
|
|
@@ -1749,93 +1622,6 @@ var _abi2 = [
|
|
|
1749
1622
|
internalType: "uint256",
|
|
1750
1623
|
name: "amount",
|
|
1751
1624
|
type: "uint256"
|
|
1752
|
-
}
|
|
1753
|
-
],
|
|
1754
|
-
name: "FinalizePosition",
|
|
1755
|
-
type: "event"
|
|
1756
|
-
},
|
|
1757
|
-
{
|
|
1758
|
-
anonymous: false,
|
|
1759
|
-
inputs: [
|
|
1760
|
-
{
|
|
1761
|
-
indexed: true,
|
|
1762
|
-
internalType: "bytes32",
|
|
1763
|
-
name: "positionId",
|
|
1764
|
-
type: "bytes32"
|
|
1765
|
-
},
|
|
1766
|
-
{
|
|
1767
|
-
indexed: false,
|
|
1768
|
-
internalType: "uint256",
|
|
1769
|
-
name: "totalCollateral",
|
|
1770
|
-
type: "uint256"
|
|
1771
|
-
},
|
|
1772
|
-
{
|
|
1773
|
-
indexed: false,
|
|
1774
|
-
internalType: "uint256",
|
|
1775
|
-
name: "totalPayment",
|
|
1776
|
-
type: "uint256"
|
|
1777
|
-
},
|
|
1778
|
-
{
|
|
1779
|
-
indexed: false,
|
|
1780
|
-
internalType: "uint256",
|
|
1781
|
-
name: "repaidDebt",
|
|
1782
|
-
type: "uint256"
|
|
1783
|
-
}
|
|
1784
|
-
],
|
|
1785
|
-
name: "ForceClose",
|
|
1786
|
-
type: "event"
|
|
1787
|
-
},
|
|
1788
|
-
{
|
|
1789
|
-
anonymous: false,
|
|
1790
|
-
inputs: [
|
|
1791
|
-
{
|
|
1792
|
-
indexed: true,
|
|
1793
|
-
internalType: "bytes32",
|
|
1794
|
-
name: "positionId",
|
|
1795
|
-
type: "bytes32"
|
|
1796
|
-
},
|
|
1797
|
-
{
|
|
1798
|
-
indexed: false,
|
|
1799
|
-
internalType: "uint256",
|
|
1800
|
-
name: "totalCollateral",
|
|
1801
|
-
type: "uint256"
|
|
1802
|
-
},
|
|
1803
|
-
{
|
|
1804
|
-
indexed: false,
|
|
1805
|
-
internalType: "uint256",
|
|
1806
|
-
name: "seizedCollateral",
|
|
1807
|
-
type: "uint256"
|
|
1808
|
-
},
|
|
1809
|
-
{
|
|
1810
|
-
indexed: false,
|
|
1811
|
-
internalType: "uint256",
|
|
1812
|
-
name: "totalPayment",
|
|
1813
|
-
type: "uint256"
|
|
1814
|
-
},
|
|
1815
|
-
{
|
|
1816
|
-
indexed: false,
|
|
1817
|
-
internalType: "uint256",
|
|
1818
|
-
name: "repaidDebt",
|
|
1819
|
-
type: "uint256"
|
|
1820
|
-
}
|
|
1821
|
-
],
|
|
1822
|
-
name: "Liquidate",
|
|
1823
|
-
type: "event"
|
|
1824
|
-
},
|
|
1825
|
-
{
|
|
1826
|
-
anonymous: false,
|
|
1827
|
-
inputs: [
|
|
1828
|
-
{
|
|
1829
|
-
indexed: true,
|
|
1830
|
-
internalType: "address",
|
|
1831
|
-
name: "apm",
|
|
1832
|
-
type: "address"
|
|
1833
|
-
},
|
|
1834
|
-
{
|
|
1835
|
-
indexed: false,
|
|
1836
|
-
internalType: "uint256",
|
|
1837
|
-
name: "repaidAssets",
|
|
1838
|
-
type: "uint256"
|
|
1839
1625
|
},
|
|
1840
1626
|
{
|
|
1841
1627
|
indexed: false,
|
|
@@ -1844,115 +1630,35 @@ var _abi2 = [
|
|
|
1844
1630
|
type: "bytes"
|
|
1845
1631
|
}
|
|
1846
1632
|
],
|
|
1847
|
-
name: "
|
|
1848
|
-
type: "event"
|
|
1849
|
-
},
|
|
1850
|
-
{
|
|
1851
|
-
anonymous: false,
|
|
1852
|
-
inputs: [
|
|
1853
|
-
{
|
|
1854
|
-
indexed: true,
|
|
1855
|
-
internalType: "address",
|
|
1856
|
-
name: "apm",
|
|
1857
|
-
type: "address"
|
|
1858
|
-
},
|
|
1859
|
-
{
|
|
1860
|
-
indexed: false,
|
|
1861
|
-
internalType: "uint256",
|
|
1862
|
-
name: "repaidAssets",
|
|
1863
|
-
type: "uint256"
|
|
1864
|
-
},
|
|
1865
|
-
{
|
|
1866
|
-
indexed: false,
|
|
1867
|
-
internalType: "bytes",
|
|
1868
|
-
name: "data",
|
|
1869
|
-
type: "bytes"
|
|
1870
|
-
}
|
|
1871
|
-
],
|
|
1872
|
-
name: "OnMorphoRepay",
|
|
1873
|
-
type: "event"
|
|
1874
|
-
},
|
|
1875
|
-
{
|
|
1876
|
-
anonymous: false,
|
|
1877
|
-
inputs: [
|
|
1878
|
-
{
|
|
1879
|
-
indexed: true,
|
|
1880
|
-
internalType: "bytes32",
|
|
1881
|
-
name: "positionId",
|
|
1882
|
-
type: "bytes32"
|
|
1883
|
-
},
|
|
1884
|
-
{
|
|
1885
|
-
indexed: true,
|
|
1886
|
-
internalType: "address",
|
|
1887
|
-
name: "apm",
|
|
1888
|
-
type: "address"
|
|
1889
|
-
},
|
|
1890
|
-
{
|
|
1891
|
-
indexed: true,
|
|
1892
|
-
internalType: "bytes32",
|
|
1893
|
-
name: "tradeId",
|
|
1894
|
-
type: "bytes32"
|
|
1895
|
-
},
|
|
1896
|
-
{
|
|
1897
|
-
indexed: false,
|
|
1898
|
-
internalType: "bytes32",
|
|
1899
|
-
name: "marketId",
|
|
1900
|
-
type: "bytes32"
|
|
1901
|
-
},
|
|
1902
|
-
{
|
|
1903
|
-
indexed: false,
|
|
1904
|
-
internalType: "address",
|
|
1905
|
-
name: "payer",
|
|
1906
|
-
type: "address"
|
|
1907
|
-
},
|
|
1908
|
-
{
|
|
1909
|
-
indexed: false,
|
|
1910
|
-
internalType: "bool",
|
|
1911
|
-
name: "isLiquidated",
|
|
1912
|
-
type: "bool"
|
|
1913
|
-
}
|
|
1914
|
-
],
|
|
1915
|
-
name: "Payment",
|
|
1633
|
+
name: "PaymentExecuted",
|
|
1916
1634
|
type: "event"
|
|
1917
1635
|
},
|
|
1918
1636
|
{
|
|
1919
1637
|
anonymous: false,
|
|
1920
1638
|
inputs: [
|
|
1921
|
-
{
|
|
1922
|
-
indexed: true,
|
|
1923
|
-
internalType: "bytes32",
|
|
1924
|
-
name: "positionId",
|
|
1925
|
-
type: "bytes32"
|
|
1926
|
-
},
|
|
1927
1639
|
{
|
|
1928
1640
|
indexed: true,
|
|
1929
1641
|
internalType: "address",
|
|
1930
|
-
name: "
|
|
1642
|
+
name: "operator",
|
|
1931
1643
|
type: "address"
|
|
1932
1644
|
},
|
|
1933
1645
|
{
|
|
1934
1646
|
indexed: true,
|
|
1935
1647
|
internalType: "address",
|
|
1936
|
-
name: "
|
|
1648
|
+
name: "newProtocol",
|
|
1937
1649
|
type: "address"
|
|
1938
|
-
},
|
|
1939
|
-
{
|
|
1940
|
-
indexed: false,
|
|
1941
|
-
internalType: "uint256",
|
|
1942
|
-
name: "amount",
|
|
1943
|
-
type: "uint256"
|
|
1944
1650
|
}
|
|
1945
1651
|
],
|
|
1946
|
-
name: "
|
|
1652
|
+
name: "ProtocolUpdated",
|
|
1947
1653
|
type: "event"
|
|
1948
1654
|
},
|
|
1949
1655
|
{
|
|
1950
1656
|
inputs: [],
|
|
1951
|
-
name: "
|
|
1657
|
+
name: "getProtocol",
|
|
1952
1658
|
outputs: [
|
|
1953
1659
|
{
|
|
1954
|
-
internalType: "
|
|
1955
|
-
name: "",
|
|
1660
|
+
internalType: "address",
|
|
1661
|
+
name: "protocol",
|
|
1956
1662
|
type: "address"
|
|
1957
1663
|
}
|
|
1958
1664
|
],
|
|
@@ -1961,13 +1667,8 @@ var _abi2 = [
|
|
|
1961
1667
|
},
|
|
1962
1668
|
{
|
|
1963
1669
|
inputs: [],
|
|
1964
|
-
name: "
|
|
1670
|
+
name: "optimexDomain",
|
|
1965
1671
|
outputs: [
|
|
1966
|
-
{
|
|
1967
|
-
internalType: "bytes1",
|
|
1968
|
-
name: "fields",
|
|
1969
|
-
type: "bytes1"
|
|
1970
|
-
},
|
|
1971
1672
|
{
|
|
1972
1673
|
internalType: "string",
|
|
1973
1674
|
name: "name",
|
|
@@ -1977,26 +1678,6 @@ var _abi2 = [
|
|
|
1977
1678
|
internalType: "string",
|
|
1978
1679
|
name: "version",
|
|
1979
1680
|
type: "string"
|
|
1980
|
-
},
|
|
1981
|
-
{
|
|
1982
|
-
internalType: "uint256",
|
|
1983
|
-
name: "chainId",
|
|
1984
|
-
type: "uint256"
|
|
1985
|
-
},
|
|
1986
|
-
{
|
|
1987
|
-
internalType: "address",
|
|
1988
|
-
name: "verifyingContract",
|
|
1989
|
-
type: "address"
|
|
1990
|
-
},
|
|
1991
|
-
{
|
|
1992
|
-
internalType: "bytes32",
|
|
1993
|
-
name: "salt",
|
|
1994
|
-
type: "bytes32"
|
|
1995
|
-
},
|
|
1996
|
-
{
|
|
1997
|
-
internalType: "uint256[]",
|
|
1998
|
-
name: "extensions",
|
|
1999
|
-
type: "uint256[]"
|
|
2000
1681
|
}
|
|
2001
1682
|
],
|
|
2002
1683
|
stateMutability: "view",
|
|
@@ -2006,74 +1687,43 @@ var _abi2 = [
|
|
|
2006
1687
|
inputs: [
|
|
2007
1688
|
{
|
|
2008
1689
|
internalType: "address",
|
|
2009
|
-
name: "
|
|
1690
|
+
name: "token",
|
|
2010
1691
|
type: "address"
|
|
2011
1692
|
},
|
|
2012
|
-
{
|
|
2013
|
-
internalType: "bytes32",
|
|
2014
|
-
name: "positionId",
|
|
2015
|
-
type: "bytes32"
|
|
2016
|
-
},
|
|
2017
|
-
{
|
|
2018
|
-
internalType: "bytes",
|
|
2019
|
-
name: "signature",
|
|
2020
|
-
type: "bytes"
|
|
2021
|
-
}
|
|
2022
|
-
],
|
|
2023
|
-
name: "finalizePosition",
|
|
2024
|
-
outputs: [],
|
|
2025
|
-
stateMutability: "nonpayable",
|
|
2026
|
-
type: "function"
|
|
2027
|
-
},
|
|
2028
|
-
{
|
|
2029
|
-
inputs: [
|
|
2030
1693
|
{
|
|
2031
1694
|
internalType: "uint256",
|
|
2032
|
-
name: "
|
|
2033
|
-
type: "uint256"
|
|
2034
|
-
},
|
|
2035
|
-
{
|
|
2036
|
-
internalType: "bytes",
|
|
2037
|
-
name: "data",
|
|
2038
|
-
type: "bytes"
|
|
2039
|
-
}
|
|
2040
|
-
],
|
|
2041
|
-
name: "onMorphoLiquidate",
|
|
2042
|
-
outputs: [],
|
|
2043
|
-
stateMutability: "nonpayable",
|
|
2044
|
-
type: "function"
|
|
2045
|
-
},
|
|
2046
|
-
{
|
|
2047
|
-
inputs: [
|
|
2048
|
-
{
|
|
2049
|
-
internalType: "uint256",
|
|
2050
|
-
name: "repaidAssets",
|
|
1695
|
+
name: "amount",
|
|
2051
1696
|
type: "uint256"
|
|
2052
1697
|
},
|
|
2053
1698
|
{
|
|
2054
1699
|
internalType: "bytes",
|
|
2055
|
-
name: "
|
|
1700
|
+
name: "externalCall",
|
|
2056
1701
|
type: "bytes"
|
|
2057
1702
|
}
|
|
2058
1703
|
],
|
|
2059
|
-
name: "
|
|
1704
|
+
name: "payment",
|
|
2060
1705
|
outputs: [],
|
|
2061
1706
|
stateMutability: "nonpayable",
|
|
2062
1707
|
type: "function"
|
|
2063
1708
|
},
|
|
2064
1709
|
{
|
|
2065
1710
|
inputs: [],
|
|
2066
|
-
name: "
|
|
1711
|
+
name: "paymentDetails",
|
|
2067
1712
|
outputs: [
|
|
2068
1713
|
{
|
|
2069
|
-
internalType: "
|
|
2070
|
-
name: "
|
|
2071
|
-
type: "
|
|
1714
|
+
internalType: "address",
|
|
1715
|
+
name: "payer",
|
|
1716
|
+
type: "address"
|
|
2072
1717
|
},
|
|
2073
1718
|
{
|
|
2074
|
-
internalType: "
|
|
2075
|
-
name: "
|
|
2076
|
-
type: "
|
|
1719
|
+
internalType: "address",
|
|
1720
|
+
name: "paymentToken",
|
|
1721
|
+
type: "address"
|
|
1722
|
+
},
|
|
1723
|
+
{
|
|
1724
|
+
internalType: "uint256",
|
|
1725
|
+
name: "paymentAmount",
|
|
1726
|
+
type: "uint256"
|
|
2077
1727
|
}
|
|
2078
1728
|
],
|
|
2079
1729
|
stateMutability: "view",
|
|
@@ -2083,50 +1733,29 @@ var _abi2 = [
|
|
|
2083
1733
|
inputs: [
|
|
2084
1734
|
{
|
|
2085
1735
|
internalType: "address",
|
|
2086
|
-
name: "
|
|
1736
|
+
name: "newProtocol",
|
|
2087
1737
|
type: "address"
|
|
2088
|
-
},
|
|
2089
|
-
{
|
|
2090
|
-
internalType: "bytes32",
|
|
2091
|
-
name: "positionId",
|
|
2092
|
-
type: "bytes32"
|
|
2093
|
-
},
|
|
2094
|
-
{
|
|
2095
|
-
internalType: "bytes32",
|
|
2096
|
-
name: "tradeId",
|
|
2097
|
-
type: "bytes32"
|
|
2098
|
-
},
|
|
2099
|
-
{
|
|
2100
|
-
internalType: "uint256",
|
|
2101
|
-
name: "amount",
|
|
2102
|
-
type: "uint256"
|
|
2103
|
-
},
|
|
2104
|
-
{
|
|
2105
|
-
internalType: "bool",
|
|
2106
|
-
name: "isLiquidate",
|
|
2107
|
-
type: "bool"
|
|
2108
|
-
},
|
|
2109
|
-
{
|
|
2110
|
-
internalType: "bytes",
|
|
2111
|
-
name: "signature",
|
|
2112
|
-
type: "bytes"
|
|
2113
1738
|
}
|
|
2114
1739
|
],
|
|
2115
|
-
name: "
|
|
1740
|
+
name: "setProtocol",
|
|
2116
1741
|
outputs: [],
|
|
2117
1742
|
stateMutability: "nonpayable",
|
|
2118
1743
|
type: "function"
|
|
2119
1744
|
}
|
|
2120
1745
|
];
|
|
2121
|
-
var
|
|
1746
|
+
var MorphoLiquidationGateway__factory = class {
|
|
2122
1747
|
static createInterface() {
|
|
2123
1748
|
return new Interface2(_abi2);
|
|
2124
1749
|
}
|
|
2125
1750
|
static connect(address, runner) {
|
|
2126
|
-
return new Contract2(
|
|
1751
|
+
return new Contract2(
|
|
1752
|
+
address,
|
|
1753
|
+
_abi2,
|
|
1754
|
+
runner
|
|
1755
|
+
);
|
|
2127
1756
|
}
|
|
2128
1757
|
};
|
|
2129
|
-
|
|
1758
|
+
MorphoLiquidationGateway__factory.abi = _abi2;
|
|
2130
1759
|
|
|
2131
1760
|
// src/contracts/contracts/factories/Payment__factory.ts
|
|
2132
1761
|
import { Contract as Contract3, Interface as Interface3 } from "ethers";
|
|
@@ -5089,11 +4718,15 @@ var isL2Network = (network) => {
|
|
|
5089
4718
|
};
|
|
5090
4719
|
|
|
5091
4720
|
// src/shared/role.ts
|
|
5092
|
-
var
|
|
5093
|
-
|
|
5094
|
-
|
|
5095
|
-
|
|
5096
|
-
|
|
4721
|
+
var AssetChainContractRole = /* @__PURE__ */ ((AssetChainContractRole3) => {
|
|
4722
|
+
AssetChainContractRole3["AcrossTransitVault"] = "AcrossTransitVault";
|
|
4723
|
+
AssetChainContractRole3["Payment"] = "OptimexSwapPayment";
|
|
4724
|
+
AssetChainContractRole3["OptimexManagement"] = "OptimexManagement";
|
|
4725
|
+
AssetChainContractRole3["MorphoSupplier"] = "MorphoSupplier";
|
|
4726
|
+
AssetChainContractRole3["MorphoLiquidationGateway"] = "MorphoLiquidationGateway";
|
|
4727
|
+
AssetChainContractRole3["MorphoManagement"] = "MorphoManagement";
|
|
4728
|
+
return AssetChainContractRole3;
|
|
4729
|
+
})(AssetChainContractRole || {});
|
|
5097
4730
|
var L2ContractRole = /* @__PURE__ */ ((L2ContractRole3) => {
|
|
5098
4731
|
L2ContractRole3["MorphoAdapter"] = "MorphoAdapter";
|
|
5099
4732
|
L2ContractRole3["MorphoMarketRegistry"] = "MorphoMarketRegistry";
|
|
@@ -5667,10 +5300,10 @@ async function getSignature(Signer2, provider, signerHelper, tradeId, infoHash,
|
|
|
5667
5300
|
return await Signer2.signTypedData(domain ?? contractDomain, getSignatureType(type), values);
|
|
5668
5301
|
}
|
|
5669
5302
|
export {
|
|
5670
|
-
|
|
5303
|
+
AssetChainContractRole,
|
|
5671
5304
|
ERC20__factory,
|
|
5672
5305
|
L2ContractRole,
|
|
5673
|
-
|
|
5306
|
+
MorphoLiquidationGateway__factory,
|
|
5674
5307
|
OptimexBtcNetwork,
|
|
5675
5308
|
OptimexEvmNetwork,
|
|
5676
5309
|
OptimexL2Network,
|