https://github.com/shunkakinoki/wagumi-mvp-sbt
https://github.com/shunkakinoki/wagumi-mvp-sbt
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/shunkakinoki/wagumi-mvp-sbt
- Owner: shunkakinoki
- License: unlicense
- Created: 2022-08-07T00:52:42.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-08-07T01:29:50.000Z (almost 3 years ago)
- Last Synced: 2025-03-06T21:58:04.350Z (2 months ago)
- Language: Solidity
- Size: 13.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
#
Forge Template
**Template repository for getting started quickly with Foundry projects**

## Getting Started
Click "Use this template" on [GitHub](https://github.com/foundry-rs/forge-template) to create a new repository with this repo as the initial state.
Or, if your repo already exists, run:
```sh
forge init
forge build
forge test
```## Writing your first test
All you need is to `import forge-std/Test.sol` and then inherit it from your test contract. Forge-std's Test contract comes with a pre-instatiated [cheatcodes environment](https://book.getfoundry.sh/cheatcodes/), the `vm`. It also has support for [ds-test](https://book.getfoundry.sh/reference/ds-test.html)-style logs and assertions. Finally, it supports Hardhat's [console.log](https://github.com/brockelmore/forge-std/blob/master/src/console.sol). The logging functionalities require `-vvvv`.
```solidity
pragma solidity 0.8.10;import "forge-std/Test.sol";
contract ContractTest is Test {
function testExample() public {
vm.roll(100);
console.log(1);
emit log("hi");
assertTrue(true);
}
}
```## Development
This project uses [Foundry](https://getfoundry.sh). See the [book](https://book.getfoundry.sh/getting-started/installation.html) for instructions on how to install and use Foundry.