@gearbox-protocol/sdk 11.6.0 → 11.6.2

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.
@@ -48,7 +48,8 @@ const SUPPORTED_NETWORKS = [
48
48
  "Etherlink",
49
49
  "Hemi",
50
50
  "Lisk",
51
- "Plasma"
51
+ "Plasma",
52
+ "Somnia"
52
53
  ];
53
54
  const NetworkType = import_v4.z.enum(SUPPORTED_NETWORKS);
54
55
  function withPublicNode(chain, subdomain) {
@@ -175,33 +176,7 @@ const chains = {
175
176
  }),
176
177
  // NOTE: Monad chain configs should be updated once the public mainnet is available
177
178
  Monad: (0, import_viem.defineChain)({
178
- id: 143,
179
- name: "Monad",
180
- nativeCurrency: {
181
- name: "Monad",
182
- symbol: "MON",
183
- decimals: 18
184
- },
185
- rpcUrls: {
186
- default: {
187
- http: [
188
- "https://permissionless-staging.gearbox.foundation/api/proxy/rpc/143"
189
- ]
190
- }
191
- },
192
- blockExplorers: {
193
- default: {
194
- name: "Monvision",
195
- url: "https://mainnet-beta.monvision.io"
196
- }
197
- },
198
- blockTime: 400,
199
- contracts: {
200
- multicall3: {
201
- address: "0xcA11bde05977b3631167028862bE2a173976CA11",
202
- blockCreated: 9248132
203
- }
204
- },
179
+ ...import_chains.monad,
205
180
  network: "Monad",
206
181
  defaultMarketConfigurators: {
207
182
  "0x16956912813ab9a38d95730b52a8cf53e860a7c5": "Tulipa",
@@ -338,6 +313,40 @@ const chains = {
338
313
  address: "0xcA11bde05977b3631167028862bE2a173976CA11"
339
314
  }
340
315
  }
316
+ }),
317
+ Somnia: (0, import_viem.defineChain)({
318
+ id: 5031,
319
+ name: "Somnia",
320
+ nativeCurrency: {
321
+ name: "Somnia",
322
+ symbol: "STT",
323
+ decimals: 18
324
+ },
325
+ rpcUrls: {
326
+ default: {
327
+ http: ["https://api.infra.mainnet.somnia.network"]
328
+ }
329
+ },
330
+ blockExplorers: {
331
+ default: {
332
+ name: "Somnia Explorer",
333
+ url: "https://explorer.somnia.network"
334
+ }
335
+ },
336
+ contracts: {
337
+ multicall3: {
338
+ address: "0x5e44F178E8cF9B2F5409B6f18ce936aB817C5a11",
339
+ blockCreated: 38516341
340
+ }
341
+ },
342
+ blockTime: 200,
343
+ network: "Somnia",
344
+ defaultMarketConfigurators: {},
345
+ isPublic: false,
346
+ wellKnownToken: {
347
+ address: "0x67B302E35Aef5EEE8c32D934F5856869EF428330",
348
+ symbol: "USDT"
349
+ }
341
350
  })
342
351
  };
