@gearbox-protocol/sdk 8.5.1 → 8.6.1

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.
Files changed (30) hide show
  1. package/dist/cjs/dev/createTransport.js +3 -1
  2. package/dist/cjs/sdk/chain/chains.js +38 -9
  3. package/dist/cjs/sdk/constants/address-provider.js +3 -1
  4. package/dist/cjs/sdk/constants/addresses.js +12 -4
  5. package/dist/cjs/sdk/constants/networks.js +8 -2
  6. package/dist/cjs/sdk/core/BotListV3Contract.js +1 -1
  7. package/dist/cjs/sdk/core/address-provider/AddressProviderV300Contract.js +1 -2
  8. package/dist/cjs/sdk/plugins/V300StalenessPeriodPlugin.js +1 -1
  9. package/dist/cjs/sdk/router/RouterV300Contract.js +3 -1
  10. package/dist/cjs/sdk/sdk-gov-legacy/contracts/contracts.js +111 -37
  11. package/dist/cjs/sdk/sdk-gov-legacy/tokens/token.js +6 -2
  12. package/dist/cjs/sdk/sdk-gov-legacy/tokens/tokenData.js +3 -1
  13. package/dist/cjs/sdk/sdk-legacy/core/endpoint.js +3 -1
  14. package/dist/esm/dev/createTransport.js +3 -1
  15. package/dist/esm/sdk/chain/chains.js +39 -8
  16. package/dist/esm/sdk/constants/address-provider.js +3 -1
  17. package/dist/esm/sdk/constants/addresses.js +12 -4
  18. package/dist/esm/sdk/constants/networks.js +8 -2
  19. package/dist/esm/sdk/core/BotListV3Contract.js +2 -5
  20. package/dist/esm/sdk/core/address-provider/AddressProviderV300Contract.js +1 -2
  21. package/dist/esm/sdk/plugins/V300StalenessPeriodPlugin.js +2 -2
  22. package/dist/esm/sdk/router/RouterV300Contract.js +3 -1
  23. package/dist/esm/sdk/sdk-gov-legacy/contracts/contracts.js +111 -37
  24. package/dist/esm/sdk/sdk-gov-legacy/tokens/token.js +6 -2
  25. package/dist/esm/sdk/sdk-gov-legacy/tokens/tokenData.js +3 -1
  26. package/dist/esm/sdk/sdk-legacy/core/endpoint.js +3 -1
  27. package/dist/types/sdk/chain/Provider.d.ts +3 -3
  28. package/dist/types/sdk/chain/chains.d.ts +22 -3
  29. package/dist/types/sdk/constants/networks.d.ts +1 -0
  30. package/package.json +3 -3
@@ -76,7 +76,9 @@ const DRPC_NETS = {
76
76
  Monad: "monad-testnet",
77
77
  // TODO: no drpc
78
78
  MegaETH: "",
79
- Etherlink: ""
79
+ Etherlink: "",
80
+ Hemi: "hemi",
81
+ Lisk: "lisk"
80
82
  };
81
83
  function getDrpcUrl(network, apiKey, protocol) {
82
84
  const net = DRPC_NETS[network];
@@ -29,7 +29,7 @@ __export(chains_exports, {
29
29
  module.exports = __toCommonJS(chains_exports);
30
30
  var import_viem = require("viem");
31
31
  var import_chains = require("viem/chains");
32
- var import_zod = require("zod");
32
+ var import_v4 = require("zod/v4");
33
33
  const SUPPORTED_NETWORKS = [
34
34
  "Mainnet",
35
35
  "Arbitrum",
@@ -42,9 +42,11 @@ const SUPPORTED_NETWORKS = [
42
42
  "Avalanche",
43
43
  "BNB",
44
44
  "WorldChain",
45
- "Etherlink"
45
+ "Etherlink",
46
+ "Hemi",
47
+ "Lisk"
46
48
  ];
47
- const NetworkType = import_zod.z.enum(SUPPORTED_NETWORKS);
49
+ const NetworkType = import_v4.z.enum(SUPPORTED_NETWORKS);
48
50
  function withPublicNode(chain, subdomain) {
49
51
  return (0, import_viem.defineChain)({
50
52
  ...chain,
@@ -73,7 +75,9 @@ const chains = {
73
75
  address: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
74
76
  symbol: "USDC"
75
77
  },
76
- alchemyDomain: "eth-mainnet"
78
+ alchemyDomain: "eth-mainnet",
79
+ firstBlock: 18433056n
80
+ // AddressProvderV3 0x9ea7b04Da02a5373317D745c1571c84aaD03321D
77
81
  },
78
82
  "ethereum-rpc"
79
83
  ),
@@ -89,7 +93,8 @@ const chains = {
89
93
  address: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
90
94
  symbol: "USDC"
91
95
  },
92
- alchemyDomain: "arb-mainnet"
96
+ alchemyDomain: "arb-mainnet",
97
+ firstBlock: 184650310n
93
98
  },
94
99
  "arbitrum-one-rpc"
95
100
  ),
@@ -105,7 +110,8 @@ const chains = {
105
110
  address: "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85",
106
111
  symbol: "USDC"
107
112
  },
108
- alchemyDomain: "opt-mainnet"
113
+ alchemyDomain: "opt-mainnet",
114
+ firstBlock: 118410666n
109
115
  },
110
116
  "optimism-rpc"
111
117
  ),
@@ -142,7 +148,8 @@ const chains = {
142
148
  address: "0x29219dd400f2Bf60E5a23d13Be72B486D4038894",
143
149
  symbol: "USDC"
144
150
  },
145
- alchemyDomain: "sonic-mainnet"
151
+ alchemyDomain: "sonic-mainnet",
152
+ firstBlock: 9779380n
146
153
  }),
