The Trust Dapp allows users to leave a Trust in the form of Ether for a chosen beneficiary after a chosen amount of time, measured in Ethereum blocks. Users are able to choose the amount of Ether, the length of time and whether or not they want the trust to be revocable.
The Trust smart-contracts are created through the TrustFactory contract, when deployTrust()
is called.
Install dependencies.
yarn
Bootstrap Ganache
yarn blockchain
Run tests
yarn test
✏️ All contracts are written in Solidity version 0.4.24.
yarn compile
Download solidity-coverage locally
npm install --save-dev solidity-coverage
Run solidity-coverage
./node_modules/.bin/solidity-coverage
Coverage reports can be accessed at 'coverage/index.html'
cd docs/website
yarn build
To publish to GitHub Pages
cd docs/website
GIT_USER=<GIT_USER> \
USE_SSH=true \
yarn run publish-gh-pages
This application is unstable and has not undergone any rigorous security audits. Use at your own risk.