@steerprotocol/sdk 1.29.2 → 1.29.3
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.
|
@@ -40,7 +40,7 @@ exports.steerSubgraphConfig = {
|
|
|
40
40
|
[chain_js_1.Chain.Taiko]: "https://api.subgraph.ormilabs.com/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-taiko/prod/gn",
|
|
41
41
|
[chain_js_1.Chain.Rootstock]: "https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/H3pANqbMVTiFCUXHjXYr2mHbXvn5my5o66Gxbwcg7Aqm",
|
|
42
42
|
[chain_js_1.Chain.ZklinkNova]: "https://api.goldsky.com/api/public/project_clohj3ta78ok12nzs5m8yag0b/subgraphs/steer-protocol-zklink-nova/1.0.1/gn",
|
|
43
|
-
[chain_js_1.Chain.Flare]: "https://api.goldsky.com/api/public/
|
|
43
|
+
[chain_js_1.Chain.Flare]: "https://api.goldsky.com/api/public/project_cm2k9xbkz4qg901vs51bm5uau/subgraphs/steer-protocol-flare/prod/gn",
|
|
44
44
|
[chain_js_1.Chain.BeraChainBartio]: 'https://api.goldsky.com/api/public/project_clohj3ta78ok12nzs5m8yag0b/subgraphs/steer-protocol-berachain-bartio/prod/gn',
|
|
45
45
|
[chain_js_1.Chain.Filecoin]: 'https://api.goldsky.com/api/public/project_clohj3ta78ok12nzs5m8yag0b/subgraphs/steer-protocol-filecoin/prod/gn',
|
|
46
46
|
[chain_js_1.Chain.Apechain]: 'https://apeapi.0xgraph.xyz/api/public/4ea21b03-9850-4796-8068-ec71bbe022db/subgraphs/steer-protocol-apechain/prod/gn',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subgraph.js","sourceRoot":"","sources":["../../../src/const/subgraph.ts"],"names":[],"mappings":";;;AAiJA,0DAWC;AA3JD,yCAA4C;AAmB5C;;GAEG;AACU,QAAA,oBAAoB,GAAG,8CAA8C,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AClH,CAAC,gBAAK,CAAC,MAAM,CAAC,EACZ,qEAAqE;IACvE,CAAC,gBAAK,CAAC,QAAQ,CAAC,EACd,6HAA6H;CAChI,CAAA;AAED;;;;;;;;;;GAUG;AACH,SAAgB,uBAAuB,CAAC,OAAe;IACrD,yDAAyD;IACzD,MAAM,CAAC,SAAS,CAAC,GAAG,MAAM,CAAC,OAAO,CAAC,kBAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,KAAK,OAAO,CAAC,IAAI,EAAE,CAAC;IAC3F,IAAI,CAAC,SAAS;QAAE,OAAO,SAAS,CAAC;IAEjC,2BAA2B;IAC3B,MAAM,KAAK,GAAG,gBAAK,CAAC,SAA+B,CAAC,CAAC;IACrD,IAAI,CAAC,KAAK;QAAE,OAAO,SAAS,CAAC;IAE7B,mDAAmD;IACnD,OAAO,2BAAmB,CAAC,KAAK,CAAC,CAAC;AACpC,CAAC","sourcesContent":["import { SteerSupportedChains } from \"../types.js\";\nimport { Chain, ChainId } from \"./chain.js\";\n\n\n\n/**\n * Interface representing network-specific data and configuration\n */\nexport interface NetworkData {\n /** Chain ID of the network */\n chainId: number;\n /** Symbol of the wrapped native token */\n wrappedNativeToken: string;\n /** Address of the network's native token wrapper contract */\n address: string;\n /** Optional network name */\n name?: string;\n}\n\n\n/**\n * URL for accessing deprecated bundle information\n */\nexport const deprecatedBundlesURL = \"https://api.steer.finance/deprecated-bundles\"\n\n \n/**\n * Configuration mapping of supported chains to their respective subgraph endpoints.\n * Each chain has a dedicated subgraph URL for querying protocol data.\n * Updated each chains for ormi and thegraph\n*/\nexport const steerSubgraphConfig: {\n [protocol in SteerSupportedChains]: string\n} = {\n [Chain.Polygon]:\n \"https://api.subgraph.ormilabs.com/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-polygon/prod/gn\",\n [Chain.BSC]:\n \"https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/GLDP56fPGDz3MtmhtfTkz5CxWiqiNLACVrsJ9RqQeL4U\",\n [Chain.Optimism]:\n \"https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/GgW1EwNARL3dyo3acQ3VhraQQ66MHT7QnYuGcQc5geDG\",\n [Chain.Arbitrum]:\n \"https://api.subgraph.ormilabs.com/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-arbitrum/prod/gn\",\n [Chain.Evmos]:\n \"https://subgraph.satsuma-prod.com/769a117cc018/steer/steer-protocol-evmos/api\",\n [Chain.Thundercore]:\n \"https://subgraph.steer.finance/thundercore/subgraphs/name/steerprotocol/steer-thundercore\",\n [Chain.Metis]:\n \"https://api.metis.0xgraph.xyz/api/public/b88b5696-b69d-46be-b212-5c55a9b1492f/subgraphs/steer-protocol-metis/prod/gn\",\n [Chain.Base]:\n \"https://api.subgraph.ormilabs.com/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-base/prod/gn\",\n [Chain.Avalanche]:\n \"https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/GZotTj3rQJ8ZqVyodtK8TcnKcUxMgeF7mCJHGPYbu8dA\",\n [Chain.PolygonzkEVM]:\n \"https://api.goldsky.com/api/public/project_clohj3ta78ok12nzs5m8yag0b/subgraphs/steer-protocol-polygon-zkevm/prod/gn\",\n [Chain.Celo]:\n \"https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/BPaFHyfVrhv3pdjGodpQcWggAg1Bcrvc9SFc2t2BXeho\",\n [Chain.Kava]:\n \"https://api.goldsky.com/api/public/project_clohj3ta78ok12nzs5m8yag0b/subgraphs/steer-protocol-kava/prod/gn\",\n [Chain.Linea]:\n \"https://api.subgraph.ormilabs.com/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-linea/prod/gn\",\n [Chain.Scroll]:\n \"https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/822PfgbgBzC98Huwf37uxvF9YGZMA5nDeETpstkR55Sn\",\n [Chain.Manta]:\n \"https://api.subgraph.ormilabs.com/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-manta/prod/gn\",\n [Chain.Astar]:\n \"https://api.goldsky.com/api/public/project_clohj3ta78ok12nzs5m8yag0b/subgraphs/steer-protocol-astar/prod/gn\",\n [Chain.Fantom]:\n \"https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/9uyX2WDuaxmcYh11ehUhU68M9uSCp5FXVQV2w4LqbpbV\",\n [Chain.OkxTestnet]:\n \"https://subgraph.steer.finance/steer-x1-testnet/subgraphs/name/steerprotocol/steer-okxtestnet\",\n [Chain.Mantle]:\n \"https://subgraph-api.mantle.xyz/subgraphs/name/steerprotocol/steer-protocol-mantle\",\n [Chain.AstarZkevm]:\n \"https://api.goldsky.com/api/public/project_clohj3ta78ok12nzs5m8yag0b/subgraphs/steer-protocol-astar-zkevm/1.1.1/gn\",\n [Chain.Blast]:\n \"https://api.subgraph.ormilabs.com/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-blast/prod/gn\",\n [Chain.Mode]:\n \"https://api.subgraph.ormilabs.com/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-mode/prod/gn\",\n [Chain.Telos]:\n \"https://telos.api.ormilabs.com/api/public/39892398-bfdd-48ac-b776-77ad8a5b4b9e/subgraphs/steer-protocol-telos/prod/gn\",\n [Chain.XLayer]:\n \"https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/8gCrUHrVS9rHwvDPLTn4Wz6od68ULb7azYuQz25JjRK3\",\n [Chain.Taiko]:\n \"https://api.subgraph.ormilabs.com/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-taiko/prod/gn\",\n [Chain.Rootstock]:\n \"https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/H3pANqbMVTiFCUXHjXYr2mHbXvn5my5o66Gxbwcg7Aqm\",\n [Chain.ZklinkNova]:\n \"https://api.goldsky.com/api/public/project_clohj3ta78ok12nzs5m8yag0b/subgraphs/steer-protocol-zklink-nova/1.0.1/gn\",\n [Chain.Flare]:\n \"https://api.goldsky.com/api/public/project_clohj3ta78ok12nzs5m8yag0b/subgraphs/steer-protocol-flare/1.1.1/gn\",\n [Chain.BeraChainBartio]:\n 'https://api.goldsky.com/api/public/project_clohj3ta78ok12nzs5m8yag0b/subgraphs/steer-protocol-berachain-bartio/prod/gn',\n [Chain.Filecoin]:\n 'https://api.goldsky.com/api/public/project_clohj3ta78ok12nzs5m8yag0b/subgraphs/steer-protocol-filecoin/prod/gn',\n [Chain.Apechain]:\n 'https://apeapi.0xgraph.xyz/api/public/4ea21b03-9850-4796-8068-ec71bbe022db/subgraphs/steer-protocol-apechain/prod/gn',\n [Chain.Zircuit]:\n 'https://api.goldsky.com/api/public/project_clohj3ta78ok12nzs5m8yag0b/subgraphs/steer-protocol-zircuit/prod/gn',\n [Chain.Moonbeam]:\n 'https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/4D2pLLQuGsAkdZAUgqxxnk4Mcu3aMjEV1HJ2F63kC7w6',\n [Chain.Sei]:\n 'https://api.goldsky.com/api/public/project_clohj3ta78ok12nzs5m8yag0b/subgraphs/steer-protocol-sei/prod/gn',\n [Chain.Sonic]:\n 'https://api.0xgraph.xyz/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-sonic/prod/gn',\n [Chain.Zeta]:\n 'https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/HFH41DyzAXxYmT5eszVWn2T7UxViMroPJ4XJV8vhDGNN',\n [Chain.Mainnet]:\n 'https://api.subgraph.ormilabs.com/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-mainnet/prod/gn',\n [Chain.Soneium]:\n 'https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/8gCrUHrVS9rHwvDPLTn4Wz6od68ULb7azYuQz25JjRK3',\n [Chain.Bera]:\n 'https://api.subgraph.ormilabs.com/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-bera/prod/gn',\n [Chain.Unichain]:\n 'https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/EoLK36f26Dr7maXyNKxJmEBJkoYVCMh1d4ENtT5hJgyB',\n [Chain.Hemi]:\n 'https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/2eACJtEGuELqN5roUiHG1jqmCpXt5aimcc8xZdvtMv4z',\n [Chain.TataraTestnet]:\n 'https://api.studio.thegraph.com/query/78728/steer-protocol-tatara-testnet/version/latest',\n [Chain.Core]:\n 'https://thegraph.coredao.org/subgraphs/name/steer-protocol-core',\n [Chain.Peaq]:\n 'https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/45pjWAnAXULpS6UDajzCtLcZYuohwuMm4UuSDjegMKAT',\n [Chain.Katana]:\n 'https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/D6CST1Az8c8KvMf8ktcEcWds89YVQxbKG6v8yo7FAzzM',\n [Chain.Ronin]:\n 'https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/793Lz5oiK51wdm9kCLtHqunkAPk2qjg7denpCrHqrLcA',\n [Chain.Saga]:\n 'https://api.goldsky.com/api/public/project_clohj3ta78ok12nzs5m8yag0b/subgraphs/steer-protocol-saga-evm/prod/gn',\n [Chain.Nibiru]:\n 'https://app.sentio.xyz//api/v1/graphql/rakesh/steer-protocol-nibiru',\n [Chain.Hyperevm]:\n 'https://api.subgraph.ormilabs.com/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-hyperevm/prod/gn'\n}\n\n/**\n * Retrieves the subgraph URL for a given chain ID.\n * \n * @param chainId - The numeric identifier of the blockchain network\n * @returns The subgraph URL for the given chain ID, or undefined if not found\n * @example\n * ```typescript\n * const subgraphUrl = getSubgraphUrlByChainId(1);\n * // Returns the Ethereum mainnet subgraph URL\n * ```\n */\nexport function getSubgraphUrlByChainId(chainId: number): string | undefined {\n // Convert chainId to Chain enum value using ChainId enum\n const [chainName] = Object.entries(ChainId).find(([, id]) => Number(id) === chainId) || [];\n if (!chainName) return undefined;\n \n // Get the Chain enum value\n const chain = Chain[chainName as keyof typeof Chain];\n if (!chain) return undefined;\n\n // Return the subgraph URL from steerSubgraphConfig\n return steerSubgraphConfig[chain];\n}"]}
|
|
1
|
+
{"version":3,"file":"subgraph.js","sourceRoot":"","sources":["../../../src/const/subgraph.ts"],"names":[],"mappings":";;;AAiJA,0DAWC;AA3JD,yCAA4C;AAmB5C;;GAEG;AACU,QAAA,oBAAoB,GAAG,8CAA8C,CAAA;AAGlF;;;;EAIE;AACW,QAAA,mBAAmB,GAE5B;IACF,CAAC,gBAAK,CAAC,OAAO,CAAC,EACb,4HAA4H;IAC9H,CAAC,gBAAK,CAAC,GAAG,CAAC,EACT,qHAAqH;IACvH,CAAC,gBAAK,CAAC,QAAQ,CAAC,EACd,qHAAqH;IACvH,CAAC,gBAAK,CAAC,QAAQ,CAAC,EACd,6HAA6H;IAC/H,CAAC,gBAAK,CAAC,KAAK,CAAC,EACX,+EAA+E;IACjF,CAAC,gBAAK,CAAC,WAAW,CAAC,EACjB,2FAA2F;IAC7F,CAAC,gBAAK,CAAC,KAAK,CAAC,EACX,sHAAsH;IACxH,CAAC,gBAAK,CAAC,IAAI,CAAC,EACV,yHAAyH;IAC3H,CAAC,gBAAK,CAAC,SAAS,CAAC,EACf,qHAAqH;IACvH,CAAC,gBAAK,CAAC,YAAY,CAAC,EAClB,qHAAqH;IACvH,CAAC,gBAAK,CAAC,IAAI,CAAC,EACV,qHAAqH;IACvH,CAAC,gBAAK,CAAC,IAAI,CAAC,EACV,4GAA4G;IAC9G,CAAC,gBA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"./chain.js\";\n\n\n\n/**\n * Interface representing network-specific data and configuration\n */\nexport interface NetworkData {\n /** Chain ID of the network */\n chainId: number;\n /** Symbol of the wrapped native token */\n wrappedNativeToken: string;\n /** Address of the network's native token wrapper contract */\n address: string;\n /** Optional network name */\n name?: string;\n}\n\n\n/**\n * URL for accessing deprecated bundle information\n */\nexport const deprecatedBundlesURL = \"https://api.steer.finance/deprecated-bundles\"\n\n \n/**\n * Configuration mapping of supported chains to their respective subgraph endpoints.\n * Each chain has a dedicated subgraph URL for querying protocol data.\n * Updated each chains for ormi and thegraph\n*/\nexport const steerSubgraphConfig: {\n [protocol in SteerSupportedChains]: string\n} = {\n [Chain.Polygon]:\n \"https://api.subgraph.ormilabs.com/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-polygon/prod/gn\",\n [Chain.BSC]:\n \"https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/GLDP56fPGDz3MtmhtfTkz5CxWiqiNLACVrsJ9RqQeL4U\",\n [Chain.Optimism]:\n \"https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/GgW1EwNARL3dyo3acQ3VhraQQ66MHT7QnYuGcQc5geDG\",\n [Chain.Arbitrum]:\n \"https://api.subgraph.ormilabs.com/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-arbitrum/prod/gn\",\n [Chain.Evmos]:\n \"https://subgraph.satsuma-prod.com/769a117cc018/steer/steer-protocol-evmos/api\",\n [Chain.Thundercore]:\n \"https://subgraph.steer.finance/thundercore/subgraphs/name/steerprotocol/steer-thundercore\",\n [Chain.Metis]:\n \"https://api.metis.0xgraph.xyz/api/public/b88b5696-b69d-46be-b212-5c55a9b1492f/subgraphs/steer-protocol-metis/prod/gn\",\n [Chain.Base]:\n \"https://api.subgraph.ormilabs.com/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-base/prod/gn\",\n [Chain.Avalanche]:\n \"https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/GZotTj3rQJ8ZqVyodtK8TcnKcUxMgeF7mCJHGPYbu8dA\",\n [Chain.PolygonzkEVM]:\n \"https://api.goldsky.com/api/public/project_clohj3ta78ok12nzs5m8yag0b/subgraphs/steer-protocol-polygon-zkevm/prod/gn\",\n [Chain.Celo]:\n \"https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/BPaFHyfVrhv3pdjGodpQcWggAg1Bcrvc9SFc2t2BXeho\",\n [Chain.Kava]:\n \"https://api.goldsky.com/api/public/project_clohj3ta78ok12nzs5m8yag0b/subgraphs/steer-protocol-kava/prod/gn\",\n [Chain.Linea]:\n \"https://api.subgraph.ormilabs.com/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-linea/prod/gn\",\n [Chain.Scroll]:\n \"https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/822PfgbgBzC98Huwf37uxvF9YGZMA5nDeETpstkR55Sn\",\n [Chain.Manta]:\n \"https://api.subgraph.ormilabs.com/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-manta/prod/gn\",\n [Chain.Astar]:\n \"https://api.goldsky.com/api/public/project_clohj3ta78ok12nzs5m8yag0b/subgraphs/steer-protocol-astar/prod/gn\",\n [Chain.Fantom]:\n \"https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/9uyX2WDuaxmcYh11ehUhU68M9uSCp5FXVQV2w4LqbpbV\",\n [Chain.OkxTestnet]:\n \"https://subgraph.steer.finance/steer-x1-testnet/subgraphs/name/steerprotocol/steer-okxtestnet\",\n [Chain.Mantle]:\n \"https://subgraph-api.mantle.xyz/subgraphs/name/steerprotocol/steer-protocol-mantle\",\n [Chain.AstarZkevm]:\n \"https://api.goldsky.com/api/public/project_clohj3ta78ok12nzs5m8yag0b/subgraphs/steer-protocol-astar-zkevm/1.1.1/gn\",\n [Chain.Blast]:\n \"https://api.subgraph.ormilabs.com/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-blast/prod/gn\",\n [Chain.Mode]:\n \"https://api.subgraph.ormilabs.com/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-mode/prod/gn\",\n [Chain.Telos]:\n \"https://telos.api.ormilabs.com/api/public/39892398-bfdd-48ac-b776-77ad8a5b4b9e/subgraphs/steer-protocol-telos/prod/gn\",\n [Chain.XLayer]:\n \"https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/8gCrUHrVS9rHwvDPLTn4Wz6od68ULb7azYuQz25JjRK3\",\n [Chain.Taiko]:\n \"https://api.subgraph.ormilabs.com/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-taiko/prod/gn\",\n [Chain.Rootstock]:\n \"https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/H3pANqbMVTiFCUXHjXYr2mHbXvn5my5o66Gxbwcg7Aqm\",\n [Chain.ZklinkNova]:\n \"https://api.goldsky.com/api/public/project_clohj3ta78ok12nzs5m8yag0b/subgraphs/steer-protocol-zklink-nova/1.0.1/gn\",\n [Chain.Flare]:\n \"https://api.goldsky.com/api/public/project_cm2k9xbkz4qg901vs51bm5uau/subgraphs/steer-protocol-flare/prod/gn\",\n [Chain.BeraChainBartio]:\n 'https://api.goldsky.com/api/public/project_clohj3ta78ok12nzs5m8yag0b/subgraphs/steer-protocol-berachain-bartio/prod/gn',\n [Chain.Filecoin]:\n 'https://api.goldsky.com/api/public/project_clohj3ta78ok12nzs5m8yag0b/subgraphs/steer-protocol-filecoin/prod/gn',\n [Chain.Apechain]:\n 'https://apeapi.0xgraph.xyz/api/public/4ea21b03-9850-4796-8068-ec71bbe022db/subgraphs/steer-protocol-apechain/prod/gn',\n [Chain.Zircuit]:\n 'https://api.goldsky.com/api/public/project_clohj3ta78ok12nzs5m8yag0b/subgraphs/steer-protocol-zircuit/prod/gn',\n [Chain.Moonbeam]:\n 'https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/4D2pLLQuGsAkdZAUgqxxnk4Mcu3aMjEV1HJ2F63kC7w6',\n [Chain.Sei]:\n 'https://api.goldsky.com/api/public/project_clohj3ta78ok12nzs5m8yag0b/subgraphs/steer-protocol-sei/prod/gn',\n [Chain.Sonic]:\n 'https://api.0xgraph.xyz/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-sonic/prod/gn',\n [Chain.Zeta]:\n 'https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/HFH41DyzAXxYmT5eszVWn2T7UxViMroPJ4XJV8vhDGNN',\n [Chain.Mainnet]:\n 'https://api.subgraph.ormilabs.com/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-mainnet/prod/gn',\n [Chain.Soneium]:\n 'https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/8gCrUHrVS9rHwvDPLTn4Wz6od68ULb7azYuQz25JjRK3',\n [Chain.Bera]:\n 'https://api.subgraph.ormilabs.com/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-bera/prod/gn',\n [Chain.Unichain]:\n 'https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/EoLK36f26Dr7maXyNKxJmEBJkoYVCMh1d4ENtT5hJgyB',\n [Chain.Hemi]:\n 'https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/2eACJtEGuELqN5roUiHG1jqmCpXt5aimcc8xZdvtMv4z',\n [Chain.TataraTestnet]:\n 'https://api.studio.thegraph.com/query/78728/steer-protocol-tatara-testnet/version/latest',\n [Chain.Core]:\n 'https://thegraph.coredao.org/subgraphs/name/steer-protocol-core',\n [Chain.Peaq]:\n 'https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/45pjWAnAXULpS6UDajzCtLcZYuohwuMm4UuSDjegMKAT',\n [Chain.Katana]:\n 'https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/D6CST1Az8c8KvMf8ktcEcWds89YVQxbKG6v8yo7FAzzM',\n [Chain.Ronin]:\n 'https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/793Lz5oiK51wdm9kCLtHqunkAPk2qjg7denpCrHqrLcA',\n [Chain.Saga]:\n 'https://api.goldsky.com/api/public/project_clohj3ta78ok12nzs5m8yag0b/subgraphs/steer-protocol-saga-evm/prod/gn',\n [Chain.Nibiru]:\n 'https://app.sentio.xyz//api/v1/graphql/rakesh/steer-protocol-nibiru',\n [Chain.Hyperevm]:\n 'https://api.subgraph.ormilabs.com/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-hyperevm/prod/gn'\n}\n\n/**\n * Retrieves the subgraph URL for a given chain ID.\n * \n * @param chainId - The numeric identifier of the blockchain network\n * @returns The subgraph URL for the given chain ID, or undefined if not found\n * @example\n * ```typescript\n * const subgraphUrl = getSubgraphUrlByChainId(1);\n * // Returns the Ethereum mainnet subgraph URL\n * ```\n */\nexport function getSubgraphUrlByChainId(chainId: number): string | undefined {\n // Convert chainId to Chain enum value using ChainId enum\n const [chainName] = Object.entries(ChainId).find(([, id]) => Number(id) === chainId) || [];\n if (!chainName) return undefined;\n \n // Get the Chain enum value\n const chain = Chain[chainName as keyof typeof Chain];\n if (!chain) return undefined;\n\n // Return the subgraph URL from steerSubgraphConfig\n return steerSubgraphConfig[chain];\n}"]}
|
|
@@ -36,7 +36,7 @@ export const steerSubgraphConfig = {
|
|
|
36
36
|
[Chain.Taiko]: "https://api.subgraph.ormilabs.com/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-taiko/prod/gn",
|
|
37
37
|
[Chain.Rootstock]: "https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/H3pANqbMVTiFCUXHjXYr2mHbXvn5my5o66Gxbwcg7Aqm",
|
|
38
38
|
[Chain.ZklinkNova]: "https://api.goldsky.com/api/public/project_clohj3ta78ok12nzs5m8yag0b/subgraphs/steer-protocol-zklink-nova/1.0.1/gn",
|
|
39
|
-
[Chain.Flare]: "https://api.goldsky.com/api/public/
|
|
39
|
+
[Chain.Flare]: "https://api.goldsky.com/api/public/project_cm2k9xbkz4qg901vs51bm5uau/subgraphs/steer-protocol-flare/prod/gn",
|
|
40
40
|
[Chain.BeraChainBartio]: 'https://api.goldsky.com/api/public/project_clohj3ta78ok12nzs5m8yag0b/subgraphs/steer-protocol-berachain-bartio/prod/gn',
|
|
41
41
|
[Chain.Filecoin]: 'https://api.goldsky.com/api/public/project_clohj3ta78ok12nzs5m8yag0b/subgraphs/steer-protocol-filecoin/prod/gn',
|
|
42
42
|
[Chain.Apechain]: 'https://apeapi.0xgraph.xyz/api/public/4ea21b03-9850-4796-8068-ec71bbe022db/subgraphs/steer-protocol-apechain/prod/gn',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subgraph.js","sourceRoot":"","sources":["../../../src/const/subgraph.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAmB5C;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,8CAA8C,CAAA;AAGlF;;;;EAIE;AACF,MAAM,CAAC,MAAM,mBAAmB,GAE5B;IACF,CAAC,KAAK,CAAC,OAAO,CAAC,EACb,4HAA4H;IAC9H,CAAC,KAAK,CAAC,GAAG,CAAC,EACT,qHAAqH;IACvH,CAAC,KAAK,CAAC,QAAQ,CAAC,EACd,qHAAqH;IACvH,CAAC,KAAK,CAAC,QAAQ,CAAC,EACd,6HAA6H;IAC/H,CAAC,KAAK,CAAC,KAAK,CAAC,EACX,+EAA+E;IACjF,CAAC,KAAK,CAAC,WAAW,CAAC,EACjB,2FAA2F;IAC7F,CAAC,KAAK,CAAC,KAAK,CAAC,EACX,sHAAsH;IACxH,CAAC,KAAK,CAAC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CAAC,SAA+B,CAAC,CAAC;IACrD,IAAI,CAAC,KAAK;QAAE,OAAO,SAAS,CAAC;IAE7B,mDAAmD;IACnD,OAAO,mBAAmB,CAAC,KAAK,CAAC,CAAC;AACpC,CAAC","sourcesContent":["import { SteerSupportedChains } from \"../types.js\";\nimport { Chain, ChainId } from \"./chain.js\";\n\n\n\n/**\n * Interface representing network-specific data and configuration\n */\nexport interface NetworkData {\n /** Chain ID of the network */\n chainId: number;\n /** Symbol of the wrapped native token */\n wrappedNativeToken: string;\n /** Address of the network's native token wrapper contract */\n address: string;\n /** Optional network name */\n name?: string;\n}\n\n\n/**\n * URL for accessing deprecated bundle information\n */\nexport const deprecatedBundlesURL = \"https://api.steer.finance/deprecated-bundles\"\n\n \n/**\n * Configuration mapping of supported chains to their respective subgraph endpoints.\n * Each chain has a dedicated subgraph URL for querying protocol data.\n * Updated each chains for ormi and thegraph\n*/\nexport const steerSubgraphConfig: {\n [protocol in SteerSupportedChains]: string\n} = {\n [Chain.Polygon]:\n \"https://api.subgraph.ormilabs.com/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-polygon/prod/gn\",\n [Chain.BSC]:\n \"https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/GLDP56fPGDz3MtmhtfTkz5CxWiqiNLACVrsJ9RqQeL4U\",\n [Chain.Optimism]:\n \"https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/GgW1EwNARL3dyo3acQ3VhraQQ66MHT7QnYuGcQc5geDG\",\n [Chain.Arbitrum]:\n \"https://api.subgraph.ormilabs.com/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-arbitrum/prod/gn\",\n [Chain.Evmos]:\n \"https://subgraph.satsuma-prod.com/769a117cc018/steer/steer-protocol-evmos/api\",\n [Chain.Thundercore]:\n \"https://subgraph.steer.finance/thundercore/subgraphs/name/steerprotocol/steer-thundercore\",\n [Chain.Metis]:\n \"https://api.metis.0xgraph.xyz/api/public/b88b5696-b69d-46be-b212-5c55a9b1492f/subgraphs/steer-protocol-metis/prod/gn\",\n [Chain.Base]:\n \"https://api.subgraph.ormilabs.com/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-base/prod/gn\",\n [Chain.Avalanche]:\n \"https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/GZotTj3rQJ8ZqVyodtK8TcnKcUxMgeF7mCJHGPYbu8dA\",\n [Chain.PolygonzkEVM]:\n \"https://api.goldsky.com/api/public/project_clohj3ta78ok12nzs5m8yag0b/subgraphs/steer-protocol-polygon-zkevm/prod/gn\",\n [Chain.Celo]:\n \"https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/BPaFHyfVrhv3pdjGodpQcWggAg1Bcrvc9SFc2t2BXeho\",\n [Chain.Kava]:\n \"https://api.goldsky.com/api/public/project_clohj3ta78ok12nzs5m8yag0b/subgraphs/steer-protocol-kava/prod/gn\",\n [Chain.Linea]:\n \"https://api.subgraph.ormilabs.com/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-linea/prod/gn\",\n [Chain.Scroll]:\n \"https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/822PfgbgBzC98Huwf37uxvF9YGZMA5nDeETpstkR55Sn\",\n [Chain.Manta]:\n \"https://api.subgraph.ormilabs.com/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-manta/prod/gn\",\n [Chain.Astar]:\n \"https://api.goldsky.com/api/public/project_clohj3ta78ok12nzs5m8yag0b/subgraphs/steer-protocol-astar/prod/gn\",\n [Chain.Fantom]:\n \"https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/9uyX2WDuaxmcYh11ehUhU68M9uSCp5FXVQV2w4LqbpbV\",\n [Chain.OkxTestnet]:\n \"https://subgraph.steer.finance/steer-x1-testnet/subgraphs/name/steerprotocol/steer-okxtestnet\",\n [Chain.Mantle]:\n \"https://subgraph-api.mantle.xyz/subgraphs/name/steerprotocol/steer-protocol-mantle\",\n [Chain.AstarZkevm]:\n \"https://api.goldsky.com/api/public/project_clohj3ta78ok12nzs5m8yag0b/subgraphs/steer-protocol-astar-zkevm/1.1.1/gn\",\n [Chain.Blast]:\n \"https://api.subgraph.ormilabs.com/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-blast/prod/gn\",\n [Chain.Mode]:\n \"https://api.subgraph.ormilabs.com/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-mode/prod/gn\",\n [Chain.Telos]:\n \"https://telos.api.ormilabs.com/api/public/39892398-bfdd-48ac-b776-77ad8a5b4b9e/subgraphs/steer-protocol-telos/prod/gn\",\n [Chain.XLayer]:\n \"https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/8gCrUHrVS9rHwvDPLTn4Wz6od68ULb7azYuQz25JjRK3\",\n [Chain.Taiko]:\n \"https://api.subgraph.ormilabs.com/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-taiko/prod/gn\",\n [Chain.Rootstock]:\n \"https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/H3pANqbMVTiFCUXHjXYr2mHbXvn5my5o66Gxbwcg7Aqm\",\n [Chain.ZklinkNova]:\n \"https://api.goldsky.com/api/public/project_clohj3ta78ok12nzs5m8yag0b/subgraphs/steer-protocol-zklink-nova/1.0.1/gn\",\n [Chain.Flare]:\n \"https://api.goldsky.com/api/public/project_clohj3ta78ok12nzs5m8yag0b/subgraphs/steer-protocol-flare/1.1.1/gn\",\n [Chain.BeraChainBartio]:\n 'https://api.goldsky.com/api/public/project_clohj3ta78ok12nzs5m8yag0b/subgraphs/steer-protocol-berachain-bartio/prod/gn',\n [Chain.Filecoin]:\n 'https://api.goldsky.com/api/public/project_clohj3ta78ok12nzs5m8yag0b/subgraphs/steer-protocol-filecoin/prod/gn',\n [Chain.Apechain]:\n 'https://apeapi.0xgraph.xyz/api/public/4ea21b03-9850-4796-8068-ec71bbe022db/subgraphs/steer-protocol-apechain/prod/gn',\n [Chain.Zircuit]:\n 'https://api.goldsky.com/api/public/project_clohj3ta78ok12nzs5m8yag0b/subgraphs/steer-protocol-zircuit/prod/gn',\n [Chain.Moonbeam]:\n 'https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/4D2pLLQuGsAkdZAUgqxxnk4Mcu3aMjEV1HJ2F63kC7w6',\n [Chain.Sei]:\n 'https://api.goldsky.com/api/public/project_clohj3ta78ok12nzs5m8yag0b/subgraphs/steer-protocol-sei/prod/gn',\n [Chain.Sonic]:\n 'https://api.0xgraph.xyz/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-sonic/prod/gn',\n [Chain.Zeta]:\n 'https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/HFH41DyzAXxYmT5eszVWn2T7UxViMroPJ4XJV8vhDGNN',\n [Chain.Mainnet]:\n 'https://api.subgraph.ormilabs.com/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-mainnet/prod/gn',\n [Chain.Soneium]:\n 'https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/8gCrUHrVS9rHwvDPLTn4Wz6od68ULb7azYuQz25JjRK3',\n [Chain.Bera]:\n 'https://api.subgraph.ormilabs.com/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-bera/prod/gn',\n [Chain.Unichain]:\n 'https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/EoLK36f26Dr7maXyNKxJmEBJkoYVCMh1d4ENtT5hJgyB',\n [Chain.Hemi]:\n 'https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/2eACJtEGuELqN5roUiHG1jqmCpXt5aimcc8xZdvtMv4z',\n [Chain.TataraTestnet]:\n 'https://api.studio.thegraph.com/query/78728/steer-protocol-tatara-testnet/version/latest',\n [Chain.Core]:\n 'https://thegraph.coredao.org/subgraphs/name/steer-protocol-core',\n [Chain.Peaq]:\n 'https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/45pjWAnAXULpS6UDajzCtLcZYuohwuMm4UuSDjegMKAT',\n [Chain.Katana]:\n 'https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/D6CST1Az8c8KvMf8ktcEcWds89YVQxbKG6v8yo7FAzzM',\n [Chain.Ronin]:\n 'https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/793Lz5oiK51wdm9kCLtHqunkAPk2qjg7denpCrHqrLcA',\n [Chain.Saga]:\n 'https://api.goldsky.com/api/public/project_clohj3ta78ok12nzs5m8yag0b/subgraphs/steer-protocol-saga-evm/prod/gn',\n [Chain.Nibiru]:\n 'https://app.sentio.xyz//api/v1/graphql/rakesh/steer-protocol-nibiru',\n [Chain.Hyperevm]:\n 'https://api.subgraph.ormilabs.com/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-hyperevm/prod/gn'\n}\n\n/**\n * Retrieves the subgraph URL for a given chain ID.\n * \n * @param chainId - The numeric identifier of the blockchain network\n * @returns The subgraph URL for the given chain ID, or undefined if not found\n * @example\n * ```typescript\n * const subgraphUrl = getSubgraphUrlByChainId(1);\n * // Returns the Ethereum mainnet subgraph URL\n * ```\n */\nexport function getSubgraphUrlByChainId(chainId: number): string | undefined {\n // Convert chainId to Chain enum value using ChainId enum\n const [chainName] = Object.entries(ChainId).find(([, id]) => Number(id) === chainId) || [];\n if (!chainName) return undefined;\n \n // Get the Chain enum value\n const chain = Chain[chainName as keyof typeof Chain];\n if (!chain) return undefined;\n\n // Return the subgraph URL from steerSubgraphConfig\n return steerSubgraphConfig[chain];\n}"]}
|
|
1
|
+
{"version":3,"file":"subgraph.js","sourceRoot":"","sources":["../../../src/const/subgraph.ts"],"names":[],"mappings":"AACA,OAAO,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C,EACX,qHAAqH;IACvH,CAAC,KAAK,CAAC,IAAI,CAAC,EACV,gHAAgH;IAClH,CAAC,KAAK,CAAC,MAAM,CAAC,EACZ,qEAAqE;IACvE,CAAC,KAAK,CAAC,QAAQ,CAAC,EACd,6HAA6H;CAChI,CAAA;AAED;;;;;;;;;;GAUG;AACH,MAAM,UAAU,uBAAuB,CAAC,OAAe;IACrD,yDAAyD;IACzD,MAAM,CAAC,SAAS,CAAC,GAAG,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,KAAK,OAAO,CAAC,IAAI,EAAE,CAAC;IAC3F,IAAI,CAAC,SAAS;QAAE,OAAO,SAAS,CAAC;IAEjC,2BAA2B;IAC3B,MAAM,KAAK,GAAG,KAAK,CAAC,SAA+B,CAAC,CAAC;IACrD,IAAI,CAAC,KAAK;QAAE,OAAO,SAAS,CAAC;IAE7B,mDAAmD;IACnD,OAAO,mBAAmB,CAAC,KAAK,CAAC,CAAC;AACpC,CAAC","sourcesContent":["import { SteerSupportedChains } from \"../types.js\";\nimport { Chain, ChainId } from \"./chain.js\";\n\n\n\n/**\n * Interface representing network-specific data and configuration\n */\nexport interface NetworkData {\n /** Chain ID of the network */\n chainId: number;\n /** Symbol of the wrapped native token */\n wrappedNativeToken: string;\n /** Address of the network's native token wrapper contract */\n address: string;\n /** Optional network name */\n name?: string;\n}\n\n\n/**\n * URL for accessing deprecated bundle information\n */\nexport const deprecatedBundlesURL = \"https://api.steer.finance/deprecated-bundles\"\n\n \n/**\n * Configuration mapping of supported chains to their respective subgraph endpoints.\n * Each chain has a dedicated subgraph URL for querying protocol data.\n * Updated each chains for ormi and thegraph\n*/\nexport const steerSubgraphConfig: {\n [protocol in SteerSupportedChains]: string\n} = {\n [Chain.Polygon]:\n \"https://api.subgraph.ormilabs.com/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-polygon/prod/gn\",\n [Chain.BSC]:\n \"https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/GLDP56fPGDz3MtmhtfTkz5CxWiqiNLACVrsJ9RqQeL4U\",\n [Chain.Optimism]:\n \"https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/GgW1EwNARL3dyo3acQ3VhraQQ66MHT7QnYuGcQc5geDG\",\n [Chain.Arbitrum]:\n \"https://api.subgraph.ormilabs.com/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-arbitrum/prod/gn\",\n [Chain.Evmos]:\n \"https://subgraph.satsuma-prod.com/769a117cc018/steer/steer-protocol-evmos/api\",\n [Chain.Thundercore]:\n \"https://subgraph.steer.finance/thundercore/subgraphs/name/steerprotocol/steer-thundercore\",\n [Chain.Metis]:\n \"https://api.metis.0xgraph.xyz/api/public/b88b5696-b69d-46be-b212-5c55a9b1492f/subgraphs/steer-protocol-metis/prod/gn\",\n [Chain.Base]:\n \"https://api.subgraph.ormilabs.com/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-base/prod/gn\",\n [Chain.Avalanche]:\n \"https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/GZotTj3rQJ8ZqVyodtK8TcnKcUxMgeF7mCJHGPYbu8dA\",\n [Chain.PolygonzkEVM]:\n \"https://api.goldsky.com/api/public/project_clohj3ta78ok12nzs5m8yag0b/subgraphs/steer-protocol-polygon-zkevm/prod/gn\",\n [Chain.Celo]:\n \"https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/BPaFHyfVrhv3pdjGodpQcWggAg1Bcrvc9SFc2t2BXeho\",\n [Chain.Kava]:\n \"https://api.goldsky.com/api/public/project_clohj3ta78ok12nzs5m8yag0b/subgraphs/steer-protocol-kava/prod/gn\",\n [Chain.Linea]:\n \"https://api.subgraph.ormilabs.com/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-linea/prod/gn\",\n [Chain.Scroll]:\n \"https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/822PfgbgBzC98Huwf37uxvF9YGZMA5nDeETpstkR55Sn\",\n [Chain.Manta]:\n \"https://api.subgraph.ormilabs.com/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-manta/prod/gn\",\n [Chain.Astar]:\n \"https://api.goldsky.com/api/public/project_clohj3ta78ok12nzs5m8yag0b/subgraphs/steer-protocol-astar/prod/gn\",\n [Chain.Fantom]:\n \"https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/9uyX2WDuaxmcYh11ehUhU68M9uSCp5FXVQV2w4LqbpbV\",\n [Chain.OkxTestnet]:\n \"https://subgraph.steer.finance/steer-x1-testnet/subgraphs/name/steerprotocol/steer-okxtestnet\",\n [Chain.Mantle]:\n \"https://subgraph-api.mantle.xyz/subgraphs/name/steerprotocol/steer-protocol-mantle\",\n [Chain.AstarZkevm]:\n \"https://api.goldsky.com/api/public/project_clohj3ta78ok12nzs5m8yag0b/subgraphs/steer-protocol-astar-zkevm/1.1.1/gn\",\n [Chain.Blast]:\n \"https://api.subgraph.ormilabs.com/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-blast/prod/gn\",\n [Chain.Mode]:\n \"https://api.subgraph.ormilabs.com/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-mode/prod/gn\",\n [Chain.Telos]:\n \"https://telos.api.ormilabs.com/api/public/39892398-bfdd-48ac-b776-77ad8a5b4b9e/subgraphs/steer-protocol-telos/prod/gn\",\n [Chain.XLayer]:\n \"https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/8gCrUHrVS9rHwvDPLTn4Wz6od68ULb7azYuQz25JjRK3\",\n [Chain.Taiko]:\n \"https://api.subgraph.ormilabs.com/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-taiko/prod/gn\",\n [Chain.Rootstock]:\n \"https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/H3pANqbMVTiFCUXHjXYr2mHbXvn5my5o66Gxbwcg7Aqm\",\n [Chain.ZklinkNova]:\n \"https://api.goldsky.com/api/public/project_clohj3ta78ok12nzs5m8yag0b/subgraphs/steer-protocol-zklink-nova/1.0.1/gn\",\n [Chain.Flare]:\n \"https://api.goldsky.com/api/public/project_cm2k9xbkz4qg901vs51bm5uau/subgraphs/steer-protocol-flare/prod/gn\",\n [Chain.BeraChainBartio]:\n 'https://api.goldsky.com/api/public/project_clohj3ta78ok12nzs5m8yag0b/subgraphs/steer-protocol-berachain-bartio/prod/gn',\n [Chain.Filecoin]:\n 'https://api.goldsky.com/api/public/project_clohj3ta78ok12nzs5m8yag0b/subgraphs/steer-protocol-filecoin/prod/gn',\n [Chain.Apechain]:\n 'https://apeapi.0xgraph.xyz/api/public/4ea21b03-9850-4796-8068-ec71bbe022db/subgraphs/steer-protocol-apechain/prod/gn',\n [Chain.Zircuit]:\n 'https://api.goldsky.com/api/public/project_clohj3ta78ok12nzs5m8yag0b/subgraphs/steer-protocol-zircuit/prod/gn',\n [Chain.Moonbeam]:\n 'https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/4D2pLLQuGsAkdZAUgqxxnk4Mcu3aMjEV1HJ2F63kC7w6',\n [Chain.Sei]:\n 'https://api.goldsky.com/api/public/project_clohj3ta78ok12nzs5m8yag0b/subgraphs/steer-protocol-sei/prod/gn',\n [Chain.Sonic]:\n 'https://api.0xgraph.xyz/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-sonic/prod/gn',\n [Chain.Zeta]:\n 'https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/HFH41DyzAXxYmT5eszVWn2T7UxViMroPJ4XJV8vhDGNN',\n [Chain.Mainnet]:\n 'https://api.subgraph.ormilabs.com/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-mainnet/prod/gn',\n [Chain.Soneium]:\n 'https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/8gCrUHrVS9rHwvDPLTn4Wz6od68ULb7azYuQz25JjRK3',\n [Chain.Bera]:\n 'https://api.subgraph.ormilabs.com/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-bera/prod/gn',\n [Chain.Unichain]:\n 'https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/EoLK36f26Dr7maXyNKxJmEBJkoYVCMh1d4ENtT5hJgyB',\n [Chain.Hemi]:\n 'https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/2eACJtEGuELqN5roUiHG1jqmCpXt5aimcc8xZdvtMv4z',\n [Chain.TataraTestnet]:\n 'https://api.studio.thegraph.com/query/78728/steer-protocol-tatara-testnet/version/latest',\n [Chain.Core]:\n 'https://thegraph.coredao.org/subgraphs/name/steer-protocol-core',\n [Chain.Peaq]:\n 'https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/45pjWAnAXULpS6UDajzCtLcZYuohwuMm4UuSDjegMKAT',\n [Chain.Katana]:\n 'https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/D6CST1Az8c8KvMf8ktcEcWds89YVQxbKG6v8yo7FAzzM',\n [Chain.Ronin]:\n 'https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/793Lz5oiK51wdm9kCLtHqunkAPk2qjg7denpCrHqrLcA',\n [Chain.Saga]:\n 'https://api.goldsky.com/api/public/project_clohj3ta78ok12nzs5m8yag0b/subgraphs/steer-protocol-saga-evm/prod/gn',\n [Chain.Nibiru]:\n 'https://app.sentio.xyz//api/v1/graphql/rakesh/steer-protocol-nibiru',\n [Chain.Hyperevm]:\n 'https://api.subgraph.ormilabs.com/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-hyperevm/prod/gn'\n}\n\n/**\n * Retrieves the subgraph URL for a given chain ID.\n * \n * @param chainId - The numeric identifier of the blockchain network\n * @returns The subgraph URL for the given chain ID, or undefined if not found\n * @example\n * ```typescript\n * const subgraphUrl = getSubgraphUrlByChainId(1);\n * // Returns the Ethereum mainnet subgraph URL\n * ```\n */\nexport function getSubgraphUrlByChainId(chainId: number): string | undefined {\n // Convert chainId to Chain enum value using ChainId enum\n const [chainName] = Object.entries(ChainId).find(([, id]) => Number(id) === chainId) || [];\n if (!chainName) return undefined;\n \n // Get the Chain enum value\n const chain = Chain[chainName as keyof typeof Chain];\n if (!chain) return undefined;\n\n // Return the subgraph URL from steerSubgraphConfig\n return steerSubgraphConfig[chain];\n}"]}
|
package/package.json
CHANGED
package/src/const/subgraph.ts
CHANGED
|
@@ -87,7 +87,7 @@ export const steerSubgraphConfig: {
|
|
|
87
87
|
[Chain.ZklinkNova]:
|
|
88
88
|
"https://api.goldsky.com/api/public/project_clohj3ta78ok12nzs5m8yag0b/subgraphs/steer-protocol-zklink-nova/1.0.1/gn",
|
|
89
89
|
[Chain.Flare]:
|
|
90
|
-
"https://api.goldsky.com/api/public/
|
|
90
|
+
"https://api.goldsky.com/api/public/project_cm2k9xbkz4qg901vs51bm5uau/subgraphs/steer-protocol-flare/prod/gn",
|
|
91
91
|
[Chain.BeraChainBartio]:
|
|
92
92
|
'https://api.goldsky.com/api/public/project_clohj3ta78ok12nzs5m8yag0b/subgraphs/steer-protocol-berachain-bartio/prod/gn',
|
|
93
93
|
[Chain.Filecoin]:
|