Skip to content

Unit, Fuzzing and Mainnet Fork tests. ERC2981 and Operator Filter version

License

Notifications You must be signed in to change notification settings

d-carranza/uniforge-foundry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Uniforge

Uniforge Backend (public version)

1. Getting started

curl -L https://foundry.paradigm.xyz | bash

foundryup

forge init

2. Install the modules

forge install foundry-rs/forge-std
forge install OpenZeppelin/openzeppelin-contracts
forge install chiru-labs/ERC721A
forge install ProjectOpenSea/operator-filter-registry

3. Update dependencies

forge update

4. Install the proper solc version

sudo nix-env -f https://github.com/dapphub/dapptools/archive/master.tar.gz -iA solc-static-versions.solc_0_8_17

5. Build

forge build

6. Run tests

100% Coverage

forge coverage

Unit Tests

forge test -vvv -m test_

Fuzzing Tests

forge test -vvv -m testFuzz_

Ethereum Mainnet Fork Tests

forge test -vvv -m testFork_

Slither Tests

slither .

Mythril Tests

myth analyze <solidity-file>

Inspect Storage

forge inspect src/<solidity-file>:<contract-name> storage --pretty

Gas Report

forge test --gas-report

About

Unit, Fuzzing and Mainnet Fork tests. ERC2981 and Operator Filter version

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published