The first steps towards a decentralised Bistroo supply chain are set. We created a first version of a escrow settlement contract for the decentralisation of the proces
Today we’re releasing the open sourced and tested version of this solidity contract It is relying on a BIST ERC777 token (with its special hooks) to facilitate the proces
We have visualised the proces in the schematics below Also the demo run is visible in the terminal screenshot
Bistroo ERC777 Token and Escrow contract for conditional last mile delivery payment.
- run
npm install
to install web3, openzeppelin and truffle libraries
In order to use the truffle-config.js file:
- create .infura file containing infura project ID for using Infura Web3 api
- create .secret file containing mnemonics for creating a specific token owner account
- create .etherscan file etherscan key
open a terminal window run ganache cli with custom config in this terminal window
./start-ganache.sh
run ganache cli open a terminal window Run test script:
truffle test ./test/BistrooToken.js
truffle test ./test/BistrooEscrow.js
Known issue with older Truffle version and Babel: npm install -g babel-runtime
npm run migrate-ganache
Deploy only the escrow contract on Rinkeby:
npm run migrate-rinkeby-update
Deploy both contracts on Rinkeby:
npm run migrate-rinkeby