147
154
  "sonic-rpc"
148
155
  ),
@@ -221,7 +228,8 @@ const chains = {
221
228
  address: "0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d",
222
229
  symbol: "USDC"
223
230
  },
224
- alchemyDomain: "bnb-mainnet"
231
+ alchemyDomain: "bnb-mainnet",
232
+ firstBlock: 48761804n
225
233
  },
226
234
  "bsc-rpc"
227
235
  ),
@@ -248,8 +256,29 @@ const chains = {
248
256
  wellKnownToken: {
249
257
  address: "0x796Ea11Fa2dD751eD01b53C372fFDB4AAa8f00F9",
250
258
  symbol: "USDC"
251
- }
259
+ },
260
+ firstBlock: 16672969n
252
261
  // TODO: has no block explorer API
262
+ }),
263
+ Hemi: (0, import_viem.defineChain)({
264
+ ...import_chains.hemi,
265
+ network: "Hemi",
266
+ defaultMarketConfigurators: {},
267
+ isPublic: false,
268
+ wellKnownToken: {
269
+ address: "0xad11a8BEb98bbf61dbb1aa0F6d6F2ECD87b35afA",
270
+ symbol: "USDC.e"
271
+ }
272
+ }),
273
+ Lisk: (0, import_viem.defineChain)({
274
+ ...import_chains.lisk,
275
+ network: "Lisk",
276
+ defaultMarketConfigurators: {},
277
+ isPublic: false,
278
+ wellKnownToken: {
279
+ address: "0xF242275d3a6527d877f2c927a82D9b057609cc71",
280
+ symbol: "USDC.e"
281
+ }
253
282
  })
254
283
  };