343
352
  const networkByChainId = Object.values(chains).reduce((acc, chain) => {
@@ -105,7 +105,8 @@ const ADDRESS_PROVIDER = {
105
105
  Etherlink: import_addresses.NOT_DEPLOYED,
106
106
  Hemi: import_addresses.NOT_DEPLOYED,
107
107
  Lisk: import_addresses.NOT_DEPLOYED,
108
- Plasma: import_addresses.NOT_DEPLOYED
108
+ Plasma: import_addresses.NOT_DEPLOYED,
109
+ Somnia: import_addresses.NOT_DEPLOYED
109
110
  };
110
111
  const ADDRESS_PROVIDER_V310 = "0xF7f0a609BfAb9a0A98786951ef10e5FE26cC1E38";
111
112
  // Annotate the CommonJS export names for ESM import in node:
@@ -46,7 +46,8 @@ const TIMELOCK = {
46
46
  Etherlink: NOT_DEPLOYED,
47
47
  Hemi: NOT_DEPLOYED,
48
48
  Lisk: NOT_DEPLOYED,
49
- Plasma: NOT_DEPLOYED
49
+ Plasma: NOT_DEPLOYED,
50
+ Somnia: NOT_DEPLOYED
50
51
  };
51
52
  const GEARBOX_MULTISIG = {
52
53
  Mainnet: "0xA7D5DDc1b8557914F158076b228AA91eF613f1D5",
@@ -64,7 +65,8 @@ const GEARBOX_MULTISIG = {
64
65
  Etherlink: NOT_DEPLOYED,
65
66
  Hemi: NOT_DEPLOYED,
66
67
  Lisk: NOT_DEPLOYED,
67
- Plasma: NOT_DEPLOYED
68
+ Plasma: NOT_DEPLOYED,
69
+ Somnia: NOT_DEPLOYED
68
70
  };
69
71
  const GEARBOX_RISK_CURATORS = {
70
72
  Mainnet: [TIMELOCK.Mainnet],
@@ -82,7 +84,8 @@ const GEARBOX_RISK_CURATORS = {
82
84
  Etherlink: [],
83
85
  Hemi: [],
84
86
  Lisk: [],
85
- Plasma: []
87
+ Plasma: [],
88
+ Somnia: []
86
89
  };
87
90
  const DEPRECIATED_POOLS = {
88
91
  Mainnet: {
@@ -102,7 +105,8 @@ const DEPRECIATED_POOLS = {
102
105
  Etherlink: {},
103
106
  Hemi: {},
104
107
  Lisk: {},
105
- Plasma: {}
108
+ Plasma: {},
109
+ Somnia: {}
106
110
  };
107
111
  // Annotate the CommonJS export names for ESM import in node:
108
112
  0 && (module.exports = {
@@ -51,8 +51,9 @@ const ADDRESS_PROVIDER_BLOCK = {
51
51
  // arbitrary not deployed yet
52
52
  Lisk: 18934260n,
53
53
  // arbitrary not deployed yet
54
- Plasma: 670918n
54
+ Plasma: 670918n,
55
55
  // arbitrary not deployed yet
56
+ Somnia: 147687418n
56
57
  };
57
58
  const BLOCK_DURATION_LOCAL = {
58
59
  Mainnet: 12050,
@@ -71,7 +72,8 @@ const BLOCK_DURATION_LOCAL = {
71
72
  Etherlink: 1e3,
72
73
  Hemi: 12e3,
73
74
  Lisk: 2e3,
74
- Plasma: 1e3
75
+ Plasma: 1e3,
76
+ Somnia: 200
75
77
  };
76
78
  const DEFAULT_DURATION = 12e3;
77
79
  const BLOCK_DURATION = Object.values(import_chain.chains).reduce(
@@ -333,7 +333,8 @@ class RouterV300Contract extends import_AbstractRouterContract.AbstractRouterCon
333
333
  Etherlink: "0x0",
334
334
  Hemi: "0x0",
335
335
  Lisk: "0x0",
336
- Plasma: "0x0"
336
+ Plasma: "0x0",
337
+ Somnia: "0x0"
337
338
  };
338
339
  const pendleRouter = PENDLE_ROUTER_BY_NETWORK[this.sdk.networkType];
339
340
  const pendleAdapter = cm.creditManager.adapters.mustGet(pendleRouter);
@@ -836,7 +836,8 @@ const contractsByNetwork = {
836
836
  Etherlink: {},
837
837
  Hemi: {},
838
838
  Lisk: {},
839
- Plasma: {}
839
+ Plasma: {},
840
+ Somnia: {}
840
841
  };
841
842
  const UNISWAP_V3_QUOTER = "0xb27308f9F90D607463bb33eA1BeBb41C27CE5AB6";
842
843
  const CAMELOT_V3_QUOTER = "0x0Fc73040b26E9bC8514fA028D998E73A254Fa76E";
@@ -949,7 +950,8 @@ const contractParams = {
949
950
  Etherlink: import_constants.NOT_DEPLOYED,
950
951
  Hemi: import_constants.NOT_DEPLOYED,
951
952
  Lisk: import_constants.NOT_DEPLOYED,
952
- Plasma: import_constants.NOT_DEPLOYED
953
+ Plasma: import_constants.NOT_DEPLOYED,
954
+ Somnia: import_constants.NOT_DEPLOYED
953
955
  },
954
956
  tokens: ["WETH", "STETH"],
955
957
  lpToken: "steCRV"
@@ -974,7 +976,8 @@ const contractParams = {
974
976
  Etherlink: import_constants.NOT_DEPLOYED,
975
977
  Hemi: import_constants.NOT_DEPLOYED,
976
978
  Lisk: import_constants.NOT_DEPLOYED,
977
- Plasma: import_constants.NOT_DEPLOYED
979
+ Plasma: import_constants.NOT_DEPLOYED,
980
+ Somnia: import_constants.NOT_DEPLOYED
978
981
  },
979
982
  tokens: ["WETH", "wstETH"],
980
983
  lpToken: "wstETHCRV"
@@ -999,7 +1002,8 @@ const contractParams = {
999
1002
  Etherlink: import_constants.NOT_DEPLOYED,
1000
1003
  Hemi: import_constants.NOT_DEPLOYED,
1001
1004
  Lisk: import_constants.NOT_DEPLOYED,
1002
- Plasma: import_constants.NOT_DEPLOYED
1005
+ Plasma: import_constants.NOT_DEPLOYED,
1006
+ Somnia: import_constants.NOT_DEPLOYED
1003
1007
  },
1004
1008
  tokens: ["GEAR", "WETH"],
1005
1009
  lpToken: "GEAR"
@@ -1536,7 +1540,8 @@ const contractParams = {
1536
1540
  Etherlink: import_constants.NOT_DEPLOYED,
1537
1541
  Hemi: import_constants.NOT_DEPLOYED,
1538
1542
  Lisk: import_constants.NOT_DEPLOYED,
1539
- Plasma: import_constants.NOT_DEPLOYED
1543
+ Plasma: import_constants.NOT_DEPLOYED,
1544
+ Somnia: import_constants.NOT_DEPLOYED
1540
1545
  }
1541
1546
  }
1542
1547
  ]
@@ -1565,7 +1570,8 @@ const contractParams = {
1565
1570
  Etherlink: import_constants.NOT_DEPLOYED,
1566
1571
  Hemi: import_constants.NOT_DEPLOYED,
1567
1572
  Lisk: import_constants.NOT_DEPLOYED,
1568
- Plasma: import_constants.NOT_DEPLOYED
1573
+ Plasma: import_constants.NOT_DEPLOYED,
1574
+ Somnia: import_constants.NOT_DEPLOYED
1569
1575
  }
1570
1576
  }
1571
1577
  ]
@@ -1594,7 +1600,8 @@ const contractParams = {
1594
1600
  Etherlink: import_constants.NOT_DEPLOYED,
1595
1601
  Hemi: import_constants.NOT_DEPLOYED,
1596
1602
  Lisk: import_constants.NOT_DEPLOYED,
1597
- Plasma: import_constants.NOT_DEPLOYED
1603
+ Plasma: import_constants.NOT_DEPLOYED,
1604
+ Somnia: import_constants.NOT_DEPLOYED
1598
1605
  }
1599
1606
  }
1600
1607
  ]
@@ -1623,7 +1630,8 @@ const contractParams = {
1623
1630
  Etherlink: import_constants.NOT_DEPLOYED,
1624
1631
  Hemi: import_constants.NOT_DEPLOYED,
1625
1632
  Lisk: import_constants.NOT_DEPLOYED,
1626
- Plasma: import_constants.NOT_DEPLOYED
1633
+ Plasma: import_constants.NOT_DEPLOYED,
1634
+ Somnia: import_constants.NOT_DEPLOYED
1627
1635
  }
1628
1636
  }
1629
1637
  ]
@@ -1651,7 +1659,8 @@ const contractParams = {
1651
1659
  Etherlink: import_constants.NOT_DEPLOYED,
1652
1660
  Hemi: import_constants.NOT_DEPLOYED,
1653
1661
  Lisk: import_constants.NOT_DEPLOYED,
1654
- Plasma: import_constants.NOT_DEPLOYED
1662
+ Plasma: import_constants.NOT_DEPLOYED,
1663
+ Somnia: import_constants.NOT_DEPLOYED
1655
1664
  }
1656
1665
  }
