Skip to content

Commit

Permalink
added rpc & explorer urls for sei, gravity, etherlink (#1696)
Browse files Browse the repository at this point in the history
* added rpc & explorer urls for sei-atlantic, gravity-mainnet, gravity-testnet, etherlink-mainnet

* added changeset

* ran lint:fix
  • Loading branch information
alinobrasil authored Jul 19, 2024
1 parent ce99997 commit 828bb04
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/cool-masks-roll.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphprotocol/graph-cli": minor
---

added rpc & explorer urls for sei, gravity (mainnet & testnet), etherlink (mainnet)
17 changes: 17 additions & 0 deletions packages/cli/src/command-helpers/abi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`;
}
Expand Down Expand Up @@ -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}`);
}
Expand Down

0 comments on commit 828bb04

Please sign in to comment.