protocol
Backt smart contracts implementation
Docs
UML Diagrams
Setup
> npm i -g truffle
> npm i
Test
npm test
Deploy Contracts
This command will recompile contracts, update the ABI and run the tests and
then deploy contracts to the blockchain.
// kovan
> npm run deploy-kovan
Publish NPM
// ensure repo has latest abi
> npm run publish-abi
> git add abi && git commit -m "updated ABI" abi
// ensure tests are passing
> truffle develop
truffle> test
// publish NPM
npm version patch # bumps the version number and tags the commit
npm publish # see package.json scripts prepare - this will run the tests before publishing
git push --tags
npm
The package is published with the contract ABI JSON files (abi/) and js libraries (lib/) to @backt/protocol.