Skip to content

Latest commit

 

History

History
43 lines (33 loc) · 905 Bytes

README.md

File metadata and controls

43 lines (33 loc) · 905 Bytes

Agchain Contract

Please make sure you have already installed Foundry globally

Useful commands

  1. Install dependencies
$ forge install # Without any argument
  1. Compile
$ forge build
  1. Run test scripts
$ forge test
$ forge test -vvvv
$ (forge build; clear; forge test)
  1. Clean the build artifacts and cache
forge clean
  1. Deploy contracts
forge script script/deploy.s.sol:Deploy --rpc-url sepolia --broadcast --verify -vvvv
  1. Other commands
$ cast run <TXN_HASH> --rpc-url sepolia -vvv
$ cast tx <TXN_HASH> --rpc-url sepolia
$ cast receipt <TXN_HASH> --rpc-url sepolia