1657
1666
  ]
@@ -1679,7 +1688,8 @@ const contractParams = {
1679
1688
  Etherlink: import_constants.NOT_DEPLOYED,
1680
1689
  Hemi: import_constants.NOT_DEPLOYED,
1681
1690
  Lisk: import_constants.NOT_DEPLOYED,
1682
- Plasma: import_constants.NOT_DEPLOYED
1691
+ Plasma: import_constants.NOT_DEPLOYED,
1692
+ Somnia: import_constants.NOT_DEPLOYED
1683
1693
  }
1684
1694
  }
1685
1695
  ]
@@ -1714,7 +1724,8 @@ const contractParams = {
1714
1724
  Etherlink: import_constants.NOT_DEPLOYED,
1715
1725
  Hemi: import_constants.NOT_DEPLOYED,
1716
1726
  Lisk: import_constants.NOT_DEPLOYED,
1717
- Plasma: import_constants.NOT_DEPLOYED
1727
+ Plasma: import_constants.NOT_DEPLOYED,
1728
+ Somnia: import_constants.NOT_DEPLOYED
1718
1729
  }
1719
1730
  }
1720
1731
  ]
@@ -1742,7 +1753,8 @@ const contractParams = {
1742
1753
  Etherlink: import_constants.NOT_DEPLOYED,
1743
1754
  Hemi: import_constants.NOT_DEPLOYED,
1744
1755
  Lisk: import_constants.NOT_DEPLOYED,
1745
- Plasma: import_constants.NOT_DEPLOYED
1756
+ Plasma: import_constants.NOT_DEPLOYED,
1757
+ Somnia: import_constants.NOT_DEPLOYED
1746
1758
  }
