Babylon Bitcoin Staking Protocol
TypeScript library
npm i @babylonlabs-io/btc-staking-tsThis project uses Conventional Commits
and semantic-release to automate
versioning, changelog generation, and npm publishing.
However, release branch will be cut wiht the syntax of release/vY.X whenever there is a major version bump.
- All commits must follow the Conventional Commits format.
- When changes are merged into the
mainbranch:semantic-releaseanalyzes commit messages- Determines the appropriate semantic version bump (
major,minor,patch) - Updates the
CHANGELOG.md - Tags the release in Git
- Publishes the new version to npm (if configured)
feat: add support for slashing script
fix: handle invalid staking tx gracefully
docs: update README with commit conventions
refactor!: remove deprecated method and cleanup typesNote: For breaking changes, add a
!after the type ( e.g.feat!:orrefactor!:) and include a description of the breaking change in the commit body.
Just commit your changes using the proper format and merge to main.
The CI pipeline will handle versioning and releasing automatically — no manual
tagging or version bumps needed.
Details on the usage of the library can be found on the usage guide.
