@tokenfoundry/state-machine

1.5.4 • Public • Published

State Machine

npm version

In order to use, build and test the contracts found in this repo, Truffle version > 4 is needed.

Usage

First install as a npm package in your truffle project directory:

yarn add -E @tokenfoundry/state-machine

Import in your contracts:

import "@tokenfoundry/state-machine/contracts/StateMachine.sol";

contract MyContract is StateMachine {
  ...
}

Please read the docs and the examples for more information about how to use this.

Testing

To run the tests, clone this repo and run yarn install to install dependencies.

Run yarn test to run all the tests.

Run yarn coverage to run tests and get code coverage.

License

MIT

/@tokenfoundry/state-machine/

    Package Sidebar

    Install

    npm i @tokenfoundry/state-machine

    Weekly Downloads

    2

    Version

    1.5.4

    License

    MIT

    Unpacked Size

    171 kB

    Total Files

    55

    Last publish

    Collaborators

    • wachunei
    • vdrg
    • lopezjurip