@gearbox-protocol/sdk 3.1.3-next.2 → 3.2.1-next.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.
@@ -41,7 +41,8 @@ const SUPPORTED_NETWORKS = [
41
41
  "Monad",
42
42
  "Berachain",
43
43
  "Avalanche",
44
- "BNB"
44
+ "BNB",
45
+ "WorldChain"
45
46
  ];
46
47
  const NetworkType = import_zod.z.enum(SUPPORTED_NETWORKS);
47
48
  function withPublicNode(chain, subdomain) {
@@ -209,7 +210,18 @@ const chains = {
209
210
  }
210
211
  },
211
212
  "bsc-rpc"
212
- )
213
+ ),
214
+ WorldChain: (0, import_viem.defineChain)({
215
+ ...import_chains.worldchain,
216
+ network: "WorldChain",
217
+ defaultMarketConfigurators: {},
218
+ isPublic: false,
219
+ wellKnownToken: {
220
+ address: "0x79a02482a880bce3f13e09da970dc34db4cd24d1",
221
+ symbol: "USDC.e"
222
+ }
223
+ // TODO: has no block explorer API
224
+ })
213
225
  };
214
226
  function getChain(chainIdOrNetworkType) {
215
227
  const network = typeof chainIdOrNetworkType === "string" ? chainIdOrNetworkType : getNetworkType(Number(chainIdOrNetworkType));
@@ -98,7 +98,8 @@ const ADDRESS_PROVIDER = {
98
98
  Monad: import_addresses.NOT_DEPLOYED,
99
99
  Berachain: import_addresses.NOT_DEPLOYED,
100
100
  Avalanche: import_addresses.NOT_DEPLOYED,
101
- BNB: import_addresses.NOT_DEPLOYED
101
+ BNB: import_addresses.NOT_DEPLOYED,
102
+ WorldChain: import_addresses.NOT_DEPLOYED
102
103
  };
103
104
  const ADDRESS_PROVIDER_V310 = "0xF7f0a609BfAb9a0A98786951ef10e5FE26cC1E38";
104
105
  // Annotate the CommonJS export names for ESM import in node:
@@ -41,7 +41,8 @@ const TIMELOCK = {
41
41
  Monad: NOT_DEPLOYED,
42
42
  Berachain: NOT_DEPLOYED,
43
43
  Avalanche: NOT_DEPLOYED,
44
- BNB: NOT_DEPLOYED
44
+ BNB: NOT_DEPLOYED,
45
+ WorldChain: NOT_DEPLOYED
45
46
  };
46
47
  const GEARBOX_MULTISIG = {
47
48
  Mainnet: "0xA7D5DDc1b8557914F158076b228AA91eF613f1D5",
@@ -54,7 +55,8 @@ const GEARBOX_MULTISIG = {
54
55
  Monad: NOT_DEPLOYED,
55
56
  Berachain: NOT_DEPLOYED,
56
57
  Avalanche: NOT_DEPLOYED,
57
- BNB: NOT_DEPLOYED
58
+ BNB: NOT_DEPLOYED,
59
+ WorldChain: NOT_DEPLOYED
58
60
  };
59
61
  const GEARBOX_RISK_CURATORS = {
60
62
  Mainnet: [TIMELOCK.Mainnet],
@@ -67,7 +69,8 @@ const GEARBOX_RISK_CURATORS = {
67
69
  Monad: [],
68
70
  Berachain: [],
69
71
  Avalanche: [],
70
- BNB: []
72
+ BNB: [],
73
+ WorldChain: []
71
74
  };
72
75
  const DEPRECIATED_POOLS = {
73
76
  Mainnet: {
@@ -82,7 +85,8 @@ const DEPRECIATED_POOLS = {
82
85
  Monad: {},
83
86
  Berachain: {},
84
87
  Avalanche: {},
85
- BNB: {}
88
+ BNB: {},
89
+ WorldChain: {}
86
90
  };
87
91
  // Annotate the CommonJS export names for ESM import in node:
88
92
  0 && (module.exports = {
@@ -39,7 +39,9 @@ const ADDRESS_PROVIDER_BLOCK = {
39
39
  // arbitrary not deployed yet
40
40
  Avalanche: 31594758n,
41
41
  // arbitrary not deployed yet
42
- BNB: 48553569n
42
+ BNB: 48553569n,
43
+ // arbitrary not deployed yet
44
+ WorldChain: 22372908n
43
45
  // arbitrary not deployed yet
44
46
  };
45
47
  const BLOCK_DURATION_BY_NETWORK = {
@@ -55,7 +57,8 @@ const BLOCK_DURATION_BY_NETWORK = {
55
57
  // on testnet
56
58
  Berachain: 1.9,
57
59
  Avalanche: 1.7,
58
- BNB: 3
60
+ BNB: 3,
61
+ WorldChain: 2
59
62
  };
60
63
  const RAMP_TIME = 30 * 24 * 60 * 60 * 1.2;
61
64
  const RAMP_DURATION_BY_NETWORK = {
@@ -73,7 +76,10 @@ const RAMP_DURATION_BY_NETWORK = {
73
76
  Avalanche: BigInt(
74
77
  Math.floor(RAMP_TIME / BLOCK_DURATION_BY_NETWORK.Avalanche)
75
78
  ),
76
- BNB: BigInt(Math.floor(RAMP_TIME / BLOCK_DURATION_BY_NETWORK.BNB))
79
+ BNB: BigInt(Math.floor(RAMP_TIME / BLOCK_DURATION_BY_NETWORK.BNB)),
80
+ WorldChain: BigInt(
81
+ Math.floor(RAMP_TIME / BLOCK_DURATION_BY_NETWORK.WorldChain)
82
+ )
77
83
  };
78
84
  const WEEK = 7 * 24 * 60 * 60;
79
85
  const BLOCKS_PER_WEEK_BY_NETWORK = {
@@ -87,7 +93,8 @@ const BLOCKS_PER_WEEK_BY_NETWORK = {
87
93
  Monad: BigInt(Math.floor(WEEK / BLOCK_DURATION_BY_NETWORK.Monad)),
88
94
  Berachain: BigInt(Math.floor(WEEK / BLOCK_DURATION_BY_NETWORK.Berachain)),
89
95
  Avalanche: BigInt(Math.floor(WEEK / BLOCK_DURATION_BY_NETWORK.Avalanche)),
90
- BNB: BigInt(Math.floor(WEEK / BLOCK_DURATION_BY_NETWORK.BNB))
96
+ BNB: BigInt(Math.floor(WEEK / BLOCK_DURATION_BY_NETWORK.BNB)),
97
+ WorldChain: BigInt(Math.floor(WEEK / BLOCK_DURATION_BY_NETWORK.WorldChain))
91
98
  };
92
99
  // Annotate the CommonJS export names for ESM import in node:
93
100
  0 && (module.exports = {
@@ -299,7 +299,8 @@ class RouterV300Contract extends import_AbstractRouterContract.AbstractRouterCon
299
299
  Monad: "0x0",
300
300
  Berachain: "0x0",
301
301
  Avalanche: "0x0",
302
- BNB: "0x0"
302
+ BNB: "0x0",
303
+ WorldChain: "0x0"
303
304
  };
304
305
  const pendleRouter = PENDLE_ROUTER_BY_NETWORK[this.sdk.provider.networkType];
305
306
  const pendleAdapter = cm.creditManager.adapters.mustGet(pendleRouter);
@@ -831,7 +831,8 @@ const contractsByNetwork = {
831
831
  MegaETH: {},
832
832
  Monad: {},
833
833
  Berachain: {},
834
- BNB: {}
834
+ BNB: {},
835
+ WorldChain: {}
835
836
  };
836
837
  const UNISWAP_V3_QUOTER = "0xb27308f9F90D607463bb33eA1BeBb41C27CE5AB6";
837
838
  const CAMELOT_V3_QUOTER = "0x0Fc73040b26E9bC8514fA028D998E73A254Fa76E";
@@ -939,7 +940,8 @@ const contractParams = {
939
940
  Monad: import_constants.NOT_DEPLOYED,
940
941
  Berachain: import_constants.NOT_DEPLOYED,
941
942
  Avalanche: import_constants.NOT_DEPLOYED,
942
- BNB: import_constants.NOT_DEPLOYED
943
+ BNB: import_constants.NOT_DEPLOYED,
944
+ WorldChain: import_constants.NOT_DEPLOYED
943
945
  },
944
946
  tokens: ["WETH", "STETH"],
945
947
  lpToken: "steCRV"
@@ -959,7 +961,8 @@ const contractParams = {
959
961
  Monad: import_constants.NOT_DEPLOYED,
960
962
  Berachain: import_constants.NOT_DEPLOYED,
961
963
  Avalanche: import_constants.NOT_DEPLOYED,
962
- BNB: import_constants.NOT_DEPLOYED
964
+ BNB: import_constants.NOT_DEPLOYED,
965
+ WorldChain: import_constants.NOT_DEPLOYED
963
966
  },
964
967
  tokens: ["WETH", "wstETH"],
965
968
  lpToken: "wstETHCRV"
@@ -979,7 +982,8 @@ const contractParams = {
979
982
  Monad: import_constants.NOT_DEPLOYED,
980
983
  Berachain: import_constants.NOT_DEPLOYED,
981
984
  Avalanche: import_constants.NOT_DEPLOYED,
982
- BNB: import_constants.NOT_DEPLOYED
985
+ BNB: import_constants.NOT_DEPLOYED,
986
+ WorldChain: import_constants.NOT_DEPLOYED
983
987
  },
984
988
  tokens: ["GEAR", "WETH"],
985
989
  lpToken: "GEAR"
@@ -1511,7 +1515,8 @@ const contractParams = {
1511
1515
  Monad: import_constants.NOT_DEPLOYED,
1512
1516
  Berachain: import_constants.NOT_DEPLOYED,
1513
1517
  Avalanche: import_constants.NOT_DEPLOYED,
1514
- BNB: import_constants.NOT_DEPLOYED
1518
+ BNB: import_constants.NOT_DEPLOYED,
1519
+ WorldChain: import_constants.NOT_DEPLOYED
1515
1520
  }
1516
1521
  }
1517
1522
  ]
@@ -1535,7 +1540,8 @@ const contractParams = {
1535
1540
  Monad: import_constants.NOT_DEPLOYED,
1536
1541
  Berachain: import_constants.NOT_DEPLOYED,
1537
1542
  Avalanche: import_constants.NOT_DEPLOYED,
1538
- BNB: import_constants.NOT_DEPLOYED
1543
+ BNB: import_constants.NOT_DEPLOYED,
1544
+ WorldChain: import_constants.NOT_DEPLOYED
1539
1545
  }
1540
1546
  }
1541
1547
  ]
@@ -1559,7 +1565,8 @@ const contractParams = {
1559
1565
  Monad: import_constants.NOT_DEPLOYED,
1560
1566
  Berachain: import_constants.NOT_DEPLOYED,
1561
1567
  Avalanche: import_constants.NOT_DEPLOYED,
1562
- BNB: import_constants.NOT_DEPLOYED
1568
+ BNB: import_constants.NOT_DEPLOYED,
1569
+ WorldChain: import_constants.NOT_DEPLOYED
1563
1570
  }
1564
1571
  }
1565
1572
  ]
@@ -1583,7 +1590,8 @@ const contractParams = {
1583
1590
  Monad: import_constants.NOT_DEPLOYED,
1584
1591
  Berachain: import_constants.NOT_DEPLOYED,
1585
1592
  Avalanche: import_constants.NOT_DEPLOYED,
1586
- BNB: import_constants.NOT_DEPLOYED
1593
+ BNB: import_constants.NOT_DEPLOYED,
1594
+ WorldChain: import_constants.NOT_DEPLOYED
1587
1595
  }
1588
1596
  }
1589
1597
  ]
@@ -1606,7 +1614,8 @@ const contractParams = {
1606
1614
  Monad: import_constants.NOT_DEPLOYED,
1607
1615
  Berachain: import_constants.NOT_DEPLOYED,
1608
1616
  Avalanche: import_constants.NOT_DEPLOYED,
1609
- BNB: import_constants.NOT_DEPLOYED
1617
+ BNB: import_constants.NOT_DEPLOYED,
1618
+ WorldChain: import_constants.NOT_DEPLOYED
1610
1619
  }
1611
1620
  }
1612
1621
  ]
@@ -1629,7 +1638,8 @@ const contractParams = {
1629
1638
  Monad: import_constants.NOT_DEPLOYED,
1630
1639
  Berachain: import_constants.NOT_DEPLOYED,
1631
1640
  Avalanche: import_constants.NOT_DEPLOYED,
1632
- BNB: import_constants.NOT_DEPLOYED
1641
+ BNB: import_constants.NOT_DEPLOYED,
1642
+ WorldChain: import_constants.NOT_DEPLOYED
1633
1643
  }
1634
1644
  }