255
284
  const networkByChainId = Object.values(chains).reduce((acc, chain) => {
@@ -100,7 +100,9 @@ const ADDRESS_PROVIDER = {
100
100
  Avalanche: import_addresses.NOT_DEPLOYED,
101
101
  BNB: import_addresses.NOT_DEPLOYED,
102
102
  WorldChain: import_addresses.NOT_DEPLOYED,
103
- Etherlink: import_addresses.NOT_DEPLOYED
103
+ Etherlink: import_addresses.NOT_DEPLOYED,
104
+ Hemi: import_addresses.NOT_DEPLOYED,
105
+ Lisk: import_addresses.NOT_DEPLOYED
104
106
  };
105
107
  const ADDRESS_PROVIDER_V310 = "0xF7f0a609BfAb9a0A98786951ef10e5FE26cC1E38";
106
108
  // Annotate the CommonJS export names for ESM import in node:
@@ -43,7 +43,9 @@ const TIMELOCK = {
43
43
  Avalanche: NOT_DEPLOYED,
44
44
  BNB: NOT_DEPLOYED,
45
45
  WorldChain: NOT_DEPLOYED,
46
- Etherlink: NOT_DEPLOYED
46
+ Etherlink: NOT_DEPLOYED,
47
+ Hemi: NOT_DEPLOYED,
48
+ Lisk: NOT_DEPLOYED
47
49
  };
48
50
  const GEARBOX_MULTISIG = {
49
51
  Mainnet: "0xA7D5DDc1b8557914F158076b228AA91eF613f1D5",
@@ -58,7 +60,9 @@ const GEARBOX_MULTISIG = {
58
60
  Avalanche: NOT_DEPLOYED,
59
61
  BNB: NOT_DEPLOYED,
60
62
  WorldChain: NOT_DEPLOYED,
61
- Etherlink: NOT_DEPLOYED
63
+ Etherlink: NOT_DEPLOYED,
64
+ Hemi: NOT_DEPLOYED,
65
+ Lisk: NOT_DEPLOYED
62
66
  };
63
67
  const GEARBOX_RISK_CURATORS = {
64
68
  Mainnet: [TIMELOCK.Mainnet],
@@ -73,7 +77,9 @@ const GEARBOX_RISK_CURATORS = {
73
77
  Avalanche: [],
74
78
  BNB: [],
75
79
  WorldChain: [],
76
- Etherlink: []
80
+ Etherlink: [],
81
+ Hemi: [],
82
+ Lisk: []
77
83
  };
78
84
  const DEPRECIATED_POOLS = {
79
85
  Mainnet: {
@@ -90,7 +96,9 @@ const DEPRECIATED_POOLS = {
90
96
  Avalanche: {},
91
97
  BNB: {},
92
98
  WorldChain: {},
93
- Etherlink: {}
99
+ Etherlink: {},
100
+ Hemi: {},
101
+ Lisk: {}
94
102
  };
95
103
  // Annotate the CommonJS export names for ESM import in node:
96
104
  0 && (module.exports = {
@@ -44,7 +44,11 @@ const ADDRESS_PROVIDER_BLOCK = {
44
44
  // arbitrary not deployed yet
45
45
  WorldChain: 22372908n,
46
46
  // arbitrary not deployed yet
47
- Etherlink: 16672969n
47
+ Etherlink: 16672969n,
48
+ // arbitrary not deployed yet
49
+ Hemi: 2227553n,
50
+ // arbitrary not deployed yet
51
+ Lisk: 18934260n
48
52
  // arbitrary not deployed yet
49
53
  };
50
54
  const BLOCK_DURATION_BY_NETWORK = {
@@ -62,7 +66,9 @@ const BLOCK_DURATION_BY_NETWORK = {
62
66
  Avalanche: 1.7,
63
67
  BNB: 3,
64
68
  WorldChain: 2,
65
- Etherlink: 1
69
+ Etherlink: 1,
70
+ Hemi: 12,
71
+ Lisk: 2
66
72
  };
67
73
  const RAMP_TIME = 30 * 24 * 60 * 60 * 1.2;
68
74
  const RAMP_DURATION_BY_NETWORK = import_mappers.TypedObjectUtils.entries(BLOCK_DURATION_BY_NETWORK).reduce(
@@ -30,7 +30,7 @@ class BotListContract extends import_base.BaseContract {
30
30
  #currentBlock;
31
31
  constructor(sdk, address) {
32
32
  super(sdk, { addr: address, name: "BotListV3", abi });
33
- this.#currentBlock = import_constants.ADDRESS_PROVIDER_BLOCK[sdk.provider.networkType];
33
+ this.#currentBlock = sdk.provider.chain.firstBlock ?? 0n;
34
34
  }
35
35
  parseFunctionParams(params) {
36
36
  switch (params.functionName) {
@@ -33,7 +33,6 @@ __export(AddressProviderV300Contract_exports, {
33
33
  module.exports = __toCommonJS(AddressProviderV300Contract_exports);
34
34
  var import_viem = require("viem");
35
35
  var import_v300 = require("../../../abi/v300.js");
36
- var import_constants = require("../../constants/index.js");
37
36
  var import_viem2 = require("../../utils/viem/index.js");
38
37
  var import_AbstractAddressProviderContract = __toESM(require("./AbstractAddressProviderContract.js"));
39
38
  const abi = import_v300.iAddressProviderV300Abi;
@@ -86,7 +85,7 @@ class AddressProviderV300Contract extends import_AbstractAddressProviderContract
86
85
  }
87
86
  }
88
87
  async syncState(blockNumber) {
89
- const fromBlock = import_constants.ADDRESS_PROVIDER_BLOCK[this.sdk.provider.networkType];
88
+ const fromBlock = this.sdk.provider.chain.firstBlock;
90
89
  this.logger?.debug(
91
90
  `loading events from block ${fromBlock} to ${blockNumber}`
92
91
  );
@@ -34,7 +34,7 @@ class V300StalenessPeriodPlugin extends import_BasePlugin.BasePlugin {
34
34
  #events = [];
35
35
  set sdk(sdk) {
36
36
  super.sdk = sdk;
37
- this.#syncedTo = import_constants.ADDRESS_PROVIDER_BLOCK[sdk.provider.networkType] - 1n;
37
+ this.#syncedTo = (sdk.provider.chain.firstBlock ?? 1n) - 1n;
38
38
  }
39
39
  get sdk() {
40
40
  return super.sdk;
@@ -316,7 +316,9 @@ class RouterV300Contract extends import_AbstractRouterContract.AbstractRouterCon
316
316
  Avalanche: "0x0",
317
317
  BNB: "0x0",
318
318
  WorldChain: "0x0",
319
- Etherlink: "0x0"
319
+ Etherlink: "0x0",
320
+ Hemi: "0x0",
321
+ Lisk: "0x0"
320
322
  };
321
323
  const pendleRouter = PENDLE_ROUTER_BY_NETWORK[this.sdk.provider.networkType];
322
324
  const pendleAdapter = cm.creditManager.adapters.mustGet(pendleRouter);
@@ -833,7 +833,9 @@ const contractsByNetwork = {
833
833
  Berachain: {},
834
834
  BNB: {},
835
835
  WorldChain: {},
836
- Etherlink: {}
836
+ Etherlink: {},
837
+ Hemi: {},
838
+ Lisk: {}
837
839
  };
838
840
  const UNISWAP_V3_QUOTER = "0xb27308f9F90D607463bb33eA1BeBb41C27CE5AB6";
839
841
  const CAMELOT_V3_QUOTER = "0x0Fc73040b26E9bC8514fA028D998E73A254Fa76E";
@@ -943,7 +945,9 @@ const contractParams = {
943
945
  Avalanche: import_constants.NOT_DEPLOYED,
944
946
  BNB: import_constants.NOT_DEPLOYED,
945
947
  WorldChain: import_constants.NOT_DEPLOYED,
946
- Etherlink: import_constants.NOT_DEPLOYED
948
+ Etherlink: import_constants.NOT_DEPLOYED,
949
+ Hemi: import_constants.NOT_DEPLOYED,
950
+ Lisk: import_constants.NOT_DEPLOYED
947
951
  },
948
952
  tokens: ["WETH", "STETH"],
949
953
  lpToken: "steCRV"
@@ -965,7 +969,9 @@ const contractParams = {
965
969
  Avalanche: import_constants.NOT_DEPLOYED,
966
970
  BNB: import_constants.NOT_DEPLOYED,
967
971
  WorldChain: import_constants.NOT_DEPLOYED,
968
- Etherlink: import_constants.NOT_DEPLOYED
972
+ Etherlink: import_constants.NOT_DEPLOYED,
973
+ Hemi: import_constants.NOT_DEPLOYED,
974
+ Lisk: import_constants.NOT_DEPLOYED
969
975
  },
970
976
  tokens: ["WETH", "wstETH"],
971
977
  lpToken: "wstETHCRV"
@@ -987,7 +993,9 @@ const contractParams = {
987
993
  Avalanche: import_constants.NOT_DEPLOYED,
988
994
  BNB: import_constants.NOT_DEPLOYED,
989
995
  WorldChain: import_constants.NOT_DEPLOYED,
990
- Etherlink: import_constants.NOT_DEPLOYED
996
+ Etherlink: import_constants.NOT_DEPLOYED,
997
+ Hemi: import_constants.NOT_DEPLOYED,
998
+ Lisk: import_constants.NOT_DEPLOYED
991
999
  },
992
1000
  tokens: ["GEAR", "WETH"],
993
1001
  lpToken: "GEAR"
@@ -1521,7 +1529,9 @@ const contractParams = {
1521
1529
  Avalanche: import_constants.NOT_DEPLOYED,
1522
1530
  BNB: import_constants.NOT_DEPLOYED,
1523
1531
  WorldChain: import_constants.NOT_DEPLOYED,
1524
- Etherlink: import_constants.NOT_DEPLOYED
1532
+ Etherlink: import_constants.NOT_DEPLOYED,
1533
+ Hemi: import_constants.NOT_DEPLOYED,
1534
+ Lisk: import_constants.NOT_DEPLOYED
1525
1535
  }
1526
1536
  }
1527
1537
  ]
@@ -1547,7 +1557,9 @@ const contractParams = {
1547
1557
  Avalanche: import_constants.NOT_DEPLOYED,
1548
1558
  BNB: import_constants.NOT_DEPLOYED,
1549
1559
  WorldChain: import_constants.NOT_DEPLOYED,
1550
- Etherlink: import_constants.NOT_DEPLOYED
1560
+ Etherlink: import_constants.NOT_DEPLOYED,
1561
+ Hemi: import_constants.NOT_DEPLOYED,
1562
+ Lisk: import_constants.NOT_DEPLOYED
1551
1563
  }
1552
1564
  }
1553
1565
  ]
@@ -1573,7 +1585,9 @@ const contractParams = {
1573
1585
  Avalanche: import_constants.NOT_DEPLOYED,
1574
1586
  BNB: import_constants.NOT_DEPLOYED,
1575
1587
  WorldChain: import_constants.NOT_DEPLOYED,
1576
- Etherlink: import_constants.NOT_DEPLOYED
1588
+ Etherlink: import_constants.NOT_DEPLOYED,
1589
+ Hemi: import_constants.NOT_DEPLOYED,
1590
+ Lisk: import_constants.NOT_DEPLOYED
1577
1591
  }
1578
1592
  }
1579
1593
  ]
@@ -1599,7 +1613,9 @@ const contractParams = {
1599
1613
  Avalanche: import_constants.NOT_DEPLOYED,
1600
1614
  BNB: import_constants.NOT_DEPLOYED,
1601
1615
  WorldChain: import_constants.NOT_DEPLOYED,
1602
- Etherlink: import_constants.NOT_DEPLOYED
1616
+ Etherlink: import_constants.NOT_DEPLOYED,
1617
+ Hemi: import_constants.NOT_DEPLOYED,
1618
+ Lisk: import_constants.NOT_DEPLOYED
1603
1619
  }
1604
1620
  }
1605
1621
  ]
@@ -1624,7 +1640,9 @@ const contractParams = {
1624
1640
  Avalanche: import_constants.NOT_DEPLOYED,
1625
1641
  BNB: import_constants.NOT_DEPLOYED,
1626
1642
  WorldChain: import_constants.NOT_DEPLOYED,
1627
- Etherlink: import_constants.NOT_DEPLOYED
1643
+ Etherlink: import_constants.NOT_DEPLOYED,
1644
+ Hemi: import_constants.NOT_DEPLOYED,
1645
+ Lisk: import_constants.NOT_DEPLOYED
1628
1646
  }
1629
1647
  }
1630
1648
  ]
@@ -1649,7 +1667,9 @@ const contractParams = {
1649
1667
  Avalanche: import_constants.NOT_DEPLOYED,
1650
1668
  BNB: import_constants.NOT_DEPLOYED,
1651
1669
  WorldChain: import_constants.NOT_DEPLOYED,
1652
- Etherlink: import_constants.NOT_DEPLOYED
1670
+ Etherlink: import_constants.NOT_DEPLOYED,
1671
+ Hemi: import_constants.NOT_DEPLOYED,
1672
+ Lisk: import_constants.NOT_DEPLOYED
1653
1673
  }
1654
1674
  }
1655
1675
  ]
@@ -1681,7 +1701,9 @@ const contractParams = {
1681
1701
  Avalanche: import_constants.NOT_DEPLOYED,
1682
1702
  BNB: import_constants.NOT_DEPLOYED,
1683
1703
  WorldChain: import_constants.NOT_DEPLOYED,
1684
- Etherlink: import_constants.NOT_DEPLOYED
1704
+ Etherlink: import_constants.NOT_DEPLOYED,
1705
+ Hemi: import_constants.NOT_DEPLOYED,
1706
+ Lisk: import_constants.NOT_DEPLOYED
1685
1707
  }
1686
1708
  }
1687
1709
  ]
@@ -1706,7 +1728,9 @@ const contractParams = {
1706
1728
  Avalanche: import_constants.NOT_DEPLOYED,
1707
1729
  BNB: import_constants.NOT_DEPLOYED,
1708
1730
  WorldChain: import_constants.NOT_DEPLOYED,
1709
- Etherlink: import_constants.NOT_DEPLOYED
1731
+ Etherlink: import_constants.NOT_DEPLOYED,
1732
+ Hemi: import_constants.NOT_DEPLOYED,
1733
+ Lisk: import_constants.NOT_DEPLOYED
1710
1734
  }
1711
1735
  }
