@gearbox-protocol/sdk 11.5.1 → 11.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 (52) hide show
  1. package/dist/cjs/abi/router/kelpLRTDepositPoolWorker.js +541 -0
  2. package/dist/cjs/permissionless/bindings/instance-manager.js +11 -0
  3. package/dist/cjs/plugins/adapters/AdaptersPlugin.js +8 -0
  4. package/dist/cjs/plugins/adapters/abi/actionAbi.js +6 -0
  5. package/dist/cjs/plugins/adapters/abi/conctructorAbi.js +14 -0
  6. package/dist/cjs/plugins/adapters/abi/conctructorAbiPatterns.js +15 -0
  7. package/dist/cjs/plugins/adapters/contracts/KelpLRTDepositPoolAdapterContract.js +45 -0
  8. package/dist/cjs/plugins/adapters/contracts/KelpLRTWithdrawalManagerAdapterContract.js +49 -0
  9. package/dist/cjs/plugins/adapters/contracts/MellowDepositQueueAdapterContract.js +51 -0
  10. package/dist/cjs/plugins/adapters/contracts/MellowRedeemQueueAdapterContract.js +48 -0
  11. package/dist/cjs/plugins/adapters/contracts/index.js +8 -0
  12. package/dist/cjs/plugins/adapters/types.js +4 -0
  13. package/dist/cjs/sdk/chain/chains.js +37 -4
  14. package/dist/cjs/sdk/constants/address-provider.js +2 -1
  15. package/dist/cjs/sdk/constants/addresses.js +8 -4
  16. package/dist/cjs/sdk/constants/networks.js +4 -2
  17. package/dist/cjs/sdk/router/RouterV300Contract.js +2 -1
  18. package/dist/cjs/sdk/sdk-gov-legacy/contracts/contracts.js +74 -37
  19. package/dist/cjs/sdk/sdk-gov-legacy/tokens/token.js +4 -2
  20. package/dist/cjs/sdk/sdk-gov-legacy/tokens/tokenData.js +2 -1
  21. package/dist/cjs/sdk/sdk-legacy/core/endpoint.js +2 -1
  22. package/dist/esm/abi/router/kelpLRTDepositPoolWorker.js +517 -0
  23. package/dist/esm/permissionless/bindings/instance-manager.js +11 -0
  24. package/dist/esm/plugins/adapters/AdaptersPlugin.js +12 -0
  25. package/dist/esm/plugins/adapters/abi/actionAbi.js +6 -0
  26. package/dist/esm/plugins/adapters/abi/conctructorAbi.js +16 -0
  27. package/dist/esm/plugins/adapters/abi/conctructorAbiPatterns.js +13 -0
  28. package/dist/esm/plugins/adapters/contracts/KelpLRTDepositPoolAdapterContract.js +21 -0
  29. package/dist/esm/plugins/adapters/contracts/KelpLRTWithdrawalManagerAdapterContract.js +25 -0
  30. package/dist/esm/plugins/adapters/contracts/MellowDepositQueueAdapterContract.js +27 -0
  31. package/dist/esm/plugins/adapters/contracts/MellowRedeemQueueAdapterContract.js +24 -0
  32. package/dist/esm/plugins/adapters/contracts/index.js +4 -0
  33. package/dist/esm/plugins/adapters/types.js +4 -0
  34. package/dist/esm/sdk/chain/chains.js +37 -4
  35. package/dist/esm/sdk/constants/address-provider.js +2 -1
  36. package/dist/esm/sdk/constants/addresses.js +8 -4
  37. package/dist/esm/sdk/constants/networks.js +4 -2
  38. package/dist/esm/sdk/router/RouterV300Contract.js +2 -1
  39. package/dist/esm/sdk/sdk-gov-legacy/contracts/contracts.js +74 -37
  40. package/dist/esm/sdk/sdk-gov-legacy/tokens/token.js +4 -2
  41. package/dist/esm/sdk/sdk-gov-legacy/tokens/tokenData.js +2 -1
  42. package/dist/esm/sdk/sdk-legacy/core/endpoint.js +2 -1
  43. package/dist/types/abi/router/kelpLRTDepositPoolWorker.d.ts +726 -0
  44. package/dist/types/plugins/adapters/abi/conctructorAbiPatterns.d.ts +23 -0
  45. package/dist/types/plugins/adapters/contracts/KelpLRTDepositPoolAdapterContract.d.ts +11 -0
  46. package/dist/types/plugins/adapters/contracts/KelpLRTWithdrawalManagerAdapterContract.d.ts +14 -0
  47. package/dist/types/plugins/adapters/contracts/MellowDepositQueueAdapterContract.d.ts +13 -0
  48. package/dist/types/plugins/adapters/contracts/MellowRedeemQueueAdapterContract.d.ts +12 -0
  49. package/dist/types/plugins/adapters/contracts/index.d.ts +4 -0
  50. package/dist/types/plugins/adapters/types.d.ts +5 -1
  51. package/dist/types/sdk/chain/chains.d.ts +2 -1
  52. package/package.json +1 -1
