Skip to content

Jaca777/pancake-v4-core

 
 

Repository files navigation

Pancake v4 Core

  1. 0.8.24 in foundry.toml as we need tload/tstore support
  2. .prettierrc explictly set singleQuote: false to overwrite any local dev's settings

Running test

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

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/{SCRIPT_CONFIG}.json
export SCRIPT_CONFIG=ethereum-sepolia

// set rpc url
export RPC_URL=https://

// 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

// remove --verify flag if etherscan_api_key is not set
forge script script/01_DeployVault.s.sol:DeployVaultScript -vvv \
    --rpc-url $RPC_URL \
    --broadcast \
    --slow \
    --verify

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Solidity 99.9%
  • Other 0.1%