1712
1736
  ]
@@ -1731,7 +1755,9 @@ const contractParams = {
1731
1755
  Avalanche: import_constants.NOT_DEPLOYED,
1732
1756
  BNB: import_constants.NOT_DEPLOYED,
1733
1757
  WorldChain: import_constants.NOT_DEPLOYED,
1734
- Etherlink: import_constants.NOT_DEPLOYED
1758
+ Etherlink: import_constants.NOT_DEPLOYED,
1759
+ Hemi: import_constants.NOT_DEPLOYED,
1760
+ Lisk: import_constants.NOT_DEPLOYED
1735
1761
  }
1736
1762
  }
1737
1763
  ]
@@ -1756,7 +1782,9 @@ const contractParams = {
1756
1782
  Avalanche: import_constants.NOT_DEPLOYED,
1757
1783
  BNB: import_constants.NOT_DEPLOYED,
1758
1784
  WorldChain: import_constants.NOT_DEPLOYED,
1759
- Etherlink: import_constants.NOT_DEPLOYED
1785
+ Etherlink: import_constants.NOT_DEPLOYED,
1786
+ Hemi: import_constants.NOT_DEPLOYED,
1787
+ Lisk: import_constants.NOT_DEPLOYED
1760
1788
  }
1761
1789
  }