1747
1759
  }
1748
1760
  ]
@@ -1770,7 +1782,8 @@ const contractParams = {
1770
1782
  Etherlink: import_constants.NOT_DEPLOYED,
1771
1783
  Hemi: import_constants.NOT_DEPLOYED,
1772
1784
  Lisk: import_constants.NOT_DEPLOYED,
1773
- Plasma: import_constants.NOT_DEPLOYED
1785
+ Plasma: import_constants.NOT_DEPLOYED,
1786
+ Somnia: import_constants.NOT_DEPLOYED
1774
1787
  }
1775
1788
  }
1776
1789
  ]
@@ -1798,7 +1811,8 @@ const contractParams = {
1798
1811
  Etherlink: import_constants.NOT_DEPLOYED,
1799
1812
  Hemi: import_constants.NOT_DEPLOYED,
1800
1813
  Lisk: import_constants.NOT_DEPLOYED,
1801
- Plasma: import_constants.NOT_DEPLOYED
1814
+ Plasma: import_constants.NOT_DEPLOYED,
1815
+ Somnia: import_constants.NOT_DEPLOYED
1802
1816
  }
1803
1817
  }
1804
1818
  ]
@@ -1826,7 +1840,8 @@ const contractParams = {
1826
1840
  Etherlink: import_constants.NOT_DEPLOYED,
1827
1841
  Hemi: import_constants.NOT_DEPLOYED,
1828
1842
  Lisk: import_constants.NOT_DEPLOYED,
1829
- Plasma: import_constants.NOT_DEPLOYED
1843
+ Plasma: import_constants.NOT_DEPLOYED,
1844
+ Somnia: import_constants.NOT_DEPLOYED
1830
1845
  }
1831
1846
  }
1832
1847
  ]
@@ -1854,7 +1869,8 @@ const contractParams = {
1854
1869
  Etherlink: import_constants.NOT_DEPLOYED,
1855
1870
  Hemi: import_constants.NOT_DEPLOYED,
1856
1871
  Lisk: import_constants.NOT_DEPLOYED,
1857
- Plasma: import_constants.NOT_DEPLOYED
1872
+ Plasma: import_constants.NOT_DEPLOYED,
1873
+ Somnia: import_constants.NOT_DEPLOYED
1858
1874
  }
1859
1875
  }
1860
1876
  ]
@@ -1882,7 +1898,8 @@ const contractParams = {
1882
1898
  Etherlink: import_constants.NOT_DEPLOYED,
1883
1899
  Hemi: import_constants.NOT_DEPLOYED,
1884
1900
  Lisk: import_constants.NOT_DEPLOYED,
1885
- Plasma: import_constants.NOT_DEPLOYED
1901
+ Plasma: import_constants.NOT_DEPLOYED,
1902
+ Somnia: import_constants.NOT_DEPLOYED
1886
1903
  }
1887
1904
  }
1888
1905
  ]
@@ -1910,7 +1927,8 @@ const contractParams = {
1910
1927
  Etherlink: import_constants.NOT_DEPLOYED,
1911
1928
  Hemi: import_constants.NOT_DEPLOYED,
1912
1929
  Lisk: import_constants.NOT_DEPLOYED,
1913
- Plasma: import_constants.NOT_DEPLOYED
1930
+ Plasma: import_constants.NOT_DEPLOYED,
1931
+ Somnia: import_constants.NOT_DEPLOYED
1914
1932
  }
