Skip to content

sushi-labs/v4-core

 
 

Repository files navigation

V4 Core

Running test

  1. Install dependencies with forge install and yarn
  2. Run test with forge test --isolate

Update dependencies

  1. Run forge update

Deployment

The scripts are located in /script folder, deployed contract address can be found in script/config

Pre-req: before deployment, the follow env variable needs to be set

// set script config: /script/config/{CONFIG}.json
export CONFIG=ethereum

// private key need to be prefixed with 0x
export PRIVATE_KEY=0x

// optional. Only set if you want to verify contract on explorer
export ETHERSCAN_API_KEY=xx

Execute

Refer to the script source code for the exact command

Example. within script/01_DeployVault.s.sol

    forge script script/01_DeployVault.s.sol:DeployVault \
      -vvv --rpc-url $RPC_URL --broadcast --slow --verify

Verifying

Each script includes a verification command.

Example. within script/01_DeployVault.s.sol

forge verify-contract <address> Vault --watch --chain <chain_id>

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Solidity 99.9%
  • TypeScript 0.1%