1762
1790
  ]
@@ -1781,7 +1809,9 @@ const contractParams = {
1781
1809
  Avalanche: import_constants.NOT_DEPLOYED,
1782
1810
  BNB: import_constants.NOT_DEPLOYED,
1783
1811
  WorldChain: import_constants.NOT_DEPLOYED,
1784
- Etherlink: import_constants.NOT_DEPLOYED
1812
+ Etherlink: import_constants.NOT_DEPLOYED,
1813
+ Hemi: import_constants.NOT_DEPLOYED,
1814
+ Lisk: import_constants.NOT_DEPLOYED
1785
1815
  }
1786
1816
  }
1787
1817
  ]
@@ -1806,7 +1836,9 @@ const contractParams = {
1806
1836
  Avalanche: import_constants.NOT_DEPLOYED,
1807
1837
  BNB: import_constants.NOT_DEPLOYED,
1808
1838
  WorldChain: import_constants.NOT_DEPLOYED,
1809
- Etherlink: import_constants.NOT_DEPLOYED
1839
+ Etherlink: import_constants.NOT_DEPLOYED,
1840
+ Hemi: import_constants.NOT_DEPLOYED,
1841
+ Lisk: import_constants.NOT_DEPLOYED
1810
1842
  }
1811
1843
  }
1812
1844
  ]
@@ -1831,7 +1863,9 @@ const contractParams = {
1831
1863
  Avalanche: import_constants.NOT_DEPLOYED,
1832
1864
  BNB: import_constants.NOT_DEPLOYED,
1833
1865
  WorldChain: import_constants.NOT_DEPLOYED,
1834
- Etherlink: import_constants.NOT_DEPLOYED
1866
+ Etherlink: import_constants.NOT_DEPLOYED,
1867
+ Hemi: import_constants.NOT_DEPLOYED,
1868
+ Lisk: import_constants.NOT_DEPLOYED
1835
1869
  }
