Skip to content

Commit 90bd989

Browse files
committed
feat(utxo-descriptors): add sBTC taproot descriptors
Ticket: CSHLD-744
1 parent 27f3db2 commit 90bd989

21 files changed

Lines changed: 647 additions & 2 deletions

CODEOWNERS

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
# BitGoJS code owners and first officers will automatically be requested for review whenever a pull request touches the files they own.
2+
23
# Each line is a file pattern followed by one or more owners.
34

45
# These owners and first officers will be the default owners for everything in the repo.
5-
* @BitGo/coins @BitGo/wallet-core @BitGo/wallet-core-india
6+
7+
- @BitGo/coins @BitGo/wallet-core @BitGo/wallet-core-india
68

79
# Order is important. The last matching pattern has the most precedence.
810

911
# UTXO coin modules
12+
1013
/modules/abstract-utxo/ @BitGo/btc-team
1114
/modules/bitgo/test/v2/unit/coins/utxo/ @BitGo/btc-team
1215
/modules/bitgo/test/v2/unit/lightning.ts @BitGo/btc-team
@@ -27,15 +30,18 @@
2730
/modules/utxo-lib/ @BitGo/btc-team
2831
/modules/utxo-ord/ @BitGo/btc-team
2932
/modules/utxo-staking/ @BitGo/btc-team
33+
/modules/utxo-descriptors/ @BitGo/btc-team @BitGo/ethalt-team
3034
/modules/babylonlabs-io-btc-staking-ts @BitGo/btc-team
3135
/modules/bitgo/test/v2/unit/coins/abstractUtxoCoin.ts @BitGo/btc-team
3236
/modules/bitgo/test/v2/unit/coins/payGoPSBTHexFixture/psbtHexProof.ts @BitGo/btc-team
3337

3438
# Lightning coin modules
39+
3540
/modules/abstract-lightning/ @BitGo/btc-team
3641
/modules/sdk-coin-lnbtc/ @BitGo/btc-team
3742

3843
# Eth
44+
3945
/modules/account-lib/ @BitGo/ethalt-team
4046
/modules/sdk-coin-celo/ @BitGo/ethalt-team
4147
/modules/sdk-coin-etc/ @BitGo/ethalt-team
@@ -46,6 +52,7 @@
4652
/modules/bitgo/test/v2/unit/coins/token.ts @BitGo/ethalt-team
4753

4854
# All other coins
55+
4956
/modules/abstract-cosmos/ @BitGo/ethalt-team
5057
/modules/abstract-substrate/ @BitGo/ethalt-team
5158
/modules/sdk-coin-ada/ @BitGo/ethalt-team
@@ -106,15 +113,18 @@
106113
/modules/sdk-coin-hash/ @BitGo/ethalt-team
107114

108115
# Examples
116+
109117
/examples/ @BitGo/ethalt-team
110118
/examples/ts/btc/ @BitGo/btc-team
111119
/examples/ts/stablecoin @Bitgo/stablecoins
112120

113121
# Trade
122+
114123
/modules/sdk-core/src/bitgo/address-book/ @BitGo/prime
115124
/modules/sdk-core/src/bitgo/trading/ @BitGo/prime
116125

117126
# Core Modules
127+
118128
/modules/bitgo/ @BitGo/coins @BitGo/wallet-core @BitGo/wallet-core-india
119129
/modules/bitgo/test/v2/unit/lightning/ @BitGo/btc-team
120130
/modules/blake2b-wasm/ @BitGo/wallet-core @BitGo/wallet-core-india
@@ -144,6 +154,7 @@
144154
/webpack/ @BitGo/coins @BitGo/wallet-core @BitGo/wallet-core-india
145155

146156
# Asset Metadata Service
157+
147158
/modules/statics/src/coins/botTokens.ts @BitGo/ams
148159
/modules/statics/src/coins/botOfcTokens.ts @BitGo/ams
149160

