No description
Find a file
2026-09-02 14:14:39 +00:00
.github/workflows chore: forge init 2024-12-02 21:09:06 +00:00
broadcast/deploy_BSTR.s.sol/97 Fix bug. Add deployment script 2024-12-08 00:22:26 +00:00
lib forge install: openzeppelin-contracts 2024-12-02 21:11:16 +00:00
script Fix bug. Add deployment script 2024-12-08 00:22:26 +00:00
src Add rescueTokens 2024-12-08 00:28:33 +00:00
test chore: forge init 2024-12-02 21:09:06 +00:00
.gitignore chore: forge init 2024-12-02 21:09:06 +00:00
.gitmodules forge install: openzeppelin-contracts 2024-12-02 21:11:16 +00:00
CODEOWNERS Add CODEOWNERS for org code maintainers. 2026-09-02 14:14:39 +00:00
foundry.toml Add BSTR, BSTRTaxMan, amm 2024-12-02 23:47:37 +00:00
LICENSE Add BSTR, BSTRTaxMan, amm 2024-12-02 23:47:37 +00:00
README.md Fix bug. Add deployment script 2024-12-08 00:22:26 +00:00
remappings.txt Add BSTR, BSTRTaxMan, amm 2024-12-02 23:47:37 +00:00

deployment

Key variables are set in the script, and should be updated correctly for the network.

forge script script/deploy_BSTR.s.sol:deploy_BSTR --broadcast --verify -vvv --rpc-url $RPC_URL --etherscan-api-key $ETHERSCAN_API_KEY -i 1 --sender $DEPLOYER_ADDRESS

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

https://book.getfoundry.sh/

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