@gearbox-protocol/sdk 7.11.0-next.3 → 7.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/adapters/AdaptersPlugin.js +3 -2
- package/dist/cjs/bots/BotsPlugin.js +17 -29
- package/dist/cjs/dev/AccountsCounterPlugin.js +10 -19
- package/dist/cjs/dev/createTransport.js +2 -1
- package/dist/cjs/sdk/GearboxSDK.js +3 -13
- package/dist/cjs/sdk/chain/chains.js +21 -10
- package/dist/cjs/sdk/constants/address-provider.js +2 -1
- package/dist/cjs/sdk/constants/addresses.js +8 -4
- package/dist/cjs/sdk/constants/networks.js +5 -2
- package/dist/cjs/sdk/plugins/V300StalenessPeriodPlugin.js +1 -3
- package/dist/cjs/sdk/router/RouterV300Contract.js +2 -1
- package/dist/cjs/sdk/sdk-gov-legacy/contracts/contracts.js +74 -37
- package/dist/cjs/sdk/sdk-gov-legacy/tokens/token.js +4 -2
- package/dist/cjs/sdk/sdk-gov-legacy/tokens/tokenData.js +2 -1
- package/dist/cjs/sdk/sdk-legacy/core/endpoint.js +2 -1
- package/dist/cjs/sdk/sdk-legacy/gearboxRewards/api.js +159 -94
- package/dist/cjs/sdk/sdk-legacy/gearboxRewards/apy.js +1 -1
- package/dist/cjs/sdk/sdk-legacy/index.js +2 -0
- package/dist/cjs/{pools7DAgo/types.js → sdk/sdk-legacy/pathfinder/core.js} +2 -2
- package/dist/cjs/{pools7DAgo → sdk/sdk-legacy/pathfinder}/index.js +4 -6
- package/dist/cjs/sdk/utils/viem/simulateWithPriceUpdates.js +1 -0
- package/dist/cjs/zappers/ZappersPlugin.js +4 -13
- package/dist/esm/adapters/AdaptersPlugin.js +3 -2
- package/dist/esm/bots/BotsPlugin.js +17 -29
- package/dist/esm/dev/AccountsCounterPlugin.js +10 -19
- package/dist/esm/dev/createTransport.js +2 -1
- package/dist/esm/sdk/GearboxSDK.js +3 -13
- package/dist/esm/sdk/chain/chains.js +22 -10
- package/dist/esm/sdk/constants/address-provider.js +2 -1
- package/dist/esm/sdk/constants/addresses.js +8 -4
- package/dist/esm/sdk/constants/networks.js +5 -2
- package/dist/esm/sdk/plugins/V300StalenessPeriodPlugin.js +1 -3
- package/dist/esm/sdk/router/RouterV300Contract.js +2 -1
- package/dist/esm/sdk/sdk-gov-legacy/contracts/contracts.js +74 -37
- package/dist/esm/sdk/sdk-gov-legacy/tokens/token.js +4 -2
- package/dist/esm/sdk/sdk-gov-legacy/tokens/tokenData.js +2 -1
- package/dist/esm/sdk/sdk-legacy/core/endpoint.js +2 -1
- package/dist/esm/sdk/sdk-legacy/gearboxRewards/api.js +159 -94
- package/dist/esm/sdk/sdk-legacy/gearboxRewards/apy.js +1 -1
- package/dist/esm/sdk/sdk-legacy/index.js +1 -0
- package/dist/esm/sdk/sdk-legacy/pathfinder/index.js +1 -0
- package/dist/esm/sdk/utils/viem/simulateWithPriceUpdates.js +1 -0
- package/dist/esm/zappers/ZappersPlugin.js +4 -13
- package/dist/types/adapters/AdaptersPlugin.d.ts +4 -5
- package/dist/types/bots/BotsPlugin.d.ts +3 -5
- package/dist/types/bots/types.d.ts +2 -2
- package/dist/types/dev/AccountsCounterPlugin.d.ts +2 -4
- package/dist/types/sdk/GearboxSDK.d.ts +3 -4
- package/dist/types/sdk/chain/chains.d.ts +2 -2
- package/dist/types/sdk/plugins/V300StalenessPeriodPlugin.d.ts +2 -3
- package/dist/types/sdk/plugins/types.d.ts +15 -33
- package/dist/types/sdk/sdk-legacy/gearboxRewards/api.d.ts +27 -16
- package/dist/types/sdk/sdk-legacy/gearboxRewards/apy.d.ts +15 -9
- package/dist/types/sdk/sdk-legacy/index.d.ts +1 -0
- package/dist/types/sdk/sdk-legacy/pathfinder/core.d.ts +14 -0
- package/dist/types/sdk/sdk-legacy/pathfinder/index.d.ts +1 -0
- package/dist/types/zappers/ZappersPlugin.d.ts +4 -5
- package/package.json +1 -1
- package/dist/cjs/degenDistributors/DegenDistributorsPlugin.js +0 -110
- package/dist/cjs/degenDistributors/index.js +0 -24
- package/dist/cjs/degenDistributors/package.json +0 -1
- package/dist/cjs/degenDistributors/types.js +0 -16
- package/dist/cjs/pools7DAgo/Pools7DAgoPlugin.js +0 -116
- package/dist/cjs/pools7DAgo/package.json +0 -1
- package/dist/esm/degenDistributors/DegenDistributorsPlugin.js +0 -86
- package/dist/esm/degenDistributors/index.js +0 -2
- package/dist/esm/degenDistributors/package.json +0 -1
- package/dist/esm/pools7DAgo/Pools7DAgoPlugin.js +0 -99
- package/dist/esm/pools7DAgo/index.js +0 -2
- package/dist/esm/pools7DAgo/package.json +0 -1
- package/dist/esm/pools7DAgo/types.js +0 -0
- package/dist/types/degenDistributors/DegenDistributorsPlugin.d.ts +0 -22
- package/dist/types/degenDistributors/index.d.ts +0 -2
- package/dist/types/degenDistributors/types.d.ts +0 -4
- package/dist/types/pools7DAgo/Pools7DAgoPlugin.d.ts +0 -22
- package/dist/types/pools7DAgo/index.d.ts +0 -2
- package/dist/types/pools7DAgo/types.d.ts +0 -9
- /package/dist/esm/{degenDistributors/types.js → sdk/sdk-legacy/pathfinder/core.js} +0 -0
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
base,
|
|
6
6
|
berachain,
|
|
7
7
|
bsc,
|
|
8
|
+
etherlink,
|
|
8
9
|
mainnet,
|
|
9
10
|
megaethTestnet,
|
|
10
11
|
monadTestnet,
|
|
@@ -13,6 +14,7 @@ import {
|
|
|
13
14
|
worldchain
|
|
14
15
|
} from "viem/chains";
|
|
15
16
|
import { z } from "zod";
|
|
17
|
+
import { TypedObjectUtils } from "../utils/index.js";
|
|
16
18
|
const SUPPORTED_NETWORKS = [
|
|
17
19
|
"Mainnet",
|
|
18
20
|
"Arbitrum",
|
|
@@ -24,7 +26,8 @@ const SUPPORTED_NETWORKS = [
|
|
|
24
26
|
"Berachain",
|
|
25
27
|
"Avalanche",
|
|
26
28
|
"BNB",
|
|
27
|
-
"WorldChain"
|
|
29
|
+
"WorldChain",
|
|
30
|
+
"Etherlink"
|
|
28
31
|
];
|
|
29
32
|
const NetworkType = z.enum(SUPPORTED_NETWORKS);
|
|
30
33
|
function withPublicNode(chain, subdomain) {
|
|
@@ -213,12 +216,19 @@ const chains = {
|
|
|
213
216
|
},
|
|
214
217
|
alchemyDomain: "worldchain-mainnet"
|
|
215
218
|
// TODO: has no block explorer API
|
|
219
|
+
}),
|
|
220
|
+
Etherlink: defineChain({
|
|
221
|
+
...etherlink,
|
|
222
|
+
network: "Etherlink",
|
|
223
|
+
defaultMarketConfigurators: {},
|
|
224
|
+
isPublic: false,
|
|
225
|
+
wellKnownToken: {
|
|
226
|
+
address: "0x796Ea11Fa2dD751eD01b53C372fFDB4AAa8f00F9",
|
|
227
|
+
symbol: "USDC"
|
|
228
|
+
}
|
|
229
|
+
// TODO: has no block explorer API
|
|
216
230
|
})
|
|
217
231
|
};
|
|
218
|
-
const networkByChainId = Object.values(chains).reduce((acc, chain) => {
|
|
219
|
-
acc[chain.id] = chain.network;
|
|
220
|
-
return acc;
|
|
221
|
-
}, {});
|
|
222
232
|
function getChain(chainIdOrNetworkType) {
|
|
223
233
|
const network = typeof chainIdOrNetworkType === "string" ? chainIdOrNetworkType : getNetworkType(Number(chainIdOrNetworkType));
|
|
224
234
|
const chain = chains[network];
|
|
@@ -228,13 +238,15 @@ function getChain(chainIdOrNetworkType) {
|
|
|
228
238
|
return chain;
|
|
229
239
|
}
|
|
230
240
|
function getNetworkType(chainId) {
|
|
231
|
-
const network
|
|
232
|
-
|
|
233
|
-
|
|
241
|
+
for (const [network, chain] of TypedObjectUtils.entries(chains)) {
|
|
242
|
+
if (chain.id === Number(chainId)) {
|
|
243
|
+
return network;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
throw new Error(`Unsupported network with chainId ${chainId}`);
|
|
234
247
|
}
|
|
235
248
|
function isSupportedNetwork(chainId) {
|
|
236
|
-
|
|
237
|
-
return !!networkByChainId[chainId];
|
|
249
|
+
return Object.values(chains).some((c) => c.id === chainId);
|
|
238
250
|
}
|
|
239
251
|
function isPublicNetwork(networkOrChainId) {
|
|
240
252
|
return Object.values(chains).some((c) => {
|
|
@@ -43,7 +43,8 @@ const ADDRESS_PROVIDER = {
|
|
|
43
43
|
Berachain: NOT_DEPLOYED,
|
|
44
44
|
Avalanche: NOT_DEPLOYED,
|
|
45
45
|
BNB: NOT_DEPLOYED,
|
|
46
|
-
WorldChain: NOT_DEPLOYED
|
|
46
|
+
WorldChain: NOT_DEPLOYED,
|
|
47
|
+
Etherlink: NOT_DEPLOYED
|
|
47
48
|
};
|
|
48
49
|
const ADDRESS_PROVIDER_V310 = "0xF7f0a609BfAb9a0A98786951ef10e5FE26cC1E38";
|
|
49
50
|
export {
|
|
@@ -13,7 +13,8 @@ const TIMELOCK = {
|
|
|
13
13
|
Berachain: NOT_DEPLOYED,
|
|
14
14
|
Avalanche: NOT_DEPLOYED,
|
|
15
15
|
BNB: NOT_DEPLOYED,
|
|
16
|
-
WorldChain: NOT_DEPLOYED
|
|
16
|
+
WorldChain: NOT_DEPLOYED,
|
|
17
|
+
Etherlink: NOT_DEPLOYED
|
|
17
18
|
};
|
|
18
19
|
const GEARBOX_MULTISIG = {
|
|
19
20
|
Mainnet: "0xA7D5DDc1b8557914F158076b228AA91eF613f1D5",
|
|
@@ -27,7 +28,8 @@ const GEARBOX_MULTISIG = {
|
|
|
27
28
|
Berachain: NOT_DEPLOYED,
|
|
28
29
|
Avalanche: NOT_DEPLOYED,
|
|
29
30
|
BNB: NOT_DEPLOYED,
|
|
30
|
-
WorldChain: NOT_DEPLOYED
|
|
31
|
+
WorldChain: NOT_DEPLOYED,
|
|
32
|
+
Etherlink: NOT_DEPLOYED
|
|
31
33
|
};
|
|
32
34
|
const GEARBOX_RISK_CURATORS = {
|
|
33
35
|
Mainnet: [TIMELOCK.Mainnet],
|
|
@@ -41,7 +43,8 @@ const GEARBOX_RISK_CURATORS = {
|
|
|
41
43
|
Berachain: [],
|
|
42
44
|
Avalanche: [],
|
|
43
45
|
BNB: [],
|
|
44
|
-
WorldChain: []
|
|
46
|
+
WorldChain: [],
|
|
47
|
+
Etherlink: []
|
|
45
48
|
};
|
|
46
49
|
const DEPRECIATED_POOLS = {
|
|
47
50
|
Mainnet: {
|
|
@@ -57,7 +60,8 @@ const DEPRECIATED_POOLS = {
|
|
|
57
60
|
Berachain: {},
|
|
58
61
|
Avalanche: {},
|
|
59
62
|
BNB: {},
|
|
60
|
-
WorldChain: {}
|
|
63
|
+
WorldChain: {},
|
|
64
|
+
Etherlink: {}
|
|
61
65
|
};
|
|
62
66
|
export {
|
|
63
67
|
ADDRESS_0X0,
|
|
@@ -17,7 +17,9 @@ const ADDRESS_PROVIDER_BLOCK = {
|
|
|
17
17
|
// arbitrary not deployed yet
|
|
18
18
|
BNB: 48553569n,
|
|
19
19
|
// arbitrary not deployed yet
|
|
20
|
-
WorldChain: 22372908n
|
|
20
|
+
WorldChain: 22372908n,
|
|
21
|
+
// arbitrary not deployed yet
|
|
22
|
+
Etherlink: 16672969n
|
|
21
23
|
// arbitrary not deployed yet
|
|
22
24
|
};
|
|
23
25
|
const BLOCK_DURATION_BY_NETWORK = {
|
|
@@ -34,7 +36,8 @@ const BLOCK_DURATION_BY_NETWORK = {
|
|
|
34
36
|
Berachain: 1.9,
|
|
35
37
|
Avalanche: 1.7,
|
|
36
38
|
BNB: 3,
|
|
37
|
-
WorldChain: 2
|
|
39
|
+
WorldChain: 2,
|
|
40
|
+
Etherlink: 1
|
|
38
41
|
};
|
|
39
42
|
const RAMP_TIME = 30 * 24 * 60 * 60 * 1.2;
|
|
40
43
|
const RAMP_DURATION_BY_NETWORK = TypedObjectUtils.entries(BLOCK_DURATION_BY_NETWORK).reduce(
|
|
@@ -15,9 +15,6 @@ class V300StalenessPeriodPlugin extends SDKConstruct {
|
|
|
15
15
|
this.#syncedTo = ADDRESS_PROVIDER_BLOCK[sdk.provider.networkType] - 1n;
|
|
16
16
|
this.#logger = sdk.logger?.child?.({ name: "V300StalenessPeriodPlugin" }) ?? sdk.logger;
|
|
17
17
|
}
|
|
18
|
-
get loaded() {
|
|
19
|
-
return !!this.#syncedTo;
|
|
20
|
-
}
|
|
21
18
|
async attach() {
|
|
22
19
|
await this.#syncPriceFeeds();
|
|
23
20
|
}
|
|
@@ -78,6 +75,7 @@ class V300StalenessPeriodPlugin extends SDKConstruct {
|
|
|
78
75
|
}
|
|
79
76
|
get state() {
|
|
80
77
|
return {
|
|
78
|
+
version: this.version,
|
|
81
79
|
events: this.#events
|
|
82
80
|
};
|
|
83
81
|
}
|
|
@@ -278,7 +278,8 @@ class RouterV300Contract extends AbstractRouterContract {
|
|
|
278
278
|
Berachain: "0x0",
|
|
279
279
|
Avalanche: "0x0",
|
|
280
280
|
BNB: "0x0",
|
|
281
|
-
WorldChain: "0x0"
|
|
281
|
+
WorldChain: "0x0",
|
|
282
|
+
Etherlink: "0x0"
|
|
282
283
|
};
|
|
283
284
|
const pendleRouter = PENDLE_ROUTER_BY_NETWORK[this.sdk.provider.networkType];
|
|
284
285
|
const pendleAdapter = cm.creditManager.adapters.mustGet(pendleRouter);
|
|
@@ -795,7 +795,8 @@ const contractsByNetwork = {
|
|
|
795
795
|
Monad: {},
|
|
796
796
|
Berachain: {},
|
|
797
797
|
BNB: {},
|
|
798
|
-
WorldChain: {}
|
|
798
|
+
WorldChain: {},
|
|
799
|
+
Etherlink: {}
|
|
799
800
|
};
|
|
800
801
|
const UNISWAP_V3_QUOTER = "0xb27308f9F90D607463bb33eA1BeBb41C27CE5AB6";
|
|
801
802
|
const CAMELOT_V3_QUOTER = "0x0Fc73040b26E9bC8514fA028D998E73A254Fa76E";
|
|
@@ -904,7 +905,8 @@ const contractParams = {
|
|
|
904
905
|
Berachain: NOT_DEPLOYED,
|
|
905
906
|
Avalanche: NOT_DEPLOYED,
|
|
906
907
|
BNB: NOT_DEPLOYED,
|
|
907
|
-
WorldChain: NOT_DEPLOYED
|
|
908
|
+
WorldChain: NOT_DEPLOYED,
|
|
909
|
+
Etherlink: NOT_DEPLOYED
|
|
908
910
|
},
|
|
909
911
|
tokens: ["WETH", "STETH"],
|
|
910
912
|
lpToken: "steCRV"
|
|
@@ -925,7 +927,8 @@ const contractParams = {
|
|
|
925
927
|
Berachain: NOT_DEPLOYED,
|
|
926
928
|
Avalanche: NOT_DEPLOYED,
|
|
927
929
|
BNB: NOT_DEPLOYED,
|
|
928
|
-
WorldChain: NOT_DEPLOYED
|
|
930
|
+
WorldChain: NOT_DEPLOYED,
|
|
931
|
+
Etherlink: NOT_DEPLOYED
|
|
929
932
|
},
|
|
930
933
|
tokens: ["WETH", "wstETH"],
|
|
931
934
|
lpToken: "wstETHCRV"
|
|
@@ -946,7 +949,8 @@ const contractParams = {
|
|
|
946
949
|
Berachain: NOT_DEPLOYED,
|
|
947
950
|
Avalanche: NOT_DEPLOYED,
|
|
948
951
|
BNB: NOT_DEPLOYED,
|
|
949
|
-
WorldChain: NOT_DEPLOYED
|
|
952
|
+
WorldChain: NOT_DEPLOYED,
|
|
953
|
+
Etherlink: NOT_DEPLOYED
|
|
950
954
|
},
|
|
951
955
|
tokens: ["GEAR", "WETH"],
|
|
952
956
|
lpToken: "GEAR"
|
|
@@ -1479,7 +1483,8 @@ const contractParams = {
|
|
|
1479
1483
|
Berachain: NOT_DEPLOYED,
|
|
1480
1484
|
Avalanche: NOT_DEPLOYED,
|
|
1481
1485
|
BNB: NOT_DEPLOYED,
|
|
1482
|
-
WorldChain: NOT_DEPLOYED
|
|
1486
|
+
WorldChain: NOT_DEPLOYED,
|
|
1487
|
+
Etherlink: NOT_DEPLOYED
|
|
1483
1488
|
}
|
|
1484
1489
|
}
|
|
1485
1490
|
]
|
|
@@ -1504,7 +1509,8 @@ const contractParams = {
|
|
|
1504
1509
|
Berachain: NOT_DEPLOYED,
|
|
1505
1510
|
Avalanche: NOT_DEPLOYED,
|
|
1506
1511
|
BNB: NOT_DEPLOYED,
|
|
1507
|
-
WorldChain: NOT_DEPLOYED
|
|
1512
|
+
WorldChain: NOT_DEPLOYED,
|
|
1513
|
+
Etherlink: NOT_DEPLOYED
|
|
1508
1514
|
}
|
|
1509
1515
|
}
|
|
1510
1516
|
]
|
|
@@ -1529,7 +1535,8 @@ const contractParams = {
|
|
|
1529
1535
|
Berachain: NOT_DEPLOYED,
|
|
1530
1536
|
Avalanche: NOT_DEPLOYED,
|
|
1531
1537
|
BNB: NOT_DEPLOYED,
|
|
1532
|
-
WorldChain: NOT_DEPLOYED
|
|
1538
|
+
WorldChain: NOT_DEPLOYED,
|
|
1539
|
+
Etherlink: NOT_DEPLOYED
|
|
1533
1540
|
}
|
|
1534
1541
|
}
|
|
1535
1542
|
]
|
|
@@ -1554,7 +1561,8 @@ const contractParams = {
|
|
|
1554
1561
|
Berachain: NOT_DEPLOYED,
|
|
1555
1562
|
Avalanche: NOT_DEPLOYED,
|
|
1556
1563
|
BNB: NOT_DEPLOYED,
|
|
1557
|
-
WorldChain: NOT_DEPLOYED
|
|
1564
|
+
WorldChain: NOT_DEPLOYED,
|
|
1565
|
+
Etherlink: NOT_DEPLOYED
|
|
1558
1566
|
}
|
|
1559
1567
|
}
|
|
1560
1568
|
]
|
|
@@ -1578,7 +1586,8 @@ const contractParams = {
|
|
|
1578
1586
|
Berachain: NOT_DEPLOYED,
|
|
1579
1587
|
Avalanche: NOT_DEPLOYED,
|
|
1580
1588
|
BNB: NOT_DEPLOYED,
|
|
1581
|
-
WorldChain: NOT_DEPLOYED
|
|
1589
|
+
WorldChain: NOT_DEPLOYED,
|
|
1590
|
+
Etherlink: NOT_DEPLOYED
|
|
1582
1591
|
}
|
|
1583
1592
|
}
|
|
1584
1593
|
]
|
|
@@ -1602,7 +1611,8 @@ const contractParams = {
|
|
|
1602
1611
|
Berachain: NOT_DEPLOYED,
|
|
1603
1612
|
Avalanche: NOT_DEPLOYED,
|
|
1604
1613
|
BNB: NOT_DEPLOYED,
|
|
1605
|
-
WorldChain: NOT_DEPLOYED
|
|
1614
|
+
WorldChain: NOT_DEPLOYED,
|
|
1615
|
+
Etherlink: NOT_DEPLOYED
|
|
1606
1616
|
}
|
|
1607
1617
|
}
|
|
1608
1618
|
]
|
|
@@ -1633,7 +1643,8 @@ const contractParams = {
|
|
|
1633
1643
|
Berachain: NOT_DEPLOYED,
|
|
1634
1644
|
Avalanche: NOT_DEPLOYED,
|
|
1635
1645
|
BNB: NOT_DEPLOYED,
|
|
1636
|
-
WorldChain: NOT_DEPLOYED
|
|
1646
|
+
WorldChain: NOT_DEPLOYED,
|
|
1647
|
+
Etherlink: NOT_DEPLOYED
|
|
1637
1648
|
}
|
|
1638
1649
|
}
|
|
1639
1650
|
]
|
|
@@ -1657,7 +1668,8 @@ const contractParams = {
|
|
|
1657
1668
|
Berachain: NOT_DEPLOYED,
|
|
1658
1669
|
Avalanche: NOT_DEPLOYED,
|
|
1659
1670
|
BNB: NOT_DEPLOYED,
|
|
1660
|
-
WorldChain: NOT_DEPLOYED
|
|
1671
|
+
WorldChain: NOT_DEPLOYED,
|
|
1672
|
+
Etherlink: NOT_DEPLOYED
|
|
1661
1673
|
}
|
|
1662
1674
|
}
|
|
1663
1675
|
]
|
|
@@ -1681,7 +1693,8 @@ const contractParams = {
|
|
|
1681
1693
|
Berachain: NOT_DEPLOYED,
|
|
1682
1694
|
Avalanche: NOT_DEPLOYED,
|
|
1683
1695
|
BNB: NOT_DEPLOYED,
|
|
1684
|
-
WorldChain: NOT_DEPLOYED
|
|
1696
|
+
WorldChain: NOT_DEPLOYED,
|
|
1697
|
+
Etherlink: NOT_DEPLOYED
|
|
1685
1698
|
}
|
|
1686
1699
|
}
|
|
1687
1700
|
]
|
|
@@ -1705,7 +1718,8 @@ const contractParams = {
|
|
|
1705
1718
|
Berachain: NOT_DEPLOYED,
|
|
1706
1719
|
Avalanche: NOT_DEPLOYED,
|
|
1707
1720
|
BNB: NOT_DEPLOYED,
|
|
1708
|
-
WorldChain: NOT_DEPLOYED
|
|
1721
|
+
WorldChain: NOT_DEPLOYED,
|
|
1722
|
+
Etherlink: NOT_DEPLOYED
|
|
1709
1723
|
}
|
|
1710
1724
|
}
|
|
1711
1725
|
]
|
|
@@ -1729,7 +1743,8 @@ const contractParams = {
|
|
|
1729
1743
|
Berachain: NOT_DEPLOYED,
|
|
1730
1744
|
Avalanche: NOT_DEPLOYED,
|
|
1731
1745
|
BNB: NOT_DEPLOYED,
|
|
1732
|
-
WorldChain: NOT_DEPLOYED
|
|
1746
|
+
WorldChain: NOT_DEPLOYED,
|
|
1747
|
+
Etherlink: NOT_DEPLOYED
|
|
1733
1748
|
}
|
|
1734
1749
|
}
|
|
1735
1750
|
]
|
|
@@ -1753,7 +1768,8 @@ const contractParams = {
|
|
|
1753
1768
|
Berachain: NOT_DEPLOYED,
|
|
1754
1769
|
Avalanche: NOT_DEPLOYED,
|
|
1755
1770
|
BNB: NOT_DEPLOYED,
|
|
1756
|
-
WorldChain: NOT_DEPLOYED
|
|
1771
|
+
WorldChain: NOT_DEPLOYED,
|
|
1772
|
+
Etherlink: NOT_DEPLOYED
|
|
1757
1773
|
}
|
|
1758
1774
|
}
|
|
1759
1775
|
]
|
|
@@ -1777,7 +1793,8 @@ const contractParams = {
|
|
|
1777
1793
|
Berachain: NOT_DEPLOYED,
|
|
1778
1794
|
Avalanche: NOT_DEPLOYED,
|
|
1779
1795
|
BNB: NOT_DEPLOYED,
|
|
1780
|
-
WorldChain: NOT_DEPLOYED
|
|
1796
|
+
WorldChain: NOT_DEPLOYED,
|
|
1797
|
+
Etherlink: NOT_DEPLOYED
|
|
1781
1798
|
}
|
|
1782
1799
|
}
|
|
1783
1800
|
]
|
|
@@ -1801,7 +1818,8 @@ const contractParams = {
|
|
|
1801
1818
|
Berachain: NOT_DEPLOYED,
|
|
1802
1819
|
Avalanche: NOT_DEPLOYED,
|
|
1803
1820
|
BNB: NOT_DEPLOYED,
|
|
1804
|
-
WorldChain: NOT_DEPLOYED
|
|
1821
|
+
WorldChain: NOT_DEPLOYED,
|
|
1822
|
+
Etherlink: NOT_DEPLOYED
|
|
1805
1823
|
}
|
|
1806
1824
|
}
|
|
1807
1825
|
]
|
|
@@ -1842,7 +1860,8 @@ const contractParams = {
|
|
|
1842
1860
|
Berachain: NOT_DEPLOYED,
|
|
1843
1861
|
Avalanche: NOT_DEPLOYED,
|
|
1844
1862
|
BNB: NOT_DEPLOYED,
|
|
1845
|
-
WorldChain: NOT_DEPLOYED
|
|
1863
|
+
WorldChain: NOT_DEPLOYED,
|
|
1864
|
+
Etherlink: NOT_DEPLOYED
|
|
1846
1865
|
}
|
|
1847
1866
|
}
|
|
1848
1867
|
]
|
|
@@ -1866,7 +1885,8 @@ const contractParams = {
|
|
|
1866
1885
|
Berachain: NOT_DEPLOYED,
|
|
1867
1886
|
Avalanche: NOT_DEPLOYED,
|
|
1868
1887
|
BNB: NOT_DEPLOYED,
|
|
1869
|
-
WorldChain: NOT_DEPLOYED
|
|
1888
|
+
WorldChain: NOT_DEPLOYED,
|
|
1889
|
+
Etherlink: NOT_DEPLOYED
|
|
1870
1890
|
}
|
|
1871
1891
|
}
|
|
1872
1892
|
]
|
|
@@ -1890,7 +1910,8 @@ const contractParams = {
|
|
|
1890
1910
|
Berachain: NOT_DEPLOYED,
|
|
1891
1911
|
Avalanche: NOT_DEPLOYED,
|
|
1892
1912
|
BNB: NOT_DEPLOYED,
|
|
1893
|
-
WorldChain: NOT_DEPLOYED
|
|
1913
|
+
WorldChain: NOT_DEPLOYED,
|
|
1914
|
+
Etherlink: NOT_DEPLOYED
|
|
1894
1915
|
}
|
|
1895
1916
|
},
|
|
1896
1917
|
{
|
|
@@ -1906,7 +1927,8 @@ const contractParams = {
|
|
|
1906
1927
|
Berachain: NOT_DEPLOYED,
|
|
1907
1928
|
Avalanche: NOT_DEPLOYED,
|
|
1908
1929
|
BNB: NOT_DEPLOYED,
|
|
1909
|
-
WorldChain: NOT_DEPLOYED
|
|
1930
|
+
WorldChain: NOT_DEPLOYED,
|
|
1931
|
+
Etherlink: NOT_DEPLOYED
|
|
1910
1932
|
}
|
|
1911
1933
|
}
|
|
1912
1934
|
]
|
|
@@ -1930,7 +1952,8 @@ const contractParams = {
|
|
|
1930
1952
|
Berachain: NOT_DEPLOYED,
|
|
1931
1953
|
Avalanche: NOT_DEPLOYED,
|
|
1932
1954
|
BNB: NOT_DEPLOYED,
|
|
1933
|
-
WorldChain: NOT_DEPLOYED
|
|
1955
|
+
WorldChain: NOT_DEPLOYED,
|
|
1956
|
+
Etherlink: NOT_DEPLOYED
|
|
1934
1957
|
}
|
|
1935
1958
|
},
|
|
1936
1959
|
{
|
|
@@ -1946,7 +1969,8 @@ const contractParams = {
|
|
|
1946
1969
|
Berachain: NOT_DEPLOYED,
|
|
1947
1970
|
Avalanche: NOT_DEPLOYED,
|
|
1948
1971
|
BNB: NOT_DEPLOYED,
|
|
1949
|
-
WorldChain: NOT_DEPLOYED
|
|
1972
|
+
WorldChain: NOT_DEPLOYED,
|
|
1973
|
+
Etherlink: NOT_DEPLOYED
|
|
1950
1974
|
}
|
|
1951
1975
|
}
|
|
1952
1976
|
]
|
|
@@ -1970,7 +1994,8 @@ const contractParams = {
|
|
|
1970
1994
|
Berachain: NOT_DEPLOYED,
|
|
1971
1995
|
Avalanche: NOT_DEPLOYED,
|
|
1972
1996
|
BNB: NOT_DEPLOYED,
|
|
1973
|
-
WorldChain: NOT_DEPLOYED
|
|
1997
|
+
WorldChain: NOT_DEPLOYED,
|
|
1998
|
+
Etherlink: NOT_DEPLOYED
|
|
1974
1999
|
}
|
|
1975
2000
|
},
|
|
1976
2001
|
{
|
|
@@ -1986,7 +2011,8 @@ const contractParams = {
|
|
|
1986
2011
|
Berachain: NOT_DEPLOYED,
|
|
1987
2012
|
Avalanche: NOT_DEPLOYED,
|
|
1988
2013
|
BNB: NOT_DEPLOYED,
|
|
1989
|
-
WorldChain: NOT_DEPLOYED
|
|
2014
|
+
WorldChain: NOT_DEPLOYED,
|
|
2015
|
+
Etherlink: NOT_DEPLOYED
|
|
1990
2016
|
}
|
|
1991
2017
|
}
|
|
1992
2018
|
]
|
|
@@ -2010,7 +2036,8 @@ const contractParams = {
|
|
|
2010
2036
|
Berachain: NOT_DEPLOYED,
|
|
2011
2037
|
Avalanche: NOT_DEPLOYED,
|
|
2012
2038
|
BNB: NOT_DEPLOYED,
|
|
2013
|
-
WorldChain: NOT_DEPLOYED
|
|
2039
|
+
WorldChain: NOT_DEPLOYED,
|
|
2040
|
+
Etherlink: NOT_DEPLOYED
|
|
2014
2041
|
}
|
|
2015
2042
|
},
|
|
2016
2043
|
{
|
|
@@ -2026,7 +2053,8 @@ const contractParams = {
|
|
|
2026
2053
|
Berachain: NOT_DEPLOYED,
|
|
2027
2054
|
Avalanche: NOT_DEPLOYED,
|
|
2028
2055
|
BNB: NOT_DEPLOYED,
|
|
2029
|
-
WorldChain: NOT_DEPLOYED
|
|
2056
|
+
WorldChain: NOT_DEPLOYED,
|
|
2057
|
+
Etherlink: NOT_DEPLOYED
|
|
2030
2058
|
}
|
|
2031
2059
|
}
|
|
2032
2060
|
]
|
|
@@ -2050,7 +2078,8 @@ const contractParams = {
|
|
|
2050
2078
|
Berachain: NOT_DEPLOYED,
|
|
2051
2079
|
Avalanche: NOT_DEPLOYED,
|
|
2052
2080
|
BNB: NOT_DEPLOYED,
|
|
2053
|
-
WorldChain: NOT_DEPLOYED
|
|
2081
|
+
WorldChain: NOT_DEPLOYED,
|
|
2082
|
+
Etherlink: NOT_DEPLOYED
|
|
2054
2083
|
}
|
|
2055
2084
|
},
|
|
2056
2085
|
{
|
|
@@ -2066,7 +2095,8 @@ const contractParams = {
|
|
|
2066
2095
|
Berachain: NOT_DEPLOYED,
|
|
2067
2096
|
Avalanche: NOT_DEPLOYED,
|
|
2068
2097
|
BNB: NOT_DEPLOYED,
|
|
2069
|
-
WorldChain: NOT_DEPLOYED
|
|
2098
|
+
WorldChain: NOT_DEPLOYED,
|
|
2099
|
+
Etherlink: NOT_DEPLOYED
|
|
2070
2100
|
}
|
|
2071
2101
|
}
|
|
2072
2102
|
]
|
|
@@ -2090,7 +2120,8 @@ const contractParams = {
|
|
|
2090
2120
|
Berachain: NOT_DEPLOYED,
|
|
2091
2121
|
Avalanche: NOT_DEPLOYED,
|
|
2092
2122
|
BNB: NOT_DEPLOYED,
|
|
2093
|
-
WorldChain: NOT_DEPLOYED
|
|
2123
|
+
WorldChain: NOT_DEPLOYED,
|
|
2124
|
+
Etherlink: NOT_DEPLOYED
|
|
2094
2125
|
}
|
|
2095
2126
|
},
|
|
2096
2127
|
{
|
|
@@ -2106,7 +2137,8 @@ const contractParams = {
|
|
|
2106
2137
|
Berachain: NOT_DEPLOYED,
|
|
2107
2138
|
Avalanche: NOT_DEPLOYED,
|
|
2108
2139
|
BNB: NOT_DEPLOYED,
|
|
2109
|
-
WorldChain: NOT_DEPLOYED
|
|
2140
|
+
WorldChain: NOT_DEPLOYED,
|
|
2141
|
+
Etherlink: NOT_DEPLOYED
|
|
2110
2142
|
}
|
|
2111
2143
|
}
|
|
2112
2144
|
]
|
|
@@ -2130,7 +2162,8 @@ const contractParams = {
|
|
|
2130
2162
|
Berachain: NOT_DEPLOYED,
|
|
2131
2163
|
Avalanche: NOT_DEPLOYED,
|
|
2132
2164
|
BNB: NOT_DEPLOYED,
|
|
2133
|
-
WorldChain: NOT_DEPLOYED
|
|
2165
|
+
WorldChain: NOT_DEPLOYED,
|
|
2166
|
+
Etherlink: NOT_DEPLOYED
|
|
2134
2167
|
}
|
|
2135
2168
|
},
|
|
2136
2169
|
{
|
|
@@ -2146,7 +2179,8 @@ const contractParams = {
|
|
|
2146
2179
|
Berachain: NOT_DEPLOYED,
|
|
2147
2180
|
Avalanche: NOT_DEPLOYED,
|
|
2148
2181
|
BNB: NOT_DEPLOYED,
|
|
2149
|
-
WorldChain: NOT_DEPLOYED
|
|
2182
|
+
WorldChain: NOT_DEPLOYED,
|
|
2183
|
+
Etherlink: NOT_DEPLOYED
|
|
2150
2184
|
}
|
|
2151
2185
|
}
|
|
2152
2186
|
]
|
|
@@ -2167,7 +2201,8 @@ const contractParams = {
|
|
|
2167
2201
|
Berachain: NOT_DEPLOYED,
|
|
2168
2202
|
Avalanche: NOT_DEPLOYED,
|
|
2169
2203
|
BNB: NOT_DEPLOYED,
|
|
2170
|
-
WorldChain: NOT_DEPLOYED
|
|
2204
|
+
WorldChain: NOT_DEPLOYED,
|
|
2205
|
+
Etherlink: NOT_DEPLOYED
|
|
2171
2206
|
},
|
|
2172
2207
|
lpToken: "steCRV"
|
|
2173
2208
|
},
|
|
@@ -2196,7 +2231,8 @@ const contractParams = {
|
|
|
2196
2231
|
Berachain: NOT_DEPLOYED,
|
|
2197
2232
|
Avalanche: NOT_DEPLOYED,
|
|
2198
2233
|
BNB: NOT_DEPLOYED,
|
|
2199
|
-
WorldChain: NOT_DEPLOYED
|
|
2234
|
+
WorldChain: NOT_DEPLOYED,
|
|
2235
|
+
Etherlink: NOT_DEPLOYED
|
|
2200
2236
|
}
|
|
2201
2237
|
},
|
|
2202
2238
|
BALANCER_V3_ROUTER: {
|
|
@@ -2214,7 +2250,8 @@ const contractParams = {
|
|
|
2214
2250
|
Berachain: NOT_DEPLOYED,
|
|
2215
2251
|
Avalanche: NOT_DEPLOYED,
|
|
2216
2252
|
BNB: NOT_DEPLOYED,
|
|
2217
|
-
WorldChain: NOT_DEPLOYED
|
|
2253
|
+
WorldChain: NOT_DEPLOYED,
|
|
2254
|
+
Etherlink: NOT_DEPLOYED
|
|
2218
2255
|
}
|
|
2219
2256
|
},
|
|
2220
2257
|
AAVE_V2_LENDING_POOL: {
|
|
@@ -1600,7 +1600,8 @@ const tokenDataByNetwork = {
|
|
|
1600
1600
|
dWBNBv3: "0xef7d781825350d2bacb64ef7be927fd400dcdf4f",
|
|
1601
1601
|
ynBNBx: "0x32c830f5c34122c6afb8ae87aba541b7900a2c5f"
|
|
1602
1602
|
},
|
|
1603
|
-
WorldChain: {}
|
|
1603
|
+
WorldChain: {},
|
|
1604
|
+
Etherlink: {}
|
|
1604
1605
|
};
|
|
1605
1606
|
const tickerInfoTokensByNetwork = {
|
|
1606
1607
|
Mainnet: {
|
|
@@ -1998,7 +1999,8 @@ const tickerInfoTokensByNetwork = {
|
|
|
1998
1999
|
Berachain: {},
|
|
1999
2000
|
Avalanche: {},
|
|
2000
2001
|
BNB: {},
|
|
2001
|
-
WorldChain: {}
|
|
2002
|
+
WorldChain: {},
|
|
2003
|
+
Etherlink: {}
|
|
2002
2004
|
};
|
|
2003
2005
|
const tokenSymbolByAddress = Object.entries(tokenDataByNetwork).reduce(
|
|
2004
2006
|
(acc, [, tokens]) => ({
|
|
@@ -12,7 +12,8 @@ const TESTNET_CHAINS = {
|
|
|
12
12
|
Berachain: 7885,
|
|
13
13
|
Avalanche: 7886,
|
|
14
14
|
BNB: 7887,
|
|
15
|
-
WorldChain: 7889
|
|
15
|
+
WorldChain: 7889,
|
|
16
|
+
Etherlink: 7890
|
|
16
17
|
};
|
|
17
18
|
const CHAINS_BY_ID = TypedObjectUtils.swapKeyValue(TESTNET_CHAINS);
|
|
18
19
|
const MAINNET_BY_TESTNET_ID = TypedObjectUtils.entries(TESTNET_CHAINS).reduce((acc, [n, testnetId]) => {
|