1635
1645
  ]
@@ -1659,7 +1669,8 @@ const contractParams = {
1659
1669
  Monad: import_constants.NOT_DEPLOYED,
1660
1670
  Berachain: import_constants.NOT_DEPLOYED,
1661
1671
  Avalanche: import_constants.NOT_DEPLOYED,
1662
- BNB: import_constants.NOT_DEPLOYED
1672
+ BNB: import_constants.NOT_DEPLOYED,
1673
+ WorldChain: import_constants.NOT_DEPLOYED
1663
1674
  }
1664
1675
  }
1665
1676
  ]
@@ -1682,7 +1693,8 @@ const contractParams = {
1682
1693
  Monad: import_constants.NOT_DEPLOYED,
1683
1694
  Berachain: import_constants.NOT_DEPLOYED,
1684
1695
  Avalanche: import_constants.NOT_DEPLOYED,
1685
- BNB: import_constants.NOT_DEPLOYED
1696
+ BNB: import_constants.NOT_DEPLOYED,
1697
+ WorldChain: import_constants.NOT_DEPLOYED
1686
1698
  }
1687
1699
  }
1688
1700
  ]
@@ -1705,7 +1717,8 @@ const contractParams = {
1705
1717
  Monad: import_constants.NOT_DEPLOYED,
1706
1718
  Berachain: import_constants.NOT_DEPLOYED,
1707
1719
  Avalanche: import_constants.NOT_DEPLOYED,
1708
- BNB: import_constants.NOT_DEPLOYED
1720
+ BNB: import_constants.NOT_DEPLOYED,
1721
+ WorldChain: import_constants.NOT_DEPLOYED
1709
1722
  }
1710
1723
  }
1711
1724
  ]
