From 4c2f1c41d5646ccde548bbcb845201d2db26ab97 Mon Sep 17 00:00:00 2001 From: Ali Kim Date: Fri, 19 Jul 2024 12:10:11 -0400 Subject: [PATCH 1/3] added rpc & explorer urls for sei-atlantic, gravity-mainnet, gravity-testnet, etherlink-mainnet --- packages/cli/src/command-helpers/abi.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/packages/cli/src/command-helpers/abi.ts b/packages/cli/src/command-helpers/abi.ts index 18bba30c1..96a901548 100644 --- a/packages/cli/src/command-helpers/abi.ts +++ b/packages/cli/src/command-helpers/abi.ts @@ -298,10 +298,19 @@ const getEtherscanLikeAPIUrl = (network: string) => { return `https://api-cardona-zkevm.polygonscan.com/api`; case 'sei-mainnet': return `https://seitrace.com/pacific-1/api`; + case 'sei-atlantic': + return `https://seitrace.com/atlantic-2/api`; case 'rootstock': return 'https://rootstock.blockscout.com/api'; case 'iotex': return 'https://index.iotexscan.io/api'; + case 'gravity-mainnet': + return 'https://explorer.gravity.xyz/api'; + case 'gravity-testnet': + return 'https://explorer-sepolia.gravity.xyz/api'; + case 'etherlink-mainnet': + return 'https://explorer.etherlink.com/api'; + default: return `https://api-${network}.etherscan.io/api`; } @@ -414,10 +423,18 @@ const getPublicRPCEndpoint = (network: string) => { return `https://rpc.cardona.zkevm-rpc.com`; case 'sei-mainnet': return `https://evm-rpc.sei-apis.com`; + case 'sei-atlantic': + return `https://evm-rpc-testnet.sei-apis.com`; case 'rootstock': return 'https://public-node.rsk.co'; case 'iotex': return 'https://iotexrpc.com'; + case 'gravity-mainnet': + return 'https://rpc.gravity.xyz/'; + case 'gravity-testnet': + return 'https://rpc-sepolia.gravity.xyz'; + case 'etherlink-mainnet': + return 'https://node.mainnet.etherlink.com'; default: throw new Error(`Unknown network: ${network}`); } From 295ff94d305c753ccf18a350342d5c5ef841ffc8 Mon Sep 17 00:00:00 2001 From: AK Date: Fri, 19 Jul 2024 12:12:10 -0400 Subject: [PATCH 2/3] added changeset --- .changeset/cool-masks-roll.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/cool-masks-roll.md diff --git a/.changeset/cool-masks-roll.md b/.changeset/cool-masks-roll.md new file mode 100644 index 000000000..086ec04fc --- /dev/null +++ b/.changeset/cool-masks-roll.md @@ -0,0 +1,5 @@ +--- +"@graphprotocol/graph-cli": minor +--- + +added rpc & explorer urls for sei, gravity (mainnet & testnet), etherlink (mainnet) From 2d410f6dcbefeb6039c8d5b70d9ea71e5c6c4689 Mon Sep 17 00:00:00 2001 From: Ali Kim Date: Fri, 19 Jul 2024 18:22:00 +0200 Subject: [PATCH 3/3] ran lint:fix --- packages/cli/src/command-helpers/abi.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/cli/src/command-helpers/abi.ts b/packages/cli/src/command-helpers/abi.ts index 96a901548..1a4d70729 100644 --- a/packages/cli/src/command-helpers/abi.ts +++ b/packages/cli/src/command-helpers/abi.ts @@ -310,7 +310,7 @@ const getEtherscanLikeAPIUrl = (network: string) => { return 'https://explorer-sepolia.gravity.xyz/api'; case 'etherlink-mainnet': return 'https://explorer.etherlink.com/api'; - + default: return `https://api-${network}.etherscan.io/api`; } @@ -430,7 +430,7 @@ const getPublicRPCEndpoint = (network: string) => { case 'iotex': return 'https://iotexrpc.com'; case 'gravity-mainnet': - return 'https://rpc.gravity.xyz/'; + return 'https://rpc.gravity.xyz/'; case 'gravity-testnet': return 'https://rpc-sepolia.gravity.xyz'; case 'etherlink-mainnet':