@@ -0,0 +1,25 @@
1
+ import { decodeAbiParameters } from "viem";
2
+ import { AbstractAdapterContract } from "./AbstractAdapter.js";
3
+ const abi = [];
4
+ class KelpLRTWithdrawalManagerAdapterContract extends AbstractAdapterContract {
5
+ allowedTokensOut;
6
+ constructor(sdk, args) {
7
+ super(sdk, { ...args, abi });
8
+ const decoded = decodeAbiParameters(
9
+ [
10
+ { type: "address", name: "creditManager" },
11
+ { type: "address", name: "targetContract" },
12
+ { type: "address[]", name: "allowedTokensOut" },
13
+ { type: "address[]", name: "phantomTokensForAllowedTokensOut" }
14
+ ],
15
+ args.baseParams.serializedParams
16
+ );
17
+ this.allowedTokensOut = decoded[2].map((tokenOut, index) => ({
18
+ tokenOut,
19
+ phantomToken: decoded[3][index]
20
+ }));
21
+ }
22
+ }
23
+ export {
24
+ KelpLRTWithdrawalManagerAdapterContract
25
+ };
@@ -0,0 +1,27 @@
1
+ import { decodeAbiParameters } from "viem";
2
+ import { AbstractAdapterContract } from "./AbstractAdapter.js";
3
+ const abi = [];
4
+ class MellowDepositQueueAdapterContract extends AbstractAdapterContract {
5
+ asset;
6
+ phantomToken;
7
+ referral;
8
+ constructor(sdk, args) {
9
+ super(sdk, { ...args, abi });
10
+ const decoded = decodeAbiParameters(
11
+ [
12
+ { type: "address", name: "creditManager" },
13
+ { type: "address", name: "targetContract" },
14
+ { type: "address", name: "asset" },
15
+ { type: "address", name: "phantomToken" },
16
+ { type: "address", name: "referral" }
17
+ ],
18
+ args.baseParams.serializedParams
19
+ );
20
+ this.asset = decoded[2];
21
+ this.phantomToken = decoded[3];
22
+ this.referral = decoded[4];
23
+ }
24
+ }
25
+ export {
26
+ MellowDepositQueueAdapterContract
27
+ };
@@ -0,0 +1,24 @@
1
+ import { decodeAbiParameters } from "viem";
2
+ import { AbstractAdapterContract } from "./AbstractAdapter.js";
3
+ const abi = [];
4
+ class MellowRedeemQueueAdapterContract extends AbstractAdapterContract {
5
+ vaultToken;
6
+ phantomToken;
7
+ constructor(sdk, args) {
8
+ super(sdk, { ...args, abi });
9
+ const decoded = decodeAbiParameters(
10
+ [
11
+ { type: "address", name: "creditManager" },
12
+ { type: "address", name: "targetContract" },
13
+ { type: "address", name: "vaultToken" },
14
+ { type: "address", name: "phantomToken" }
15
+ ],
16
+ args.baseParams.serializedParams
17
+ );
18
+ this.vaultToken = decoded[2];
19
+ this.phantomToken = decoded[3];
20
+ }
21
+ }
22
+ export {
23
+ MellowRedeemQueueAdapterContract
24
+ };
@@ -19,11 +19,15 @@ export * from "./FluidDexAdapterContract.js";
19
19
  export * from "./InfinifiGatewayAdapterContract.js";
20
20
  export * from "./InfinifiUnwindingGatewayAdapterContract.js";
21
21
  export * from "./InfraredVaultAdapterContract.js";
22
+ export * from "./KelpLRTDepositPoolAdapterContract.js";
23
+ export * from "./KelpLRTWithdrawalManagerAdapterContract.js";
22
24
  export * from "./KodiakIslandGatewayAdapterContract.js";
23
25
  export * from "./LidoV1AdapterContract.js";
24
26
  export * from "./MellowClaimerAdapterContract.js";
27
+ export * from "./MellowDepositQueueAdapterContract.js";
25
28
  export * from "./MellowDVVAdapterContract.js";
26
29
  export * from "./MellowERC4626VaultAdapterContract.js";
30
+ export * from "./MellowRedeemQueueAdapterContract.js";
27
31
  export * from "./MellowVaultAdapterContract.js";
28
32
  export * from "./MellowWrapperAdapterContract.js";
29
33
  export * from "./MidasIssuanceVaultAdapterContract.js";
@@ -20,6 +20,8 @@ var AdapterType = /* @__PURE__ */ ((AdapterType2) => {
20
20
  AdapterType2["INFINIFI_GATEWAY"] = "INFINIFI_GATEWAY";
21
21
  AdapterType2["INFINIFI_UNWINDING"] = "INFINIFI_UNWINDING";
22
22
  AdapterType2["INFRARED_VAULT"] = "INFRARED_VAULT";
23
+ AdapterType2["KELP_DEPOSIT"] = "KELP_DEPOSIT";
24
+ AdapterType2["KELP_WITHDRAWAL"] = "KELP_WITHDRAWAL";
23
25
  AdapterType2["KODIAK_ISLAND_GATEWAY"] = "KODIAK_ISLAND_GATEWAY";
24
26
  AdapterType2["LIDO_V1"] = "LIDO_V1";
25
27
  AdapterType2["LIDO_WSTETH_V1"] = "LIDO_WSTETH_V1";
@@ -28,6 +30,8 @@ var AdapterType = /* @__PURE__ */ ((AdapterType2) => {
28
30
  AdapterType2["MELLOW_ERC4626_VAULT"] = "MELLOW_ERC4626_VAULT";
29
31
  AdapterType2["MELLOW_LRT_VAULT"] = "MELLOW_LRT_VAULT";
30
32
  AdapterType2["MELLOW_WRAPPER"] = "MELLOW_WRAPPER";
33
+ AdapterType2["MELLOW_DEPOSIT"] = "MELLOW_DEPOSIT";
34
+ AdapterType2["MELLOW_REDEEM"] = "MELLOW_REDEEM";
31
35
  AdapterType2["MIDAS_ISSUANCE_VAULT"] = "MIDAS_ISSUANCE_VAULT";
32
36
  AdapterType2["MIDAS_REDEMPTION_VAULT"] = "MIDAS_REDEMPTION_VAULT";
33
37
  AdapterType2["PENDLE_ROUTER"] = "PENDLE_ROUTER";
@@ -32,7 +32,8 @@ const SUPPORTED_NETWORKS = [
32
32
  "Etherlink",
33
33
  "Hemi",
34
34
  "Lisk",
35
- "Plasma"
35
+ "Plasma",
36
+ "Somnia"
36
37
  ];
37
38
  const NetworkType = z.enum(SUPPORTED_NETWORKS);
38
39
  function withPublicNode(chain, subdomain) {
@@ -168,9 +169,7 @@ const chains = {
168
169
  },
169
170
  rpcUrls: {
170
171
  default: {
171
- http: [
172
- "https://permissionless-staging.gearbox.foundation/api/proxy/rpc/143"
173
- ]
172
+ http: ["https://rpc-mainnet.monadinfra.com"]
174
173
  }
175
174
  },
176
175
  blockExplorers: {
@@ -322,6 +321,40 @@ const chains = {
322
321
  address: "0xcA11bde05977b3631167028862bE2a173976CA11"
323
322
  }
324
323
  }
324
+ }),
325
+ Somnia: defineChain({
326
+ id: 5031,
327
+ name: "Somnia",
328
+ nativeCurrency: {
329
+ name: "Somnia",
330
+ symbol: "STT",
331
+ decimals: 18
332
+ },
333
+ rpcUrls: {
334
+ default: {
335
+ http: ["https://api.infra.mainnet.somnia.network"]
336
+ }
337
+ },
338
+ blockExplorers: {
339
+ default: {
340
+ name: "Somnia Explorer",
341
+ url: "https://explorer.somnia.network"
342
+ }
343
+ },
344
+ contracts: {
345
+ multicall3: {
346
+ address: "0x5e44F178E8cF9B2F5409B6f18ce936aB817C5a11",
347
+ blockCreated: 38516341
348
+ }
349
+ },
350
+ blockTime: 200,
351
+ network: "Somnia",
352
+ defaultMarketConfigurators: {},
353
+ isPublic: false,
354
+ wellKnownToken: {
355
+ address: "0x67B302E35Aef5EEE8c32D934F5856869EF428330",
356
+ symbol: "USDT"
357
+ }
325
358
  })
326
359
  };
327
360
  const networkByChainId = Object.values(chains).reduce((acc, chain) => {
@@ -48,7 +48,8 @@ const ADDRESS_PROVIDER = {
48
48
  Etherlink: NOT_DEPLOYED,
49
49
  Hemi: NOT_DEPLOYED,
50
50
  Lisk: NOT_DEPLOYED,
51
- Plasma: NOT_DEPLOYED
51
+ Plasma: NOT_DEPLOYED,
52
+ Somnia: NOT_DEPLOYED
52
53
  };
53
54
  const ADDRESS_PROVIDER_V310 = "0xF7f0a609BfAb9a0A98786951ef10e5FE26cC1E38";
54
55
  export {
@@ -17,7 +17,8 @@ const TIMELOCK = {
17
17
  Etherlink: NOT_DEPLOYED,
18
18
  Hemi: NOT_DEPLOYED,
19
19
  Lisk: NOT_DEPLOYED,
20
- Plasma: NOT_DEPLOYED
20
+ Plasma: NOT_DEPLOYED,
21
+ Somnia: NOT_DEPLOYED
21
22
  };
22
23
  const GEARBOX_MULTISIG = {
23
24
  Mainnet: "0xA7D5DDc1b8557914F158076b228AA91eF613f1D5",
@@ -35,7 +36,8 @@ const GEARBOX_MULTISIG = {
35
36
  Etherlink: NOT_DEPLOYED,
36
37
  Hemi: NOT_DEPLOYED,
37
38
  Lisk: NOT_DEPLOYED,
38
- Plasma: NOT_DEPLOYED
39
+ Plasma: NOT_DEPLOYED,
40
+ Somnia: NOT_DEPLOYED
39
41
  };
40
42
  const GEARBOX_RISK_CURATORS = {
41
43
  Mainnet: [TIMELOCK.Mainnet],
@@ -53,7 +55,8 @@ const GEARBOX_RISK_CURATORS = {
53
55
  Etherlink: [],
54
56
  Hemi: [],
55
57
  Lisk: [],
56
- Plasma: []
58
+ Plasma: [],
59
+ Somnia: []
57
60
  };
58
61
  const DEPRECIATED_POOLS = {
59
62
  Mainnet: {
@@ -73,7 +76,8 @@ const DEPRECIATED_POOLS = {
73
76
  Etherlink: {},
74
77
  Hemi: {},
75
78
  Lisk: {},
76
- Plasma: {}
79
+ Plasma: {},
80
+ Somnia: {}
77
81
  };
78
82
  export {
79
83
  ADDRESS_0X0,
@@ -26,8 +26,9 @@ const ADDRESS_PROVIDER_BLOCK = {
26
26
  // arbitrary not deployed yet
27
27
  Lisk: 18934260n,
28
28
  // arbitrary not deployed yet
29
- Plasma: 670918n
29
+ Plasma: 670918n,
30
30
  // arbitrary not deployed yet
31
+ Somnia: 147687418n
31
32
  };
32
33
  const BLOCK_DURATION_LOCAL = {
33
34
  Mainnet: 12050,
@@ -46,7 +47,8 @@ const BLOCK_DURATION_LOCAL = {
46
47
  Etherlink: 1e3,
47
48
  Hemi: 12e3,
48
49
  Lisk: 2e3,
49
- Plasma: 1e3
50
+ Plasma: 1e3,
51
+ Somnia: 200
50
52
  };
51
53
  const DEFAULT_DURATION = 12e3;
52
54
  const BLOCK_DURATION = Object.values(CHAINS).reduce(
@@ -318,7 +318,8 @@ class RouterV300Contract extends AbstractRouterContract {
318
318
  Etherlink: "0x0",
319
319
  Hemi: "0x0",
320
320
  Lisk: "0x0",
321
- Plasma: "0x0"
321
+ Plasma: "0x0",
322
+ Somnia: "0x0"
322
323
  };
323
324
  const pendleRouter = PENDLE_ROUTER_BY_NETWORK[this.sdk.networkType];
324
325
  const pendleAdapter = cm.creditManager.adapters.mustGet(pendleRouter);
@@ -799,7 +799,8 @@ const contractsByNetwork = {
799
799
  Etherlink: {},
800
800
  Hemi: {},
801
801
  Lisk: {},
802
- Plasma: {}
802
+ Plasma: {},
803
+ Somnia: {}
803
804
  };
804
805
  const UNISWAP_V3_QUOTER = "0xb27308f9F90D607463bb33eA1BeBb41C27CE5AB6";
805
806
  const CAMELOT_V3_QUOTER = "0x0Fc73040b26E9bC8514fA028D998E73A254Fa76E";
@@ -912,7 +913,8 @@ const contractParams = {
912
913
  Etherlink: NOT_DEPLOYED,
913
914
  Hemi: NOT_DEPLOYED,
914
915
  Lisk: NOT_DEPLOYED,
915
- Plasma: NOT_DEPLOYED
916
+ Plasma: NOT_DEPLOYED,
917
+ Somnia: NOT_DEPLOYED
916
918
  },
917
919
  tokens: ["WETH", "STETH"],
918
920
  lpToken: "steCRV"
@@ -937,7 +939,8 @@ const contractParams = {
937
939
  Etherlink: NOT_DEPLOYED,
938
940
  Hemi: NOT_DEPLOYED,
939
941
  Lisk: NOT_DEPLOYED,
940
- Plasma: NOT_DEPLOYED
942
+ Plasma: NOT_DEPLOYED,
943
+ Somnia: NOT_DEPLOYED
941
944
  },
942
945
  tokens: ["WETH", "wstETH"],
943
946
  lpToken: "wstETHCRV"
@@ -962,7 +965,8 @@ const contractParams = {
962
965
  Etherlink: NOT_DEPLOYED,
963
966
  Hemi: NOT_DEPLOYED,
964
967
  Lisk: NOT_DEPLOYED,
965
- Plasma: NOT_DEPLOYED
968
+ Plasma: NOT_DEPLOYED,
969
+ Somnia: NOT_DEPLOYED
966
970
  },
967
971
  tokens: ["GEAR", "WETH"],
968
972
  lpToken: "GEAR"
@@ -1499,7 +1503,8 @@ const contractParams = {
1499
1503
  Etherlink: NOT_DEPLOYED,
1500
1504
  Hemi: NOT_DEPLOYED,
1501
1505
  Lisk: NOT_DEPLOYED,
1502
- Plasma: NOT_DEPLOYED
1506
+ Plasma: NOT_DEPLOYED,
1507
+ Somnia: NOT_DEPLOYED
1503
1508
  }
1504
1509
  }
1505
1510
  ]
@@ -1528,7 +1533,8 @@ const contractParams = {
1528
1533
  Etherlink: NOT_DEPLOYED,
1529
1534
  Hemi: NOT_DEPLOYED,
1530
1535
  Lisk: NOT_DEPLOYED,
1531
- Plasma: NOT_DEPLOYED
1536
+ Plasma: NOT_DEPLOYED,
1537
+ Somnia: NOT_DEPLOYED
1532
1538
  }
1533
1539
  }
1534
1540
  ]
@@ -1557,7 +1563,8 @@ const contractParams = {
1557
1563
  Etherlink: NOT_DEPLOYED,
1558
1564
  Hemi: NOT_DEPLOYED,
1559
1565
  Lisk: NOT_DEPLOYED,
1560
- Plasma: NOT_DEPLOYED
1566
+ Plasma: NOT_DEPLOYED,
1567
+ Somnia: NOT_DEPLOYED
1561
1568
  }
1562
1569
  }
1563
1570
  ]
@@ -1586,7 +1593,8 @@ const contractParams = {
1586
1593
  Etherlink: NOT_DEPLOYED,
1587
1594
  Hemi: NOT_DEPLOYED,
1588
1595
  Lisk: NOT_DEPLOYED,
1589
- Plasma: NOT_DEPLOYED
1596
+ Plasma: NOT_DEPLOYED,
1597
+ Somnia: NOT_DEPLOYED
1590
1598
  }
1591
1599
  }
1592
1600
  ]
@@ -1614,7 +1622,8 @@ const contractParams = {
1614
1622
  Etherlink: NOT_DEPLOYED,
1615
1623
  Hemi: NOT_DEPLOYED,
1616
1624
  Lisk: NOT_DEPLOYED,
1617
- Plasma: NOT_DEPLOYED
1625
+ Plasma: NOT_DEPLOYED,
1626
+ Somnia: NOT_DEPLOYED
1618
1627
  }
1619
1628
  }
1620
1629
  ]
@@ -1642,7 +1651,8 @@ const contractParams = {
1642
1651
  Etherlink: NOT_DEPLOYED,
1643
1652
  Hemi: NOT_DEPLOYED,
1644
1653
  Lisk: NOT_DEPLOYED,
1645
- Plasma: NOT_DEPLOYED
1654
+ Plasma: NOT_DEPLOYED,
1655
+ Somnia: NOT_DEPLOYED
1646
1656
  }
1647
1657
  }
1648
1658
  ]
@@ -1677,7 +1687,8 @@ const contractParams = {
1677
1687
  Etherlink: NOT_DEPLOYED,
1678
1688
  Hemi: NOT_DEPLOYED,
1679
1689
  Lisk: NOT_DEPLOYED,
1680
- Plasma: NOT_DEPLOYED
1690
+ Plasma: NOT_DEPLOYED,
1691
+ Somnia: NOT_DEPLOYED
1681
1692
  }
1682
1693
  }
1683
1694
  ]
@@ -1705,7 +1716,8 @@ const contractParams = {
1705
1716
  Etherlink: NOT_DEPLOYED,
1706
1717
  Hemi: NOT_DEPLOYED,
1707
1718
  Lisk: NOT_DEPLOYED,
1708
- Plasma: NOT_DEPLOYED
1719
+ Plasma: NOT_DEPLOYED,
1720
+ Somnia: NOT_DEPLOYED
1709
1721
  }
1710
1722
  }
1711
1723
  ]
@@ -1733,7 +1745,8 @@ const contractParams = {
1733
1745
  Etherlink: NOT_DEPLOYED,
1734
1746
  Hemi: NOT_DEPLOYED,
1735
1747
  Lisk: NOT_DEPLOYED,
1736
- Plasma: NOT_DEPLOYED
1748
+ Plasma: NOT_DEPLOYED,
1749
+ Somnia: NOT_DEPLOYED
1737
1750
  }