@@ -1728,7 +1741,8 @@ const contractParams = {
1728
1741
  Monad: import_constants.NOT_DEPLOYED,
1729
1742
  Berachain: import_constants.NOT_DEPLOYED,
1730
1743
  Avalanche: import_constants.NOT_DEPLOYED,
1731
- BNB: import_constants.NOT_DEPLOYED
1744
+ BNB: import_constants.NOT_DEPLOYED,
1745
+ WorldChain: import_constants.NOT_DEPLOYED
1732
1746
  }
1733
1747
  }
1734
1748
  ]
@@ -1751,7 +1765,8 @@ const contractParams = {
1751
1765
  Monad: import_constants.NOT_DEPLOYED,
1752
1766
  Berachain: import_constants.NOT_DEPLOYED,
1753
1767
  Avalanche: import_constants.NOT_DEPLOYED,
1754
- BNB: import_constants.NOT_DEPLOYED
1768
+ BNB: import_constants.NOT_DEPLOYED,
1769
+ WorldChain: import_constants.NOT_DEPLOYED
1755
1770
  }
1756
1771
  }
1757
1772
  ]
@@ -1774,7 +1789,8 @@ const contractParams = {
1774
1789
  Monad: import_constants.NOT_DEPLOYED,
1775
1790
  Berachain: import_constants.NOT_DEPLOYED,
1776
1791
  Avalanche: import_constants.NOT_DEPLOYED,
1777
- BNB: import_constants.NOT_DEPLOYED
1792
+ BNB: import_constants.NOT_DEPLOYED,
1793
+ WorldChain: import_constants.NOT_DEPLOYED
1778
1794
  }
1779
1795
  }
1780
1796
  ]
@@ -1797,7 +1813,8 @@ const contractParams = {
1797
1813
  Monad: import_constants.NOT_DEPLOYED,
1798
1814
  Berachain: import_constants.NOT_DEPLOYED,
1799
1815
  Avalanche: import_constants.NOT_DEPLOYED,
1800
- BNB: import_constants.NOT_DEPLOYED
1816
+ BNB: import_constants.NOT_DEPLOYED,
1817
+ WorldChain: import_constants.NOT_DEPLOYED
1801
1818
  }
1802
1819
  }
1803
1820
  ]
@@ -1820,7 +1837,8 @@ const contractParams = {
1820
1837
  Monad: import_constants.NOT_DEPLOYED,
1821
1838
  Berachain: import_constants.NOT_DEPLOYED,
1822
1839
  Avalanche: import_constants.NOT_DEPLOYED,
1823
- BNB: import_constants.NOT_DEPLOYED
1840
+ BNB: import_constants.NOT_DEPLOYED,
1841
+ WorldChain: import_constants.NOT_DEPLOYED
1824
1842
  }
1825
1843
  }
1826
1844
  ]
@@ -1860,7 +1878,8 @@ const contractParams = {
1860
1878
  Monad: import_constants.NOT_DEPLOYED,
1861
1879
  Berachain: import_constants.NOT_DEPLOYED,
1862
1880
  Avalanche: import_constants.NOT_DEPLOYED,
1863
- BNB: import_constants.NOT_DEPLOYED
1881
+ BNB: import_constants.NOT_DEPLOYED,
1882
+ WorldChain: import_constants.NOT_DEPLOYED
1864
1883
  }
1865
1884
  }
1866
1885
  ]
@@ -1883,7 +1902,8 @@ const contractParams = {
1883
1902
  Monad: import_constants.NOT_DEPLOYED,
1884
1903
  Berachain: import_constants.NOT_DEPLOYED,
1885
1904
  Avalanche: import_constants.NOT_DEPLOYED,
1886
- BNB: import_constants.NOT_DEPLOYED
1905
+ BNB: import_constants.NOT_DEPLOYED,
1906
+ WorldChain: import_constants.NOT_DEPLOYED
1887
1907
  }
1888
1908
  }
1889
1909
  ]
@@ -1906,7 +1926,8 @@ const contractParams = {
1906
1926
  Monad: import_constants.NOT_DEPLOYED,
1907
1927
  Berachain: import_constants.NOT_DEPLOYED,
1908
1928
  Avalanche: import_constants.NOT_DEPLOYED,
1909
- BNB: import_constants.NOT_DEPLOYED
1929
+ BNB: import_constants.NOT_DEPLOYED,
1930
+ WorldChain: import_constants.NOT_DEPLOYED
1910
1931
  }
1911
1932
  },
1912
1933
  {
@@ -1921,7 +1942,8 @@ const contractParams = {
1921
1942
  Monad: import_constants.NOT_DEPLOYED,
1922
1943
  Berachain: import_constants.NOT_DEPLOYED,
1923
1944
  Avalanche: import_constants.NOT_DEPLOYED,
1924
- BNB: import_constants.NOT_DEPLOYED
1945
+ BNB: import_constants.NOT_DEPLOYED,
1946
+ WorldChain: import_constants.NOT_DEPLOYED
1925
1947
  }
1926
1948
  }
1927
1949
  ]
@@ -1944,7 +1966,8 @@ const contractParams = {
1944
1966
  Monad: import_constants.NOT_DEPLOYED,
1945
1967
  Berachain: import_constants.NOT_DEPLOYED,
1946
1968
  Avalanche: import_constants.NOT_DEPLOYED,
1947
- BNB: import_constants.NOT_DEPLOYED
1969
+ BNB: import_constants.NOT_DEPLOYED,
1970
+ WorldChain: import_constants.NOT_DEPLOYED
1948
1971
  }
1949
1972
  },
1950
1973
  {
@@ -1959,7 +1982,8 @@ const contractParams = {
1959
1982
  Monad: import_constants.NOT_DEPLOYED,
1960
1983
  Berachain: import_constants.NOT_DEPLOYED,
1961
1984
  Avalanche: import_constants.NOT_DEPLOYED,
1962
- BNB: import_constants.NOT_DEPLOYED
1985
+ BNB: import_constants.NOT_DEPLOYED,
1986
+ WorldChain: import_constants.NOT_DEPLOYED
1963
1987
  }
1964
1988
  }
1965
1989
  ]
@@ -1982,7 +2006,8 @@ const contractParams = {
1982
2006
  Monad: import_constants.NOT_DEPLOYED,
1983
2007
  Berachain: import_constants.NOT_DEPLOYED,
1984
2008
  Avalanche: import_constants.NOT_DEPLOYED,
1985
- BNB: import_constants.NOT_DEPLOYED
2009
+ BNB: import_constants.NOT_DEPLOYED,
2010
+ WorldChain: import_constants.NOT_DEPLOYED
1986
2011
  }
1987
2012
  },
1988
2013
  {
@@ -1997,7 +2022,8 @@ const contractParams = {
1997
2022
  Monad: import_constants.NOT_DEPLOYED,
1998
2023
  Berachain: import_constants.NOT_DEPLOYED,
1999
2024
  Avalanche: import_constants.NOT_DEPLOYED,
2000
- BNB: import_constants.NOT_DEPLOYED
2025
+ BNB: import_constants.NOT_DEPLOYED,
2026
+ WorldChain: import_constants.NOT_DEPLOYED
2001
2027
  }
2002
2028
  }
2003
2029
  ]
@@ -2020,7 +2046,8 @@ const contractParams = {
2020
2046
  Monad: import_constants.NOT_DEPLOYED,
2021
2047
  Berachain: import_constants.NOT_DEPLOYED,
2022
2048
  Avalanche: import_constants.NOT_DEPLOYED,
2023
- BNB: import_constants.NOT_DEPLOYED
2049
+ BNB: import_constants.NOT_DEPLOYED,
2050
+ WorldChain: import_constants.NOT_DEPLOYED
2024
2051
  }
