Skip to content

Commit

Permalink
feat: create sdk for easy creation of phase-2 delegation
Browse files Browse the repository at this point in the history
  • Loading branch information
jrwbabylonlab committed Jan 30, 2025
1 parent bf99f35 commit 36bcf99
Show file tree
Hide file tree
Showing 11 changed files with 812 additions and 14 deletions.
64 changes: 62 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@babylonlabs-io/btc-staking-ts",
"version": "0.4.0-canary.10",
"version": "0.4.0-canary.11",
"description": "Library exposing methods for the creation and consumption of Bitcoin transactions pertaining to Babylon's Bitcoin Staking protocol.",
"module": "dist/index.js",
"main": "dist/index.cjs",
Expand Down Expand Up @@ -66,10 +66,12 @@
"typescript-eslint": "^7.4.0"
},
"dependencies": {
"@babylonlabs-io/babylon-proto-ts": "0.0.3-canary.5",
"@bitcoin-js/tiny-secp256k1-asmjs": "2.2.3",
"@cosmjs/encoding": "^0.33.0",
"bitcoinjs-lib": "6.1.5"
},
"publishConfig": {
"access": "public"
}
}
}
3 changes: 3 additions & 0 deletions src/constants/bbnRegistry.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export const BBN_REGISTRY_TYPE_URLS = {
MsgCreateBTCDelegation: "/babylon.btcstaking.v1.MsgCreateBTCDelegation",
};
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ export * from "./utils/btc";
export * from "./utils/utxo/findInputUTXO";
export * from "./utils/utxo/getPsbtInputFields";
export * from "./utils/utxo/getScriptType";
export * from "./staking/manager";
Loading

0 comments on commit 36bcf99

Please sign in to comment.