1915
1933
  }
1916
1934
  ]
@@ -1955,7 +1973,8 @@ const contractParams = {
1955
1973
  Etherlink: import_constants.NOT_DEPLOYED,
1956
1974
  Hemi: import_constants.NOT_DEPLOYED,
1957
1975
  Lisk: import_constants.NOT_DEPLOYED,
1958
- Plasma: import_constants.NOT_DEPLOYED
1976
+ Plasma: import_constants.NOT_DEPLOYED,
1977
+ Somnia: import_constants.NOT_DEPLOYED
1959
1978
  }
1960
1979
  }
1961
1980
  ]
@@ -1983,7 +2002,8 @@ const contractParams = {
1983
2002
  Etherlink: import_constants.NOT_DEPLOYED,
1984
2003
  Hemi: import_constants.NOT_DEPLOYED,
1985
2004
  Lisk: import_constants.NOT_DEPLOYED,
1986
- Plasma: import_constants.NOT_DEPLOYED
2005
+ Plasma: import_constants.NOT_DEPLOYED,
2006
+ Somnia: import_constants.NOT_DEPLOYED
1987
2007
  }
1988
2008
  }
1989
2009
  ]
@@ -2011,7 +2031,8 @@ const contractParams = {
2011
2031
  Etherlink: import_constants.NOT_DEPLOYED,
2012
2032
  Hemi: import_constants.NOT_DEPLOYED,
2013
2033
  Lisk: import_constants.NOT_DEPLOYED,
2014
- Plasma: import_constants.NOT_DEPLOYED
2034
+ Plasma: import_constants.NOT_DEPLOYED,
2035
+ Somnia: import_constants.NOT_DEPLOYED
2015
2036
  }
2016
2037
  },
2017
2038
  {
@@ -2031,7 +2052,8 @@ const contractParams = {
2031
2052
  Etherlink: import_constants.NOT_DEPLOYED,
2032
2053
  Hemi: import_constants.NOT_DEPLOYED,
2033
2054
  Lisk: import_constants.NOT_DEPLOYED,
2034
- Plasma: import_constants.NOT_DEPLOYED
2055
+ Plasma: import_constants.NOT_DEPLOYED,
2056
+ Somnia: import_constants.NOT_DEPLOYED
2035
2057
  }
2036
2058
  }
2037
2059
  ]
@@ -2059,7 +2081,8 @@ const contractParams = {
2059
2081
  Etherlink: import_constants.NOT_DEPLOYED,
2060
2082
  Hemi: import_constants.NOT_DEPLOYED,
2061
2083
  Lisk: import_constants.NOT_DEPLOYED,
2062
- Plasma: import_constants.NOT_DEPLOYED
2084
+ Plasma: import_constants.NOT_DEPLOYED,
2085
+ Somnia: import_constants.NOT_DEPLOYED
2063
2086
  }
2064
2087
  },
2065
2088
  {
@@ -2079,7 +2102,8 @@ const contractParams = {
2079
2102
  Etherlink: import_constants.NOT_DEPLOYED,
2080
2103
  Hemi: import_constants.NOT_DEPLOYED,
2081
2104
  Lisk: import_constants.NOT_DEPLOYED,
2082
- Plasma: import_constants.NOT_DEPLOYED
2105
+ Plasma: import_constants.NOT_DEPLOYED,
2106
+ Somnia: import_constants.NOT_DEPLOYED
2083
2107
  }
2084
2108
  }
2085
2109
  ]
@@ -2107,7 +2131,8 @@ const contractParams = {
2107
2131
  Etherlink: import_constants.NOT_DEPLOYED,
2108
2132
  Hemi: import_constants.NOT_DEPLOYED,
2109
2133
  Lisk: import_constants.NOT_DEPLOYED,
2110
- Plasma: import_constants.NOT_DEPLOYED
2134
+ Plasma: import_constants.NOT_DEPLOYED,
2135
+ Somnia: import_constants.NOT_DEPLOYED
2111
2136
  }
2112
2137
  },
2113
2138
  {
@@ -2127,7 +2152,8 @@ const contractParams = {
2127
2152
  Etherlink: import_constants.NOT_DEPLOYED,
2128
2153
  Hemi: import_constants.NOT_DEPLOYED,
2129
2154
  Lisk: import_constants.NOT_DEPLOYED,
2130
- Plasma: import_constants.NOT_DEPLOYED
2155
+ Plasma: import_constants.NOT_DEPLOYED,
2156
+ Somnia: import_constants.NOT_DEPLOYED
2131
2157
  }
2132
2158
  }
