Skip to content

Commit

Permalink
add chiliz testnet rpc and api (#1728)
Browse files Browse the repository at this point in the history
* add chiliz testnet rpc and api

* add changeset
  • Loading branch information
yash251 authored Sep 24, 2024
1 parent 271cb63 commit a05db7b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/slimy-crabs-fail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphprotocol/graph-cli": minor
---

add chiliz testnet rpc and api
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 @@ -322,6 +322,8 @@ const getEtherscanLikeAPIUrl = (network: string) => {
return 'https://explorer-testnet.soneium.org/api';
case 'chiliz':
return 'https://scan.chiliz.com/api';
case 'chiliz-testnet':
return 'https://spicy-explorer.chiliz.com/api';
default:
return `https://api-${network}.etherscan.io/api`;
}
Expand Down Expand Up @@ -458,6 +460,8 @@ const getPublicRPCEndpoint = (network: string) => {
return 'https://rpc.minato.soneium.org/';
case 'chiliz':
return 'https://rpc.ankr.com/chiliz';
case 'chiliz-testnet':
return 'https://spicy-rpc.chiliz.com';
default:
throw new Error(`Unknown network: ${network}`);
}
Expand Down

0 comments on commit a05db7b

Please sign in to comment.