@steerprotocol/sdk 3.1.0-test-archived-subgraph-support.1 → 3.1.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 +140 -48
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.cjs +146 -23390
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +113 -511
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +146 -23393
- 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)) {
|
|
@@ -9143,59 +9209,58 @@ const deprecatedBundlesURL = "https://api.steer.finance/deprecated-bundles";
|
|
|
9143
9209
|
* Each chain has a dedicated subgraph URL for querying protocol data.
|
|
9144
9210
|
* Updated each chains for ormi and thegraph
|
|
9145
9211
|
*/
|
|
9146
|
-
const offlineSubgraphBaseUrl = "https://steer-subgraph-archive.shine-lamb.workers.dev/graphql";
|
|
9147
|
-
const offlineSubgraphUrl = (chain) => `${offlineSubgraphBaseUrl}/${chain}`;
|
|
9148
9212
|
const steerSubgraphConfig = {
|
|
9149
9213
|
[Chain.Polygon]: "https://api.subgraph.ormilabs.com/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-polygon/prod/gn",
|
|
9150
9214
|
[Chain.BSC]: "https://api.subgraph.ormilabs.com/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-bsc-beta/prod/gn",
|
|
9151
9215
|
[Chain.Optimism]: "https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/GgW1EwNARL3dyo3acQ3VhraQQ66MHT7QnYuGcQc5geDG",
|
|
9152
9216
|
[Chain.Arbitrum]: "https://api.subgraph.ormilabs.com/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-arbitrum/prod/gn",
|
|
9153
|
-
[Chain.Evmos]:
|
|
9154
|
-
[Chain.Thundercore]:
|
|
9155
|
-
[Chain.Metis]:
|
|
9217
|
+
[Chain.Evmos]: "https://subgraph.satsuma-prod.com/769a117cc018/steer/steer-protocol-evmos/api",
|
|
9218
|
+
[Chain.Thundercore]: "https://subgraph.steer.finance/thundercore/subgraphs/name/steerprotocol/steer-thundercore",
|
|
9219
|
+
[Chain.Metis]: "https://api.metis.0xgraph.xyz/api/public/b88b5696-b69d-46be-b212-5c55a9b1492f/subgraphs/steer-protocol-metis/prod/gn",
|
|
9156
9220
|
[Chain.Base]: "https://api.subgraph.ormilabs.com/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-base/beta/gn",
|
|
9157
9221
|
[Chain.Avalanche]: "https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/GZotTj3rQJ8ZqVyodtK8TcnKcUxMgeF7mCJHGPYbu8dA",
|
|
9158
|
-
[Chain.PolygonzkEVM]:
|
|
9222
|
+
[Chain.PolygonzkEVM]: "https://api.goldsky.com/api/public/project_clohj3ta78ok12nzs5m8yag0b/subgraphs/steer-protocol-polygon-zkevm/prod/gn",
|
|
9159
9223
|
[Chain.Celo]: "https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/BPaFHyfVrhv3pdjGodpQcWggAg1Bcrvc9SFc2t2BXeho",
|
|
9160
|
-
[Chain.Kava]:
|
|
9224
|
+
[Chain.Kava]: "https://api.goldsky.com/api/public/project_clohj3ta78ok12nzs5m8yag0b/subgraphs/steer-protocol-kava/prod/gn",
|
|
9161
9225
|
[Chain.Linea]: "https://api.subgraph.ormilabs.com/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-linea/prod/gn",
|
|
9162
|
-
[Chain.Scroll]:
|
|
9163
|
-
[Chain.Manta]:
|
|
9164
|
-
[Chain.Astar]:
|
|
9165
|
-
[Chain.Fantom]:
|
|
9226
|
+
[Chain.Scroll]: "https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/822PfgbgBzC98Huwf37uxvF9YGZMA5nDeETpstkR55Sn",
|
|
9227
|
+
[Chain.Manta]: "https://api.subgraph.ormilabs.com/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-manta/prod/gn",
|
|
9228
|
+
[Chain.Astar]: "https://api.goldsky.com/api/public/project_clohj3ta78ok12nzs5m8yag0b/subgraphs/steer-protocol-astar/prod/gn",
|
|
9229
|
+
[Chain.Fantom]: "https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/9uyX2WDuaxmcYh11ehUhU68M9uSCp5FXVQV2w4LqbpbV",
|
|
9166
9230
|
[Chain.OkxTestnet]: "https://subgraph.steer.finance/steer-x1-testnet/subgraphs/name/steerprotocol/steer-okxtestnet",
|
|
9167
|
-
[Chain.Mantle]:
|
|
9168
|
-
[Chain.AstarZkevm]:
|
|
9169
|
-
[Chain.Blast]:
|
|
9170
|
-
[Chain.Mode]:
|
|
9171
|
-
[Chain.Telos]:
|
|
9172
|
-
[Chain.XLayer]:
|
|
9173
|
-
[Chain.Taiko]:
|
|
9231
|
+
[Chain.Mantle]: "https://subgraph-api.mantle.xyz/subgraphs/name/steerprotocol/steer-protocol-mantle",
|
|
9232
|
+
[Chain.AstarZkevm]: "https://api.goldsky.com/api/public/project_clohj3ta78ok12nzs5m8yag0b/subgraphs/steer-protocol-astar-zkevm/1.1.1/gn",
|
|
9233
|
+
[Chain.Blast]: "https://api.subgraph.ormilabs.com/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-blast/prod/gn",
|
|
9234
|
+
[Chain.Mode]: "https://api.subgraph.ormilabs.com/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-mode/prod/gn",
|
|
9235
|
+
[Chain.Telos]: "https://telos.api.ormilabs.com/api/public/39892398-bfdd-48ac-b776-77ad8a5b4b9e/subgraphs/steer-protocol-telos/prod/gn",
|
|
9236
|
+
[Chain.XLayer]: "https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/8gCrUHrVS9rHwvDPLTn4Wz6od68ULb7azYuQz25JjRK3",
|
|
9237
|
+
[Chain.Taiko]: "https://api.subgraph.ormilabs.com/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-taiko/prod/gn",
|
|
9174
9238
|
[Chain.Rootstock]: "https://api.goldsky.com/api/public/project_cm2k9xbkz4qg901vs51bm5uau/subgraphs/steer-protocol-rootstock/prod/gn",
|
|
9175
|
-
[Chain.ZklinkNova]:
|
|
9239
|
+
[Chain.ZklinkNova]: "https://api.goldsky.com/api/public/project_cmmz9rcn2gc0j01w36xbo3wcn/subgraphs/steer-protocol-zklink-nova/prod/gn",
|
|
9176
9240
|
[Chain.Flare]: "https://api.goldsky.com/api/public/project_cm2k9xbkz4qg901vs51bm5uau/subgraphs/steer-protocol-flare/prod/gn",
|
|
9177
|
-
[Chain.BeraChainBartio]:
|
|
9178
|
-
[Chain.Filecoin]:
|
|
9179
|
-
[Chain.Apechain]:
|
|
9180
|
-
[Chain.Zircuit]:
|
|
9181
|
-
[Chain.Moonbeam]:
|
|
9182
|
-
[Chain.Sei]:
|
|
9183
|
-
[Chain.Sonic]:
|
|
9184
|
-
[Chain.Zeta]:
|
|
9241
|
+
[Chain.BeraChainBartio]: "https://api.goldsky.com/api/public/project_clohj3ta78ok12nzs5m8yag0b/subgraphs/steer-protocol-berachain-bartio/prod/gn",
|
|
9242
|
+
[Chain.Filecoin]: "https://api.goldsky.com/api/public/project_cmmz8w4e274al01vsa0wa7cj3/subgraphs/steer-protocol-filecoin/prod/gn",
|
|
9243
|
+
[Chain.Apechain]: "https://apeapi.0xgraph.xyz/api/public/4ea21b03-9850-4796-8068-ec71bbe022db/subgraphs/steer-protocol-apechain/prod/gn",
|
|
9244
|
+
[Chain.Zircuit]: "https://app.sentio.xyz/api/v1/graphql/rakesh/steer-protocol-zircuit?version=3",
|
|
9245
|
+
[Chain.Moonbeam]: "https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/4D2pLLQuGsAkdZAUgqxxnk4Mcu3aMjEV1HJ2F63kC7w6",
|
|
9246
|
+
[Chain.Sei]: "https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/6uQm26z2NM2eV56sjZmVezUjBAC8jMx683B1cUencDwt",
|
|
9247
|
+
[Chain.Sonic]: "https://api.0xgraph.xyz/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-sonic/prod/gn",
|
|
9248
|
+
[Chain.Zeta]: "https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/HFH41DyzAXxYmT5eszVWn2T7UxViMroPJ4XJV8vhDGNN",
|
|
9185
9249
|
[Chain.Mainnet]: "https://api.subgraph.ormilabs.com/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-mainnet/prod/gn",
|
|
9186
|
-
[Chain.Soneium]:
|
|
9250
|
+
[Chain.Soneium]: "https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/8gCrUHrVS9rHwvDPLTn4Wz6od68ULb7azYuQz25JjRK3",
|
|
9187
9251
|
[Chain.Bera]: "https://api.subgraph.ormilabs.com/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-bera/prod/gn",
|
|
9188
9252
|
[Chain.Unichain]: "https://api.goldsky.com/api/public/project_cmnrgd4exaie801sa45a1609h/subgraphs/steer-protocol-unichain/prod/gn",
|
|
9189
|
-
[Chain.Hemi]:
|
|
9190
|
-
[Chain.TataraTestnet]:
|
|
9191
|
-
[Chain.Core]:
|
|
9192
|
-
[Chain.Peaq]:
|
|
9253
|
+
[Chain.Hemi]: "https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/2eACJtEGuELqN5roUiHG1jqmCpXt5aimcc8xZdvtMv4z",
|
|
9254
|
+
[Chain.TataraTestnet]: "https://api.studio.thegraph.com/query/78728/steer-protocol-tatara-testnet/version/latest",
|
|
9255
|
+
[Chain.Core]: "https://thegraph.coredao.org/subgraphs/name/steer-protocol-core",
|
|
9256
|
+
[Chain.Peaq]: "https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/45pjWAnAXULpS6UDajzCtLcZYuohwuMm4UuSDjegMKAT",
|
|
9193
9257
|
[Chain.Katana]: "https://api.subgraph.ormilabs.com/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-katana/prod/gn",
|
|
9194
|
-
[Chain.Ronin]:
|
|
9195
|
-
[Chain.Saga]:
|
|
9258
|
+
[Chain.Ronin]: "https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/793Lz5oiK51wdm9kCLtHqunkAPk2qjg7denpCrHqrLcA",
|
|
9259
|
+
[Chain.Saga]: "https://api.subgraph.ormilabs.com/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-saga/prod/gn",
|
|
9196
9260
|
[Chain.Nibiru]: "https://app.sentio.xyz//api/v1/graphql/rakesh/steer-protocol-nibiru",
|
|
9197
9261
|
[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"
|
|
9262
|
+
[Chain.Bittensor]: "https://subgraph.35-247-158-26.sslip.io/subgraphs/name/steer-subgraph",
|
|
9263
|
+
[Chain.Robinhood]: "https://api.goldsky.com/api/public/project_cm2k9xbkz4qg901vs51bm5uau/subgraphs/steer-protocol-robinhood/prod/gn"
|
|
9199
9264
|
};
|
|
9200
9265
|
/**
|
|
9201
9266
|
* Retrieves the subgraph URL for a given chain ID.
|
|
@@ -14430,7 +14495,11 @@ const quickSwapAlgebraConfig = () => ({
|
|
|
14430
14495
|
const quickSwapIntegralConfig = (theGraphApiKey) => ({
|
|
14431
14496
|
beaconContract: MultiPositionManagers.MultiPositionQuickSwapIntegral,
|
|
14432
14497
|
beaconAlgebraHook: MultiPositionManagers.AlgebraHook,
|
|
14433
|
-
algebraHookSupportedChains: [Chain.Base],
|
|
14498
|
+
algebraHookSupportedChains: [Chain.Base, Chain.Polygon],
|
|
14499
|
+
algebraHookBeaconsByChain: {
|
|
14500
|
+
[Chain.Base]: [MultiPositionManagers.AlgebraHook],
|
|
14501
|
+
[Chain.Polygon]: [MultiPositionManagers.TestQuickswapAlgebraIntegralHook]
|
|
14502
|
+
},
|
|
14434
14503
|
subgraph: {
|
|
14435
14504
|
[Chain.Soneium]: getTheGraphResolverUrl("3GsT6AiuDiSzh2fXbFxUKtBxT8rBEGVdQCgHSsKMPHiu", false, theGraphApiKey),
|
|
14436
14505
|
[Chain.Base]: getTheGraphResolverUrl("U65NKb6BsDPGqugPAda58ebMLa1RqeMFT76fndB77oe", false, theGraphApiKey),
|
|
@@ -14552,6 +14621,7 @@ const sushiConfig = (theGraphApiKey) => ({
|
|
|
14552
14621
|
[Chain.Filecoin]: "https://sushi.laconic.com/subgraphs/name/sushiswap/v3-filecoin",
|
|
14553
14622
|
[Chain.Hemi]: "https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/GQU44ZBv8NpiBUxA6eLSDSdd7bs6TVop9dASKzrdirUv",
|
|
14554
14623
|
[Chain.Katana]: "https://api.goldsky.com/api/public/project_clslspm3c0knv01wvgfb2fqyq/subgraphs/sushiswap/v3-katana/gn",
|
|
14624
|
+
[Chain.Robinhood]: "https://api.goldsky.com/api/public/project_clslspm3c0knv01wvgfb2fqyq/subgraphs/sushiswap/v3-robinhood/gn",
|
|
14555
14625
|
[Chain.Mainnet]: getTheGraphResolverUrl("5nnoU1nUFeWqtXgbpC54L9PWdpgo7Y9HYinR3uTMsfzs", false, theGraphApiKey)
|
|
14556
14626
|
},
|
|
14557
14627
|
factoryAddress: {
|
|
@@ -14569,8 +14639,10 @@ const sushiConfig = (theGraphApiKey) => ({
|
|
|
14569
14639
|
[Chain.Filecoin]: "0xc35DADB65012eC5796536bD9864eD8773aBc74C4",
|
|
14570
14640
|
[Chain.Hemi]: "0xCdBCd51a5E8728E0AF4895ce5771b7d17fF71959",
|
|
14571
14641
|
[Chain.Katana]: "0x203e8740894c8955cB8950759876d7E7E45E04c1",
|
|
14642
|
+
[Chain.Robinhood]: "0xe51960f1b45f1c9fb6d166e6a884f866fc70433b",
|
|
14572
14643
|
[Chain.Mainnet]: "0xbaceb8ec6b9355dfc0269c18bac9d6e2bdc29c4f"
|
|
14573
14644
|
},
|
|
14645
|
+
NFTManagerAddress: { [Chain.Robinhood]: "0x51d0e5188afe12d502e29d982d20c190e7816107" },
|
|
14574
14646
|
TickLensAddress: {
|
|
14575
14647
|
[Chain.Polygon]: "0x9fdeA1412e50D78B25aCE4f96d35801647Fdf7dA",
|
|
14576
14648
|
[Chain.Arbitrum]: "0x8516944E89f296eb6473d79aED1Ba12088016c9e",
|
|
@@ -14586,6 +14658,7 @@ const sushiConfig = (theGraphApiKey) => ({
|
|
|
14586
14658
|
[Chain.Filecoin]: "0x1be211D8DA40BC0ae8719c6663307Bfc987b1d6c",
|
|
14587
14659
|
[Chain.Hemi]: "0x1f2FCf1d036b375b384012e61D3AA33F8C256bbE",
|
|
14588
14660
|
[Chain.Katana]: "0x35DC3E13469E980c37b6F288BBb9822B1f9bD435",
|
|
14661
|
+
[Chain.Robinhood]: "0x80126a8d806d029ac551ac6f30baf06b785175d1",
|
|
14589
14662
|
[Chain.Mainnet]: "0xfb70ad5a200d784e7901230e6875d91d5fa6b68c"
|
|
14590
14663
|
},
|
|
14591
14664
|
swapRouterAddress: {
|
|
@@ -14593,7 +14666,10 @@ const sushiConfig = (theGraphApiKey) => ({
|
|
|
14593
14666
|
[Chain.Base]: "0xFB7eF66a7e61224DD6FcD0D7d9C3be5C8B049b9f",
|
|
14594
14667
|
[Chain.Linea]: "0xc14Ee6B248787847527e11b8d7Cf257b212f7a9F"
|
|
14595
14668
|
},
|
|
14596
|
-
initCodeHash: {
|
|
14669
|
+
initCodeHash: {
|
|
14670
|
+
[Chain.Blast]: "0x8e13daee7f5a62e37e71bf852bcd44e7d16b90617ed2b17c24c2ee62411c5bae",
|
|
14671
|
+
[Chain.Robinhood]: "0xe34f199b19b2b4f47f68442619d555527d244f78a3297ea89325f843f87b8b54"
|
|
14672
|
+
},
|
|
14597
14673
|
QuoterV2Address: {
|
|
14598
14674
|
[Chain.Polygon]: "0xb1E835Dc2785b52265711e17fCCb0fd018226a6e",
|
|
14599
14675
|
[Chain.Optimism]: "0xb1E835Dc2785b52265711e17fCCb0fd018226a6e",
|
|
@@ -14608,6 +14684,7 @@ const sushiConfig = (theGraphApiKey) => ({
|
|
|
14608
14684
|
[Chain.Filecoin]: "0x9B3fF703FA9C8B467F5886d7b61E61ba07a9b51c",
|
|
14609
14685
|
[Chain.Hemi]: "0x779EA16ebe59bdFa7230aa4F40D876446e387856",
|
|
14610
14686
|
[Chain.Katana]: "0x92dea23ED1C683940fF1a2f8fE23FE98C5d3041c",
|
|
14687
|
+
[Chain.Robinhood]: "0x3e290e5e01818002a0b672148bdc7514d861c7b3",
|
|
14611
14688
|
[Chain.Mainnet]: "0x64e8802FE490fa7cc61d3463958199161Bb608A7"
|
|
14612
14689
|
}
|
|
14613
14690
|
});
|
|
@@ -14974,10 +15051,14 @@ const aerodromeV2Config = (theGraphApiKey) => ({
|
|
|
14974
15051
|
//#region src/const/amm/configs/protocols/cypher.ts
|
|
14975
15052
|
const cypherConfig = (theGraphApiKey) => ({
|
|
14976
15053
|
beaconContract: MultiPositionManagers.MultiPositionCypher,
|
|
15054
|
+
algebraHookSupportedChains: [Chain.Mainnet],
|
|
15055
|
+
beaconAlgebraHook: MultiPositionManagers.TestCypherAlgebraIntegralHook,
|
|
15056
|
+
algebraHookBeaconsByChain: { [Chain.Mainnet]: [MultiPositionManagers.TestCypherAlgebraIntegralHook] },
|
|
14977
15057
|
subgraph: { [Chain.Mainnet]: getTheGraphResolverUrl("8knsFRJjoEtsRECVSdxhfbvidipCMdBjXx1hQmMRujHx", false, theGraphApiKey) },
|
|
14978
15058
|
factoryAddress: { [Chain.Mainnet]: "0xfb8Ed3485EfA29a0e4bed93351dD51B59fC4b0f0" },
|
|
14979
15059
|
TickLensAddress: { [Chain.Mainnet]: "0x4DA465E96E586B127ac0c8d02871Aa73F226cCC4" },
|
|
14980
|
-
Quoter: { [Chain.Mainnet]: "0xeae871C4a8dD267146558C362c86805FB7e3Fd2F" }
|
|
15060
|
+
Quoter: { [Chain.Mainnet]: "0xeae871C4a8dD267146558C362c86805FB7e3Fd2F" },
|
|
15061
|
+
EntryPointAddress: { [Chain.Mainnet]: "0x79616564DB0294ecBa5912f1cE985FD1c11eeF51" }
|
|
14981
15062
|
});
|
|
14982
15063
|
//#endregion
|
|
14983
15064
|
//#region src/const/amm/configs/protocols/spark-integral.ts
|
|
@@ -15287,8 +15368,11 @@ const CUSTOM_BEACON_TO_PROTOCOL_MAP = {
|
|
|
15287
15368
|
[MultiPositionManagers.MultiPositionHenjinAlgebraHook]: Protocol.Henjin,
|
|
15288
15369
|
[MultiPositionManagers.MultiPositionBittensorUniV3]: Protocol.BittensorUniV3,
|
|
15289
15370
|
[MultiPositionManagers.MultiPositionAerodromeV3]: Protocol.AerodromeV3,
|
|
15290
|
-
[MultiPositionManagers.MultiPositionReserveV4]: Protocol.UniswapV4
|
|
15371
|
+
[MultiPositionManagers.MultiPositionReserveV4]: Protocol.UniswapV4,
|
|
15372
|
+
[MultiPositionManagers.TestCypherAlgebraIntegralHook]: Protocol.Cypher,
|
|
15373
|
+
[MultiPositionManagers.TestQuickswapAlgebraIntegralHook]: Protocol.QuickSwapIntegral
|
|
15291
15374
|
};
|
|
15375
|
+
const getCustomProtocolByBeacon = (beacon) => CUSTOM_BEACON_TO_PROTOCOL_MAP[beacon] || Object.entries(CUSTOM_BEACON_TO_PROTOCOL_MAP).find(([customBeacon]) => customBeacon.toLowerCase() === beacon.toLowerCase())?.[1];
|
|
15292
15376
|
/**`
|
|
15293
15377
|
* Retrieves the beacon name associated with a given protocol.
|
|
15294
15378
|
*
|
|
@@ -15316,10 +15400,13 @@ function getBeaconNameByProtocol(protocol) {
|
|
|
15316
15400
|
*/
|
|
15317
15401
|
const getProtocolConfigByBeacon = (beacon, theGraphApiKey) => {
|
|
15318
15402
|
if (!beacon) return null;
|
|
15403
|
+
const protocolConfig = getAmmConfig(theGraphApiKey);
|
|
15404
|
+
const customProtocol = getCustomProtocolByBeacon(beacon);
|
|
15405
|
+
if (customProtocol) return protocolConfig[customProtocol];
|
|
15319
15406
|
const beaconLower = beacon.toLowerCase();
|
|
15320
15407
|
const matchedProtocol = Object.entries(BEACON_TO_PROTOCOL_MAP).find(([key]) => beaconLower.includes(key));
|
|
15321
15408
|
if (!matchedProtocol) return null;
|
|
15322
|
-
return
|
|
15409
|
+
return protocolConfig[matchedProtocol[1]];
|
|
15323
15410
|
};
|
|
15324
15411
|
/**
|
|
15325
15412
|
* Determines the protocol type from a given beacon identifier.
|
|
@@ -15334,7 +15421,8 @@ const getProtocolConfigByBeacon = (beacon, theGraphApiKey) => {
|
|
|
15334
15421
|
*/
|
|
15335
15422
|
function getProtocolTypeByBeacon(beacon) {
|
|
15336
15423
|
if (!beacon) return null;
|
|
15337
|
-
|
|
15424
|
+
const customProtocol = getCustomProtocolByBeacon(beacon);
|
|
15425
|
+
if (customProtocol) return customProtocol;
|
|
15338
15426
|
const beaconLower = beacon.toLowerCase();
|
|
15339
15427
|
const matchedProtocol = Object.entries(BEACON_TO_SUPPORTED_PROTOCOL_MAP).sort(([a], [b]) => b.length - a.length).find(([key]) => beaconLower.includes(key));
|
|
15340
15428
|
return matchedProtocol ? matchedProtocol[1] : null;
|
|
@@ -19619,14 +19707,18 @@ var VaultClient = class extends SubgraphClient {
|
|
|
19619
19707
|
const normalizedProtocol = this.normalizeProtocolValue(protocol);
|
|
19620
19708
|
return Object.values(Protocol).find((protocolValue) => this.normalizeProtocolValue(protocolValue) === normalizedProtocol) || null;
|
|
19621
19709
|
}
|
|
19622
|
-
getProtocolBeaconNames(protocol) {
|
|
19710
|
+
getProtocolBeaconNames(protocol, chainId) {
|
|
19623
19711
|
const resolvedProtocol = this.resolveProtocolEnum(protocol);
|
|
19624
19712
|
if (!resolvedProtocol) return [];
|
|
19625
19713
|
const protocolConfig = getAmmConfig(this.subgraphStudioKey)[resolvedProtocol];
|
|
19626
19714
|
const beaconNames = [];
|
|
19715
|
+
const chain = chainId ? chainIdToName(chainId) : void 0;
|
|
19627
19716
|
if (protocolConfig?.beaconContract) beaconNames.push(protocolConfig.beaconContract);
|
|
19628
19717
|
if (protocolConfig?.additionalBeaconContracts?.length) beaconNames.push(...protocolConfig.additionalBeaconContracts);
|
|
19629
19718
|
if (protocolConfig?.beaconContractSushiManaged) beaconNames.push(protocolConfig.beaconContractSushiManaged);
|
|
19719
|
+
if (protocolConfig?.algebraHookBeaconsByChain) if (chain) beaconNames.push(...protocolConfig.algebraHookBeaconsByChain[chain] || []);
|
|
19720
|
+
else beaconNames.push(...Object.values(protocolConfig.algebraHookBeaconsByChain).flat());
|
|
19721
|
+
if (protocolConfig?.beaconAlgebraHook && (!chain || protocolConfig.algebraHookSupportedChains?.includes(chain) && !protocolConfig.algebraHookBeaconsByChain?.[chain]?.length)) beaconNames.push(protocolConfig.beaconAlgebraHook);
|
|
19630
19722
|
if (resolvedProtocol === Protocol.Blackhole) beaconNames.push(MultiPositionManagers.MultiPositionBlackholeOld);
|
|
19631
19723
|
const beaconAlias = getBeaconNameByProtocol(resolvedProtocol);
|
|
19632
19724
|
if (beaconAlias) beaconNames.push(beaconAlias);
|
|
@@ -19668,7 +19760,7 @@ var VaultClient = class extends SubgraphClient {
|
|
|
19668
19760
|
const normalizedExpectedBeacon = this.normalizeProtocolValue(expectedBeacon);
|
|
19669
19761
|
if (normalizedExpectedBeacon.length > 0 && normalizedBeaconName.includes(normalizedExpectedBeacon)) return true;
|
|
19670
19762
|
if (!resolvedProtocol) return false;
|
|
19671
|
-
return this.getProtocolBeaconNames(resolvedProtocol).some((beacon) => {
|
|
19763
|
+
return this.getProtocolBeaconNames(resolvedProtocol, vault.chainId).some((beacon) => {
|
|
19672
19764
|
const normalizedBeacon = this.normalizeProtocolValue(beacon);
|
|
19673
19765
|
return normalizedBeacon.length > 0 && normalizedBeaconName === normalizedBeacon;
|
|
19674
19766
|
});
|
|
@@ -19972,7 +20064,7 @@ var VaultClient = class extends SubgraphClient {
|
|
|
19972
20064
|
if (!chain) throw new Error(`Unsupported chainId: ${chainId}`);
|
|
19973
20065
|
const subgraphUrl = steerSubgraphConfig[chain];
|
|
19974
20066
|
if (!subgraphUrl) throw new Error(`No subgraph configured for chain: ${chain}`);
|
|
19975
|
-
const beaconNames = this.getProtocolBeaconNames(filter?.protocol);
|
|
20067
|
+
const beaconNames = this.getProtocolBeaconNames(filter?.protocol, chainId);
|
|
19976
20068
|
if (filter?.beaconName) beaconNames.push(filter.beaconName);
|
|
19977
20069
|
const uniqueBeaconNames = [...new Set(beaconNames.filter((name) => name.length > 0))];
|
|
19978
20070
|
const subgraphVaults = await this.subgraphVaultClient.getAllVaultsFromSubgraph({
|
|
@@ -20092,7 +20184,7 @@ var VaultClient = class extends SubgraphClient {
|
|
|
20092
20184
|
if (!chain) throw new Error(`Unsupported chainId: ${chainId}`);
|
|
20093
20185
|
const subgraphUrl = steerSubgraphConfig[chain];
|
|
20094
20186
|
if (!subgraphUrl) throw new Error(`No subgraph configured for chain: ${chain}`);
|
|
20095
|
-
const beaconNames = this.getProtocolBeaconNames(filter?.protocol);
|
|
20187
|
+
const beaconNames = this.getProtocolBeaconNames(filter?.protocol, chainId);
|
|
20096
20188
|
if (filter?.beaconName) beaconNames.push(filter.beaconName);
|
|
20097
20189
|
const uniqueBeaconNames = [...new Set(beaconNames.filter((name) => name.length > 0))];
|
|
20098
20190
|
const subgraphVaults = await this.subgraphVaultClient.getAllVaultsFromSubgraph({
|
|
@@ -23583,6 +23675,6 @@ var FeeManagerClient = class extends SubgraphClient {
|
|
|
23583
23675
|
* See {@link SmartRewards} for detailed API documentation.
|
|
23584
23676
|
*/
|
|
23585
23677
|
//#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 };
|
|
23678
|
+
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
23679
|
|
|
23588
23680
|
//# sourceMappingURL=index.browser.mjs.map
|