2133
2159
  ]
@@ -2155,7 +2181,8 @@ const contractParams = {
2155
2181
  Etherlink: import_constants.NOT_DEPLOYED,
2156
2182
  Hemi: import_constants.NOT_DEPLOYED,
2157
2183
  Lisk: import_constants.NOT_DEPLOYED,
2158
- Plasma: import_constants.NOT_DEPLOYED
2184
+ Plasma: import_constants.NOT_DEPLOYED,
2185
+ Somnia: import_constants.NOT_DEPLOYED
2159
2186
  }
2160
2187
  },
2161
2188
  {
@@ -2175,7 +2202,8 @@ const contractParams = {
2175
2202
  Etherlink: import_constants.NOT_DEPLOYED,
2176
2203
  Hemi: import_constants.NOT_DEPLOYED,
2177
2204
  Lisk: import_constants.NOT_DEPLOYED,
2178
- Plasma: import_constants.NOT_DEPLOYED
2205
+ Plasma: import_constants.NOT_DEPLOYED,
2206
+ Somnia: import_constants.NOT_DEPLOYED
2179
2207
  }
2180
2208
  }
2181
2209
  ]
@@ -2203,7 +2231,8 @@ const contractParams = {
2203
2231
  Etherlink: import_constants.NOT_DEPLOYED,
2204
2232
  Hemi: import_constants.NOT_DEPLOYED,
2205
2233
  Lisk: import_constants.NOT_DEPLOYED,
2206
- Plasma: import_constants.NOT_DEPLOYED
2234
+ Plasma: import_constants.NOT_DEPLOYED,
2235
+ Somnia: import_constants.NOT_DEPLOYED
2207
2236
  }
2208
2237
  },
2209
2238
  {
@@ -2223,7 +2252,8 @@ const contractParams = {
2223
2252
  Etherlink: import_constants.NOT_DEPLOYED,
2224
2253
  Hemi: import_constants.NOT_DEPLOYED,
2225
2254
  Lisk: import_constants.NOT_DEPLOYED,
2226
- Plasma: import_constants.NOT_DEPLOYED
2255
+ Plasma: import_constants.NOT_DEPLOYED,
2256
+ Somnia: import_constants.NOT_DEPLOYED
2227
2257
  }
2228
2258
  }
2229
2259
  ]
@@ -2251,7 +2281,8 @@ const contractParams = {
2251
2281
  Etherlink: import_constants.NOT_DEPLOYED,
2252
2282
  Hemi: import_constants.NOT_DEPLOYED,
2253
2283
  Lisk: import_constants.NOT_DEPLOYED,
2254
- Plasma: import_constants.NOT_DEPLOYED
2284
+ Plasma: import_constants.NOT_DEPLOYED,
2285
+ Somnia: import_constants.NOT_DEPLOYED
2255
2286
  }
2256
2287
  },
2257
2288
  {
@@ -2271,7 +2302,8 @@ const contractParams = {
2271
2302
  Etherlink: import_constants.NOT_DEPLOYED,
2272
2303
  Hemi: import_constants.NOT_DEPLOYED,
2273
2304
  Lisk: import_constants.NOT_DEPLOYED,
2274
- Plasma: import_constants.NOT_DEPLOYED
2305
+ Plasma: import_constants.NOT_DEPLOYED,
2306
+ Somnia: import_constants.NOT_DEPLOYED
2275
2307
  }
2276
2308
  }
2277
2309
  ]
@@ -2299,7 +2331,8 @@ const contractParams = {
2299
2331
  Etherlink: import_constants.NOT_DEPLOYED,
2300
2332
  Hemi: import_constants.NOT_DEPLOYED,
2301
2333
  Lisk: import_constants.NOT_DEPLOYED,
2302
- Plasma: import_constants.NOT_DEPLOYED
2334
+ Plasma: import_constants.NOT_DEPLOYED,
2335
+ Somnia: import_constants.NOT_DEPLOYED
2303
2336
  }
2304
2337
  },
