Skip to content

Commit 828bb04

Browse files
authored
added rpc & explorer urls for sei, gravity, etherlink (#1696)
* added rpc & explorer urls for sei-atlantic, gravity-mainnet, gravity-testnet, etherlink-mainnet * added changeset * ran lint:fix
1 parent ce99997 commit 828bb04

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

.changeset/cool-masks-roll.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@graphprotocol/graph-cli": minor
3+
---
4+
5+
added rpc & explorer urls for sei, gravity (mainnet & testnet), etherlink (mainnet)

packages/cli/src/command-helpers/abi.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,10 +298,19 @@ const getEtherscanLikeAPIUrl = (network: string) => {
298298
return `https://api-cardona-zkevm.polygonscan.com/api`;
299299
case 'sei-mainnet':
300300
return `https://seitrace.com/pacific-1/api`;
301+
case 'sei-atlantic':
302+
return `https://seitrace.com/atlantic-2/api`;
301303
case 'rootstock':
302304
return 'https://rootstock.blockscout.com/api';
303305
case 'iotex':
304306
return 'https://index.iotexscan.io/api';
307+
case 'gravity-mainnet':
308+
return 'https://explorer.gravity.xyz/api';
309+
case 'gravity-testnet':
310+
return 'https://explorer-sepolia.gravity.xyz/api';
311+
case 'etherlink-mainnet':
312+
return 'https://explorer.etherlink.com/api';
313+
305314
default:
306315
return `https://api-${network}.etherscan.io/api`;
307316
}
@@ -414,10 +423,18 @@ const getPublicRPCEndpoint = (network: string) => {
414423
return `https://rpc.cardona.zkevm-rpc.com`;
415424
case 'sei-mainnet':
416425
return `https://evm-rpc.sei-apis.com`;
426+
case 'sei-atlantic':
427+
return `https://evm-rpc-testnet.sei-apis.com`;
417428
case 'rootstock':
418429
return 'https://public-node.rsk.co';
419430
case 'iotex':
420431
return 'https://iotexrpc.com';
432+
case 'gravity-mainnet':
433+
return 'https://rpc.gravity.xyz/';
434+
case 'gravity-testnet':
435+
return 'https://rpc-sepolia.gravity.xyz';
436+
case 'etherlink-mainnet':
437+
return 'https://node.mainnet.etherlink.com';
421438
default:
422439
throw new Error(`Unknown network: ${network}`);
423440
}

0 commit comments

Comments
 (0)