- Get Foundry
$ forge test -vvv --gas-report
Run
$ anvil
Note: Be sure to set PRIVATE_KEY
variable in .env to be one of the anvil local private keys with eth balance
Then
$ source .env
$ forge script script/median.s.sol:MedianScript --fork-url http://localhost:8545 --broadcast -vvvv
$ source .env
$ forge script script/median.s.sol:MedianScript --rpc-url $GOERLI_RPC_URL --broadcast --verify -vvvv
Note: Can remove --broadcast and
--verify` to simulate the deployment script locally without actually broadcasting it to the network
$ forge build
$ forge test -vvv --gas-report
$ forge fmt
$ forge snapshot
$ anvil
$ cast <subcommand>
$ forge --help
$ anvil --help
$ cast --help