Skip to content

Commit

Permalink
added new chain (#1740)
Browse files Browse the repository at this point in the history
* added new chain: unichain testnet

* Create fair-suns-pay.md
  • Loading branch information
alinobrasil authored Oct 9, 2024
1 parent a2d0e28 commit 7b4f787
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/fair-suns-pay.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphprotocol/graph-cli": minor
---

added new chain
4 changes: 4 additions & 0 deletions packages/cli/src/command-helpers/abi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,8 @@ const getEtherscanLikeAPIUrl = (network: string) => {
return 'https://explorer.fusespark.io/api';
case 'rootstock-testnet':
return 'https://rootstock-testnet.blockscout.com/api';
case 'unichain-testnet':
return 'https://unichain-sepolia.blockscout.com/api';
default:
return `https://api-${network}.etherscan.io/api`;
}
Expand Down Expand Up @@ -490,6 +492,8 @@ const getPublicRPCEndpoint = (network: string) => {
return 'https://public-en.node.kaia.io';
case 'kaia-testnet':
return 'https://public-en.kairos.node.kaia.io';
case 'unichain-testnet':
return 'http://beta-u-Proxy-9QsHxlNJa4es-1179015898.us-east-2.elb.amazonaws.com:8545';
default:
throw new Error(`Unknown network: ${network}`);
}
Expand Down

0 comments on commit 7b4f787

Please sign in to comment.