1738
1751
  }
1739
1752
  ]
@@ -1761,7 +1774,8 @@ const contractParams = {
1761
1774
  Etherlink: NOT_DEPLOYED,
1762
1775
  Hemi: NOT_DEPLOYED,
1763
1776
  Lisk: NOT_DEPLOYED,
1764
- Plasma: NOT_DEPLOYED
1777
+ Plasma: NOT_DEPLOYED,
1778
+ Somnia: NOT_DEPLOYED
1765
1779
  }
1766
1780
  }
1767
1781
  ]
@@ -1789,7 +1803,8 @@ const contractParams = {
1789
1803
  Etherlink: NOT_DEPLOYED,
1790
1804
  Hemi: NOT_DEPLOYED,
1791
1805
  Lisk: NOT_DEPLOYED,
1792
- Plasma: NOT_DEPLOYED
1806
+ Plasma: NOT_DEPLOYED,
1807
+ Somnia: NOT_DEPLOYED
1793
1808
  }
1794
1809
  }
1795
1810
  ]
@@ -1817,7 +1832,8 @@ const contractParams = {
1817
1832
  Etherlink: NOT_DEPLOYED,
1818
1833
  Hemi: NOT_DEPLOYED,
1819
1834
  Lisk: NOT_DEPLOYED,
1820
- Plasma: NOT_DEPLOYED
1835
+ Plasma: NOT_DEPLOYED,
1836
+ Somnia: NOT_DEPLOYED
1821
1837
  }
