This repository contains scripts and tools for deploying Router Protocol smart contracts across different blockchain networks. It supports both EVM and zkSync deployments.
- Node.js (v16 or higher)
- Yarn package manager
- Git
- Foundry (for contract compilation)
.
├── contracts/ # Smart contract submodules
├── src/ # Source code for deployment scripts
├── build.sh # Build script for contract compilation
└── package.json # Project dependencies and scripts
- Clone the repository and initialize submodules:
git submodule update --remote --merge
- Install dependencies:
yarn install
- Set up your environment variables:
- Copy
.env.example
to.env
- Add your private keys and other configuration
- Copy
To build the contracts for native EVM:
yarn build
To build for zkSync:
yarn build --zksync
- Start the deployment process:
yarn start
- Follow the CLI prompts to:
- Import your private key
- Select the network
- Deploy contracts
yarn start
: Start the deployment processyarn build
: Build contracts for native EVMyarn build --zksync
: Build contracts for zkSync
The project uses several key dependencies:
- @coral-xyz/anchor
- @ethersproject/abi
- @openzeppelin/upgrades-core
- @solana/web3.js
- ethers
- and more (see package.json for complete list)
Private keys are stored in the ./config/lrsc
folder and are encrypted with a password. This provides an additional layer of security for your sensitive credentials.
MIT License