protocol
Backt smart contracts implementation
Docs
UML Diagrams
Setup
> npm i
> npm i -g truffle
Test
> truffle develop
truffle> test
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 # bump the version number
npm publish
git push --tags
npm
The package is published with the contract ABI JSON files (abi/) and js libraries (lib/) to @backt/protocol.