-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: separate app config for local and dev (#50)
# What ❔ Separate App configurations for local and dev setups. ## Why ❔ For development setup we're gonna show all networks, but for local (which will be used when running from CLI) only Local network will be shown. **Dev (default if you just run the application):** <img width="203" alt="Screenshot 2023-10-12 at 12 23 53" src="https://github.com/matter-labs/block-explorer/assets/6553665/89cb6fe4-ad99-451a-9659-c1b1fe8d40d0"> **Local (will be used by CLI):** <img width="212" alt="Screenshot 2023-10-12 at 12 24 29" src="https://github.com/matter-labs/block-explorer/assets/6553665/3d882cf0-d3bb-451f-bca4-08a09343ac23"> ## Checklist <!-- Check your PR fulfills the following items. --> <!-- For draft PRs check the boxes as you complete them. --> - [X] PR title corresponds to the body of PR (we generate changelog entries from PRs). - [ ] Tests for the changes have been added / updated. - [ ] Documentation comments have been added / updated. - [X] Code has been formatted via `zk fmt` and `zk lint`.
- Loading branch information
1 parent
494fc98
commit 849b5cc
Showing
4 changed files
with
80 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
{ | ||
"networks": [ | ||
{ | ||
"apiUrl": "http://localhost:3020", | ||
"verificationApiUrl": "http://127.0.0.1:3070", | ||
"bridgeUrl": "http://localhost:3000/bridge", | ||
"hostnames": [ | ||
"localhost" | ||
], | ||
"icon": "/images/icons/zksync-arrows.svg", | ||
"l2ChainId": 270, | ||
"l2NetworkName": "Local", | ||
"l2WalletUrl": "http://localhost:3000", | ||
"maintenance": false, | ||
"name": "local", | ||
"newProverUrl": "https://storage.googleapis.com/zksync-era-testnet-proofs/proofs_fri", | ||
"published": true, | ||
"rpcUrl": "http://localhost:3050" | ||
}, | ||
{ | ||
"apiUrl": "https://block-explorer-api.testnets.zksync.dev", | ||
"verificationApiUrl": "https://zksync2-testnet-explorer.zksync.dev", | ||
"bridgeUrl": "https://staging.goerli.bridge.zksync.dev", | ||
"hostnames": [ | ||
"https://goerli.staging-scan-v2.zksync.dev" | ||
], | ||
"icon": "/images/icons/zksync-arrows.svg", | ||
"l1ExplorerUrl": "https://goerli.etherscan.io", | ||
"l2ChainId": 280, | ||
"l2NetworkName": "zkSync Era Testnet", | ||
"l2WalletUrl": "https://goerli.staging-portal.zksync.dev/", | ||
"maintenance": false, | ||
"name": "goerli", | ||
"newProverUrl": "https://storage.googleapis.com/zksync-era-testnet-proofs/proofs_fri", | ||
"published": true, | ||
"rpcUrl": "https://testnet.era.zksync.dev" | ||
}, | ||
{ | ||
"apiUrl": "https://block-explorer-api.stage.zksync.dev", | ||
"verificationApiUrl": "https://z2-dev-api-explorer.zksync.dev", | ||
"hostnames": [ | ||
"https://goerli-beta.staging-scan-v2.zksync.dev" | ||
], | ||
"icon": "/images/icons/zksync-arrows.svg", | ||
"l1ExplorerUrl": "https://goerli.etherscan.io", | ||
"l2ChainId": 270, | ||
"l2NetworkName": "Goerli (Stage2)", | ||
"l2WalletUrl": "https://goerli-beta.staging-portal.zksync.dev/", | ||
"maintenance": false, | ||
"name": "goerli-beta", | ||
"newProverUrl": "https://storage.googleapis.com/zksync-era-stage-proofs/proofs_fri", | ||
"published": true, | ||
"rpcUrl": "https://z2-dev-api.zksync.dev" | ||
}, | ||
{ | ||
"apiUrl": "https://block-explorer-api.mainnet.zksync.io", | ||
"verificationApiUrl": "https://zksync2-mainnet-explorer.zksync.io", | ||
"bridgeUrl": "https://staging.bridge.zksync.dev", | ||
"hostnames": [ | ||
"https://staging-scan-v2.zksync.dev" | ||
], | ||
"icon": "/images/icons/zksync-arrows.svg", | ||
"l1ExplorerUrl": "https://etherscan.io", | ||
"l2ChainId": 324, | ||
"l2NetworkName": "zkSync Era Mainnet", | ||
"l2WalletUrl": "https://staging-portal.zksync.dev/", | ||
"maintenance": false, | ||
"name": "mainnet", | ||
"newProverUrl": "https://storage.googleapis.com/zksync-era-mainnet-proofs/proofs_fri", | ||
"published": true, | ||
"rpcUrl": "https://mainnet.era.zksync.io" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters