@steerprotocol/sdk 3.1.0-test-archived-subgraph-support.2 → 3.2.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/index.browser.mjs +108 -14
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.cjs +114 -23356
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +108 -511
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +114 -23359
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.browser.mjs
CHANGED
|
@@ -55,6 +55,7 @@ let Chain = /* @__PURE__ */ function(Chain) {
|
|
|
55
55
|
Chain["Nibiru"] = "Nibiru";
|
|
56
56
|
Chain["Hyperevm"] = "Hyperevm";
|
|
57
57
|
Chain["Bittensor"] = "Bittensor";
|
|
58
|
+
Chain["Robinhood"] = "Robinhood";
|
|
58
59
|
return Chain;
|
|
59
60
|
}({});
|
|
60
61
|
const ChainId = {
|
|
@@ -107,7 +108,8 @@ const ChainId = {
|
|
|
107
108
|
Saga: 5464,
|
|
108
109
|
Nibiru: 6900,
|
|
109
110
|
Hyperevm: 999,
|
|
110
|
-
Bittensor: 964
|
|
111
|
+
Bittensor: 964,
|
|
112
|
+
Robinhood: 4663
|
|
111
113
|
};
|
|
112
114
|
let Protocol = /* @__PURE__ */ function(Protocol) {
|
|
113
115
|
Protocol["QuickSwap"] = "QuickSwap";
|
|
@@ -255,9 +257,16 @@ let MultiPositionManagers = /* @__PURE__ */ function(MultiPositionManagers) {
|
|
|
255
257
|
MultiPositionManagers["MultiPositionHydrex"] = "MultiPositionHydrex";
|
|
256
258
|
MultiPositionManagers["MultiPositionBittensorUniV3"] = "MultiPositionBittensorUniV3";
|
|
257
259
|
MultiPositionManagers["MultiPositionReserveV4"] = "MultiPositionReserveV4";
|
|
260
|
+
MultiPositionManagers["TestCypherAlgebraIntegralHook"] = "TestCypherAlgebraIntegralHook";
|
|
261
|
+
MultiPositionManagers["TestQuickswapAlgebraIntegralHook"] = "TestQuickswapAlgebraIntegralHook";
|
|
258
262
|
return MultiPositionManagers;
|
|
259
263
|
}({});
|
|
260
|
-
const AlgebgraHookBeacons = [
|
|
264
|
+
const AlgebgraHookBeacons = [
|
|
265
|
+
MultiPositionManagers.MultiPositionHenjinAlgebraHook,
|
|
266
|
+
MultiPositionManagers.AlgebraHook,
|
|
267
|
+
MultiPositionManagers.TestCypherAlgebraIntegralHook,
|
|
268
|
+
MultiPositionManagers.TestQuickswapAlgebraIntegralHook
|
|
269
|
+
];
|
|
261
270
|
const UniswapHookBeacons = [
|
|
262
271
|
MultiPositionManagers.MultiPositionUniswapV4Hook,
|
|
263
272
|
MultiPositionManagers.MultiPositionUniswapV4HookOld,
|
|
@@ -7961,6 +7970,54 @@ const bittensorAddresses = {
|
|
|
7961
7970
|
}
|
|
7962
7971
|
};
|
|
7963
7972
|
//#endregion
|
|
7973
|
+
//#region src/const/deployments/robinhood.ts
|
|
7974
|
+
const robinhoodAddresses = {
|
|
7975
|
+
KeeperRegistry: {
|
|
7976
|
+
address: "0xF6aB5f1faED774e62D30c2A65e39a5a25F8E14e7",
|
|
7977
|
+
startBlock: 8704501
|
|
7978
|
+
},
|
|
7979
|
+
Orchestrator: {
|
|
7980
|
+
address: "0x20B895F7C02e754AdC461e80b39a9e85f02e2bE3",
|
|
7981
|
+
startBlock: 8704962
|
|
7982
|
+
},
|
|
7983
|
+
StrategyRegistry: {
|
|
7984
|
+
address: "0xAc7D3A933c44b4D4bad6D5F0685900482E0d995E",
|
|
7985
|
+
startBlock: 8704773
|
|
7986
|
+
},
|
|
7987
|
+
VaultRegistry: {
|
|
7988
|
+
address: "0x5c7d564fA5CE0e874367121E33c1ff10dB2115dC",
|
|
7989
|
+
startBlock: 8705247
|
|
7990
|
+
},
|
|
7991
|
+
BundleRegistry: {
|
|
7992
|
+
address: "0xEe351402D6A89E4468D2E6fD0f702602AdeAde91",
|
|
7993
|
+
startBlock: 8705995
|
|
7994
|
+
},
|
|
7995
|
+
GasVault: {
|
|
7996
|
+
address: "0x3B4cAD7D6cd045bD038697a4EaA3AD5A99E5Aa70",
|
|
7997
|
+
startBlock: 8705555
|
|
7998
|
+
},
|
|
7999
|
+
WhitelistRegistry: {
|
|
8000
|
+
address: "0xCD31EbF762A5d1F88399E692316903767DA06Cf9",
|
|
8001
|
+
startBlock: 8705032
|
|
8002
|
+
},
|
|
8003
|
+
SteerPeriphery: {
|
|
8004
|
+
address: "0xCCd21830A8774484AE824AC05B3784D195686C7e",
|
|
8005
|
+
startBlock: 8705824
|
|
8006
|
+
},
|
|
8007
|
+
StakingRewards: {
|
|
8008
|
+
address: "0x8c78E9F6336bFC518B6651e3A2d02F745a94B09E",
|
|
8009
|
+
startBlock: 8705422
|
|
8010
|
+
},
|
|
8011
|
+
Helper: {
|
|
8012
|
+
address: "0x2af1bD206aAf5e74073691707d0A006ae2128ED3",
|
|
8013
|
+
startBlock: 8705074
|
|
8014
|
+
},
|
|
8015
|
+
FeeManager: {
|
|
8016
|
+
address: "0x22518d0C864F6C6391b76850d96D5fC27a7A45bD",
|
|
8017
|
+
startBlock: 8706188
|
|
8018
|
+
}
|
|
8019
|
+
};
|
|
8020
|
+
//#endregion
|
|
7964
8021
|
//#region src/const/deployments/berachainbartio.ts
|
|
7965
8022
|
const berachainbartioAddresses = {
|
|
7966
8023
|
"Orchestrator_Proxy": {
|
|
@@ -8841,6 +8898,15 @@ const networks = {
|
|
|
8841
8898
|
chainId: ChainId.Bittensor,
|
|
8842
8899
|
transactionType: 0,
|
|
8843
8900
|
...bittensorAddresses
|
|
8901
|
+
},
|
|
8902
|
+
[Chain.Robinhood]: {
|
|
8903
|
+
address: "0x0000000000000000000000000000000000000000",
|
|
8904
|
+
name: Chain.Robinhood,
|
|
8905
|
+
wrappedNativeToken: "WETH",
|
|
8906
|
+
isWrappingEnabled: false,
|
|
8907
|
+
chainId: ChainId.Robinhood,
|
|
8908
|
+
transactionType: 0,
|
|
8909
|
+
...robinhoodAddresses
|
|
8844
8910
|
}
|
|
8845
8911
|
};
|
|
8846
8912
|
for (const network of Object.values(networks)) {
|
|
@@ -9195,7 +9261,8 @@ const steerSubgraphConfig = {
|
|
|
9195
9261
|
[Chain.Saga]: offlineSubgraphUrl("saga"),
|
|
9196
9262
|
[Chain.Nibiru]: "https://app.sentio.xyz//api/v1/graphql/rakesh/steer-protocol-nibiru",
|
|
9197
9263
|
[Chain.Hyperevm]: "https://api.subgraph.ormilabs.com/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-hyperevm/prod/gn",
|
|
9198
|
-
[Chain.Bittensor]: "https://subgraph.35-247-158-26.sslip.io/subgraphs/name/steer-subgraph"
|
|
9264
|
+
[Chain.Bittensor]: "https://subgraph.35-247-158-26.sslip.io/subgraphs/name/steer-subgraph",
|
|
9265
|
+
[Chain.Robinhood]: "https://api.goldsky.com/api/public/project_cm2k9xbkz4qg901vs51bm5uau/subgraphs/steer-protocol-robinhood/prod/gn"
|
|
9199
9266
|
};
|
|
9200
9267
|
/**
|
|
9201
9268
|
* Retrieves the subgraph URL for a given chain ID.
|
|
@@ -14430,7 +14497,11 @@ const quickSwapAlgebraConfig = () => ({
|
|
|
14430
14497
|
const quickSwapIntegralConfig = (theGraphApiKey) => ({
|
|
14431
14498
|
beaconContract: MultiPositionManagers.MultiPositionQuickSwapIntegral,
|
|
14432
14499
|
beaconAlgebraHook: MultiPositionManagers.AlgebraHook,
|
|
14433
|
-
algebraHookSupportedChains: [Chain.Base],
|
|
14500
|
+
algebraHookSupportedChains: [Chain.Base, Chain.Polygon],
|
|
14501
|
+
algebraHookBeaconsByChain: {
|
|
14502
|
+
[Chain.Base]: [MultiPositionManagers.AlgebraHook],
|
|
14503
|
+
[Chain.Polygon]: [MultiPositionManagers.TestQuickswapAlgebraIntegralHook]
|
|
14504
|
+
},
|
|
14434
14505
|
subgraph: {
|
|
14435
14506
|
[Chain.Soneium]: getTheGraphResolverUrl("3GsT6AiuDiSzh2fXbFxUKtBxT8rBEGVdQCgHSsKMPHiu", false, theGraphApiKey),
|
|
14436
14507
|
[Chain.Base]: getTheGraphResolverUrl("U65NKb6BsDPGqugPAda58ebMLa1RqeMFT76fndB77oe", false, theGraphApiKey),
|
|
@@ -14552,6 +14623,7 @@ const sushiConfig = (theGraphApiKey) => ({
|
|
|
14552
14623
|
[Chain.Filecoin]: "https://sushi.laconic.com/subgraphs/name/sushiswap/v3-filecoin",
|
|
14553
14624
|
[Chain.Hemi]: "https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/GQU44ZBv8NpiBUxA6eLSDSdd7bs6TVop9dASKzrdirUv",
|
|
14554
14625
|
[Chain.Katana]: "https://api.goldsky.com/api/public/project_clslspm3c0knv01wvgfb2fqyq/subgraphs/sushiswap/v3-katana/gn",
|
|
14626
|
+
[Chain.Robinhood]: "https://api.goldsky.com/api/public/project_clslspm3c0knv01wvgfb2fqyq/subgraphs/sushiswap/v3-robinhood/gn",
|
|
14555
14627
|
[Chain.Mainnet]: getTheGraphResolverUrl("5nnoU1nUFeWqtXgbpC54L9PWdpgo7Y9HYinR3uTMsfzs", false, theGraphApiKey)
|
|
14556
14628
|
},
|
|
14557
14629
|
factoryAddress: {
|
|
@@ -14569,8 +14641,10 @@ const sushiConfig = (theGraphApiKey) => ({
|
|
|
14569
14641
|
[Chain.Filecoin]: "0xc35DADB65012eC5796536bD9864eD8773aBc74C4",
|
|
14570
14642
|
[Chain.Hemi]: "0xCdBCd51a5E8728E0AF4895ce5771b7d17fF71959",
|
|
14571
14643
|
[Chain.Katana]: "0x203e8740894c8955cB8950759876d7E7E45E04c1",
|
|
14644
|
+
[Chain.Robinhood]: "0xe51960f1b45f1c9fb6d166e6a884f866fc70433b",
|
|
14572
14645
|
[Chain.Mainnet]: "0xbaceb8ec6b9355dfc0269c18bac9d6e2bdc29c4f"
|
|
14573
14646
|
},
|
|
14647
|
+
NFTManagerAddress: { [Chain.Robinhood]: "0x51d0e5188afe12d502e29d982d20c190e7816107" },
|
|
14574
14648
|
TickLensAddress: {
|
|
14575
14649
|
[Chain.Polygon]: "0x9fdeA1412e50D78B25aCE4f96d35801647Fdf7dA",
|
|
14576
14650
|
[Chain.Arbitrum]: "0x8516944E89f296eb6473d79aED1Ba12088016c9e",
|
|
@@ -14586,6 +14660,7 @@ const sushiConfig = (theGraphApiKey) => ({
|
|
|
14586
14660
|
[Chain.Filecoin]: "0x1be211D8DA40BC0ae8719c6663307Bfc987b1d6c",
|
|
14587
14661
|
[Chain.Hemi]: "0x1f2FCf1d036b375b384012e61D3AA33F8C256bbE",
|
|
14588
14662
|
[Chain.Katana]: "0x35DC3E13469E980c37b6F288BBb9822B1f9bD435",
|
|
14663
|
+
[Chain.Robinhood]: "0x80126a8d806d029ac551ac6f30baf06b785175d1",
|
|
14589
14664
|
[Chain.Mainnet]: "0xfb70ad5a200d784e7901230e6875d91d5fa6b68c"
|
|
14590
14665
|
},
|
|
14591
14666
|
swapRouterAddress: {
|
|
@@ -14593,7 +14668,10 @@ const sushiConfig = (theGraphApiKey) => ({
|
|
|
14593
14668
|
[Chain.Base]: "0xFB7eF66a7e61224DD6FcD0D7d9C3be5C8B049b9f",
|
|
14594
14669
|
[Chain.Linea]: "0xc14Ee6B248787847527e11b8d7Cf257b212f7a9F"
|
|
14595
14670
|
},
|
|
14596
|
-
initCodeHash: {
|
|
14671
|
+
initCodeHash: {
|
|
14672
|
+
[Chain.Blast]: "0x8e13daee7f5a62e37e71bf852bcd44e7d16b90617ed2b17c24c2ee62411c5bae",
|
|
14673
|
+
[Chain.Robinhood]: "0xe34f199b19b2b4f47f68442619d555527d244f78a3297ea89325f843f87b8b54"
|
|
14674
|
+
},
|
|
14597
14675
|
QuoterV2Address: {
|
|
14598
14676
|
[Chain.Polygon]: "0xb1E835Dc2785b52265711e17fCCb0fd018226a6e",
|
|
14599
14677
|
[Chain.Optimism]: "0xb1E835Dc2785b52265711e17fCCb0fd018226a6e",
|
|
@@ -14608,6 +14686,7 @@ const sushiConfig = (theGraphApiKey) => ({
|
|
|
14608
14686
|
[Chain.Filecoin]: "0x9B3fF703FA9C8B467F5886d7b61E61ba07a9b51c",
|
|
14609
14687
|
[Chain.Hemi]: "0x779EA16ebe59bdFa7230aa4F40D876446e387856",
|
|
14610
14688
|
[Chain.Katana]: "0x92dea23ED1C683940fF1a2f8fE23FE98C5d3041c",
|
|
14689
|
+
[Chain.Robinhood]: "0x3e290e5e01818002a0b672148bdc7514d861c7b3",
|
|
14611
14690
|
[Chain.Mainnet]: "0x64e8802FE490fa7cc61d3463958199161Bb608A7"
|
|
14612
14691
|
}
|
|
14613
14692
|
});
|
|
@@ -14974,10 +15053,14 @@ const aerodromeV2Config = (theGraphApiKey) => ({
|
|
|
14974
15053
|
//#region src/const/amm/configs/protocols/cypher.ts
|
|
14975
15054
|
const cypherConfig = (theGraphApiKey) => ({
|
|
14976
15055
|
beaconContract: MultiPositionManagers.MultiPositionCypher,
|
|
15056
|
+
algebraHookSupportedChains: [Chain.Mainnet],
|
|
15057
|
+
beaconAlgebraHook: MultiPositionManagers.TestCypherAlgebraIntegralHook,
|
|
15058
|
+
algebraHookBeaconsByChain: { [Chain.Mainnet]: [MultiPositionManagers.TestCypherAlgebraIntegralHook] },
|
|
14977
15059
|
subgraph: { [Chain.Mainnet]: getTheGraphResolverUrl("8knsFRJjoEtsRECVSdxhfbvidipCMdBjXx1hQmMRujHx", false, theGraphApiKey) },
|
|
14978
15060
|
factoryAddress: { [Chain.Mainnet]: "0xfb8Ed3485EfA29a0e4bed93351dD51B59fC4b0f0" },
|
|
14979
15061
|
TickLensAddress: { [Chain.Mainnet]: "0x4DA465E96E586B127ac0c8d02871Aa73F226cCC4" },
|
|
14980
|
-
Quoter: { [Chain.Mainnet]: "0xeae871C4a8dD267146558C362c86805FB7e3Fd2F" }
|
|
15062
|
+
Quoter: { [Chain.Mainnet]: "0xeae871C4a8dD267146558C362c86805FB7e3Fd2F" },
|
|
15063
|
+
EntryPointAddress: { [Chain.Mainnet]: "0x79616564DB0294ecBa5912f1cE985FD1c11eeF51" }
|
|
14981
15064
|
});
|
|
14982
15065
|
//#endregion
|
|
14983
15066
|
//#region src/const/amm/configs/protocols/spark-integral.ts
|
|
@@ -15287,8 +15370,11 @@ const CUSTOM_BEACON_TO_PROTOCOL_MAP = {
|
|
|
15287
15370
|
[MultiPositionManagers.MultiPositionHenjinAlgebraHook]: Protocol.Henjin,
|
|
15288
15371
|
[MultiPositionManagers.MultiPositionBittensorUniV3]: Protocol.BittensorUniV3,
|
|
15289
15372
|
[MultiPositionManagers.MultiPositionAerodromeV3]: Protocol.AerodromeV3,
|
|
15290
|
-
[MultiPositionManagers.MultiPositionReserveV4]: Protocol.UniswapV4
|
|
15373
|
+
[MultiPositionManagers.MultiPositionReserveV4]: Protocol.UniswapV4,
|
|
15374
|
+
[MultiPositionManagers.TestCypherAlgebraIntegralHook]: Protocol.Cypher,
|
|
15375
|
+
[MultiPositionManagers.TestQuickswapAlgebraIntegralHook]: Protocol.QuickSwapIntegral
|
|
15291
15376
|
};
|
|
15377
|
+
const getCustomProtocolByBeacon = (beacon) => CUSTOM_BEACON_TO_PROTOCOL_MAP[beacon] || Object.entries(CUSTOM_BEACON_TO_PROTOCOL_MAP).find(([customBeacon]) => customBeacon.toLowerCase() === beacon.toLowerCase())?.[1];
|
|
15292
15378
|
/**`
|
|
15293
15379
|
* Retrieves the beacon name associated with a given protocol.
|
|
15294
15380
|
*
|
|
@@ -15316,10 +15402,13 @@ function getBeaconNameByProtocol(protocol) {
|
|
|
15316
15402
|
*/
|
|
15317
15403
|
const getProtocolConfigByBeacon = (beacon, theGraphApiKey) => {
|
|
15318
15404
|
if (!beacon) return null;
|
|
15405
|
+
const protocolConfig = getAmmConfig(theGraphApiKey);
|
|
15406
|
+
const customProtocol = getCustomProtocolByBeacon(beacon);
|
|
15407
|
+
if (customProtocol) return protocolConfig[customProtocol];
|
|
15319
15408
|
const beaconLower = beacon.toLowerCase();
|
|
15320
15409
|
const matchedProtocol = Object.entries(BEACON_TO_PROTOCOL_MAP).find(([key]) => beaconLower.includes(key));
|
|
15321
15410
|
if (!matchedProtocol) return null;
|
|
15322
|
-
return
|
|
15411
|
+
return protocolConfig[matchedProtocol[1]];
|
|
15323
15412
|
};
|
|
15324
15413
|
/**
|
|
15325
15414
|
* Determines the protocol type from a given beacon identifier.
|
|
@@ -15334,7 +15423,8 @@ const getProtocolConfigByBeacon = (beacon, theGraphApiKey) => {
|
|
|
15334
15423
|
*/
|
|
15335
15424
|
function getProtocolTypeByBeacon(beacon) {
|
|
15336
15425
|
if (!beacon) return null;
|
|
15337
|
-
|
|
15426
|
+
const customProtocol = getCustomProtocolByBeacon(beacon);
|
|
15427
|
+
if (customProtocol) return customProtocol;
|
|
15338
15428
|
const beaconLower = beacon.toLowerCase();
|
|
15339
15429
|
const matchedProtocol = Object.entries(BEACON_TO_SUPPORTED_PROTOCOL_MAP).sort(([a], [b]) => b.length - a.length).find(([key]) => beaconLower.includes(key));
|
|
15340
15430
|
return matchedProtocol ? matchedProtocol[1] : null;
|
|
@@ -19619,14 +19709,18 @@ var VaultClient = class extends SubgraphClient {
|
|
|
19619
19709
|
const normalizedProtocol = this.normalizeProtocolValue(protocol);
|
|
19620
19710
|
return Object.values(Protocol).find((protocolValue) => this.normalizeProtocolValue(protocolValue) === normalizedProtocol) || null;
|
|
19621
19711
|
}
|
|
19622
|
-
getProtocolBeaconNames(protocol) {
|
|
19712
|
+
getProtocolBeaconNames(protocol, chainId) {
|
|
19623
19713
|
const resolvedProtocol = this.resolveProtocolEnum(protocol);
|
|
19624
19714
|
if (!resolvedProtocol) return [];
|
|
19625
19715
|
const protocolConfig = getAmmConfig(this.subgraphStudioKey)[resolvedProtocol];
|
|
19626
19716
|
const beaconNames = [];
|
|
19717
|
+
const chain = chainId ? chainIdToName(chainId) : void 0;
|
|
19627
19718
|
if (protocolConfig?.beaconContract) beaconNames.push(protocolConfig.beaconContract);
|
|
19628
19719
|
if (protocolConfig?.additionalBeaconContracts?.length) beaconNames.push(...protocolConfig.additionalBeaconContracts);
|
|
19629
19720
|
if (protocolConfig?.beaconContractSushiManaged) beaconNames.push(protocolConfig.beaconContractSushiManaged);
|
|
19721
|
+
if (protocolConfig?.algebraHookBeaconsByChain) if (chain) beaconNames.push(...protocolConfig.algebraHookBeaconsByChain[chain] || []);
|
|
19722
|
+
else beaconNames.push(...Object.values(protocolConfig.algebraHookBeaconsByChain).flat());
|
|
19723
|
+
if (protocolConfig?.beaconAlgebraHook && (!chain || protocolConfig.algebraHookSupportedChains?.includes(chain) && !protocolConfig.algebraHookBeaconsByChain?.[chain]?.length)) beaconNames.push(protocolConfig.beaconAlgebraHook);
|
|
19630
19724
|
if (resolvedProtocol === Protocol.Blackhole) beaconNames.push(MultiPositionManagers.MultiPositionBlackholeOld);
|
|
19631
19725
|
const beaconAlias = getBeaconNameByProtocol(resolvedProtocol);
|
|
19632
19726
|
if (beaconAlias) beaconNames.push(beaconAlias);
|
|
@@ -19668,7 +19762,7 @@ var VaultClient = class extends SubgraphClient {
|
|
|
19668
19762
|
const normalizedExpectedBeacon = this.normalizeProtocolValue(expectedBeacon);
|
|
19669
19763
|
if (normalizedExpectedBeacon.length > 0 && normalizedBeaconName.includes(normalizedExpectedBeacon)) return true;
|
|
19670
19764
|
if (!resolvedProtocol) return false;
|
|
19671
|
-
return this.getProtocolBeaconNames(resolvedProtocol).some((beacon) => {
|
|
19765
|
+
return this.getProtocolBeaconNames(resolvedProtocol, vault.chainId).some((beacon) => {
|
|
19672
19766
|
const normalizedBeacon = this.normalizeProtocolValue(beacon);
|
|
19673
19767
|
return normalizedBeacon.length > 0 && normalizedBeaconName === normalizedBeacon;
|
|
19674
19768
|
});
|
|
@@ -19972,7 +20066,7 @@ var VaultClient = class extends SubgraphClient {
|
|
|
19972
20066
|
if (!chain) throw new Error(`Unsupported chainId: ${chainId}`);
|
|
19973
20067
|
const subgraphUrl = steerSubgraphConfig[chain];
|
|
19974
20068
|
if (!subgraphUrl) throw new Error(`No subgraph configured for chain: ${chain}`);
|
|
19975
|
-
const beaconNames = this.getProtocolBeaconNames(filter?.protocol);
|
|
20069
|
+
const beaconNames = this.getProtocolBeaconNames(filter?.protocol, chainId);
|
|
19976
20070
|
if (filter?.beaconName) beaconNames.push(filter.beaconName);
|
|
19977
20071
|
const uniqueBeaconNames = [...new Set(beaconNames.filter((name) => name.length > 0))];
|
|
19978
20072
|
const subgraphVaults = await this.subgraphVaultClient.getAllVaultsFromSubgraph({
|
|
@@ -20092,7 +20186,7 @@ var VaultClient = class extends SubgraphClient {
|
|
|
20092
20186
|
if (!chain) throw new Error(`Unsupported chainId: ${chainId}`);
|
|
20093
20187
|
const subgraphUrl = steerSubgraphConfig[chain];
|
|
20094
20188
|
if (!subgraphUrl) throw new Error(`No subgraph configured for chain: ${chain}`);
|
|
20095
|
-
const beaconNames = this.getProtocolBeaconNames(filter?.protocol);
|
|
20189
|
+
const beaconNames = this.getProtocolBeaconNames(filter?.protocol, chainId);
|
|
20096
20190
|
if (filter?.beaconName) beaconNames.push(filter.beaconName);
|
|
20097
20191
|
const uniqueBeaconNames = [...new Set(beaconNames.filter((name) => name.length > 0))];
|
|
20098
20192
|
const subgraphVaults = await this.subgraphVaultClient.getAllVaultsFromSubgraph({
|
|
@@ -23583,6 +23677,6 @@ var FeeManagerClient = class extends SubgraphClient {
|
|
|
23583
23677
|
* See {@link SmartRewards} for detailed API documentation.
|
|
23584
23678
|
*/
|
|
23585
23679
|
//#endregion
|
|
23586
|
-
export { AERODROME_PROTOCOLS, ALGEBRA_INTEGRAL_PROTOCOLS, ALGEBRA_INTEGRAL_V_2_0_PROTOCOLS, ALGEBRA_PROTOCOLS, AMMType, API_URLS, AlgebgraHookBeacons, Chain, ChainId, DIRECTIONAL_ALGEBRA_PROTOCOLS, FEE_MANAGER_ABI, FeeManagerClient, MultiPositionManagers, POOLSHARK_PROTOCOLS, PoolClient, Protocol, QuickSwapQuoterV2, QuoterV2AlgebgraIntegral, QuoterV2AlgebgraIntegral21, QuoterV2Factory, QuoterV2Shadow, QuoterV2Thick, SHADOW_PROTOCOLS, SingleAssetDepositClient, SmartRewards, StakingClient, StakingProtocol, SteerClient, StrykePositionManagers, SubgraphClient, SubgraphVaultClient, UniswapHookBeacons, UniswapV3PoolABI, UniswapV3QuoterABI, VAULT_FEES_ABI, VaultClient, abis, apechainAddresses, arbitrumAddresses, arbitrumgoerliAddresses, arthswapConfig, astarAddresses, astarzkevmAddresses, avalancheAddresses, bartiotestAddresses, baseAddresses, baseSwapConfig, basexConfig, beraAddresses, bittensorAddresses, bittensorUniV3Config, blastAddresses, bscAddresses, calculateLimitPrice, calculateSwapAmount, camelotConfig, celoAddresses, chainIdToName, chainNameToId, crustConfig, deprecatedBundlesURL, determineSwapDirection, equilibreConfig, erc1155Abi, erc20Abi, erc721Abi, estimateLpTokens, ethAddresses, evmosAddresses, fantomAddresses, fenixConfig, filecoinAddresses, flareAddresses, forgeConfig, fusionxConfig, getAmmConfig, getAmmConfigByChainId, getApiUrl, getBeaconNameByProtocol, getContractAddressByChainIdAndContractName, getExpectedParamType, getFactoryAddress, getInitCodeHash, getNFTManagerAddress, getNetworkByChainId, getPoolHelperByChainId, getPoolSlot0, getProtcolTypeByAmmType, getProtocolBySubgraph, getProtocolConfigByBeacon, getProtocolContractAddresses, getProtocolInfoByChainId, getProtocolInfoByName, getProtocolSubgraphURL, getProtocolTypeByBeacon, getProtocolsForChainId, getQuoterV2Address, getStabilityVaultsPeripheryAddress, getStabilityVaultsSubgraphUrl, getSubgraphUrlByChainId, getSupportedChainByChainId, getSupportedChainIds, getSupportedChains, getSwapRouterAddress, getTheGraphResolverUrl, getTickLensAddress, getVaultReserves, glyphConfig, goerliAddresses, hemiAddresses, henjinConfig, herculesConfig, horizaConfig, isAerodromeVault, isAlgebraDirectionProtocol, isAlgebraIntegral21QuoteParams, isAlgebraIntegralProtocol, isAlgebraIntegralV2Protocol, isAlgebraProtocol, isAlgebraProtocolBySubgraph, isAlgebraQuoteParams, isPoolSharkProtocol, isShadowProtocol, isShadowQuoteParams, isSingleAssetDepositSupported, isThickQuoteParams, isThickV2Protocol, isUniswapQuoteParams, isValidStakingProtocol, katanaAddresses, katanaConfig, kavaAddresses, kimConfig, kinetixConfig, lineaAddresses, linehubConfig, localhostAddresses, lynexConfig, maiaConfig, mantaAddresses, mantleAddresses, metaVaultConfig, metisAddresses, modeAddresses, moonbeamAddresses, mumbaiAddresses, nestVaultConfig, networks, normalizeProtocol, novaswapConfig, okxtestnetAddresses, optimismAddresses, optimismgoerliAddresses, pancakeSwapConfig, polygonAddresses, polyzkevmAddresses, poolsharkConfig, quickSwapAlgebraConfig, quickSwapConfig, quickSwapIntegralConfig, quickSwapUniv3Config, retroConfig, rootstockAddresses, sagaAddresses, scrollAddresses, seiAddresses, shadowConfig, simulateSwap, singleTokenDepositAbi, soneiumAddresses, sonicAddresses, spark32Config, sparkConfig, stabilityVaultsConfig, steerSubgraphConfig, supswapConfig, sushiConfig, swapmodeConfig, swapsicleConfig, taikoAddresses, telosAddresses, thenaConfig, thickConfig, thrusterConfig, thundercoreAddresses, uniAddresses, uniswapConfig, validateQuoteParams, validateSwapParams, xlayerAddresses, zetaAddresses, zircuitAddresses };
|
|
23680
|
+
export { AERODROME_PROTOCOLS, ALGEBRA_INTEGRAL_PROTOCOLS, ALGEBRA_INTEGRAL_V_2_0_PROTOCOLS, ALGEBRA_PROTOCOLS, AMMType, API_URLS, AlgebgraHookBeacons, Chain, ChainId, DIRECTIONAL_ALGEBRA_PROTOCOLS, FEE_MANAGER_ABI, FeeManagerClient, MultiPositionManagers, POOLSHARK_PROTOCOLS, PoolClient, Protocol, QuickSwapQuoterV2, QuoterV2AlgebgraIntegral, QuoterV2AlgebgraIntegral21, QuoterV2Factory, QuoterV2Shadow, QuoterV2Thick, SHADOW_PROTOCOLS, SingleAssetDepositClient, SmartRewards, StakingClient, StakingProtocol, SteerClient, StrykePositionManagers, SubgraphClient, SubgraphVaultClient, UniswapHookBeacons, UniswapV3PoolABI, UniswapV3QuoterABI, VAULT_FEES_ABI, VaultClient, abis, apechainAddresses, arbitrumAddresses, arbitrumgoerliAddresses, arthswapConfig, astarAddresses, astarzkevmAddresses, avalancheAddresses, bartiotestAddresses, baseAddresses, baseSwapConfig, basexConfig, beraAddresses, bittensorAddresses, bittensorUniV3Config, blastAddresses, bscAddresses, calculateLimitPrice, calculateSwapAmount, camelotConfig, celoAddresses, chainIdToName, chainNameToId, crustConfig, deprecatedBundlesURL, determineSwapDirection, equilibreConfig, erc1155Abi, erc20Abi, erc721Abi, estimateLpTokens, ethAddresses, evmosAddresses, fantomAddresses, fenixConfig, filecoinAddresses, flareAddresses, forgeConfig, fusionxConfig, getAmmConfig, getAmmConfigByChainId, getApiUrl, getBeaconNameByProtocol, getContractAddressByChainIdAndContractName, getExpectedParamType, getFactoryAddress, getInitCodeHash, getNFTManagerAddress, getNetworkByChainId, getPoolHelperByChainId, getPoolSlot0, getProtcolTypeByAmmType, getProtocolBySubgraph, getProtocolConfigByBeacon, getProtocolContractAddresses, getProtocolInfoByChainId, getProtocolInfoByName, getProtocolSubgraphURL, getProtocolTypeByBeacon, getProtocolsForChainId, getQuoterV2Address, getStabilityVaultsPeripheryAddress, getStabilityVaultsSubgraphUrl, getSubgraphUrlByChainId, getSupportedChainByChainId, getSupportedChainIds, getSupportedChains, getSwapRouterAddress, getTheGraphResolverUrl, getTickLensAddress, getVaultReserves, glyphConfig, goerliAddresses, hemiAddresses, henjinConfig, herculesConfig, horizaConfig, isAerodromeVault, isAlgebraDirectionProtocol, isAlgebraIntegral21QuoteParams, isAlgebraIntegralProtocol, isAlgebraIntegralV2Protocol, isAlgebraProtocol, isAlgebraProtocolBySubgraph, isAlgebraQuoteParams, isPoolSharkProtocol, isShadowProtocol, isShadowQuoteParams, isSingleAssetDepositSupported, isThickQuoteParams, isThickV2Protocol, isUniswapQuoteParams, isValidStakingProtocol, katanaAddresses, katanaConfig, kavaAddresses, kimConfig, kinetixConfig, lineaAddresses, linehubConfig, localhostAddresses, lynexConfig, maiaConfig, mantaAddresses, mantleAddresses, metaVaultConfig, metisAddresses, modeAddresses, moonbeamAddresses, mumbaiAddresses, nestVaultConfig, networks, normalizeProtocol, novaswapConfig, okxtestnetAddresses, optimismAddresses, optimismgoerliAddresses, pancakeSwapConfig, polygonAddresses, polyzkevmAddresses, poolsharkConfig, quickSwapAlgebraConfig, quickSwapConfig, quickSwapIntegralConfig, quickSwapUniv3Config, retroConfig, robinhoodAddresses, rootstockAddresses, sagaAddresses, scrollAddresses, seiAddresses, shadowConfig, simulateSwap, singleTokenDepositAbi, soneiumAddresses, sonicAddresses, spark32Config, sparkConfig, stabilityVaultsConfig, steerSubgraphConfig, supswapConfig, sushiConfig, swapmodeConfig, swapsicleConfig, taikoAddresses, telosAddresses, thenaConfig, thickConfig, thrusterConfig, thundercoreAddresses, uniAddresses, uniswapConfig, validateQuoteParams, validateSwapParams, xlayerAddresses, zetaAddresses, zircuitAddresses };
|
|
23587
23681
|
|
|
23588
23682
|
//# sourceMappingURL=index.browser.mjs.map
|