Skip to content

Commit

Permalink
add soneium api and rpc (#1719)
Browse files Browse the repository at this point in the history
* add soneium api and rpc

* add changset
  • Loading branch information
yash251 authored Aug 28, 2024
1 parent fda9827 commit 2141242
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/honest-beans-buy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphprotocol/graph-cli": minor
---

add soneium api and rpc
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 @@ -318,6 +318,8 @@ const getEtherscanLikeAPIUrl = (network: string) => {
return 'https://xt4scan.ngd.network/api/ngd/api';
case 'arbitrum-nova':
return 'https://api-nova.arbiscan.io/api';
case 'soneium-testnet':
return 'https://explorer-testnet.soneium.org/api';
default:
return `https://api-${network}.etherscan.io/api`;
}
Expand Down Expand Up @@ -450,6 +452,8 @@ const getPublicRPCEndpoint = (network: string) => {
return 'https://neoxt4seed1.ngd.network';
case 'arbitrum-nova':
return 'https://nova.arbitrum.io/rpc';
case 'soneium-testnet':
return 'https://rpc.minato.soneium.org/';
default:
throw new Error(`Unknown network: ${network}`);
}
Expand Down

0 comments on commit 2141242

Please sign in to comment.