https://github.com/stackoverflowexcept1on/router
https://github.com/stackoverflowexcept1on/router
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/stackoverflowexcept1on/router
- Owner: StackOverflowExcept1on
- Created: 2024-05-21T08:51:52.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-05-22T08:45:29.000Z (over 1 year ago)
- Last Synced: 2024-05-22T13:09:22.448Z (over 1 year ago)
- Language: Solidity
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## 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
```shell
$ forge build
```
### Test
```shell
$ forge test
```
### Format
```shell
$ forge fmt
```
### Gas Snapshots
```shell
$ forge snapshot
```
### Anvil
```shell
$ anvil
```
### Deploy
```shell
$ source .env
$ forge script script/Router.s.sol:RouterScript --rpc-url $SEPOLIA_RPC_URL --broadcast --verify -vvvv
$ forge script script/Program.s.sol:ProgramScript --rpc-url $SEPOLIA_RPC_URL --broadcast --verify -vvvv
$ forge script script/Router.s.sol:RouterScript --rpc-url $HOLESKY_RPC_URL --broadcast --verify -vvvv
$ forge script script/Program.s.sol:ProgramScript --rpc-url $HOLESKY_RPC_URL --broadcast --verify -vvvv
```
### Cast
```shell
$ cast
```
### Help
```shell
$ forge --help
$ anvil --help
$ cast --help
```