Smart contracts of the Winding Tree platform.
The smart contracts in the hotel folder and airline folder are designed to upload inventory and interact with it in the WT platform.
LTS Node 10.3.0 is required for running the tests.
git clone https://github.com/windingtree/wt-contracts
npm install
keys.json example:
{
"mnemonic": SEED_PHRASE,
"infura_apikey": API_KEY
}
npm run deploy-NETWORK
-
To run all tests:
npm test
-
To run a specific test:
npm test -- test/WTHotel.js
-
To generate coverage report:
npm run coverage
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.
Winding Tree contracts are open source and distributed under the GPL v3 license.