Repo for peanut smart contracts
Foundry reference: https://book.getfoundry.sh/getting-started/first-steps
See list of deployed contracts on contracts.json
See deploy.py
for deploying more
forge install
forge test
Single test:
forge test --match-path test/V5/testX** -vvvv
Test on Fork:
forge test --fork-url "https://ethereum-goerli.publicnode.com" --match-path test/V5/testWithdrawDepositXChain** -vvvv
Use deploy.py
for simplicity.
Alternatively: forge create...
or forge script
e.g. (optional params)
forge script script/DeployEthRome.s.sol:DeployEthRome --rpc-url optimism-goerli --broadcast --verify -vvvv --legacy
e.g. verify contract:
forge verify-contract 0x690481ce72b1080bd928a35a0ecf329be902cd6a src/V5/PeanutV5.sol:PeanutV5 --watch --chain base