|
All checks were successful
deploy / deploy (push) Successful in 44s
Contract: add MIN_DEPOSIT (500e6) + BelowMinimum error, checked against the combined credit (stable leg + valued stock leg) in _deposit, so it covers single- and dual-sided deposits. Tests updated (sub-$500 fixtures raised, fuzz bounds lifted) plus three new cases; 33/33 pass. ABI regenerated. Frontend: pre-submit validation in AppBoard and DepositPanel — button disables with a "Min. deposit $500" label and an inline error below the minimum, so users get feedback before signing. Shared MIN_DEPOSIT_USD / MIN_DEPOSIT_UNITS constants. Also refreshes the local anvil addresses in the dev deployment block (dev-only; prod uses the seed). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| lib | ||
| script | ||
| src | ||
| test | ||
| foundry.toml | ||
| README.md | ||
Foundry
Foundry is a blazing fast, portable and modular toolkit for Ethereum application development written in Rust.
Foundry consists of:
- Forge: Ethereum testing framework (like Truffle, Hardhat and DappTools).
- Cast: Swiss army knife for interacting with EVM smart contracts, sending transactions and getting chain data.
- Anvil: Local Ethereum node, akin to Ganache, Hardhat Network.
- Chisel: Fast, utilitarian, and verbose solidity REPL.
Documentation
Usage
Build
$ forge build
Test
$ forge test
Format
$ forge fmt
Gas Snapshots
$ forge snapshot
Anvil
$ anvil
Deploy
$ forge script script/Counter.s.sol:CounterScript --rpc-url <your_rpc_url> --private-key <your_private_key>
Cast
$ cast <subcommand>
Help
$ forge --help
$ anvil --help
$ cast --help