@@ -156,7 +167,7 @@
156167
/Dockerfile @BitGo/coins @BitGo/wallet-core @BitGo/wallet-core-india
157168
/lerna.json @BitGo/coins @BitGo/wallet-core @BitGo/wallet-core-india @BitGo/devops
158169
/package.json @BitGo/sdk-reviewers
159-
**/package.json @BitGo/sdk-reviewers
170+
\*\*/package.json @BitGo/sdk-reviewers
160171
/tsconfig.json @BitGo/coins @BitGo/wallet-core @BitGo/wallet-core-india @BitGo/devops
161172
/tsconfig.packages.json @BitGo/coins @BitGo/wallet-core @BitGo/wallet-core-india
162173
/yarn.lock @BitGo/sdk-reviewers
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
dist
2+
node_modules
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
extends: ['../../.eslintrc.json'],
3+
rules: {
4+
'import/order': ['error', { 'newlines-between': 'always' }],
5+
'import/no-internal-modules': 'off',
6+
},
7+
};
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/dist
2+
/node_modules
3+
/.nyc_output
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module.exports = {
2+
require: 'tsx',
3+
extension: ['.js', '.ts'],
4+
};
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
**/*.ts
2+
!**/*.d.ts
3+
src
4+
test
5+
tsconfig.json
6+
tslint.json
7+
.gitignore
8+
.eslintignore
9+
.mocharc.yml
10+
.prettierignore
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.nyc_output/
2+
dist
3+
node_modules
4+
test/fixtures
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
printWidth: 120
2+
singleQuote: true
3+
trailingComma: es5

modules/utxo-descriptors/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# BitGo UTXO descriptors
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
{
2+
"name": "@bitgo/utxo-descriptors",
3+
"version": "1.39.1",
4+
"description": "BitGo SDK for building UTXO descriptors",
5+
"main": "./dist/cjs/src/index.js",
6+
"module": "./dist/esm/index.js",
7+
"browser": "./dist/esm/index.js",
8+
"types": "./dist/cjs/src/index.d.ts",
9+
"files": [
10+
"dist/cjs",
11+
"dist/esm"
12+
],
13+
"exports": {
14+
".": {
15+
"import": {
16+
"types": "./dist/esm/index.d.ts",
17+
"default": "./dist/esm/index.js"
18+
},
19+
"require": {
20+
"types": "./dist/cjs/src/index.d.ts",
21+
"default": "./dist/cjs/src/index.js"
22+
}
23+
}
24+
},
25+
"scripts": {
26+
"build": "npm run build:cjs && npm run build:esm",
27+
"build:cjs": "yarn tsc --build --incremental --verbose .",
28+
"build:esm": "yarn tsc --project tsconfig.esm.json",
29+
"fmt": "prettier --write .",
30+
"check-fmt": "prettier --check '**/*.{ts,js,json}'",
31+
"clean": "rm -r ./dist",
32+
"lint": "eslint --quiet .",
33+
"prepare": "npm run build",
34+
"coverage": "nyc -- npm run unit-test",
35+
"unit-test": "mocha --recursive \"test/**/*.ts\""
36+
},
37+
"author": "BitGo SDK Team <sdkteam@bitgo.com>",
38+
"license": "MIT",
39+
"engines": {
40+
"node": ">=20"
41+
},
42+
"repository": {
43+
"type": "git",
44+
"url": "https://github.com/BitGo/BitGoJS.git",
45+
"directory": "modules/utxo-descriptors"
46+
},
47+
"lint-staged": {
48+
"*.{js,ts}": [
49+
"yarn prettier --write",
50+
"yarn eslint --fix"
51+
]
52+
},
53+
"publishConfig": {
54+
"access": "public"
55+
},
56+
"nyc": {
57+
"extension": [
58+
".ts"
59+
]
60+
},
61+
"dependencies": {
62+
"@bitgo/utxo-core": "^1.37.1",
63+
"@bitgo/utxo-lib": "^11.22.1",
64+
"@bitgo/wasm-utxo": "^4.11.0"
65+
}
66+
}

0 commit comments

Comments
 (0)