1836
1870
  }
1837
1871
  ]
@@ -1856,7 +1890,9 @@ const contractParams = {
1856
1890
  Avalanche: import_constants.NOT_DEPLOYED,
1857
1891
  BNB: import_constants.NOT_DEPLOYED,
1858
1892
  WorldChain: import_constants.NOT_DEPLOYED,
1859
- Etherlink: import_constants.NOT_DEPLOYED
1893
+ Etherlink: import_constants.NOT_DEPLOYED,
1894
+ Hemi: import_constants.NOT_DEPLOYED,
1895
+ Lisk: import_constants.NOT_DEPLOYED
1860
1896
  }
1861
1897
  }
1862
1898
  ]
@@ -1898,7 +1934,9 @@ const contractParams = {
1898
1934
  Avalanche: import_constants.NOT_DEPLOYED,
1899
1935
  BNB: import_constants.NOT_DEPLOYED,
1900
1936
  WorldChain: import_constants.NOT_DEPLOYED,
1901
- Etherlink: import_constants.NOT_DEPLOYED
1937
+ Etherlink: import_constants.NOT_DEPLOYED,
1938
+ Hemi: import_constants.NOT_DEPLOYED,
1939
+ Lisk: import_constants.NOT_DEPLOYED
1902
1940
  }
1903
1941
  }
1904
1942
  ]
@@ -1923,7 +1961,9 @@ const contractParams = {
1923
1961
  Avalanche: import_constants.NOT_DEPLOYED,
1924
1962
  BNB: import_constants.NOT_DEPLOYED,
1925
1963
  WorldChain: import_constants.NOT_DEPLOYED,
1926
- Etherlink: import_constants.NOT_DEPLOYED
1964
+ Etherlink: import_constants.NOT_DEPLOYED,
1965
+ Hemi: import_constants.NOT_DEPLOYED,
1966
+ Lisk: import_constants.NOT_DEPLOYED
1927
1967
  }
1928
1968
  }
1929
1969
  ]
@@ -1948,7 +1988,9 @@ const contractParams = {
1948
1988
  Avalanche: import_constants.NOT_DEPLOYED,
1949
1989
  BNB: import_constants.NOT_DEPLOYED,
1950
1990
  WorldChain: import_constants.NOT_DEPLOYED,
1951
- Etherlink: import_constants.NOT_DEPLOYED
1991
+ Etherlink: import_constants.NOT_DEPLOYED,
1992
+ Hemi: import_constants.NOT_DEPLOYED,
1993
+ Lisk: import_constants.NOT_DEPLOYED
1952
1994
  }
1953
1995
  },
1954
1996
  {
@@ -1965,7 +2007,9 @@ const contractParams = {
1965
2007
  Avalanche: import_constants.NOT_DEPLOYED,
1966
2008
  BNB: import_constants.NOT_DEPLOYED,
1967
2009
  WorldChain: import_constants.NOT_DEPLOYED,
1968
- Etherlink: import_constants.NOT_DEPLOYED
2010
+ Etherlink: import_constants.NOT_DEPLOYED,
2011
+ Hemi: import_constants.NOT_DEPLOYED,
2012
+ Lisk: import_constants.NOT_DEPLOYED
1969
2013
  }
1970
2014
  }
1971
2015
  ]
@@ -1990,7 +2034,9 @@ const contractParams = {
1990
2034
  Avalanche: import_constants.NOT_DEPLOYED,
1991
2035
  BNB: import_constants.NOT_DEPLOYED,
1992
2036
  WorldChain: import_constants.NOT_DEPLOYED,
1993
- Etherlink: import_constants.NOT_DEPLOYED
2037
+ Etherlink: import_constants.NOT_DEPLOYED,
2038
+ Hemi: import_constants.NOT_DEPLOYED,
2039
+ Lisk: import_constants.NOT_DEPLOYED
1994
2040
  }
1995
2041
  },
1996
2042
  {
@@ -2007,7 +2053,9 @@ const contractParams = {
2007
2053
  Avalanche: import_constants.NOT_DEPLOYED,
2008
2054
  BNB: import_constants.NOT_DEPLOYED,
2009
2055
  WorldChain: import_constants.NOT_DEPLOYED,
2010
- Etherlink: import_constants.NOT_DEPLOYED
2056
+ Etherlink: import_constants.NOT_DEPLOYED,
2057
+ Hemi: import_constants.NOT_DEPLOYED,
2058
+ Lisk: import_constants.NOT_DEPLOYED
2011
2059
  }
2012
2060
  }
2013
2061
  ]
@@ -2032,7 +2080,9 @@ const contractParams = {
2032
2080
  Avalanche: import_constants.NOT_DEPLOYED,
2033
2081
  BNB: import_constants.NOT_DEPLOYED,
2034
2082
  WorldChain: import_constants.NOT_DEPLOYED,
2035
- Etherlink: import_constants.NOT_DEPLOYED
2083
+ Etherlink: import_constants.NOT_DEPLOYED,
2084
+ Hemi: import_constants.NOT_DEPLOYED,
2085
+ Lisk: import_constants.NOT_DEPLOYED
2036
2086
  }
2037
2087
  },
2038
2088
  {
@@ -2049,7 +2099,9 @@ const contractParams = {
2049
2099
  Avalanche: import_constants.NOT_DEPLOYED,
2050
2100
  BNB: import_constants.NOT_DEPLOYED,
2051
2101
  WorldChain: import_constants.NOT_DEPLOYED,
2052
- Etherlink: import_constants.NOT_DEPLOYED
2102
+ Etherlink: import_constants.NOT_DEPLOYED,
2103
+ Hemi: import_constants.NOT_DEPLOYED,
2104
+ Lisk: import_constants.NOT_DEPLOYED
2053
2105
  }
2054
2106
  }
2055
2107
  ]
@@ -2074,7 +2126,9 @@ const contractParams = {
2074
2126
  Avalanche: import_constants.NOT_DEPLOYED,
2075
2127
  BNB: import_constants.NOT_DEPLOYED,
2076
2128
  WorldChain: import_constants.NOT_DEPLOYED,
2077
- Etherlink: import_constants.NOT_DEPLOYED
2129
+ Etherlink: import_constants.NOT_DEPLOYED,
2130
+ Hemi: import_constants.NOT_DEPLOYED,
2131
+ Lisk: import_constants.NOT_DEPLOYED
2078
2132
  }
2079
2133
  },
2080
2134
  {
@@ -2091,7 +2145,9 @@ const contractParams = {
2091
2145
  Avalanche: import_constants.NOT_DEPLOYED,
2092
2146
  BNB: import_constants.NOT_DEPLOYED,
2093
2147
  WorldChain: import_constants.NOT_DEPLOYED,
2094
- Etherlink: import_constants.NOT_DEPLOYED
2148
+ Etherlink: import_constants.NOT_DEPLOYED,
2149
+ Hemi: import_constants.NOT_DEPLOYED,
2150
+ Lisk: import_constants.NOT_DEPLOYED
2095
2151
  }
2096
2152
  }
2097
2153
  ]
@@ -2116,7 +2172,9 @@ const contractParams = {
2116
2172
  Avalanche: import_constants.NOT_DEPLOYED,
2117
2173
  BNB: import_constants.NOT_DEPLOYED,
2118
2174
  WorldChain: import_constants.NOT_DEPLOYED,
2119
- Etherlink: import_constants.NOT_DEPLOYED
2175
+ Etherlink: import_constants.NOT_DEPLOYED,
2176
+ Hemi: import_constants.NOT_DEPLOYED,
2177
+ Lisk: import_constants.NOT_DEPLOYED
2120
2178
  }
2121
2179
  },
2122
2180
  {
@@ -2133,7 +2191,9 @@ const contractParams = {
2133
2191
  Avalanche: import_constants.NOT_DEPLOYED,
2134
2192
  BNB: import_constants.NOT_DEPLOYED,
2135
2193
  WorldChain: import_constants.NOT_DEPLOYED,
2136
- Etherlink: import_constants.NOT_DEPLOYED
2194
+ Etherlink: import_constants.NOT_DEPLOYED,
2195
+ Hemi: import_constants.NOT_DEPLOYED,
2196
+ Lisk: import_constants.NOT_DEPLOYED
2137
2197
  }
2138
2198
  }
2139
2199
  ]
@@ -2158,7 +2218,9 @@ const contractParams = {
2158
2218
  Avalanche: import_constants.NOT_DEPLOYED,
2159
2219
  BNB: import_constants.NOT_DEPLOYED,
2160
2220
  WorldChain: import_constants.NOT_DEPLOYED,
2161
- Etherlink: import_constants.NOT_DEPLOYED
2221
+ Etherlink: import_constants.NOT_DEPLOYED,
2222
+ Hemi: import_constants.NOT_DEPLOYED,
2223
+ Lisk: import_constants.NOT_DEPLOYED
2162
2224
  }
2163
2225
  },
2164
2226
  {
@@ -2175,7 +2237,9 @@ const contractParams = {
2175
2237
  Avalanche: import_constants.NOT_DEPLOYED,
2176
2238
  BNB: import_constants.NOT_DEPLOYED,
2177
2239
  WorldChain: import_constants.NOT_DEPLOYED,
2178
- Etherlink: import_constants.NOT_DEPLOYED
2240
+ Etherlink: import_constants.NOT_DEPLOYED,
2241
+ Hemi: import_constants.NOT_DEPLOYED,
2242
+ Lisk: import_constants.NOT_DEPLOYED
2179
2243
  }
2180
2244
  }
2181
2245
  ]
@@ -2200,7 +2264,9 @@ const contractParams = {
2200
2264
  Avalanche: import_constants.NOT_DEPLOYED,
2201
2265
  BNB: import_constants.NOT_DEPLOYED,
2202
2266
  WorldChain: import_constants.NOT_DEPLOYED,
2203
- Etherlink: import_constants.NOT_DEPLOYED
2267
+ Etherlink: import_constants.NOT_DEPLOYED,
2268
+ Hemi: import_constants.NOT_DEPLOYED,
2269
+ Lisk: import_constants.NOT_DEPLOYED
2204
2270
  }
