Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add sepolia network #66

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ If you're using [local setup (dockerized testing node)](https://github.com/matte
### Run in development mode

1. Install all dependencies with `npm i`.
2. To use CLI in development mode run `npm run dev -- [command] [options]` (eg. `npm run dev -- bridge deposit --chain=era-testnet`).
2. To use CLI in development mode run `npm run dev -- [command] [options]` (eg. `npm run dev -- bridge deposit --chain=era-goerli-testnet`).

### Building for production

Expand Down
19 changes: 17 additions & 2 deletions src/data/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,32 @@ const goerli: Chain = {
rpcUrl: "https://rpc.ankr.com/eth_goerli",
explorerUrl: "https://goerli.etherscan.io",
};
const sepolia: Chain = {
id: 11155111,
name: "Ethereum Sepolia",
network: "sepolia",
rpcUrl: "https://rpc.ankr.com/eth_sepolia",
explorerUrl: "https://sepolia.etherscan.io",
};

type L2Chain = Chain & { l1Chain?: Chain };
export const l2Chains: L2Chain[] = [
{
id: 280,
name: "zkSync Era Testnet",
network: "era-testnet",
name: "zkSync Era Goerli Testnet",
network: "era-goerli-testnet",
rpcUrl: "https://testnet.era.zksync.dev",
explorerUrl: "https://goerli.explorer.zksync.io",
l1Chain: goerli,
},
{
id: 300,
name: "zkSync Era Sepolia Testnet",
network: "era-sepolia-testnet",
rpcUrl: "https://sepolia.era.zksync.dev",
explorerUrl: "https://explorer.sepolia.era.zksync.dev",
l1Chain: sepolia,
},
{
id: 324,
name: "zkSync Era Mainnet",
Expand Down