@optimex-xyz/market-maker-sdk 0.8.0 → 0.9.0-dev-cb35949
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 +10 -6
- package/dist/index.d.mts +620 -2
- package/dist/index.d.ts +620 -2
- package/dist/index.js +489 -47
- package/dist/index.mjs +465 -26
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -12,6 +12,9 @@ var environments = {
|
|
|
12
12
|
protocolFetcherProxyAddress: "0x0267Fc04eE866b31907dEe123aBdCdB67d03B297",
|
|
13
13
|
paymentAddressMap: {
|
|
14
14
|
ethereum_sepolia: "0x1d8b58438D5Ccc8Fcb4b738C89078f7b4168C9c0"
|
|
15
|
+
},
|
|
16
|
+
liquidationAddressMap: {
|
|
17
|
+
ethereum_sepolia: "0x63f56c6e602f288821bea31ccdd9b1e189305f38"
|
|
15
18
|
}
|
|
16
19
|
},
|
|
17
20
|
staging: {
|
|
@@ -20,7 +23,8 @@ var environments = {
|
|
|
20
23
|
protocolFetcherProxyAddress: "0x7c07151ca4DFd93F352Ab9B132A95866697c38c2",
|
|
21
24
|
paymentAddressMap: {
|
|
22
25
|
ethereum_sepolia: "0x7387DcCfE2f1D5F80b4ECDF91eF58541517e90D2"
|
|
23
|
-
}
|
|
26
|
+
},
|
|
27
|
+
liquidationAddressMap: {}
|
|
24
28
|
},
|
|
25
29
|
prelive: {
|
|
26
30
|
backendUrl: "https://pre-api.optimex.xyz",
|
|
@@ -28,7 +32,8 @@ var environments = {
|
|
|
28
32
|
protocolFetcherProxyAddress: "0xFDEd4CEf9aE1E03D0BeF161262a266c1c157a32b",
|
|
29
33
|
paymentAddressMap: {
|
|
30
34
|
ethereum: "0x0A497AC4261E37FA4062762C23Cf3cB642C839b8"
|
|
31
|
-
}
|
|
35
|
+
},
|
|
36
|
+
liquidationAddressMap: {}
|
|
32
37
|
},
|
|
33
38
|
production: {
|
|
34
39
|
backendUrl: "https://api.optimex.xyz",
|
|
@@ -36,7 +41,8 @@ var environments = {
|
|
|
36
41
|
protocolFetcherProxyAddress: "0xFDEd4CEf9aE1E03D0BeF161262a266c1c157a32b",
|
|
37
42
|
paymentAddressMap: {
|
|
38
43
|
ethereum: "0x0A497AC4261E37FA4062762C23Cf3cB642C839b8"
|
|
39
|
-
}
|
|
44
|
+
},
|
|
45
|
+
liquidationAddressMap: {}
|
|
40
46
|
}
|
|
41
47
|
};
|
|
42
48
|
var Config = class {
|
|
@@ -120,6 +126,7 @@ var sdk = new SDK();
|
|
|
120
126
|
var factories_exports = {};
|
|
121
127
|
__export(factories_exports, {
|
|
122
128
|
ERC20__factory: () => ERC20__factory,
|
|
129
|
+
LendingLiquidation__factory: () => LendingLiquidation__factory,
|
|
123
130
|
Payment__factory: () => Payment__factory,
|
|
124
131
|
ProtocolFetcherProxy__factory: () => ProtocolFetcherProxy__factory,
|
|
125
132
|
Router__factory: () => Router__factory,
|
|
@@ -1526,9 +1533,440 @@ var ERC20__factory = class {
|
|
|
1526
1533
|
};
|
|
1527
1534
|
ERC20__factory.abi = _abi;
|
|
1528
1535
|
|
|
1529
|
-
// src/contracts/contracts/factories/
|
|
1536
|
+
// src/contracts/contracts/factories/LendingLiquidation__factory.ts
|
|
1530
1537
|
import { Contract as Contract2, Interface as Interface2 } from "ethers";
|
|
1531
1538
|
var _abi2 = [
|
|
1539
|
+
{
|
|
1540
|
+
inputs: [
|
|
1541
|
+
{
|
|
1542
|
+
internalType: "address",
|
|
1543
|
+
name: "_owBtc",
|
|
1544
|
+
type: "address"
|
|
1545
|
+
},
|
|
1546
|
+
{
|
|
1547
|
+
internalType: "address",
|
|
1548
|
+
name: "_morpho",
|
|
1549
|
+
type: "address"
|
|
1550
|
+
},
|
|
1551
|
+
{
|
|
1552
|
+
internalType: "address",
|
|
1553
|
+
name: "_lendingManagement",
|
|
1554
|
+
type: "address"
|
|
1555
|
+
},
|
|
1556
|
+
{
|
|
1557
|
+
internalType: "string",
|
|
1558
|
+
name: "name",
|
|
1559
|
+
type: "string"
|
|
1560
|
+
},
|
|
1561
|
+
{
|
|
1562
|
+
internalType: "string",
|
|
1563
|
+
name: "version",
|
|
1564
|
+
type: "string"
|
|
1565
|
+
}
|
|
1566
|
+
],
|
|
1567
|
+
stateMutability: "nonpayable",
|
|
1568
|
+
type: "constructor"
|
|
1569
|
+
},
|
|
1570
|
+
{
|
|
1571
|
+
inputs: [],
|
|
1572
|
+
name: "ECDSAInvalidSignature",
|
|
1573
|
+
type: "error"
|
|
1574
|
+
},
|
|
1575
|
+
{
|
|
1576
|
+
inputs: [
|
|
1577
|
+
{
|
|
1578
|
+
internalType: "uint256",
|
|
1579
|
+
name: "length",
|
|
1580
|
+
type: "uint256"
|
|
1581
|
+
}
|
|
1582
|
+
],
|
|
1583
|
+
name: "ECDSAInvalidSignatureLength",
|
|
1584
|
+
type: "error"
|
|
1585
|
+
},
|
|
1586
|
+
{
|
|
1587
|
+
inputs: [
|
|
1588
|
+
{
|
|
1589
|
+
internalType: "bytes32",
|
|
1590
|
+
name: "s",
|
|
1591
|
+
type: "bytes32"
|
|
1592
|
+
}
|
|
1593
|
+
],
|
|
1594
|
+
name: "ECDSAInvalidSignatureS",
|
|
1595
|
+
type: "error"
|
|
1596
|
+
},
|
|
1597
|
+
{
|
|
1598
|
+
inputs: [],
|
|
1599
|
+
name: "InvalidMorpho",
|
|
1600
|
+
type: "error"
|
|
1601
|
+
},
|
|
1602
|
+
{
|
|
1603
|
+
inputs: [],
|
|
1604
|
+
name: "InvalidShortString",
|
|
1605
|
+
type: "error"
|
|
1606
|
+
},
|
|
1607
|
+
{
|
|
1608
|
+
inputs: [
|
|
1609
|
+
{
|
|
1610
|
+
internalType: "address",
|
|
1611
|
+
name: "validator",
|
|
1612
|
+
type: "address"
|
|
1613
|
+
}
|
|
1614
|
+
],
|
|
1615
|
+
name: "NotAuthorizedValidator",
|
|
1616
|
+
type: "error"
|
|
1617
|
+
},
|
|
1618
|
+
{
|
|
1619
|
+
inputs: [],
|
|
1620
|
+
name: "NotEnoughPaymentAmount",
|
|
1621
|
+
type: "error"
|
|
1622
|
+
},
|
|
1623
|
+
{
|
|
1624
|
+
inputs: [
|
|
1625
|
+
{
|
|
1626
|
+
internalType: "string",
|
|
1627
|
+
name: "str",
|
|
1628
|
+
type: "string"
|
|
1629
|
+
}
|
|
1630
|
+
],
|
|
1631
|
+
name: "StringTooLong",
|
|
1632
|
+
type: "error"
|
|
1633
|
+
},
|
|
1634
|
+
{
|
|
1635
|
+
anonymous: false,
|
|
1636
|
+
inputs: [],
|
|
1637
|
+
name: "EIP712DomainChanged",
|
|
1638
|
+
type: "event"
|
|
1639
|
+
},
|
|
1640
|
+
{
|
|
1641
|
+
anonymous: false,
|
|
1642
|
+
inputs: [
|
|
1643
|
+
{
|
|
1644
|
+
indexed: true,
|
|
1645
|
+
internalType: "address",
|
|
1646
|
+
name: "positionManager",
|
|
1647
|
+
type: "address"
|
|
1648
|
+
},
|
|
1649
|
+
{
|
|
1650
|
+
indexed: true,
|
|
1651
|
+
internalType: "bytes32",
|
|
1652
|
+
name: "positionId",
|
|
1653
|
+
type: "bytes32"
|
|
1654
|
+
},
|
|
1655
|
+
{
|
|
1656
|
+
indexed: true,
|
|
1657
|
+
internalType: "bytes32",
|
|
1658
|
+
name: "tradeId",
|
|
1659
|
+
type: "bytes32"
|
|
1660
|
+
},
|
|
1661
|
+
{
|
|
1662
|
+
indexed: false,
|
|
1663
|
+
internalType: "bytes32",
|
|
1664
|
+
name: "marketId",
|
|
1665
|
+
type: "bytes32"
|
|
1666
|
+
},
|
|
1667
|
+
{
|
|
1668
|
+
indexed: false,
|
|
1669
|
+
internalType: "uint256",
|
|
1670
|
+
name: "repaidLoan",
|
|
1671
|
+
type: "uint256"
|
|
1672
|
+
},
|
|
1673
|
+
{
|
|
1674
|
+
indexed: false,
|
|
1675
|
+
internalType: "uint256",
|
|
1676
|
+
name: "userRefund",
|
|
1677
|
+
type: "uint256"
|
|
1678
|
+
}
|
|
1679
|
+
],
|
|
1680
|
+
name: "ForceClose",
|
|
1681
|
+
type: "event"
|
|
1682
|
+
},
|
|
1683
|
+
{
|
|
1684
|
+
anonymous: false,
|
|
1685
|
+
inputs: [
|
|
1686
|
+
{
|
|
1687
|
+
indexed: true,
|
|
1688
|
+
internalType: "address",
|
|
1689
|
+
name: "positionManager",
|
|
1690
|
+
type: "address"
|
|
1691
|
+
},
|
|
1692
|
+
{
|
|
1693
|
+
indexed: true,
|
|
1694
|
+
internalType: "bytes32",
|
|
1695
|
+
name: "positionId",
|
|
1696
|
+
type: "bytes32"
|
|
1697
|
+
},
|
|
1698
|
+
{
|
|
1699
|
+
indexed: true,
|
|
1700
|
+
internalType: "bytes32",
|
|
1701
|
+
name: "tradeId",
|
|
1702
|
+
type: "bytes32"
|
|
1703
|
+
},
|
|
1704
|
+
{
|
|
1705
|
+
indexed: false,
|
|
1706
|
+
internalType: "bytes32",
|
|
1707
|
+
name: "marketId",
|
|
1708
|
+
type: "bytes32"
|
|
1709
|
+
},
|
|
1710
|
+
{
|
|
1711
|
+
indexed: false,
|
|
1712
|
+
internalType: "uint256",
|
|
1713
|
+
name: "seizedCollateral",
|
|
1714
|
+
type: "uint256"
|
|
1715
|
+
},
|
|
1716
|
+
{
|
|
1717
|
+
indexed: false,
|
|
1718
|
+
internalType: "uint256",
|
|
1719
|
+
name: "remainingCollateral",
|
|
1720
|
+
type: "uint256"
|
|
1721
|
+
},
|
|
1722
|
+
{
|
|
1723
|
+
indexed: false,
|
|
1724
|
+
internalType: "uint256",
|
|
1725
|
+
name: "repaidLoan",
|
|
1726
|
+
type: "uint256"
|
|
1727
|
+
},
|
|
1728
|
+
{
|
|
1729
|
+
indexed: false,
|
|
1730
|
+
internalType: "uint256",
|
|
1731
|
+
name: "bonusLoan",
|
|
1732
|
+
type: "uint256"
|
|
1733
|
+
}
|
|
1734
|
+
],
|
|
1735
|
+
name: "Liquidate",
|
|
1736
|
+
type: "event"
|
|
1737
|
+
},
|
|
1738
|
+
{
|
|
1739
|
+
anonymous: false,
|
|
1740
|
+
inputs: [
|
|
1741
|
+
{
|
|
1742
|
+
indexed: true,
|
|
1743
|
+
internalType: "address",
|
|
1744
|
+
name: "positionManager",
|
|
1745
|
+
type: "address"
|
|
1746
|
+
},
|
|
1747
|
+
{
|
|
1748
|
+
indexed: true,
|
|
1749
|
+
internalType: "bytes32",
|
|
1750
|
+
name: "positionId",
|
|
1751
|
+
type: "bytes32"
|
|
1752
|
+
},
|
|
1753
|
+
{
|
|
1754
|
+
indexed: true,
|
|
1755
|
+
internalType: "bytes32",
|
|
1756
|
+
name: "tradeId",
|
|
1757
|
+
type: "bytes32"
|
|
1758
|
+
},
|
|
1759
|
+
{
|
|
1760
|
+
indexed: false,
|
|
1761
|
+
internalType: "address",
|
|
1762
|
+
name: "sender",
|
|
1763
|
+
type: "address"
|
|
1764
|
+
},
|
|
1765
|
+
{
|
|
1766
|
+
indexed: false,
|
|
1767
|
+
internalType: "bytes32",
|
|
1768
|
+
name: "marketId",
|
|
1769
|
+
type: "bytes32"
|
|
1770
|
+
},
|
|
1771
|
+
{
|
|
1772
|
+
indexed: false,
|
|
1773
|
+
internalType: "uint256",
|
|
1774
|
+
name: "amount",
|
|
1775
|
+
type: "uint256"
|
|
1776
|
+
},
|
|
1777
|
+
{
|
|
1778
|
+
indexed: false,
|
|
1779
|
+
internalType: "uint256",
|
|
1780
|
+
name: "collateral",
|
|
1781
|
+
type: "uint256"
|
|
1782
|
+
}
|
|
1783
|
+
],
|
|
1784
|
+
name: "Payment",
|
|
1785
|
+
type: "event"
|
|
1786
|
+
},
|
|
1787
|
+
{
|
|
1788
|
+
inputs: [],
|
|
1789
|
+
name: "LENDING_MANAGEMENT",
|
|
1790
|
+
outputs: [
|
|
1791
|
+
{
|
|
1792
|
+
internalType: "contract ILendingManagement",
|
|
1793
|
+
name: "",
|
|
1794
|
+
type: "address"
|
|
1795
|
+
}
|
|
1796
|
+
],
|
|
1797
|
+
stateMutability: "view",
|
|
1798
|
+
type: "function"
|
|
1799
|
+
},
|
|
1800
|
+
{
|
|
1801
|
+
inputs: [],
|
|
1802
|
+
name: "MORPHO",
|
|
1803
|
+
outputs: [
|
|
1804
|
+
{
|
|
1805
|
+
internalType: "contract IMorpho",
|
|
1806
|
+
name: "",
|
|
1807
|
+
type: "address"
|
|
1808
|
+
}
|
|
1809
|
+
],
|
|
1810
|
+
stateMutability: "view",
|
|
1811
|
+
type: "function"
|
|
1812
|
+
},
|
|
1813
|
+
{
|
|
1814
|
+
inputs: [],
|
|
1815
|
+
name: "VALIDATOR_FORCE_CLOSE_TYPEHASH",
|
|
1816
|
+
outputs: [
|
|
1817
|
+
{
|
|
1818
|
+
internalType: "bytes32",
|
|
1819
|
+
name: "",
|
|
1820
|
+
type: "bytes32"
|
|
1821
|
+
}
|
|
1822
|
+
],
|
|
1823
|
+
stateMutability: "view",
|
|
1824
|
+
type: "function"
|
|
1825
|
+
},
|
|
1826
|
+
{
|
|
1827
|
+
inputs: [],
|
|
1828
|
+
name: "eip712Domain",
|
|
1829
|
+
outputs: [
|
|
1830
|
+
{
|
|
1831
|
+
internalType: "bytes1",
|
|
1832
|
+
name: "fields",
|
|
1833
|
+
type: "bytes1"
|
|
1834
|
+
},
|
|
1835
|
+
{
|
|
1836
|
+
internalType: "string",
|
|
1837
|
+
name: "name",
|
|
1838
|
+
type: "string"
|
|
1839
|
+
},
|
|
1840
|
+
{
|
|
1841
|
+
internalType: "string",
|
|
1842
|
+
name: "version",
|
|
1843
|
+
type: "string"
|
|
1844
|
+
},
|
|
1845
|
+
{
|
|
1846
|
+
internalType: "uint256",
|
|
1847
|
+
name: "chainId",
|
|
1848
|
+
type: "uint256"
|
|
1849
|
+
},
|
|
1850
|
+
{
|
|
1851
|
+
internalType: "address",
|
|
1852
|
+
name: "verifyingContract",
|
|
1853
|
+
type: "address"
|
|
1854
|
+
},
|
|
1855
|
+
{
|
|
1856
|
+
internalType: "bytes32",
|
|
1857
|
+
name: "salt",
|
|
1858
|
+
type: "bytes32"
|
|
1859
|
+
},
|
|
1860
|
+
{
|
|
1861
|
+
internalType: "uint256[]",
|
|
1862
|
+
name: "extensions",
|
|
1863
|
+
type: "uint256[]"
|
|
1864
|
+
}
|
|
1865
|
+
],
|
|
1866
|
+
stateMutability: "view",
|
|
1867
|
+
type: "function"
|
|
1868
|
+
},
|
|
1869
|
+
{
|
|
1870
|
+
inputs: [
|
|
1871
|
+
{
|
|
1872
|
+
internalType: "uint256",
|
|
1873
|
+
name: "repaidAssets",
|
|
1874
|
+
type: "uint256"
|
|
1875
|
+
},
|
|
1876
|
+
{
|
|
1877
|
+
internalType: "bytes",
|
|
1878
|
+
name: "data",
|
|
1879
|
+
type: "bytes"
|
|
1880
|
+
}
|
|
1881
|
+
],
|
|
1882
|
+
name: "onMorphoLiquidate",
|
|
1883
|
+
outputs: [],
|
|
1884
|
+
stateMutability: "nonpayable",
|
|
1885
|
+
type: "function"
|
|
1886
|
+
},
|
|
1887
|
+
{
|
|
1888
|
+
inputs: [],
|
|
1889
|
+
name: "optimexDomain",
|
|
1890
|
+
outputs: [
|
|
1891
|
+
{
|
|
1892
|
+
internalType: "string",
|
|
1893
|
+
name: "name",
|
|
1894
|
+
type: "string"
|
|
1895
|
+
},
|
|
1896
|
+
{
|
|
1897
|
+
internalType: "string",
|
|
1898
|
+
name: "version",
|
|
1899
|
+
type: "string"
|
|
1900
|
+
}
|
|
1901
|
+
],
|
|
1902
|
+
stateMutability: "view",
|
|
1903
|
+
type: "function"
|
|
1904
|
+
},
|
|
1905
|
+
{
|
|
1906
|
+
inputs: [],
|
|
1907
|
+
name: "owBtc",
|
|
1908
|
+
outputs: [
|
|
1909
|
+
{
|
|
1910
|
+
internalType: "contract OW_BTC",
|
|
1911
|
+
name: "",
|
|
1912
|
+
type: "address"
|
|
1913
|
+
}
|
|
1914
|
+
],
|
|
1915
|
+
stateMutability: "view",
|
|
1916
|
+
type: "function"
|
|
1917
|
+
},
|
|
1918
|
+
{
|
|
1919
|
+
inputs: [
|
|
1920
|
+
{
|
|
1921
|
+
internalType: "bytes32",
|
|
1922
|
+
name: "tradeId",
|
|
1923
|
+
type: "bytes32"
|
|
1924
|
+
},
|
|
1925
|
+
{
|
|
1926
|
+
internalType: "contract IAccountPositionManager",
|
|
1927
|
+
name: "positionManager",
|
|
1928
|
+
type: "address"
|
|
1929
|
+
},
|
|
1930
|
+
{
|
|
1931
|
+
internalType: "uint256",
|
|
1932
|
+
name: "amount",
|
|
1933
|
+
type: "uint256"
|
|
1934
|
+
},
|
|
1935
|
+
{
|
|
1936
|
+
internalType: "bytes32",
|
|
1937
|
+
name: "positionId",
|
|
1938
|
+
type: "bytes32"
|
|
1939
|
+
},
|
|
1940
|
+
{
|
|
1941
|
+
internalType: "bool",
|
|
1942
|
+
name: "isLiquidate",
|
|
1943
|
+
type: "bool"
|
|
1944
|
+
},
|
|
1945
|
+
{
|
|
1946
|
+
internalType: "bytes",
|
|
1947
|
+
name: "validatorSignature",
|
|
1948
|
+
type: "bytes"
|
|
1949
|
+
}
|
|
1950
|
+
],
|
|
1951
|
+
name: "payment",
|
|
1952
|
+
outputs: [],
|
|
1953
|
+
stateMutability: "nonpayable",
|
|
1954
|
+
type: "function"
|
|
1955
|
+
}
|
|
1956
|
+
];
|
|
1957
|
+
var LendingLiquidation__factory = class {
|
|
1958
|
+
static createInterface() {
|
|
1959
|
+
return new Interface2(_abi2);
|
|
1960
|
+
}
|
|
1961
|
+
static connect(address, runner) {
|
|
1962
|
+
return new Contract2(address, _abi2, runner);
|
|
1963
|
+
}
|
|
1964
|
+
};
|
|
1965
|
+
LendingLiquidation__factory.abi = _abi2;
|
|
1966
|
+
|
|
1967
|
+
// src/contracts/contracts/factories/Payment__factory.ts
|
|
1968
|
+
import { Contract as Contract3, Interface as Interface3 } from "ethers";
|
|
1969
|
+
var _abi3 = [
|
|
1532
1970
|
{
|
|
1533
1971
|
inputs: [
|
|
1534
1972
|
{
|
|
@@ -1737,17 +2175,17 @@ var _abi2 = [
|
|
|
1737
2175
|
];
|
|
1738
2176
|
var Payment__factory = class {
|
|
1739
2177
|
static createInterface() {
|
|
1740
|
-
return new
|
|
2178
|
+
return new Interface3(_abi3);
|
|
1741
2179
|
}
|
|
1742
2180
|
static connect(address, runner) {
|
|
1743
|
-
return new
|
|
2181
|
+
return new Contract3(address, _abi3, runner);
|
|
1744
2182
|
}
|
|
1745
2183
|
};
|
|
1746
|
-
Payment__factory.abi =
|
|
2184
|
+
Payment__factory.abi = _abi3;
|
|
1747
2185
|
|
|
1748
2186
|
// src/contracts/contracts/factories/ProtocolFetcherProxy__factory.ts
|
|
1749
|
-
import { Contract as
|
|
1750
|
-
var
|
|
2187
|
+
import { Contract as Contract4, Interface as Interface4 } from "ethers";
|
|
2188
|
+
var _abi4 = [
|
|
1751
2189
|
{
|
|
1752
2190
|
inputs: [
|
|
1753
2191
|
{
|
|
@@ -2292,21 +2730,21 @@ var _abi3 = [
|
|
|
2292
2730
|
];
|
|
2293
2731
|
var ProtocolFetcherProxy__factory = class {
|
|
2294
2732
|
static createInterface() {
|
|
2295
|
-
return new
|
|
2733
|
+
return new Interface4(_abi4);
|
|
2296
2734
|
}
|
|
2297
2735
|
static connect(address, runner) {
|
|
2298
|
-
return new
|
|
2736
|
+
return new Contract4(
|
|
2299
2737
|
address,
|
|
2300
|
-
|
|
2738
|
+
_abi4,
|
|
2301
2739
|
runner
|
|
2302
2740
|
);
|
|
2303
2741
|
}
|
|
2304
2742
|
};
|
|
2305
|
-
ProtocolFetcherProxy__factory.abi =
|
|
2743
|
+
ProtocolFetcherProxy__factory.abi = _abi4;
|
|
2306
2744
|
|
|
2307
2745
|
// src/contracts/contracts/factories/Router__factory.ts
|
|
2308
|
-
import { Contract as
|
|
2309
|
-
var
|
|
2746
|
+
import { Contract as Contract5, Interface as Interface5 } from "ethers";
|
|
2747
|
+
var _abi5 = [
|
|
2310
2748
|
{
|
|
2311
2749
|
inputs: [
|
|
2312
2750
|
{
|
|
@@ -3805,17 +4243,17 @@ var _abi4 = [
|
|
|
3805
4243
|
];
|
|
3806
4244
|
var Router__factory = class {
|
|
3807
4245
|
static createInterface() {
|
|
3808
|
-
return new
|
|
4246
|
+
return new Interface5(_abi5);
|
|
3809
4247
|
}
|
|
3810
4248
|
static connect(address, runner) {
|
|
3811
|
-
return new
|
|
4249
|
+
return new Contract5(address, _abi5, runner);
|
|
3812
4250
|
}
|
|
3813
4251
|
};
|
|
3814
|
-
Router__factory.abi =
|
|
4252
|
+
Router__factory.abi = _abi5;
|
|
3815
4253
|
|
|
3816
4254
|
// src/contracts/contracts/factories/Signer__factory.ts
|
|
3817
|
-
import { Contract as
|
|
3818
|
-
var
|
|
4255
|
+
import { Contract as Contract6, Interface as Interface6 } from "ethers";
|
|
4256
|
+
var _abi6 = [
|
|
3819
4257
|
{
|
|
3820
4258
|
inputs: [],
|
|
3821
4259
|
stateMutability: "nonpayable",
|
|
@@ -4143,16 +4581,13 @@ var _abi5 = [
|
|
|
4143
4581
|
];
|
|
4144
4582
|
var Signer__factory = class {
|
|
4145
4583
|
static createInterface() {
|
|
4146
|
-
return new
|
|
4584
|
+
return new Interface6(_abi6);
|
|
4147
4585
|
}
|
|
4148
4586
|
static connect(address, runner) {
|
|
4149
|
-
return new
|
|
4587
|
+
return new Contract6(address, _abi6, runner);
|
|
4150
4588
|
}
|
|
4151
4589
|
};
|
|
4152
|
-
Signer__factory.abi =
|
|
4153
|
-
|
|
4154
|
-
// src/services/router.service.ts
|
|
4155
|
-
import { JsonRpcProvider as JsonRpcProvider2 } from "ethers";
|
|
4590
|
+
Signer__factory.abi = _abi6;
|
|
4156
4591
|
|
|
4157
4592
|
// src/services/protocol.service.ts
|
|
4158
4593
|
import { ethers, JsonRpcProvider } from "ethers";
|
|
@@ -4194,6 +4629,7 @@ var ProtocolService = class {
|
|
|
4194
4629
|
var protocolService = new ProtocolService();
|
|
4195
4630
|
|
|
4196
4631
|
// src/services/router.service.ts
|
|
4632
|
+
import { JsonRpcProvider as JsonRpcProvider2 } from "ethers";
|
|
4197
4633
|
var RouterService = class {
|
|
4198
4634
|
constructor() {
|
|
4199
4635
|
this.contract = null;
|
|
@@ -4707,8 +5143,10 @@ async function getSignature(Signer2, provider, signerHelper, tradeId, infoHash,
|
|
|
4707
5143
|
}
|
|
4708
5144
|
export {
|
|
4709
5145
|
ERC20__factory,
|
|
5146
|
+
LendingLiquidation__factory,
|
|
4710
5147
|
Payment__factory,
|
|
4711
5148
|
ProtocolFetcherProxy__factory,
|
|
5149
|
+
ProtocolService,
|
|
4712
5150
|
RouterService,
|
|
4713
5151
|
Router__factory,
|
|
4714
5152
|
SDK,
|
|
@@ -4734,6 +5172,7 @@ export {
|
|
|
4734
5172
|
getTradeIdsHash,
|
|
4735
5173
|
makePaymentType,
|
|
4736
5174
|
presignType,
|
|
5175
|
+
protocolService,
|
|
4737
5176
|
removeHexPrefix,
|
|
4738
5177
|
rfqAuthenticationTypes,
|
|
4739
5178
|
routerService,
|