- Build the project
yarn build
- Check that lib can be created
npm pack
- Bump to next version
npm version [<newversion> | major | minor | patch | premajor | preminor | prepatch | prerelease | from-git]
- Publish
npm publish
- Make sure to push to git
git push
- We use CamelCase.
- We start with uppercase letter.
- For abbreviations we only use uppercase for the first letter
UseBTC
->UseBtc
.
We name interfaces as follows:
-
For method responses:
I<ChainAssetName><MethodName>Res
For example:
IUtxoGetTransactionRes;
-
For method inputs:
I<ChainAssetName><MethodName>
For example:
IUtxoGetTransaction;
-
For specific parts of method inputs (for example Vin For Utxo transaction creation):
II<ChainAssetName><MethodName>
For example:
IIUtxoVin;
-
For general Data Types:
I<ChainAssetName><DataType>
For example:
IUtxoScriptPubKey;
- Make sure this repo and the attestor-client repo are in the same root.
- If you make changes to MCC make sure to rebuild it with
yarn build
- Rebuild the local dependency in attestor client with
yarn install --force