/peanut-contracts

Contracts for Peanut Protocol

Primary LanguageSolidityGNU General Public License v3.0GPL-3.0

Peanut Protocol

Repo for peanut smart contracts

Foundry reference: https://book.getfoundry.sh/getting-started/first-steps

Deployments

See list of deployed contracts on contracts.json See deploy.py for deploying more

Install

forge install

Test

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

Deploy

Use deploy.py for simplicity. Alternatively: forge create... or forge script

Run a script

e.g. (optional params)

forge script script/DeployEthRome.s.sol:DeployEthRome --rpc-url optimism-goerli --broadcast --verify -vvvv --legacy

Other useful commands

e.g. verify contract:

    forge verify-contract 0x690481ce72b1080bd928a35a0ecf329be902cd6a src/V5/PeanutV5.sol:PeanutV5 --watch --chain base