2025
2052
  },
2026
2053
  {
@@ -2035,7 +2062,8 @@ const contractParams = {
2035
2062
  Monad: import_constants.NOT_DEPLOYED,
2036
2063
  Berachain: import_constants.NOT_DEPLOYED,
2037
2064
  Avalanche: import_constants.NOT_DEPLOYED,
2038
- BNB: import_constants.NOT_DEPLOYED
2065
+ BNB: import_constants.NOT_DEPLOYED,
2066
+ WorldChain: import_constants.NOT_DEPLOYED
2039
2067
  }
2040
2068
  }
2041
2069
  ]
@@ -2058,7 +2086,8 @@ const contractParams = {
2058
2086
  Monad: import_constants.NOT_DEPLOYED,
2059
2087
  Berachain: import_constants.NOT_DEPLOYED,
2060
2088
  Avalanche: import_constants.NOT_DEPLOYED,
2061
- BNB: import_constants.NOT_DEPLOYED
2089
+ BNB: import_constants.NOT_DEPLOYED,
2090
+ WorldChain: import_constants.NOT_DEPLOYED
2062
2091
  }
2063
2092
  },
2064
2093
  {
@@ -2073,7 +2102,8 @@ const contractParams = {
2073
2102
  Monad: import_constants.NOT_DEPLOYED,
2074
2103
  Berachain: import_constants.NOT_DEPLOYED,
2075
2104
  Avalanche: import_constants.NOT_DEPLOYED,
2076
- BNB: import_constants.NOT_DEPLOYED
2105
+ BNB: import_constants.NOT_DEPLOYED,
2106
+ WorldChain: import_constants.NOT_DEPLOYED
2077
2107
  }
2078
2108
  }
2079
2109
  ]
@@ -2096,7 +2126,8 @@ const contractParams = {
2096
2126
  Monad: import_constants.NOT_DEPLOYED,
2097
2127
  Berachain: import_constants.NOT_DEPLOYED,
2098
2128
  Avalanche: import_constants.NOT_DEPLOYED,
2099
- BNB: import_constants.NOT_DEPLOYED
2129
+ BNB: import_constants.NOT_DEPLOYED,
2130
+ WorldChain: import_constants.NOT_DEPLOYED
2100
2131
  }
2101
2132
  },
2102
2133
  {
@@ -2111,7 +2142,8 @@ const contractParams = {
2111
2142
  Monad: import_constants.NOT_DEPLOYED,
2112
2143
  Berachain: import_constants.NOT_DEPLOYED,
2113
2144
  Avalanche: import_constants.NOT_DEPLOYED,
2114
- BNB: import_constants.NOT_DEPLOYED
2145
+ BNB: import_constants.NOT_DEPLOYED,
2146
+ WorldChain: import_constants.NOT_DEPLOYED
2115
2147
  }
2116
2148
  }
2117
2149
  ]
@@ -2134,7 +2166,8 @@ const contractParams = {
2134
2166
  Monad: import_constants.NOT_DEPLOYED,
2135
2167
  Berachain: import_constants.NOT_DEPLOYED,
2136
2168
  Avalanche: import_constants.NOT_DEPLOYED,
2137
- BNB: import_constants.NOT_DEPLOYED
2169
+ BNB: import_constants.NOT_DEPLOYED,
2170
+ WorldChain: import_constants.NOT_DEPLOYED
2138
2171
  }
2139
2172
  },
2140
2173
  {
@@ -2149,7 +2182,8 @@ const contractParams = {
2149
2182
  Monad: import_constants.NOT_DEPLOYED,
2150
2183
  Berachain: import_constants.NOT_DEPLOYED,
2151
2184
  Avalanche: import_constants.NOT_DEPLOYED,
2152
- BNB: import_constants.NOT_DEPLOYED
2185
+ BNB: import_constants.NOT_DEPLOYED,
2186
+ WorldChain: import_constants.NOT_DEPLOYED
2153
2187
  }
2154
2188
  }
2155
2189
  ]
@@ -2169,7 +2203,8 @@ const contractParams = {
2169
2203
  Monad: import_constants.NOT_DEPLOYED,
2170
2204
  Berachain: import_constants.NOT_DEPLOYED,
2171
2205
  Avalanche: import_constants.NOT_DEPLOYED,
2172
- BNB: import_constants.NOT_DEPLOYED
2206
+ BNB: import_constants.NOT_DEPLOYED,
2207
+ WorldChain: import_constants.NOT_DEPLOYED
2173
2208
  },
2174
2209
  lpToken: "steCRV"
2175
2210
  },
@@ -2197,7 +2232,8 @@ const contractParams = {
2197
2232
  Monad: import_constants.NOT_DEPLOYED,
2198
2233
  Berachain: import_constants.NOT_DEPLOYED,
2199
2234
  Avalanche: import_constants.NOT_DEPLOYED,
2200
- BNB: import_constants.NOT_DEPLOYED
2235
+ BNB: import_constants.NOT_DEPLOYED,
2236
+ WorldChain: import_constants.NOT_DEPLOYED
2201
2237
  }
2202
2238
  },
2203
2239
  BALANCER_V3_ROUTER: {
@@ -2214,7 +2250,8 @@ const contractParams = {
2214
2250
  Monad: import_constants.NOT_DEPLOYED,
2215
2251
  Berachain: import_constants.NOT_DEPLOYED,
2216
2252
  Avalanche: import_constants.NOT_DEPLOYED,
2217
- BNB: import_constants.NOT_DEPLOYED
2253
+ BNB: import_constants.NOT_DEPLOYED,
2254
+ WorldChain: import_constants.NOT_DEPLOYED
2218
2255
  }
2219
2256
  },
