matter-labs / matter-labs/zksync-cli

Support bridging to any chain

Open
#180 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
168
Forks
99
PR merge metrics
No merged PRs in 30d

Description

### 🌟 Feature Request

#### 📝 Description

Currently, there are only 3 choices for network ("zksync-sepolia", "zksync-mainnet", "dockerized-node") in `bridge deposit` function. It would be nice to be able to use bridge function for all networks. It would be best if the list was not limited, but you could provide all the required parameters through the command line.

With additional zkChain coming, it would be great to add them already support to them, e.g. in the `hardhat.config.ts`.

#### 🤔 Rationale

There are many more networks than era already. It would be useful to be able to use the tool for all of them and any devnet.

#### 🖼️ Mockups/Examples
This could be done similarly to viem: https://github.com/wevm/viem/blob/main/src/chains/index.ts.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the `bridge deposit` implementation and trace how the three supported networks and their parameters are defined. Review `hardhat.config.ts` and the linked viem chain index for context. Done should allow networks beyond zksync-sepolia, zksync-mainnet, and dockerized-node, including required parameters supplied through the command line.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.