______ _ _______ _ _ _ _ _ _ _ _
| ____| | | |__ __| | | | | | | | (_) (_) |
| |__ ___ _ _ _ __ __| |_ __ _ _ ______| | ___ ___| |_ ______| | | | |_ _| |_| |_ _ _
| __/ _ \| | | | '_ \ / _` | '__| | | |______| |/ _ \/ __| __|______| | | | __| | | | __| | | |
| | | (_) | |_| | | | | (_| | | | |_| | | | __/\__ \ |_ | |__| | |_| | | | |_| |_| |
|_| \___/ \__,_|_| |_|\__,_|_| \__, | |_|\___||___/\__| \____/ \__|_|_|_|\__|\__, |
__/ | __/ |
|___/ |___/
This package aim to deliver a set of reusable contracts and helper function that can be reused and override in your own Foundry tests.
First install the package using NPM, Yarn or Forge Install.
npm i foundry-test-utility
or
yarn add foundry-test-utility
or
foundry install marc-aurele-besner/foundry-test-utility
Then add this package path in remapping.text
For NPM/Yarn
foundry-test-utility/contracts/=node_modules/foundry-test-utility/contracts
For Forge Install
foundry-test-utility/contracts/=libs/foundry-test-utility/contracts
This repository include helper contracts from:
foundry-test-utility/
│ .npmignore
│ .prettierignore
│ .prettierrc
│ CONTRIBUTING.md
│ LICENSE
│ README.md
│ awesome-readme.config.js
│ foundry.toml
│ package-lock.json
│ package.json
│ remappings.txt
│ renovate.json
└─── contracts/
│ MockERC1155.t.sol
│ MockERC1155Upgradeable.t.sol
│ MockERC20.t.sol
│ MockERC20Upgradeable.t.sol
│ MockERC721.t.sol
│ MockERC721Upgradeable.t.sol
│ README.md
└─── interfaces/
└─── mock/
└─── shared/
└─── utils/