2220
2257
  AAVE_V2_LENDING_POOL: {
@@ -32,7 +32,8 @@ const nonQuoted = {
32
32
  Monad: [],
33
33
  Berachain: [],
34
34
  Avalanche: [],
35
- BNB: []
35
+ BNB: [],
36
+ WorldChain: []
36
37
  };
37
38
  // Annotate the CommonJS export names for ESM import in node:
38
39
  0 && (module.exports = {
@@ -1610,7 +1610,8 @@ const tokenDataByNetwork = {
1610
1610
  Monad: {},
1611
1611
  Berachain: {},
1612
1612
  Avalanche: {},
1613
- BNB: {}
1613
+ BNB: {},
1614
+ WorldChain: {}
1614
1615
  };
1615
1616
  const tickerInfoTokensByNetwork = {
1616
1617
  Mainnet: {
@@ -2007,7 +2008,8 @@ const tickerInfoTokensByNetwork = {
2007
2008
  Monad: {},
2008
2009
  Berachain: {},
2009
2010
  Avalanche: {},
2010
- BNB: {}
2011
+ BNB: {},
2012
+ WorldChain: {}
2011
2013
  };
2012
2014
  const tickerTokensByNetwork = Object.fromEntries(
2013
2015
  Object.entries(tickerInfoTokensByNetwork).map(([network, data]) => {
@@ -55,7 +55,8 @@ const connectors = {
55
55
  Monad: [],
56
56
  Berachain: [],
57
57
  Avalanche: [],
58
- BNB: []
58
+ BNB: [],
59
+ WorldChain: []
59
60
  };
60
61
  function getConnectors(networkType) {
61
62
  return connectors[networkType].map((e) => {
@@ -40,7 +40,8 @@ const TESTNET_CHAINS = {
40
40
  Monad: 7884,
41
41
  Berachain: 7885,
42
42
  Avalanche: 7886,
43
- BNB: 7887
43
+ BNB: 7887,
44
+ WorldChain: 7889
44
45
  };
45
46
  const CHAINS_BY_ID = import_mappers.TypedObjectUtils.swapKeyValue(TESTNET_CHAINS);
46
47
  const MAINNET_BY_TESTNET_ID = import_mappers.TypedObjectUtils.entries(TESTNET_CHAINS).reduce((acc, [n, testnetId]) => {
@@ -9,7 +9,8 @@ import {
9
9
  megaethTestnet,
10
10
  monadTestnet,
11
11
  optimism,
12
- sonic
12
+ sonic,
13
+ worldchain
13
14
  } from "viem/chains";
14
15
  import { z } from "zod";
15
16
  import { TypedObjectUtils } from "../utils/index.js";
@@ -23,7 +24,8 @@ const SUPPORTED_NETWORKS = [
23
24
  "Monad",
24
25
  "Berachain",
25
26
  "Avalanche",
26
- "BNB"
27
+ "BNB",
28
+ "WorldChain"
27
29
  ];
28
30
  const NetworkType = z.enum(SUPPORTED_NETWORKS);
29
31
  function withPublicNode(chain, subdomain) {
@@ -191,7 +193,18 @@ const chains = {
191
193
  }
192
194
  },
193
195
  "bsc-rpc"
194
- )
196
+ ),
197
+ WorldChain: defineChain({
198
+ ...worldchain,
199
+ network: "WorldChain",
200
+ defaultMarketConfigurators: {},
201
+ isPublic: false,
202
+ wellKnownToken: {
203
+ address: "0x79a02482a880bce3f13e09da970dc34db4cd24d1",
204
+ symbol: "USDC.e"
205
+ }
206
+ // TODO: has no block explorer API
207
+ })
195
208
  };
196
209
  function getChain(chainIdOrNetworkType) {
197
210
  const network = typeof chainIdOrNetworkType === "string" ? chainIdOrNetworkType : getNetworkType(Number(chainIdOrNetworkType));
@@ -42,7 +42,8 @@ const ADDRESS_PROVIDER = {
42
42
  Monad: NOT_DEPLOYED,
43
43
  Berachain: NOT_DEPLOYED,
44
44
  Avalanche: NOT_DEPLOYED,
45
- BNB: NOT_DEPLOYED
45
+ BNB: NOT_DEPLOYED,
46
+ WorldChain: NOT_DEPLOYED
46
47
  };
47
48
  const ADDRESS_PROVIDER_V310 = "0xF7f0a609BfAb9a0A98786951ef10e5FE26cC1E38";
48
49
  export {
@@ -12,7 +12,8 @@ const TIMELOCK = {
12
12
  Monad: NOT_DEPLOYED,
13
13
  Berachain: NOT_DEPLOYED,
14
14
  Avalanche: NOT_DEPLOYED,
15
- BNB: NOT_DEPLOYED
15
+ BNB: NOT_DEPLOYED,
16
+ WorldChain: NOT_DEPLOYED
16
17
  };
17
18
  const GEARBOX_MULTISIG = {
18
19
  Mainnet: "0xA7D5DDc1b8557914F158076b228AA91eF613f1D5",
@@ -25,7 +26,8 @@ const GEARBOX_MULTISIG = {
25
26
  Monad: NOT_DEPLOYED,
26
27
  Berachain: NOT_DEPLOYED,
27
28
  Avalanche: NOT_DEPLOYED,
28
- BNB: NOT_DEPLOYED
29
+ BNB: NOT_DEPLOYED,
30
+ WorldChain: NOT_DEPLOYED
29
31
  };
30
32
  const GEARBOX_RISK_CURATORS = {
31
33
  Mainnet: [TIMELOCK.Mainnet],
@@ -38,7 +40,8 @@ const GEARBOX_RISK_CURATORS = {
38
40
  Monad: [],
39
41
  Berachain: [],
40
42
  Avalanche: [],
41
- BNB: []
43
+ BNB: [],
44
+ WorldChain: []
42
45
  };
43
46
  const DEPRECIATED_POOLS = {
44
47
  Mainnet: {
@@ -53,7 +56,8 @@ const DEPRECIATED_POOLS = {
53
56
  Monad: {},
54
57
  Berachain: {},
55
58
  Avalanche: {},
56
- BNB: {}
59
+ BNB: {},
60
+ WorldChain: {}
57
61
  };
58
62
  export {
59
63
  ADDRESS_0X0,
@@ -14,7 +14,9 @@ const ADDRESS_PROVIDER_BLOCK = {
14
14
  // arbitrary not deployed yet
15
15
  Avalanche: 31594758n,
16
16
  // arbitrary not deployed yet
17
- BNB: 48553569n
17
+ BNB: 48553569n,
18
+ // arbitrary not deployed yet
19
+ WorldChain: 22372908n
18
20
  // arbitrary not deployed yet
19
21
  };
20
22
  const BLOCK_DURATION_BY_NETWORK = {
@@ -30,7 +32,8 @@ const BLOCK_DURATION_BY_NETWORK = {
30
32
  // on testnet
31
33
  Berachain: 1.9,
32
34
  Avalanche: 1.7,
33
- BNB: 3
35
+ BNB: 3,
36
+ WorldChain: 2
34
37
  };
35
38
  const RAMP_TIME = 30 * 24 * 60 * 60 * 1.2;
36
39
  const RAMP_DURATION_BY_NETWORK = {
@@ -48,7 +51,10 @@ const RAMP_DURATION_BY_NETWORK = {
48
51
  Avalanche: BigInt(
49
52
  Math.floor(RAMP_TIME / BLOCK_DURATION_BY_NETWORK.Avalanche)
50
53
  ),
51
- BNB: BigInt(Math.floor(RAMP_TIME / BLOCK_DURATION_BY_NETWORK.BNB))
54
+ BNB: BigInt(Math.floor(RAMP_TIME / BLOCK_DURATION_BY_NETWORK.BNB)),
55
+ WorldChain: BigInt(
56
+ Math.floor(RAMP_TIME / BLOCK_DURATION_BY_NETWORK.WorldChain)
57
+ )
52
58
  };
53
59
  const WEEK = 7 * 24 * 60 * 60;
54
60
  const BLOCKS_PER_WEEK_BY_NETWORK = {
@@ -62,7 +68,8 @@ const BLOCKS_PER_WEEK_BY_NETWORK = {
62
68
  Monad: BigInt(Math.floor(WEEK / BLOCK_DURATION_BY_NETWORK.Monad)),
63
69
  Berachain: BigInt(Math.floor(WEEK / BLOCK_DURATION_BY_NETWORK.Berachain)),
64
70
  Avalanche: BigInt(Math.floor(WEEK / BLOCK_DURATION_BY_NETWORK.Avalanche)),
65
- BNB: BigInt(Math.floor(WEEK / BLOCK_DURATION_BY_NETWORK.BNB))
71
+ BNB: BigInt(Math.floor(WEEK / BLOCK_DURATION_BY_NETWORK.BNB)),
72
+ WorldChain: BigInt(Math.floor(WEEK / BLOCK_DURATION_BY_NETWORK.WorldChain))
66
73
  };
67
74
  export {
68
75
  ADDRESS_PROVIDER_BLOCK,
@@ -276,7 +276,8 @@ class RouterV300Contract extends AbstractRouterContract {
276
276
  Monad: "0x0",
277
277
  Berachain: "0x0",
278
278
  Avalanche: "0x0",
279
- BNB: "0x0"
279
+ BNB: "0x0",
280
+ WorldChain: "0x0"
280
281
  };
281
282
  const pendleRouter = PENDLE_ROUTER_BY_NETWORK[this.sdk.provider.networkType];
282
283
  const pendleAdapter = cm.creditManager.adapters.mustGet(pendleRouter);
@@ -794,7 +794,8 @@ const contractsByNetwork = {
794
794
  MegaETH: {},
795
795
  Monad: {},
796
796
  Berachain: {},
797
- BNB: {}
797
+ BNB: {},
798
+ WorldChain: {}
798
799
  };
799
800
  const UNISWAP_V3_QUOTER = "0xb27308f9F90D607463bb33eA1BeBb41C27CE5AB6";
800
801
  const CAMELOT_V3_QUOTER = "0x0Fc73040b26E9bC8514fA028D998E73A254Fa76E";
@@ -902,7 +903,8 @@ const contractParams = {
902
903
  Monad: NOT_DEPLOYED,
903
904
  Berachain: NOT_DEPLOYED,
904
905
  Avalanche: NOT_DEPLOYED,
905
- BNB: NOT_DEPLOYED
906
+ BNB: NOT_DEPLOYED,
907
+ WorldChain: NOT_DEPLOYED
906
908
  },
907
909
  tokens: ["WETH", "STETH"],
908
910
  lpToken: "steCRV"
@@ -922,7 +924,8 @@ const contractParams = {
922
924
  Monad: NOT_DEPLOYED,
923
925
  Berachain: NOT_DEPLOYED,
924
926
  Avalanche: NOT_DEPLOYED,
925
- BNB: NOT_DEPLOYED
927
+ BNB: NOT_DEPLOYED,
928
+ WorldChain: NOT_DEPLOYED
926
929
  },
927
930
  tokens: ["WETH", "wstETH"],
928
931
  lpToken: "wstETHCRV"
@@ -942,7 +945,8 @@ const contractParams = {
942
945
  Monad: NOT_DEPLOYED,
943
946
  Berachain: NOT_DEPLOYED,
944
947
  Avalanche: NOT_DEPLOYED,
945
- BNB: NOT_DEPLOYED
948
+ BNB: NOT_DEPLOYED,
949
+ WorldChain: NOT_DEPLOYED
946
950
  },
947
951
  tokens: ["GEAR", "WETH"],
948
952
  lpToken: "GEAR"
@@ -1474,7 +1478,8 @@ const contractParams = {
1474
1478
  Monad: NOT_DEPLOYED,
1475
1479
  Berachain: NOT_DEPLOYED,
1476
1480
  Avalanche: NOT_DEPLOYED,
1477
- BNB: NOT_DEPLOYED
1481
+ BNB: NOT_DEPLOYED,
1482
+ WorldChain: NOT_DEPLOYED
1478
1483
  }
1479
1484
  }
1480
1485
  ]
@@ -1498,7 +1503,8 @@ const contractParams = {
1498
1503
  Monad: NOT_DEPLOYED,
1499
1504
  Berachain: NOT_DEPLOYED,
1500
1505
  Avalanche: NOT_DEPLOYED,
1501
- BNB: NOT_DEPLOYED
1506
+ BNB: NOT_DEPLOYED,
1507
+ WorldChain: NOT_DEPLOYED
1502
1508
  }
1503
1509
  }
1504
1510
  ]
@@ -1522,7 +1528,8 @@ const contractParams = {
1522
1528
  Monad: NOT_DEPLOYED,
1523
1529
  Berachain: NOT_DEPLOYED,
1524
1530
  Avalanche: NOT_DEPLOYED,
1525
- BNB: NOT_DEPLOYED
1531
+ BNB: NOT_DEPLOYED,
1532
+ WorldChain: NOT_DEPLOYED
1526
1533
  }
1527
1534
  }
1528
1535
  ]
@@ -1546,7 +1553,8 @@ const contractParams = {
1546
1553
  Monad: NOT_DEPLOYED,
1547
1554
  Berachain: NOT_DEPLOYED,
1548
1555
  Avalanche: NOT_DEPLOYED,
1549
- BNB: NOT_DEPLOYED
1556
+ BNB: NOT_DEPLOYED,
1557
+ WorldChain: NOT_DEPLOYED
1550
1558
  }
1551
1559
  }
1552
1560
  ]
@@ -1569,7 +1577,8 @@ const contractParams = {
1569
1577
  Monad: NOT_DEPLOYED,
1570
1578
  Berachain: NOT_DEPLOYED,
1571
1579
  Avalanche: NOT_DEPLOYED,
1572
- BNB: NOT_DEPLOYED
1580
+ BNB: NOT_DEPLOYED,
1581
+ WorldChain: NOT_DEPLOYED
1573
1582
  }
1574
1583
  }
1575
1584
  ]
@@ -1592,7 +1601,8 @@ const contractParams = {
1592
1601
  Monad: NOT_DEPLOYED,
1593
1602
  Berachain: NOT_DEPLOYED,
1594
1603
  Avalanche: NOT_DEPLOYED,
1595
- BNB: NOT_DEPLOYED
1604
+ BNB: NOT_DEPLOYED,
1605
+ WorldChain: NOT_DEPLOYED
1596
1606
  }
1597
1607
  }
1598
1608
  ]
@@ -1622,7 +1632,8 @@ const contractParams = {
1622
1632
  Monad: NOT_DEPLOYED,
1623
1633
  Berachain: NOT_DEPLOYED,
1624
1634
  Avalanche: NOT_DEPLOYED,
1625
- BNB: NOT_DEPLOYED
1635
+ BNB: NOT_DEPLOYED,
1636
+ WorldChain: NOT_DEPLOYED
1626
1637
  }
1627
1638
  }
1628
1639
  ]
@@ -1645,7 +1656,8 @@ const contractParams = {
1645
1656
  Monad: NOT_DEPLOYED,
1646
1657
  Berachain: NOT_DEPLOYED,
1647
1658
  Avalanche: NOT_DEPLOYED,
1648
- BNB: NOT_DEPLOYED
1659
+ BNB: NOT_DEPLOYED,
1660
+ WorldChain: NOT_DEPLOYED
1649
1661
  }
1650
1662
  }
1651
1663
  ]
@@ -1668,7 +1680,8 @@ const contractParams = {
1668
1680
  Monad: NOT_DEPLOYED,
1669
1681
  Berachain: NOT_DEPLOYED,
1670
1682
  Avalanche: NOT_DEPLOYED,
1671
- BNB: NOT_DEPLOYED
1683
+ BNB: NOT_DEPLOYED,
1684
+ WorldChain: NOT_DEPLOYED
1672
1685
  }
1673
1686
  }
1674
1687
  ]
@@ -1691,7 +1704,8 @@ const contractParams = {
1691
1704
  Monad: NOT_DEPLOYED,
1692
1705
  Berachain: NOT_DEPLOYED,
1693
1706
  Avalanche: NOT_DEPLOYED,
1694
- BNB: NOT_DEPLOYED
1707
+ BNB: NOT_DEPLOYED,
1708
+ WorldChain: NOT_DEPLOYED
1695
1709
  }
1696
1710
  }
1697
1711
  ]
@@ -1714,7 +1728,8 @@ const contractParams = {
1714
1728
  Monad: NOT_DEPLOYED,
1715
1729
  Berachain: NOT_DEPLOYED,
1716
1730
  Avalanche: NOT_DEPLOYED,
1717
- BNB: NOT_DEPLOYED
1731
+ BNB: NOT_DEPLOYED,
1732
+ WorldChain: NOT_DEPLOYED
1718
1733
  }
1719
1734
  }
