Template for Smart Contract applications compatible with foundry.
# Install tools from the nodejs ecosystem: prettier, solhint, husky and lint-staged
make nodejs-deps
# Install smart contract dependencies through `foundry update`
make update
cp .env.example .env
make build
make test # using a local node listening on http://localhost:8545
# Or
ETH_RPC_URL='https://eth-goerli.alchemyapi.io/v2/<ALCHEMY_API_KEY>' make test # using a remote node
Wrapper around forge
/cast
which figure out wallet and password automatically if you are using geth
keystore.
scripts/forge-deploy.sh
: Deploys a contract. Accepts the same options asforge create
scripts/forge-verify.sh
: Verifies a deployed contract. Accepts the same options asforge verify-contract
scripts/cast-send.sh
: Signs and publish a transaction. Accepts the same options ascast send