@wagmifan/spec
v0.0.3
Published
Portable specifications for @wagmifan/solib contracts
Downloads
6
Maintainers
Readme
@wagmifan/solib Spec
Portable specifications for @wagmifan/solib contracts. Part of the @wagmifan/solib Solidity monorepo.
Installation
Install the package as a development dependency:
npm install --save-dev @wagmifan/spec
# or
yarn add --dev @wagmifan/spec
Usage
For example, consider a custom ERC20
implementation:
import '@wagmifan/solib/contracts/token/ERC20/ERC20.sol';
contract CustomToken is ERC20 {
// custom code...
}
ERC20
behavior tests :
describeSpecOfERC20(
{
deploy: () => instance,
},
["#balanceOf"]
);
describe("#balanceOf", function () {
// custom tests
});