0.8.24
infoundry.toml
as we needtload/tstore
support.prettierrc
explictly setsingleQuote: false
to overwrite any local dev's settings
- Install dependencies with
forge install
andyarn
- Run test with
forge test
- Run
forge update
The scripts are located in /script
folder, deployed contract address can be found in script/config
// 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
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