0.2.4 • Published 6 years ago

@afklblockchain/wt-contracts v0.2.4

Weekly downloads
-
License
GPL-3.0-only
Repository
github
Last release
6 years ago

WT Smart Contracts

Smart contracts of the Winding Tree platform.

The smart contracts in the airline folder are designed to upload inventory and interact with it in the WT platform.

Build Status Coverage Status

Requirements

LTS Node 10.3.0 is required for running the tests.

Install

git clone https://github.com/windingtree/wt-contracts
npm install

Deploy

keys.json example:

{
  "mnemonic": SEED_PHRASE,
  "infura_apikey": API_KEY
}
npm run deploy-NETWORK

Test

  • To run all tests: npm test

  • To run a specific test: npm test -- test/WTAirline.js

  • To generate coverage report: npm run coverage

Flattener

A flattener script is available by running npm run flattener, this will create flattened version of the contracts without imports in one single file for all contracts in the contracts folder. This is needed if you plan to use tools like etherscan verifier or securify.ch.

Documentation

Here

License

Winding Tree contracts are open source and distributed under the GPL v3 license.