2305
2338
  {
@@ -2319,7 +2352,8 @@ const contractParams = {
2319
2352
  Etherlink: import_constants.NOT_DEPLOYED,
2320
2353
  Hemi: import_constants.NOT_DEPLOYED,
2321
2354
  Lisk: import_constants.NOT_DEPLOYED,
2322
- Plasma: import_constants.NOT_DEPLOYED
2355
+ Plasma: import_constants.NOT_DEPLOYED,
2356
+ Somnia: import_constants.NOT_DEPLOYED
2323
2357
  }
2324
2358
  }
2325
2359
  ]
@@ -2344,7 +2378,8 @@ const contractParams = {
2344
2378
  Etherlink: import_constants.NOT_DEPLOYED,
2345
2379
  Hemi: import_constants.NOT_DEPLOYED,
2346
2380
  Lisk: import_constants.NOT_DEPLOYED,
2347
- Plasma: import_constants.NOT_DEPLOYED
2381
+ Plasma: import_constants.NOT_DEPLOYED,
2382
+ Somnia: import_constants.NOT_DEPLOYED
2348
2383
  },
2349
2384
  lpToken: "steCRV"
2350
2385
  },
@@ -2377,7 +2412,8 @@ const contractParams = {
2377
2412
  Etherlink: import_constants.NOT_DEPLOYED,
2378
2413
  Hemi: import_constants.NOT_DEPLOYED,
2379
2414
  Lisk: import_constants.NOT_DEPLOYED,
2380
- Plasma: import_constants.NOT_DEPLOYED
2415
+ Plasma: import_constants.NOT_DEPLOYED,
2416
+ Somnia: import_constants.NOT_DEPLOYED
2381
2417
  }
2382
2418
  },
2383
2419
  BALANCER_V3_ROUTER: {
@@ -2399,7 +2435,8 @@ const contractParams = {
2399
2435
  Etherlink: import_constants.NOT_DEPLOYED,
2400
2436
  Hemi: import_constants.NOT_DEPLOYED,
2401
2437
  Lisk: import_constants.NOT_DEPLOYED,
2402
- Plasma: import_constants.NOT_DEPLOYED
2438
+ Plasma: import_constants.NOT_DEPLOYED,
2439
+ Somnia: import_constants.NOT_DEPLOYED
2403
2440
  }
2404
2441
  },
2405
2442
  AAVE_V2_LENDING_POOL: {
@@ -572,7 +572,8 @@ const tokenDataByNetwork = {
572
572
  wstETH: "0x76D8de471F54aAA87784119c60Df1bbFc852C415",
573
573
  lskETH: "0x1b10E2270780858923cdBbC9B5423e29fffD1A44"
574
574
  },
575
- Plasma: {}
575
+ Plasma: {},
576
+ Somnia: {}
576
577
  };