1822
1838
  }
1823
1839
  ]
@@ -1845,7 +1861,8 @@ const contractParams = {
1845
1861
  Etherlink: NOT_DEPLOYED,
1846
1862
  Hemi: NOT_DEPLOYED,
1847
1863
  Lisk: NOT_DEPLOYED,
1848
- Plasma: NOT_DEPLOYED
1864
+ Plasma: NOT_DEPLOYED,
1865
+ Somnia: NOT_DEPLOYED
1849
1866
  }
1850
1867
  }
1851
1868
  ]
@@ -1873,7 +1890,8 @@ const contractParams = {
1873
1890
  Etherlink: NOT_DEPLOYED,
1874
1891
  Hemi: NOT_DEPLOYED,
1875
1892
  Lisk: NOT_DEPLOYED,
1876
- Plasma: NOT_DEPLOYED
1893
+ Plasma: NOT_DEPLOYED,
1894
+ Somnia: NOT_DEPLOYED
1877
1895
  }
1878
1896
  }
1879
1897
  ]
@@ -1918,7 +1936,8 @@ const contractParams = {
1918
1936
  Etherlink: NOT_DEPLOYED,
1919
1937
  Hemi: NOT_DEPLOYED,
1920
1938
  Lisk: NOT_DEPLOYED,
1921
- Plasma: NOT_DEPLOYED
1939
+ Plasma: NOT_DEPLOYED,
1940
+ Somnia: NOT_DEPLOYED
1922
1941
  }
1923
1942
  }
1924
1943
  ]
@@ -1946,7 +1965,8 @@ const contractParams = {
1946
1965
  Etherlink: NOT_DEPLOYED,
1947
1966
  Hemi: NOT_DEPLOYED,
1948
1967
  Lisk: NOT_DEPLOYED,
1949
- Plasma: NOT_DEPLOYED
1968
+ Plasma: NOT_DEPLOYED,
1969
+ Somnia: NOT_DEPLOYED
1950
1970
  }
1951
1971
  }
1952
1972
  ]
@@ -1974,7 +1994,8 @@ const contractParams = {
1974
1994
  Etherlink: NOT_DEPLOYED,
1975
1995
  Hemi: NOT_DEPLOYED,
1976
1996
  Lisk: NOT_DEPLOYED,
1977
- Plasma: NOT_DEPLOYED
1997
+ Plasma: NOT_DEPLOYED,
1998
+ Somnia: NOT_DEPLOYED
1978
1999
  }
1979
2000
  },
1980
2001
  {
@@ -1994,7 +2015,8 @@ const contractParams = {
1994
2015
  Etherlink: NOT_DEPLOYED,
1995
2016
  Hemi: NOT_DEPLOYED,
1996
2017
  Lisk: NOT_DEPLOYED,
1997
- Plasma: NOT_DEPLOYED
2018
+ Plasma: NOT_DEPLOYED,
2019
+ Somnia: NOT_DEPLOYED
1998
2020
  }
1999
2021
  }