1720
1735
  ]
@@ -1737,7 +1752,8 @@ const contractParams = {
1737
1752
  Monad: NOT_DEPLOYED,
1738
1753
  Berachain: NOT_DEPLOYED,
1739
1754
  Avalanche: NOT_DEPLOYED,
1740
- BNB: NOT_DEPLOYED
1755
+ BNB: NOT_DEPLOYED,
1756
+ WorldChain: NOT_DEPLOYED
1741
1757
  }
1742
1758
  }
1743
1759
  ]
@@ -1760,7 +1776,8 @@ const contractParams = {
1760
1776
  Monad: NOT_DEPLOYED,
1761
1777
  Berachain: NOT_DEPLOYED,
1762
1778
  Avalanche: NOT_DEPLOYED,
1763
- BNB: NOT_DEPLOYED
1779
+ BNB: NOT_DEPLOYED,
1780
+ WorldChain: NOT_DEPLOYED
1764
1781
  }
1765
1782
  }
1766
1783
  ]
@@ -1783,7 +1800,8 @@ const contractParams = {
1783
1800
  Monad: NOT_DEPLOYED,
1784
1801
  Berachain: NOT_DEPLOYED,
1785
1802
  Avalanche: NOT_DEPLOYED,
1786
- BNB: NOT_DEPLOYED
1803
+ BNB: NOT_DEPLOYED,
1804
+ WorldChain: NOT_DEPLOYED
1787
1805
  }
