foundry-test-utility

0.1.1 • Public • Published

license npm version

foundry-test-utility


______                    _                _______        _          _    _ _   _ _ _ _
|  ____|                  | |              |__   __|      | |        | |  | | | (_) (_) |
| |__ ___  _   _ _ __   __| |_ __ _   _ ______| | ___  ___| |_ ______| |  | | |_ _| |_| |_ _   _
|  __/ _ \| | | | '_ \ / _` | '__| | | |______| |/ _ \/ __| __|______| |  | | __| | | | __| | | |
| | | (_) | |_| | | | | (_| | |  | |_| |      | |  __/\__ \ |_       | |__| | |_| | | | |_| |_| |
|_|  \___/ \__,_|_| |_|\__,_|_|   \__, |      |_|\___||___/\__|       \____/ \__|_|_|_|\__|\__, |
                                    __/ |                                                    __/ |
                                    |___/                                                    |___/

This package aim to deliver a set of reusable contracts and helper function that can be reused and override in your own Foundry tests.

To add yo your project

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

Directories

Reference

This repository include helper contracts from:

Directory Tree

foundry-test-utility/
│   .npmignore
│   .prettierignore
│   .prettierrc
│   CONTRIBUTING.md
│   LICENSE
│   README.md
│   awesome-readme.config.js
│   foundry.toml
│   package-lock.json
│   package.json
│   remappings.txt
└─── 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/

Don't hesitate to contribute to this project.

Package Sidebar

Install

npm i foundry-test-utility

Weekly Downloads

7

Version

0.1.1

License

MIT

Unpacked Size

393 kB

Total Files

51

Last publish

Collaborators

  • marcaurelebesner
  • collageofmyself