577
578
  const tickerInfoTokensByNetwork = {
578
579
  Mainnet: {
@@ -974,7 +975,8 @@ const tickerInfoTokensByNetwork = {
974
975
  Etherlink: {},
975
976
  Hemi: {},
976
977
  Lisk: {},
977
- Plasma: {}
978
+ Plasma: {},
979
+ Somnia: {}
978
980
  };
979
981
  const tokenSymbolByAddress = Object.entries(tokenDataByNetwork).reduce(
980
982
  (acc, [, tokens]) => ({
@@ -61,7 +61,8 @@ const connectors = {
61
61
  Etherlink: [],
62
62
  Hemi: [],
63
63
  Lisk: [],
64
- Plasma: []
64
+ Plasma: [],
65
+ Somnia: []
65
66
  };
66
67
  function getConnectors(networkType) {
67
68
  return connectors[networkType].map((e) => {
@@ -45,7 +45,8 @@ const TESTNET_CHAINS = {
45
45
  Etherlink: 7890,
46
46
  Hemi: 7891,
47
47
  Lisk: 7892,
48
- Plasma: 7893
48
+ Plasma: 7893,
49
+ Somnia: 7894
49
50
  };
50
51
  const CHAINS_BY_ID = import_mappers.TypedObjectUtils.swapKeyValue(TESTNET_CHAINS);
51
52
  const MAINNET_BY_TESTNET_ID = import_mappers.TypedObjectUtils.entries(TESTNET_CHAINS).reduce((acc, [n, testnetId]) => {
@@ -10,6 +10,7 @@ import {
10
10
  lisk,
11
11
  mainnet,
12
12
  megaethTestnet,
13
+ monad,
13
14
  optimism,
14
15
  plasma,
15
16
  sonic,
@@ -32,7 +33,8 @@ const SUPPORTED_NETWORKS = [
32
33
  "Etherlink",
33
34
  "Hemi",
34
35
  "Lisk",
35
- "Plasma"
36
+ "Plasma",
37
+ "Somnia"
36
38
  ];
37
39
  const NetworkType = z.enum(SUPPORTED_NETWORKS);
38
40
  function withPublicNode(chain, subdomain) {
@@ -159,33 +161,7 @@ const chains = {
159
161
  }),
160
162
  // NOTE: Monad chain configs should be updated once the public mainnet is available
161
163
  Monad: defineChain({
162
- id: 143,
163
- name: "Monad",
164
- nativeCurrency: {
165
- name: "Monad",
166
- symbol: "MON",
167
- decimals: 18
168
- },
169
- rpcUrls: {
170
- default: {
171
- http: [
172
- "https://permissionless-staging.gearbox.foundation/api/proxy/rpc/143"
173
- ]
174
- }
175
- },
176
- blockExplorers: {
177
- default: {
178
- name: "Monvision",
179
- url: "https://mainnet-beta.monvision.io"
180
- }
181
- },
182
- blockTime: 400,
183
- contracts: {
184
- multicall3: {
185
- address: "0xcA11bde05977b3631167028862bE2a173976CA11",
186
- blockCreated: 9248132
187
- }
188
- },
164
+ ...monad,
189
165
  network: "Monad",
190
166
  defaultMarketConfigurators: {
191
167
  "0x16956912813ab9a38d95730b52a8cf53e860a7c5": "Tulipa",
@@ -322,6 +298,40 @@ const chains = {
322
298
  address: "0xcA11bde05977b3631167028862bE2a173976CA11"
323
299
  }
324
300
  }
301
+ }),
302
+ Somnia: defineChain({
303
+ id: 5031,
304
+ name: "Somnia",
305
+ nativeCurrency: {
306
+ name: "Somnia",
307
+ symbol: "STT",
308
+ decimals: 18
309
+ },
310
+ rpcUrls: {
311
+ default: {
312
+ http: ["https://api.infra.mainnet.somnia.network"]
313
+ }
314
+ },
315
+ blockExplorers: {
316
+ default: {
317
+ name: "Somnia Explorer",
318
+ url: "https://explorer.somnia.network"
319
+ }
320
+ },
321
+ contracts: {
322
+ multicall3: {
323
+ address: "0x5e44F178E8cF9B2F5409B6f18ce936aB817C5a11",
324
+ blockCreated: 38516341
325
+ }
326
+ },
327
+ blockTime: 200,
328
+ network: "Somnia",
329
+ defaultMarketConfigurators: {},
330
+ isPublic: false,
331
+ wellKnownToken: {
332
+ address: "0x67B302E35Aef5EEE8c32D934F5856869EF428330",
333
+ symbol: "USDT"
334
+ }
325
335
  })
326
336
  };
327
337
  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]) => {
@@ -23,7 +23,7 @@ export interface GearboxChain extends Chain {
23
23
  */
24
24
  firstBlock?: bigint;
25
25
  }
26
- export declare const SUPPORTED_NETWORKS: readonly ["Mainnet", "Arbitrum", "Optimism", "Base", "Sonic", "MegaETH", "Monad", "Berachain", "Avalanche", "BNB", "WorldChain", "Etherlink", "Hemi", "Lisk", "Plasma"];
26
+ export declare const SUPPORTED_NETWORKS: readonly ["Mainnet", "Arbitrum", "Optimism", "Base", "Sonic", "MegaETH", "Monad", "Berachain", "Avalanche", "BNB", "WorldChain", "Etherlink", "Hemi", "Lisk", "Plasma", "Somnia"];
27
27
  export declare const NetworkType: z.ZodEnum<{
28
28
  Mainnet: "Mainnet";
29
29
  Arbitrum: "Arbitrum";
@@ -40,6 +40,7 @@ export declare const NetworkType: z.ZodEnum<{
40
40
  Hemi: "Hemi";
41
41
  Lisk: "Lisk";
42
42
  Plasma: "Plasma";
43
+ Somnia: "Somnia";
43
44
  }>;
44
45
  export type NetworkType = z.infer<typeof NetworkType>;
45
46
  export declare const chains: Record<NetworkType, GearboxChain>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "11.6.0",
3
+ "version": "11.6.2",
4
4
  "description": "Gearbox SDK",
5
5
  "license": "MIT",
6
6
  "main": "./dist/cjs/sdk/index.js",