Skip to main content

Configuration

This guide covers:

  • configure your environment variables;
  • init submodules;
  • compile the contracts.

Dependencies

yarn install

Environment Variables

Configure your environment by creating a .env file in your project root:

PRIVATE_KEY=<0x...>
RPC_URL_<chainId>=<url> // RPC_URL_1, RPC_URL_560048, etc
VAULT_HUB_ADDRESS=<url>
ETHERSCAN_API_KEY=<url>
VariableDescriptionRequired for
PRIVATE_KEYDeployer account with a sufficient amount of ETHContract deployment
RPC_URL_<chainId>Deployer RPC URL for the target chainContract deployment
VAULT_HUB_ADDRESSAddress of the already deployed VaultHubContract deployment (update when deploying to other networks)
ETHERSCAN_API_KEYEtherscan API keySmart contract verification

Submodules

The develop branch currently works with Lido Core Contracts version v3.0.0-audits. Make sure to properly initialize the submodules to pull the correct version:

git submodule init
git submodule update --remote --recursive
cd submodules/lidofinance-core
git checkout v3.0.0-audits
cd ../../

Compile

After this, you can compile the contracts:

yarn compile