Skip to content

Commit 6aacb7c

Browse files
pranavdaasaihaj
andauthored
added scroll mainnet to cli (#1474)
* added scroll mainnet to cli * style: run prettier * changeset: * fix --------- Co-authored-by: Saihajpreet Singh <[email protected]>
1 parent 163b4b4 commit 6aacb7c

File tree

5 files changed

+13
-3
lines changed

5 files changed

+13
-3
lines changed

.changeset/wild-bulldogs-tan.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+
add scroll mainnet support

examples/matic-lens-protocol-posts-subgraph/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,5 @@
1717
},
1818
"devDependencies": {
1919
"matchstick-as": "0.5.2"
20-
},
21-
"version": null
20+
}
2221
}

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,9 @@ const getEtherscanLikeAPIUrl = (network: string) => {
203203
case 'sepolia':
204204
return `https://api-sepolia.etherscan.io/api`;
205205
case 'scroll-sepolia':
206-
return `https://sepolia-blockscout.scroll.io/api`;
206+
return `https://api-sepolia.scrollscan.dev/api`;
207+
case 'scroll':
208+
return `https://blockscout.scroll.io/api`;
207209
default:
208210
return `https://api-${network}.etherscan.io/api`;
209211
}
@@ -280,6 +282,8 @@ const getPublicRPCEndpoint = (network: string) => {
280282
return 'https://rpc.ankr.com/eth_sepolia';
281283
case 'scroll-sepolia':
282284
return 'https://rpc.ankr.com/scroll_sepolia_testnet';
285+
case 'scroll':
286+
return 'https://rpc.ankr.com/scroll';
283287
default:
284288
throw new Error(`Unknown network: ${network}`);
285289
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export const allowedStudioNetworks = [
3030
'polygon-zkevm-testnet',
3131
'polygon-zkevm',
3232
'scroll-sepolia',
33+
'scroll',
3334
] as const;
3435

3536
export const validateStudioNetwork = ({

packages/cli/src/protocols/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ export default class Protocol {
112112
'polygon-zkevm-testnet',
113113
'polygon-zkevm',
114114
'scroll-sepolia',
115+
'scroll',
115116
],
116117
near: ['near-mainnet', 'near-testnet'],
117118
cosmos: [

0 commit comments

Comments
 (0)