matter-labs / matter-labs/zksync-cli
Support bridging to any chain
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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