2205
2271
  },
2206
2272
  {
@@ -2217,7 +2283,9 @@ const contractParams = {
2217
2283
  Avalanche: import_constants.NOT_DEPLOYED,
2218
2284
  BNB: import_constants.NOT_DEPLOYED,
2219
2285
  WorldChain: import_constants.NOT_DEPLOYED,
2220
- Etherlink: import_constants.NOT_DEPLOYED
2286
+ Etherlink: import_constants.NOT_DEPLOYED,
2287
+ Hemi: import_constants.NOT_DEPLOYED,
2288
+ Lisk: import_constants.NOT_DEPLOYED
2221
2289
  }
2222
2290
  }
2223
2291
  ]
@@ -2239,7 +2307,9 @@ const contractParams = {
2239
2307
  Avalanche: import_constants.NOT_DEPLOYED,
2240
2308
  BNB: import_constants.NOT_DEPLOYED,
2241
2309
  WorldChain: import_constants.NOT_DEPLOYED,
2242
- Etherlink: import_constants.NOT_DEPLOYED
2310
+ Etherlink: import_constants.NOT_DEPLOYED,
2311
+ Hemi: import_constants.NOT_DEPLOYED,
2312
+ Lisk: import_constants.NOT_DEPLOYED
2243
2313
  },
2244
2314
  lpToken: "steCRV"
2245
2315
  },
@@ -2269,7 +2339,9 @@ const contractParams = {
2269
2339
  Avalanche: import_constants.NOT_DEPLOYED,
2270
2340
  BNB: import_constants.NOT_DEPLOYED,
2271
2341
  WorldChain: import_constants.NOT_DEPLOYED,
2272
- Etherlink: import_constants.NOT_DEPLOYED
2342
+ Etherlink: import_constants.NOT_DEPLOYED,
2343
+ Hemi: import_constants.NOT_DEPLOYED,
2344
+ Lisk: import_constants.NOT_DEPLOYED
2273
2345
  }
2274
2346
  },
2275
2347
  BALANCER_V3_ROUTER: {
@@ -2288,7 +2360,9 @@ const contractParams = {
2288
2360
  Avalanche: import_constants.NOT_DEPLOYED,
2289
2361
  BNB: import_constants.NOT_DEPLOYED,
2290
2362
  WorldChain: import_constants.NOT_DEPLOYED,
2291
- Etherlink: import_constants.NOT_DEPLOYED
2363
+ Etherlink: import_constants.NOT_DEPLOYED,
2364
+ Hemi: import_constants.NOT_DEPLOYED,
2365
+ Lisk: import_constants.NOT_DEPLOYED
2292
2366
  }
2293
2367
  },
2294
2368
  AAVE_V2_LENDING_POOL: {
@@ -558,7 +558,9 @@ const tokenDataByNetwork = {
558
558
  WETH: "0xfc24f770f94edbca6d6f885e12d4317320bcb401",
559
559
  WXTZ: "0xc9b53ab2679f573e480d01e0f49e2b5cfb7a3eab",
560
560
  mTBILL: "0xdd629e5241cbc5919847783e6c96b2de4754e438"
561
- }
561
+ },
562
+ Hemi: {},
563
+ Lisk: {}
562
564
  };
563
565
  const tickerInfoTokensByNetwork = {
564
566
  Mainnet: {
@@ -957,7 +959,9 @@ const tickerInfoTokensByNetwork = {
957
959
  Avalanche: {},
958
960
  BNB: {},
959
961
  WorldChain: {},
960
- Etherlink: {}
962
+ Etherlink: {},
963
+ Hemi: {},
964
+ Lisk: {}
961
965
  };
962
966
  const tokenSymbolByAddress = Object.entries(tokenDataByNetwork).reduce(
963
967
  (acc, [, tokens]) => ({
@@ -58,7 +58,9 @@ const connectors = {
58
58
  Avalanche: [],
59
59
  BNB: [],
60
60
  WorldChain: [],
61
- Etherlink: []
61
+ Etherlink: [],
62
+ Hemi: [],
63
+ Lisk: []
62
64
  };
63
65
  function getConnectors(networkType) {
64
66
  return connectors[networkType].map((e) => {
@@ -42,7 +42,9 @@ const TESTNET_CHAINS = {
42
42
  Avalanche: 7886,
43
43
  BNB: 7887,
44
44
  WorldChain: 7889,
45
- Etherlink: 7890
45
+ Etherlink: 7890,
46
+ Hemi: 7891,
47
+ Lisk: 7892
46
48
  };
47
49
  const CHAINS_BY_ID = import_mappers.TypedObjectUtils.swapKeyValue(TESTNET_CHAINS);
48
50
  const MAINNET_BY_TESTNET_ID = import_mappers.TypedObjectUtils.entries(TESTNET_CHAINS).reduce((acc, [n, testnetId]) => {