🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →

@pancakeswap/chains

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pancakeswap/chains - npm Package Compare versions

Comparing version

to
0.4.5

@@ -111,26 +111,26 @@ 'use strict';

// src/subgraphs.ts
var publicSubgraphParams = {
// Public key for nodereal subgraph endpoint
noderealApiKey: "19bd2b3f75c24e23bb8a0e9d4f55b271"
};
var publicSubgraphParams = {};
var V3_SUBGRAPHS = getV3Subgraphs(publicSubgraphParams);
var V2_SUBGRAPHS = getV2Subgraphs(publicSubgraphParams);
var BLOCKS_SUBGRAPHS = getBlocksSubgraphs(publicSubgraphParams);
var STABLESWAP_SUBGRAPHS = {
[56 /* BSC */]: "https://api.thegraph.com/subgraphs/name/pancakeswap/exchange-stableswap",
[42161 /* ARBITRUM_ONE */]: "https://api.thegraph.com/subgraphs/name/pancakeswap/exchange-stableswap-arb"
};
var STABLESWAP_SUBGRAPHS = getStableSwapSubgraphs(publicSubgraphParams);
function getStableSwapSubgraphs({ theGraphApiKey } = {}) {
return {
[56 /* BSC */]: `https://gateway-arbitrum.network.thegraph.com/api/${theGraphApiKey}/subgraphs/id/C5EuiZwWkCge7edveeMcvDmdr7jjc1zG4vgn8uucLdfz`,
[42161 /* ARBITRUM_ONE */]: `https://gateway-arbitrum.network.thegraph.com/api/${theGraphApiKey}/subgraphs/id/y7G5NUSq5ngsLH2jBGQajjxuLgW1bcqWiBqKmBk3MWM`
};
}
function getV3Subgraphs({ noderealApiKey, theGraphApiKey }) {
return {
[1 /* ETHEREUM */]: "https://api.thegraph.com/subgraphs/name/pancakeswap/exchange-v3-eth",
[1 /* ETHEREUM */]: `https://gateway-arbitrum.network.thegraph.com/api/${theGraphApiKey}/subgraphs/id/CJYGNhb7RvnhfBDjqpRnD3oxgyhibzc7fkAMa38YV3oS`,
[5 /* GOERLI */]: "https://api.thegraph.com/subgraphs/name/pancakeswap/exchange-v3-goerli",
[56 /* BSC */]: "https://api.thegraph.com/subgraphs/name/pancakeswap/exchange-v3-bsc",
[97 /* BSC_TESTNET */]: "https://api.thegraph.com/subgraphs/name/pancakeswap/exchange-v3-chapel",
[42161 /* ARBITRUM_ONE */]: "https://api.thegraph.com/subgraphs/name/pancakeswap/exchange-v3-arb",
[56 /* BSC */]: `https://gateway-arbitrum.network.thegraph.com/api/${theGraphApiKey}/subgraphs/id/Hv1GncLY5docZoGtXjo4kwbTvxm3MAhVZqBZE4sUT9eZ`,
[97 /* BSC_TESTNET */]: `https://gateway-arbitrum.network.thegraph.com/api/${theGraphApiKey}/subgraphs/id/7xd5KmL3FbzRYbmAM9SSe4wdrsJV71pJQhCBqzU7y8Qi`,
[42161 /* ARBITRUM_ONE */]: `https://gateway-arbitrum.network.thegraph.com/api/${theGraphApiKey}/subgraphs/id/251MHFNN1rwjErXD2efWMpNS73SANZN8Ua192zw6iXve`,
[421613 /* ARBITRUM_GOERLI */]: "https://api.thegraph.com/subgraphs/name/chef-jojo/exhange-v3-arb-goerli",
[1101 /* POLYGON_ZKEVM */]: `https://gateway-arbitrum.network.thegraph.com/api/${theGraphApiKey}/subgraphs/id/7HroSeAFxfJtYqpbgcfAnNSgkzzcZXZi6c75qLPheKzQ`,
[1442 /* POLYGON_ZKEVM_TESTNET */]: null,
[324 /* ZKSYNC */]: "https://api.studio.thegraph.com/query/45376/exchange-v3-zksync/version/latest",
[324 /* ZKSYNC */]: `https://gateway-arbitrum.network.thegraph.com/api/${theGraphApiKey}/subgraphs/id/3dKr3tYxTuwiRLkU9vPj3MvZeUmeuGgWURbFC72ZBpYY`,
[280 /* ZKSYNC_TESTNET */]: "https://api.studio.thegraph.com/query/45376/exchange-v3-zksync-testnet/version/latest",
[59144 /* LINEA */]: "https://api.studio.thegraph.com/query/45376/exchange-v3-linea/version/latest",
[59144 /* LINEA */]: `https://gateway-arbitrum.network.thegraph.com/api/${theGraphApiKey}/subgraphs/id/6gCTVX98K3A9Hf9zjvgEKwjz7rtD4C1V173RYEdbeMFX`,
[59140 /* LINEA_TESTNET */]: "https://thegraph.goerli.zkevm.consensys.net/subgraphs/name/pancakeswap/exchange-v3-linea-goerli",

@@ -150,9 +150,9 @@ [8453 /* BASE */]: `https://gateway-arbitrum.network.thegraph.com/api/${theGraphApiKey}/subgraphs/id/5YYKGBcRkJs6tmDfB3RpHdbK2R5KBACHQebXVgbUcYQp`,

[56 /* BSC */]: "https://proxy-worker-api.pancakeswap.com/bsc-exchange",
[1 /* ETHEREUM */]: "https://api.thegraph.com/subgraphs/name/pancakeswap/exhange-eth",
[1 /* ETHEREUM */]: `https://gateway-arbitrum.network.thegraph.com/api/${theGraphApiKey}/subgraphs/id/9opY17WnEPD4REcC43yHycQthSeUMQE26wyoeMjZTLEx`,
[1101 /* POLYGON_ZKEVM */]: `https://gateway-arbitrum.network.thegraph.com/api/${theGraphApiKey}/subgraphs/id/37WmH5kBu6QQytRpMwLJMGPRbXvHgpuZsWqswW4Finc2`,
[280 /* ZKSYNC_TESTNET */]: "https://api.studio.thegraph.com/query/45376/exchange-v2-zksync-testnet/version/latest",
[324 /* ZKSYNC */]: " https://api.studio.thegraph.com/query/45376/exchange-v2-zksync/version/latest",
[324 /* ZKSYNC */]: `https://gateway-arbitrum.network.thegraph.com/api/${theGraphApiKey}/subgraphs/id/6dU6WwEz22YacyzbTbSa3CECCmaD8G7oQ8aw6MYd5VKU`,
[59140 /* LINEA_TESTNET */]: "https://thegraph.goerli.zkevm.consensys.net/subgraphs/name/pancakeswap/exhange-eth/",
[42161 /* ARBITRUM_ONE */]: "https://api.thegraph.com/subgraphs/name/pancakeswap/exchange-v2-arb",
[59144 /* LINEA */]: "https://api.studio.thegraph.com/query/45376/exchange-v2-linea/version/latest",
[42161 /* ARBITRUM_ONE */]: `https://gateway-arbitrum.network.thegraph.com/api/${theGraphApiKey}/subgraphs/id/EsL7geTRcA3LaLLM9EcMFzYbUgnvf8RixoEEGErrodB3`,
[59144 /* LINEA */]: `https://gateway-arbitrum.network.thegraph.com/api/${theGraphApiKey}/subgraphs/id/Eti2Z5zVEdARnuUzjCbv4qcimTLysAizsqH3s6cBfPjB`,
[8453 /* BASE */]: `https://gateway-arbitrum.network.thegraph.com/api/${theGraphApiKey}/subgraphs/id/2NjL7L4CmQaGJSacM43ofmH6ARf6gJoBeBaJtz9eWAQ9`,

@@ -187,2 +187,3 @@ [204 /* OPBNB */]: `https://open-platform-ap.nodereal.io/${noderealApiKey}/opbnb-mainnet-graph-query/subgraphs/name/pancakeswap/exchange-v2`

exports.getLlamaChainName = getLlamaChainName;
exports.getStableSwapSubgraphs = getStableSwapSubgraphs;
exports.getV2Subgraphs = getV2Subgraphs;

@@ -189,0 +190,0 @@ exports.getV3Subgraphs = getV3Subgraphs;

@@ -6,13 +6,13 @@ type SubgraphParams = {

export declare const V3_SUBGRAPHS: {
readonly 1: "https://api.thegraph.com/subgraphs/name/pancakeswap/exchange-v3-eth";
readonly 1: `https://gateway-arbitrum.network.thegraph.com/api/${string}/subgraphs/id/CJYGNhb7RvnhfBDjqpRnD3oxgyhibzc7fkAMa38YV3oS`;
readonly 5: "https://api.thegraph.com/subgraphs/name/pancakeswap/exchange-v3-goerli";
readonly 56: "https://api.thegraph.com/subgraphs/name/pancakeswap/exchange-v3-bsc";
readonly 97: "https://api.thegraph.com/subgraphs/name/pancakeswap/exchange-v3-chapel";
readonly 42161: "https://api.thegraph.com/subgraphs/name/pancakeswap/exchange-v3-arb";
readonly 56: `https://gateway-arbitrum.network.thegraph.com/api/${string}/subgraphs/id/Hv1GncLY5docZoGtXjo4kwbTvxm3MAhVZqBZE4sUT9eZ`;
readonly 97: `https://gateway-arbitrum.network.thegraph.com/api/${string}/subgraphs/id/7xd5KmL3FbzRYbmAM9SSe4wdrsJV71pJQhCBqzU7y8Qi`;
readonly 42161: `https://gateway-arbitrum.network.thegraph.com/api/${string}/subgraphs/id/251MHFNN1rwjErXD2efWMpNS73SANZN8Ua192zw6iXve`;
readonly 421613: "https://api.thegraph.com/subgraphs/name/chef-jojo/exhange-v3-arb-goerli";
readonly 1101: `https://gateway-arbitrum.network.thegraph.com/api/${string}/subgraphs/id/7HroSeAFxfJtYqpbgcfAnNSgkzzcZXZi6c75qLPheKzQ`;
readonly 1442: null;
readonly 324: "https://api.studio.thegraph.com/query/45376/exchange-v3-zksync/version/latest";
readonly 324: `https://gateway-arbitrum.network.thegraph.com/api/${string}/subgraphs/id/3dKr3tYxTuwiRLkU9vPj3MvZeUmeuGgWURbFC72ZBpYY`;
readonly 280: "https://api.studio.thegraph.com/query/45376/exchange-v3-zksync-testnet/version/latest";
readonly 59144: "https://api.studio.thegraph.com/query/45376/exchange-v3-linea/version/latest";
readonly 59144: `https://gateway-arbitrum.network.thegraph.com/api/${string}/subgraphs/id/6gCTVX98K3A9Hf9zjvgEKwjz7rtD4C1V173RYEdbeMFX`;
readonly 59140: "https://thegraph.goerli.zkevm.consensys.net/subgraphs/name/pancakeswap/exchange-v3-linea-goerli";

@@ -51,17 +51,21 @@ readonly 8453: `https://gateway-arbitrum.network.thegraph.com/api/${string}/subgraphs/id/5YYKGBcRkJs6tmDfB3RpHdbK2R5KBACHQebXVgbUcYQp`;

export declare const STABLESWAP_SUBGRAPHS: {
readonly 56: "https://api.thegraph.com/subgraphs/name/pancakeswap/exchange-stableswap";
readonly 42161: "https://api.thegraph.com/subgraphs/name/pancakeswap/exchange-stableswap-arb";
readonly 56: `https://gateway-arbitrum.network.thegraph.com/api/${string}/subgraphs/id/C5EuiZwWkCge7edveeMcvDmdr7jjc1zG4vgn8uucLdfz`;
readonly 42161: `https://gateway-arbitrum.network.thegraph.com/api/${string}/subgraphs/id/y7G5NUSq5ngsLH2jBGQajjxuLgW1bcqWiBqKmBk3MWM`;
};
export declare function getStableSwapSubgraphs({ theGraphApiKey }?: Pick<SubgraphParams, 'theGraphApiKey'>): {
readonly 56: `https://gateway-arbitrum.network.thegraph.com/api/${string}/subgraphs/id/C5EuiZwWkCge7edveeMcvDmdr7jjc1zG4vgn8uucLdfz`;
readonly 42161: `https://gateway-arbitrum.network.thegraph.com/api/${string}/subgraphs/id/y7G5NUSq5ngsLH2jBGQajjxuLgW1bcqWiBqKmBk3MWM`;
};
export declare function getV3Subgraphs({ noderealApiKey, theGraphApiKey }: SubgraphParams): {
readonly 1: "https://api.thegraph.com/subgraphs/name/pancakeswap/exchange-v3-eth";
readonly 1: `https://gateway-arbitrum.network.thegraph.com/api/${string}/subgraphs/id/CJYGNhb7RvnhfBDjqpRnD3oxgyhibzc7fkAMa38YV3oS`;
readonly 5: "https://api.thegraph.com/subgraphs/name/pancakeswap/exchange-v3-goerli";
readonly 56: "https://api.thegraph.com/subgraphs/name/pancakeswap/exchange-v3-bsc";
readonly 97: "https://api.thegraph.com/subgraphs/name/pancakeswap/exchange-v3-chapel";
readonly 42161: "https://api.thegraph.com/subgraphs/name/pancakeswap/exchange-v3-arb";
readonly 56: `https://gateway-arbitrum.network.thegraph.com/api/${string}/subgraphs/id/Hv1GncLY5docZoGtXjo4kwbTvxm3MAhVZqBZE4sUT9eZ`;
readonly 97: `https://gateway-arbitrum.network.thegraph.com/api/${string}/subgraphs/id/7xd5KmL3FbzRYbmAM9SSe4wdrsJV71pJQhCBqzU7y8Qi`;
readonly 42161: `https://gateway-arbitrum.network.thegraph.com/api/${string}/subgraphs/id/251MHFNN1rwjErXD2efWMpNS73SANZN8Ua192zw6iXve`;
readonly 421613: "https://api.thegraph.com/subgraphs/name/chef-jojo/exhange-v3-arb-goerli";
readonly 1101: `https://gateway-arbitrum.network.thegraph.com/api/${string}/subgraphs/id/7HroSeAFxfJtYqpbgcfAnNSgkzzcZXZi6c75qLPheKzQ`;
readonly 1442: null;
readonly 324: "https://api.studio.thegraph.com/query/45376/exchange-v3-zksync/version/latest";
readonly 324: `https://gateway-arbitrum.network.thegraph.com/api/${string}/subgraphs/id/3dKr3tYxTuwiRLkU9vPj3MvZeUmeuGgWURbFC72ZBpYY`;
readonly 280: "https://api.studio.thegraph.com/query/45376/exchange-v3-zksync-testnet/version/latest";
readonly 59144: "https://api.studio.thegraph.com/query/45376/exchange-v3-linea/version/latest";
readonly 59144: `https://gateway-arbitrum.network.thegraph.com/api/${string}/subgraphs/id/6gCTVX98K3A9Hf9zjvgEKwjz7rtD4C1V173RYEdbeMFX`;
readonly 59140: "https://thegraph.goerli.zkevm.consensys.net/subgraphs/name/pancakeswap/exchange-v3-linea-goerli";

@@ -68,0 +72,0 @@ readonly 8453: `https://gateway-arbitrum.network.thegraph.com/api/${string}/subgraphs/id/5YYKGBcRkJs6tmDfB3RpHdbK2R5KBACHQebXVgbUcYQp`;

{
"name": "@pancakeswap/chains",
"license": "MIT",
"version": "0.4.4",
"version": "0.4.5",
"description": "The single source of truth for Pancakeswap chain-related information",

@@ -39,2 +39,3 @@ "main": "dist/index.js",

"test": "vitest --run",
"test:u": "vitest -u --run",
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",

@@ -41,0 +42,0 @@ "update:snapshot": "vitest -u"

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet