Skip to content

Commit 9b48e45

Browse files
authored
feat: add neox etherscan like url and public rpc (#1712)
* feat: add neox etherscan like url and public rpc * add changeset * fix: prettier fix
1 parent 0c600a3 commit 9b48e45

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.changeset/metal-garlics-notice.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@graphprotocol/graph-cli": minor
3+
---
4+
5+
feat: add neox etherscan like url and public rpc

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,10 @@ const getEtherscanLikeAPIUrl = (network: string) => {
312312
return 'https://explorer.etherlink.com/api';
313313
case 'iotex-testnet':
314314
return 'https://testnet.index.iotexscan.io/api';
315+
case 'neox':
316+
return 'https://xexplorer.neo.org/api';
317+
case 'neox-testnet':
318+
return 'https://xt4scan.ngd.network/api';
315319

316320
default:
317321
return `https://api-${network}.etherscan.io/api`;
@@ -439,6 +443,10 @@ const getPublicRPCEndpoint = (network: string) => {
439443
return 'https://node.mainnet.etherlink.com';
440444
case 'iotex-testnet':
441445
return 'https://babel-api.testnet.iotex.io';
446+
case 'neox':
447+
return 'https://mainnet-1.rpc.banelabs.org';
448+
case 'neox-testnet':
449+
return 'https://neoxt4seed1.ngd.network';
442450
default:
443451
throw new Error(`Unknown network: ${network}`);
444452
}

0 commit comments

Comments
 (0)