Skip to content
This repository has been archived by the owner on Aug 6, 2023. It is now read-only.

Latest commit

 

History

History
47 lines (38 loc) · 1.32 KB

README.md

File metadata and controls

47 lines (38 loc) · 1.32 KB

Machinomy contracts Build Status Coverage Status

Machinomy contracts is a TypeScript interface for Ethereum contracts managed by Truffle used by Machinomy.

Install

$ yarn add @machinomy/contracts

Workflow

Use testrpc for fast development. Start testrpc by command:

$ testrpc

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.

Deployment

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

Testing

$ yarn prepublish && yarn test

To log gas cost for transactions:

$ LOG_GAS_COST=true yarn test