2000
2022
  ]
@@ -2022,7 +2044,8 @@ const contractParams = {
2022
2044
  Etherlink: NOT_DEPLOYED,
2023
2045
  Hemi: NOT_DEPLOYED,
2024
2046
  Lisk: NOT_DEPLOYED,
2025
- Plasma: NOT_DEPLOYED
2047
+ Plasma: NOT_DEPLOYED,
2048
+ Somnia: NOT_DEPLOYED
2026
2049
  }
2027
2050
  },
2028
2051
  {
@@ -2042,7 +2065,8 @@ const contractParams = {
2042
2065
  Etherlink: NOT_DEPLOYED,
2043
2066
  Hemi: NOT_DEPLOYED,
2044
2067
  Lisk: NOT_DEPLOYED,
2045
- Plasma: NOT_DEPLOYED
2068
+ Plasma: NOT_DEPLOYED,
2069
+ Somnia: NOT_DEPLOYED
2046
2070
  }
2047
2071
  }
2048
2072
  ]
@@ -2070,7 +2094,8 @@ const contractParams = {
2070
2094
  Etherlink: NOT_DEPLOYED,
2071
2095
  Hemi: NOT_DEPLOYED,
2072
2096
  Lisk: NOT_DEPLOYED,
2073
- Plasma: NOT_DEPLOYED
2097
+ Plasma: NOT_DEPLOYED,
2098
+ Somnia: NOT_DEPLOYED
2074
2099
  }
2075
2100
  },
2076
2101
  {
@@ -2090,7 +2115,8 @@ const contractParams = {
2090
2115
  Etherlink: NOT_DEPLOYED,
2091
2116
  Hemi: NOT_DEPLOYED,
2092
2117
  Lisk: NOT_DEPLOYED,
2093
- Plasma: NOT_DEPLOYED
2118
+ Plasma: NOT_DEPLOYED,
2119
+ Somnia: NOT_DEPLOYED
2094
2120
  }
2095
2121
  }
2096
2122
  ]
@@ -2118,7 +2144,8 @@ const contractParams = {
2118
2144
  Etherlink: NOT_DEPLOYED,
2119
2145
  Hemi: NOT_DEPLOYED,
2120
2146
  Lisk: NOT_DEPLOYED,
2121
- Plasma: NOT_DEPLOYED
2147
+ Plasma: NOT_DEPLOYED,
2148
+ Somnia: NOT_DEPLOYED
2122
2149
  }
2123
2150
  },
2124
2151
  {
@@ -2138,7 +2165,8 @@ const contractParams = {
2138
2165
  Etherlink: NOT_DEPLOYED,
2139
2166
  Hemi: NOT_DEPLOYED,
2140
2167
  Lisk: NOT_DEPLOYED,
2141
- Plasma: NOT_DEPLOYED
2168
+ Plasma: NOT_DEPLOYED,
2169
+ Somnia: NOT_DEPLOYED
2142
2170
  }
2143
2171
  }
2144
2172
  ]
@@ -2166,7 +2194,8 @@ const contractParams = {
2166
2194
  Etherlink: NOT_DEPLOYED,
2167
2195
  Hemi: NOT_DEPLOYED,
2168
2196
  Lisk: NOT_DEPLOYED,
2169
- Plasma: NOT_DEPLOYED
2197
+ Plasma: NOT_DEPLOYED,
2198
+ Somnia: NOT_DEPLOYED
2170
2199
  }
2171
2200
  },
2172
2201
  {
@@ -2186,7 +2215,8 @@ const contractParams = {
2186
2215
  Etherlink: NOT_DEPLOYED,
2187
2216
  Hemi: NOT_DEPLOYED,
2188
2217
  Lisk: NOT_DEPLOYED,
2189
- Plasma: NOT_DEPLOYED
2218
+ Plasma: NOT_DEPLOYED,
2219
+ Somnia: NOT_DEPLOYED
2190
2220
  }
2191
2221
  }
2192
2222
  ]
@@ -2214,7 +2244,8 @@ const contractParams = {
2214
2244
  Etherlink: NOT_DEPLOYED,
2215
2245
  Hemi: NOT_DEPLOYED,
2216
2246
  Lisk: NOT_DEPLOYED,
2217
- Plasma: NOT_DEPLOYED
2247
+ Plasma: NOT_DEPLOYED,
2248
+ Somnia: NOT_DEPLOYED
2218
2249
  }
2219
2250
  },
