Machinomy contracts is a TypeScript interface for Ethereum contracts managed by Truffle used by Machinomy.
$ yarn add @machinomy/contracts
Use ganache-cli for fast development. Start it:
$ ganache-cli
Then deploy contracts to the tesrpc network:
$ yarn truffle:migrate
Truffle generates json files by default. You need to compile the json files to ts files. Run:
$ yarn build
Now package is ready to use by Machinony.
To deploy the package to the Ropsten network you need to run local geth instance and then run commands:
$ yarn truffle:migrate --network ropsten
$ yarn build