Minimal example of a Diamond deployment script using foundry.
- foundry installed (https://book.getfoundry.sh/getting-started/installation)
- python3 installed
pip install eth-abi
- With anvil running:
forge script script/Deploy.s.sol --ffi --fork-url http://localhost:8545 --broadcast --verify -vvvv
- Deploy on testnet/mainnet:
forge script script/Deploy.s.sol --ffi --rpc-url $MY_RPC_URL --broadcast --verify -vvvv