1788
1806
  }
1789
1807
  ]
@@ -1823,7 +1841,8 @@ const contractParams = {
1823
1841
  Monad: NOT_DEPLOYED,
1824
1842
  Berachain: NOT_DEPLOYED,
1825
1843
  Avalanche: NOT_DEPLOYED,
1826
- BNB: NOT_DEPLOYED
1844
+ BNB: NOT_DEPLOYED,
1845
+ WorldChain: NOT_DEPLOYED
1827
1846
  }
1828
1847
  }
1829
1848
  ]
@@ -1846,7 +1865,8 @@ const contractParams = {
1846
1865
  Monad: NOT_DEPLOYED,
1847
1866
  Berachain: NOT_DEPLOYED,
1848
1867
  Avalanche: NOT_DEPLOYED,
1849
- BNB: NOT_DEPLOYED
1868
+ BNB: NOT_DEPLOYED,
1869
+ WorldChain: NOT_DEPLOYED
1850
1870
  }
1851
1871
  }
1852
1872
  ]
@@ -1869,7 +1889,8 @@ const contractParams = {
1869
1889
  Monad: NOT_DEPLOYED,
1870
1890
  Berachain: NOT_DEPLOYED,
1871
1891
  Avalanche: NOT_DEPLOYED,
1872
- BNB: NOT_DEPLOYED
1892
+ BNB: NOT_DEPLOYED,
1893
+ WorldChain: NOT_DEPLOYED
1873
1894
  }
1874
1895
  },
1875
1896
  {
@@ -1884,7 +1905,8 @@ const contractParams = {
1884
1905
  Monad: NOT_DEPLOYED,
1885
1906
  Berachain: NOT_DEPLOYED,
1886
1907
  Avalanche: NOT_DEPLOYED,
1887
- BNB: NOT_DEPLOYED
1908
+ BNB: NOT_DEPLOYED,
1909
+ WorldChain: NOT_DEPLOYED
1888
1910
  }
1889
1911
  }
1890
1912
  ]
@@ -1907,7 +1929,8 @@ const contractParams = {
1907
1929
  Monad: NOT_DEPLOYED,
1908
1930
  Berachain: NOT_DEPLOYED,
1909
1931
  Avalanche: NOT_DEPLOYED,
1910
- BNB: NOT_DEPLOYED
1932
+ BNB: NOT_DEPLOYED,
1933
+ WorldChain: NOT_DEPLOYED
1911
1934
  }
1912
1935
  },
1913
1936
  {
@@ -1922,7 +1945,8 @@ const contractParams = {
1922
1945
  Monad: NOT_DEPLOYED,
1923
1946
  Berachain: NOT_DEPLOYED,
1924
1947
  Avalanche: NOT_DEPLOYED,
1925
- BNB: NOT_DEPLOYED
1948
+ BNB: NOT_DEPLOYED,
1949
+ WorldChain: NOT_DEPLOYED
1926
1950
  }
1927
1951
  }
1928
1952
  ]
@@ -1945,7 +1969,8 @@ const contractParams = {
1945
1969
  Monad: NOT_DEPLOYED,
1946
1970
  Berachain: NOT_DEPLOYED,
1947
1971
  Avalanche: NOT_DEPLOYED,
1948
- BNB: NOT_DEPLOYED
1972
+ BNB: NOT_DEPLOYED,
1973
+ WorldChain: NOT_DEPLOYED
1949
1974
  }
1950
1975
  },
1951
1976
  {
@@ -1960,7 +1985,8 @@ const contractParams = {
1960
1985
  Monad: NOT_DEPLOYED,
1961
1986
  Berachain: NOT_DEPLOYED,
1962
1987
  Avalanche: NOT_DEPLOYED,
1963
- BNB: NOT_DEPLOYED
1988
+ BNB: NOT_DEPLOYED,
1989
+ WorldChain: NOT_DEPLOYED
1964
1990
  }
1965
1991
  }
1966
1992
  ]
@@ -1983,7 +2009,8 @@ const contractParams = {
1983
2009
  Monad: NOT_DEPLOYED,
1984
2010
  Berachain: NOT_DEPLOYED,
1985
2011
  Avalanche: NOT_DEPLOYED,
1986
- BNB: NOT_DEPLOYED
2012
+ BNB: NOT_DEPLOYED,
2013
+ WorldChain: NOT_DEPLOYED
1987
2014
  }
1988
2015
  },
1989
2016
  {
@@ -1998,7 +2025,8 @@ const contractParams = {
1998
2025
  Monad: NOT_DEPLOYED,
1999
2026
  Berachain: NOT_DEPLOYED,
2000
2027
  Avalanche: NOT_DEPLOYED,
2001
- BNB: NOT_DEPLOYED
2028
+ BNB: NOT_DEPLOYED,
2029
+ WorldChain: NOT_DEPLOYED
2002
2030
  }
2003
2031
  }
2004
2032
  ]
@@ -2021,7 +2049,8 @@ const contractParams = {
2021
2049
  Monad: NOT_DEPLOYED,
2022
2050
  Berachain: NOT_DEPLOYED,
2023
2051
  Avalanche: NOT_DEPLOYED,
2024
- BNB: NOT_DEPLOYED
2052
+ BNB: NOT_DEPLOYED,
2053
+ WorldChain: NOT_DEPLOYED
2025
2054
  }
2026
2055
  },