2220
2251
  {
@@ -2234,7 +2265,8 @@ const contractParams = {
2234
2265
  Etherlink: NOT_DEPLOYED,
2235
2266
  Hemi: NOT_DEPLOYED,
2236
2267
  Lisk: NOT_DEPLOYED,
2237
- Plasma: NOT_DEPLOYED
2268
+ Plasma: NOT_DEPLOYED,
2269
+ Somnia: NOT_DEPLOYED
2238
2270
  }
2239
2271
  }
2240
2272
  ]
@@ -2262,7 +2294,8 @@ const contractParams = {
2262
2294
  Etherlink: NOT_DEPLOYED,
2263
2295
  Hemi: NOT_DEPLOYED,
2264
2296
  Lisk: NOT_DEPLOYED,
2265
- Plasma: NOT_DEPLOYED
2297
+ Plasma: NOT_DEPLOYED,
2298
+ Somnia: NOT_DEPLOYED
2266
2299
  }
2267
2300
  },
2268
2301
  {
@@ -2282,7 +2315,8 @@ const contractParams = {
2282
2315
  Etherlink: NOT_DEPLOYED,
2283
2316
  Hemi: NOT_DEPLOYED,
2284
2317
  Lisk: NOT_DEPLOYED,
2285
- Plasma: NOT_DEPLOYED
2318
+ Plasma: NOT_DEPLOYED,
2319
+ Somnia: NOT_DEPLOYED
2286
2320
  }
2287
2321
  }
2288
2322
  ]
@@ -2307,7 +2341,8 @@ const contractParams = {
2307
2341
  Etherlink: NOT_DEPLOYED,
2308
2342
  Hemi: NOT_DEPLOYED,
2309
2343
  Lisk: NOT_DEPLOYED,
2310
- Plasma: NOT_DEPLOYED
2344
+ Plasma: NOT_DEPLOYED,
2345
+ Somnia: NOT_DEPLOYED
2311
2346
  },
2312
2347
  lpToken: "steCRV"
2313
2348
  },
@@ -2340,7 +2375,8 @@ const contractParams = {
2340
2375
  Etherlink: NOT_DEPLOYED,
2341
2376
  Hemi: NOT_DEPLOYED,
2342
2377
  Lisk: NOT_DEPLOYED,
2343
- Plasma: NOT_DEPLOYED
2378
+ Plasma: NOT_DEPLOYED,
2379
+ Somnia: NOT_DEPLOYED
2344
2380
  }
2345
2381
  },
2346
2382
  BALANCER_V3_ROUTER: {
@@ -2362,7 +2398,8 @@ const contractParams = {
2362
2398
  Etherlink: NOT_DEPLOYED,
2363
2399
  Hemi: NOT_DEPLOYED,
2364
2400
  Lisk: NOT_DEPLOYED,
2365
- Plasma: NOT_DEPLOYED
2401
+ Plasma: NOT_DEPLOYED,
2402
+ Somnia: NOT_DEPLOYED
2366
2403
  }
2367
2404
  },
2368
2405
  AAVE_V2_LENDING_POOL: {
@@ -546,7 +546,8 @@ const tokenDataByNetwork = {
546
546
  wstETH: "0x76D8de471F54aAA87784119c60Df1bbFc852C415",
547
547
  lskETH: "0x1b10E2270780858923cdBbC9B5423e29fffD1A44"
548
548
  },
549
- Plasma: {}
549
+ Plasma: {},
550
+ Somnia: {}
550
551
  };
551
552
  const tickerInfoTokensByNetwork = {
552
553
  Mainnet: {
@@ -948,7 +949,8 @@ const tickerInfoTokensByNetwork = {
948
949
  Etherlink: {},
949
950
  Hemi: {},
950
951
  Lisk: {},
951
- Plasma: {}
952
+ Plasma: {},
953
+ Somnia: {}
952
954
  };
953
955
  const tokenSymbolByAddress = Object.entries(tokenDataByNetwork).reduce(
954
956
  (acc, [, tokens]) => ({
@@ -37,7 +37,8 @@ const connectors = {
37
37
  Etherlink: [],
38
38
  Hemi: [],
39
39
  Lisk: [],
40
- Plasma: []
40
+ Plasma: [],
41
+ Somnia: []
41
42
  };
42
43
  function getConnectors(networkType) {
43
44
  return connectors[networkType].map((e) => {
@@ -16,7 +16,8 @@ const TESTNET_CHAINS = {
16
16
  Etherlink: 7890,
17
17
  Hemi: 7891,
18
18
  Lisk: 7892,
19
- Plasma: 7893
19
+ Plasma: 7893,
20
+ Somnia: 7894
20
21
  };
21
22
  const CHAINS_BY_ID = TypedObjectUtils.swapKeyValue(TESTNET_CHAINS);
22
23
  const MAINNET_BY_TESTNET_ID = TypedObjectUtils.entries(TESTNET_CHAINS).reduce((acc, [n, testnetId]) => {