Skip to content

Commit

Permalink
add iotex urls (#1692)
Browse files Browse the repository at this point in the history
* add iotex urls

* add changset
  • Loading branch information
yash251 authored Jul 1, 2024
1 parent 716cdf3 commit 6f84e7a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/fair-humans-end.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphprotocol/graph-cli": minor
---

add iotex urls
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 @@ -300,6 +300,8 @@ const getEtherscanLikeAPIUrl = (network: string) => {
return `https://seitrace.com/pacific-1/api`;
case 'rootstock':
return 'https://rootstock.blockscout.com/api';
case 'iotex':
return 'https://index.iotexscan.io/api';
default:
return `https://api-${network}.etherscan.io/api`;
}
Expand Down Expand Up @@ -414,6 +416,8 @@ const getPublicRPCEndpoint = (network: string) => {
return `https://evm-rpc.sei-apis.com`;
case 'rootstock':
return 'https://public-node.rsk.co';
case 'iotex':
return 'https://iotexrpc.com';
default:
throw new Error(`Unknown network: ${network}`);
}
Expand Down

0 comments on commit 6f84e7a

Please sign in to comment.