Skip to content

Commit fea8f23

Browse files
authoredJun 19, 2024··
adding sei mainnet to graph-cli (#1686)
* getEtherscanLikeAPIUrl: added for sei mainnet * added public rpc info for sei mainnet * changeset added * fixed typo
1 parent e15d50a commit fea8f23

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed
 

‎.changeset/fair-crabs-greet.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@graphprotocol/graph-cli": minor
3+
---
4+
5+
getEtherscanLikeAPIUrl: added for sei mainnet (to be able to obtain contract ABI)

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

+4
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,8 @@ const getEtherscanLikeAPIUrl = (network: string) => {
296296
return `https://astar-zkevm.explorer.startale.com/api`;
297297
case 'polygon-zkevm-cardona':
298298
return `https://api-cardona-zkevm.polygonscan.com/api`;
299+
case 'sei-mainnet':
300+
return `https://seitrace.com/pacific-1/api`;
299301
default:
300302
return `https://api-${network}.etherscan.io/api`;
301303
}
@@ -406,6 +408,8 @@ const getPublicRPCEndpoint = (network: string) => {
406408
return `https://1rpc.io/astr`;
407409
case 'polygon-zkevm-cardona':
408410
return `https://rpc.cardona.zkevm-rpc.com`;
411+
case 'sei-mainnet':
412+
return `https://evm-rpc.sei-apis.com`;
409413
default:
410414
throw new Error(`Unknown network: ${network}`);
411415
}

0 commit comments

Comments
 (0)
Please sign in to comment.