2027
2056
  {
@@ -2036,7 +2065,8 @@ const contractParams = {
2036
2065
  Monad: NOT_DEPLOYED,
2037
2066
  Berachain: NOT_DEPLOYED,
2038
2067
  Avalanche: NOT_DEPLOYED,
2039
- BNB: NOT_DEPLOYED
2068
+ BNB: NOT_DEPLOYED,
2069
+ WorldChain: NOT_DEPLOYED
2040
2070
  }
2041
2071
  }
2042
2072
  ]
@@ -2059,7 +2089,8 @@ const contractParams = {
2059
2089
  Monad: NOT_DEPLOYED,
2060
2090
  Berachain: NOT_DEPLOYED,
2061
2091
  Avalanche: NOT_DEPLOYED,
2062
- BNB: NOT_DEPLOYED
2092
+ BNB: NOT_DEPLOYED,
2093
+ WorldChain: NOT_DEPLOYED
2063
2094
  }
2064
2095
  },
2065
2096
  {
@@ -2074,7 +2105,8 @@ const contractParams = {
2074
2105
  Monad: NOT_DEPLOYED,
2075
2106
  Berachain: NOT_DEPLOYED,
2076
2107
  Avalanche: NOT_DEPLOYED,
2077
- BNB: NOT_DEPLOYED
2108
+ BNB: NOT_DEPLOYED,
2109
+ WorldChain: NOT_DEPLOYED
2078
2110
  }
2079
2111
  }
2080
2112
  ]
@@ -2097,7 +2129,8 @@ const contractParams = {
2097
2129
  Monad: NOT_DEPLOYED,
2098
2130
  Berachain: NOT_DEPLOYED,
2099
2131
  Avalanche: NOT_DEPLOYED,
2100
- BNB: NOT_DEPLOYED
2132
+ BNB: NOT_DEPLOYED,
2133
+ WorldChain: NOT_DEPLOYED
2101
2134
  }
2102
2135
  },
2103
2136
  {
@@ -2112,7 +2145,8 @@ const contractParams = {
2112
2145
  Monad: NOT_DEPLOYED,
2113
2146
  Berachain: NOT_DEPLOYED,
2114
2147
  Avalanche: NOT_DEPLOYED,
2115
- BNB: NOT_DEPLOYED
2148
+ BNB: NOT_DEPLOYED,
2149
+ WorldChain: NOT_DEPLOYED
2116
2150
  }
2117
2151
  }
2118
2152
  ]
@@ -2132,7 +2166,8 @@ const contractParams = {
2132
2166
  Monad: NOT_DEPLOYED,
2133
2167
  Berachain: NOT_DEPLOYED,
2134
2168
  Avalanche: NOT_DEPLOYED,
2135
- BNB: NOT_DEPLOYED
2169
+ BNB: NOT_DEPLOYED,
2170
+ WorldChain: NOT_DEPLOYED
2136
2171
  },
2137
2172
  lpToken: "steCRV"
2138
2173
  },
@@ -2160,7 +2195,8 @@ const contractParams = {
2160
2195
  Monad: NOT_DEPLOYED,
2161
2196
  Berachain: NOT_DEPLOYED,
2162
2197
  Avalanche: NOT_DEPLOYED,
2163
- BNB: NOT_DEPLOYED
2198
+ BNB: NOT_DEPLOYED,
2199
+ WorldChain: NOT_DEPLOYED
2164
2200
  }
2165
2201
  },
2166
2202
  BALANCER_V3_ROUTER: {
@@ -2177,7 +2213,8 @@ const contractParams = {
2177
2213
  Monad: NOT_DEPLOYED,
2178
2214
  Berachain: NOT_DEPLOYED,
2179
2215
  Avalanche: NOT_DEPLOYED,
2180
- BNB: NOT_DEPLOYED
2216
+ BNB: NOT_DEPLOYED,
2217
+ WorldChain: NOT_DEPLOYED
2181
2218
  }
2182
2219
  },
2183
2220
  AAVE_V2_LENDING_POOL: {
@@ -9,7 +9,8 @@ const nonQuoted = {
9
9
  Monad: [],
10
10
  Berachain: [],
11
11
  Avalanche: [],
12
- BNB: []
12
+ BNB: [],
13
+ WorldChain: []
13
14
  };
14
15
  export {
15
16
  nonQuoted
@@ -1576,7 +1576,8 @@ const tokenDataByNetwork = {
1576
1576
  Monad: {},
1577
1577
  Berachain: {},
1578
1578
  Avalanche: {},
1579
- BNB: {}
1579
+ BNB: {},
1580
+ WorldChain: {}
1580
1581
  };
1581
1582
  const tickerInfoTokensByNetwork = {
1582
1583
  Mainnet: {
@@ -1973,7 +1974,8 @@ const tickerInfoTokensByNetwork = {
1973
1974
  Monad: {},
1974
1975
  Berachain: {},
1975
1976
  Avalanche: {},
1976
- BNB: {}
1977
+ BNB: {},
1978
+ WorldChain: {}
1977
1979
  };
1978
1980
  const tickerTokensByNetwork = Object.fromEntries(
1979
1981
  Object.entries(tickerInfoTokensByNetwork).map(([network, data]) => {
@@ -31,7 +31,8 @@ const connectors = {
31
31
  Monad: [],
32
32
  Berachain: [],
33
33
  Avalanche: [],
34
- BNB: []
34
+ BNB: [],
35
+ WorldChain: []
35
36
  };
36
37
  function getConnectors(networkType) {
37
38
  return connectors[networkType].map((e) => {
@@ -11,7 +11,8 @@ const TESTNET_CHAINS = {
11
11
  Monad: 7884,
12
12
  Berachain: 7885,
13
13
  Avalanche: 7886,
14
- BNB: 7887
14
+ BNB: 7887,
15
+ WorldChain: 7889
15
16
  };
16
17
  const CHAINS_BY_ID = TypedObjectUtils.swapKeyValue(TESTNET_CHAINS);
17
18
  const MAINNET_BY_TESTNET_ID = TypedObjectUtils.entries(TESTNET_CHAINS).reduce((acc, [n, testnetId]) => {
@@ -19,8 +19,8 @@ export interface GearboxChain extends Chain {
19
19
  symbol: string;
20
20
  };
21
21
  }
22
- export declare const SUPPORTED_NETWORKS: readonly ["Mainnet", "Arbitrum", "Optimism", "Base", "Sonic", "MegaETH", "Monad", "Berachain", "Avalanche", "BNB"];
23
- export declare const NetworkType: z.ZodEnum<["Mainnet", "Arbitrum", "Optimism", "Base", "Sonic", "MegaETH", "Monad", "Berachain", "Avalanche", "BNB"]>;
22
+ export declare const SUPPORTED_NETWORKS: readonly ["Mainnet", "Arbitrum", "Optimism", "Base", "Sonic", "MegaETH", "Monad", "Berachain", "Avalanche", "BNB", "WorldChain"];
23
+ export declare const NetworkType: z.ZodEnum<["Mainnet", "Arbitrum", "Optimism", "Base", "Sonic", "MegaETH", "Monad", "Berachain", "Avalanche", "BNB", "WorldChain"]>;
24
24
  export type NetworkType = z.infer<typeof NetworkType>;
25
25
  export declare const chains: Record<NetworkType, GearboxChain>;
26
26
  export declare function getChain(chainIdOrNetworkType: number | bigint | NetworkType): GearboxChain;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "3.1.3-next.2",
3
+ "version": "3.2.1-next.1",
4
4
  "description": "Gearbox SDK",
5
5
  "license": "MIT",
6
6
  "main": "./dist/cjs/sdk/index.js",