Skip to content

Commit 5a83949

Browse files
authored
Merge branch 'master' into WCN-187-passkey-types
2 parents 1ccb3cc + 1b2470e commit 5a83949

308 files changed

Lines changed: 8049 additions & 1205 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/npmjs-release.yml

Lines changed: 99 additions & 100 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,6 @@ jobs:
3131
last-release-sha: ${{ steps.get-release-info.outputs.last-release-sha }}
3232
current-master-sha: ${{ steps.get-release-info.outputs.current-master-sha }}
3333
commits-since-release: ${{ steps.get-release-info.outputs.commits-since-release }}
34-
express-version: ${{ steps.compute-express-git-tag.outputs.version }}
35-
express-git-tag: ${{ steps.compute-express-git-tag.outputs.git-tag }}
36-
express-git-sha: ${{ steps.compute-express-git-sha.outputs.git-sha }}
37-
express-docker-exists: ${{ steps.check-docker-image.outputs.express-docker-exists }}
3834
steps:
3935
- name: Checkout repository
4036
uses: actions/checkout@v6
@@ -113,95 +109,6 @@ jobs:
113109
114110
echo "" >> "$GITHUB_STEP_SUMMARY"
115111
116-
- name: Checkout rel/latest branch
117-
if: inputs.dry-run == false
118-
uses: actions/checkout@v6
119-
with:
120-
ref: rel/latest
121-
122-
- name: Compute express target version and tag
123-
if: inputs.dry-run == false
124-
id: compute-express-git-tag
125-
run: |
126-
VERSION=$(jq -r '.version' ./modules/express/package.json)
127-
TAG="@bitgo/express@$VERSION"
128-
echo "Current latest express version: $VERSION"
129-
echo "Expected latest express git tag: $TAG"
130-
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
131-
echo "git-tag=$TAG" >> "$GITHUB_OUTPUT"
132-
133-
- name: Checkout express target git tag
134-
if: inputs.dry-run == false
135-
uses: actions/checkout@v6
136-
with:
137-
ref: ${{ steps.compute-express-git-tag.outputs.git-tag }}
138-
fetch-depth: 2
139-
140-
- name: Parse express release information
141-
if: inputs.dry-run == false
142-
id: compute-express-git-sha
143-
run: |
144-
GIT_SHA=$(git rev-parse HEAD)
145-
echo "Git SHA: $GIT_SHA"
146-
echo "git-sha=$GIT_SHA" >> "$GITHUB_OUTPUT"
147-
148-
- name: Sanity Check Express Git Tag
149-
if: inputs.dry-run == false
150-
run: |
151-
# Since git tags can be moved, we need to ensure the tag we're releasing
152-
# actually corresponds to a version bump in package.json
153-
CURRENT_VERSION="${{ steps.compute-express-git-tag.outputs.version }}"
154-
PREVIOUS_VERSION=$(git show HEAD~1:./modules/express/package.json | jq -r '.version')
155-
156-
echo "Current version: $CURRENT_VERSION"
157-
echo "Previous version: $PREVIOUS_VERSION"
158-
159-
if [ "$CURRENT_VERSION" == "$PREVIOUS_VERSION" ]; then
160-
echo "::error::Express version bump does not line up with git tag location."
161-
echo "::error::This suggests the git tag may have been moved."
162-
exit 1
163-
fi
164-
165-
echo "✅ Express version bump lines up with git tag"
166-
167-
- name: Check if Docker image already exists in Docker Hub
168-
if: inputs.dry-run == false
169-
id: check-docker-image
170-
run: |
171-
VERSION="${{ steps.compute-express-git-tag.outputs.version }}"
172-
if curl -s -f "https://hub.docker.com/v2/repositories/bitgo/express/tags/$VERSION" > /dev/null; then
173-
echo "⚠️ Docker image bitgo/express:$VERSION already exists in Docker Hub — Docker publish will be skipped"
174-
echo "express-docker-exists=true" >> "$GITHUB_OUTPUT"
175-
else
176-
echo "✅ Docker image bitgo/express:$VERSION does not exist in Docker Hub"
177-
echo "express-docker-exists=false" >> "$GITHUB_OUTPUT"
178-
fi
179-
180-
- name: Summarise Docker image status
181-
if: inputs.dry-run == false
182-
run: |
183-
if [ "${{ steps.check-docker-image.outputs.express-docker-exists }}" == "true" ]; then
184-
echo "### ⚠️ Docker publish skipped" >> "$GITHUB_STEP_SUMMARY"
185-
echo "Image \`bitgo/express:${{ steps.compute-express-git-tag.outputs.version }}\` already exists in Docker Hub." >> "$GITHUB_STEP_SUMMARY"
186-
echo "The npm release will proceed normally." >> "$GITHUB_STEP_SUMMARY"
187-
fi
188-
189-
- name: Update Express GitHub summary
190-
if: inputs.dry-run == false
191-
run: |
192-
{
193-
echo "## BitGo Express Release Information"
194-
echo ""
195-
echo "Express Version: ${{ steps.compute-express-git-tag.outputs.version }}"
196-
echo "Git Tag: ${{ steps.compute-express-git-tag.outputs.git-tag }}"
197-
echo "Commit SHA: ${{ steps.compute-express-git-sha.outputs.git-sha }}"
198-
echo ""
199-
echo "### Docker Images to be deployed:"
200-
echo "- \`bitgo/express:latest\`"
201-
echo "- \`bitgo/express:${{ steps.compute-express-git-tag.outputs.version }}\`"
202-
echo ""
203-
} >> "$GITHUB_STEP_SUMMARY"
204-
205112
release-bitgojs:
206113
name: Release BitGoJS
207114
needs:
@@ -295,20 +202,112 @@ jobs:
295202
--title "v${{ steps.extract-version.outputs.new-version }}" \
296203
--notes-file "${{ steps.version-bump-summary.outputs.text-file }}"
297204
205+
get-express-release-context:
206+
name: Get Express release context
207+
if: inputs.dry-run == false
208+
needs:
209+
- release-bitgojs
210+
runs-on: ${{ vars.BASE_RUNNER_TYPE || 'ubuntu-latest' }}
211+
timeout-minutes: 10
212+
outputs:
213+
version: ${{ steps.compute-express-git-tag.outputs.version }}
214+
git-tag: ${{ steps.compute-express-git-tag.outputs.git-tag }}
215+
git-sha: ${{ steps.compute-express-git-sha.outputs.git-sha }}
216+
docker-exists: ${{ steps.check-docker-image.outputs.docker-exists }}
217+
steps:
218+
- name: Checkout rel/latest branch
219+
uses: actions/checkout@v6
220+
with:
221+
ref: rel/latest
222+
fetch-depth: 0
223+
fetch-tags: true
224+
225+
- name: Compute express target version and tag
226+
id: compute-express-git-tag
227+
run: |
228+
VERSION=$(jq -r '.version' ./modules/express/package.json)
229+
TAG="@bitgo/express@$VERSION"
230+
echo "Current latest express version: $VERSION"
231+
echo "Expected latest express git tag: $TAG"
232+
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
233+
echo "git-tag=$TAG" >> "$GITHUB_OUTPUT"
234+
235+
- name: Checkout express target git tag
236+
uses: actions/checkout@v6
237+
with:
238+
ref: ${{ steps.compute-express-git-tag.outputs.git-tag }}
239+
fetch-depth: 2
240+
241+
- name: Parse express git SHA
242+
id: compute-express-git-sha
243+
run: |
244+
GIT_SHA=$(git rev-parse HEAD)
245+
echo "Git SHA: $GIT_SHA"
246+
echo "git-sha=$GIT_SHA" >> "$GITHUB_OUTPUT"
247+
248+
- name: Sanity Check Express Git Tag
249+
run: |
250+
CURRENT_VERSION="${{ steps.compute-express-git-tag.outputs.version }}"
251+
PREVIOUS_VERSION=$(git show HEAD~1:./modules/express/package.json | jq -r '.version')
252+
253+
echo "Current version: $CURRENT_VERSION"
254+
echo "Previous version: $PREVIOUS_VERSION"
255+
256+
if [ "$CURRENT_VERSION" == "$PREVIOUS_VERSION" ]; then
257+
echo "::error::Express version bump does not line up with git tag location."
258+
echo "::error::This suggests the git tag may have been moved."
259+
exit 1
260+
fi
261+
262+
echo "✅ Express version bump lines up with git tag"
263+
264+
- name: Check if Docker image already exists in Docker Hub
265+
id: check-docker-image
266+
run: |
267+
VERSION="${{ steps.compute-express-git-tag.outputs.version }}"
268+
if curl -s -f "https://hub.docker.com/v2/repositories/bitgo/express/tags/$VERSION" > /dev/null; then
269+
echo "⚠️ Docker image bitgo/express:$VERSION already exists — skipping publish"
270+
echo "docker-exists=true" >> "$GITHUB_OUTPUT"
271+
else
272+
echo "✅ Docker image bitgo/express:$VERSION does not exist — will publish"
273+
echo "docker-exists=false" >> "$GITHUB_OUTPUT"
274+
fi
275+
276+
- name: Update Express GitHub summary
277+
run: |
278+
if [ "${{ steps.check-docker-image.outputs.docker-exists }}" == "true" ]; then
279+
{
280+
echo "### ⚠️ Docker publish skipped"
281+
echo "Image \`bitgo/express:${{ steps.compute-express-git-tag.outputs.version }}\` already exists in Docker Hub."
282+
} >> "$GITHUB_STEP_SUMMARY"
283+
else
284+
{
285+
echo "## BitGo Express Release Information"
286+
echo ""
287+
echo "Express Version: ${{ steps.compute-express-git-tag.outputs.version }}"
288+
echo "Git Tag: ${{ steps.compute-express-git-tag.outputs.git-tag }}"
289+
echo "Commit SHA: ${{ steps.compute-express-git-sha.outputs.git-sha }}"
290+
echo ""
291+
echo "### Docker Images to be deployed:"
292+
echo "- \`bitgo/express:latest\`"
293+
echo "- \`bitgo/express:${{ steps.compute-express-git-tag.outputs.version }}\`"
294+
echo ""
295+
} >> "$GITHUB_STEP_SUMMARY"
296+
fi
297+
298298
publish-express-to-docker-hub:
299299
name: Publish Express To Docker Hub
300-
if: inputs.dry-run == false && needs.get-release-context.outputs.express-docker-exists != 'true'
300+
if: needs.get-express-release-context.outputs.docker-exists != 'true'
301301
needs:
302-
- get-release-context
303-
- release-bitgojs
302+
- get-express-release-context
304303
runs-on: ${{ vars.BASE_RUNNER_TYPE || 'ubuntu-latest' }}
305304
timeout-minutes: 40
306305
environment: bitgo-express
307306
steps:
308307
- name: Checkout BitGoJS repository
309308
uses: actions/checkout@v6
310309
with:
311-
ref: ${{ needs.get-release-context.outputs.express-git-sha }}
310+
ref: ${{ needs.get-express-release-context.outputs.git-sha }}
312311

313312
- name: Set up Docker Buildx
314313
uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0
@@ -334,8 +333,8 @@ jobs:
334333
push: true
335334
tags: |
336335
bitgo/express:latest
337-
bitgo/express:${{ needs.get-release-context.outputs.express-version }}
336+
bitgo/express:${{ needs.get-express-release-context.outputs.version }}
338337
build-args: |
339-
VERSION=${{ needs.get-release-context.outputs.express-version }}
338+
VERSION=${{ needs.get-express-release-context.outputs.version }}
340339
BUILD_DATE=${{ steps.build-date.outputs.build-date }}
341-
GIT_HASH=${{ needs.get-release-context.outputs.express-git-sha }}
340+
GIT_HASH=${{ needs.get-express-release-context.outputs.git-sha }}

CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676
/modules/sdk-coin-icp/ @BitGo/ethalt-team
7777
/modules/sdk-coin-initia/ @BitGo/ethalt-team
7878
/modules/sdk-coin-iota/ @BitGo/ethalt-team
79+
/modules/sdk-coin-kaspa/ @BitGo/ethalt-team
7980
/modules/sdk-coin-mon/ @BitGo/ethalt-team
8081
/modules/sdk-coin-mantra/ @BitGo/ethalt-team
8182
/modules/sdk-coin-near/ @BitGo/ethalt-team

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ COPY --from=builder /tmp/bitgo/modules/sdk-coin-icp /var/modules/sdk-coin-icp/
9696
COPY --from=builder /tmp/bitgo/modules/sdk-coin-initia /var/modules/sdk-coin-initia/
9797
COPY --from=builder /tmp/bitgo/modules/sdk-coin-injective /var/modules/sdk-coin-injective/
9898
COPY --from=builder /tmp/bitgo/modules/sdk-coin-islm /var/modules/sdk-coin-islm/
99+
COPY --from=builder /tmp/bitgo/modules/sdk-coin-kaspa /var/modules/sdk-coin-kaspa/
99100
COPY --from=builder /tmp/bitgo/modules/sdk-coin-mon /var/modules/sdk-coin-mon/
100101
COPY --from=builder /tmp/bitgo/modules/sdk-coin-near /var/modules/sdk-coin-near/
101102
COPY --from=builder /tmp/bitgo/modules/sdk-coin-oas /var/modules/sdk-coin-oas/
@@ -197,6 +198,7 @@ cd /var/modules/sdk-coin-icp && yarn link && \
197198
cd /var/modules/sdk-coin-initia && yarn link && \
198199
cd /var/modules/sdk-coin-injective && yarn link && \
199200
cd /var/modules/sdk-coin-islm && yarn link && \
201+
cd /var/modules/sdk-coin-kaspa && yarn link && \
200202
cd /var/modules/sdk-coin-mon && yarn link && \
201203
cd /var/modules/sdk-coin-near && yarn link && \
202204
cd /var/modules/sdk-coin-oas && yarn link && \
@@ -301,6 +303,7 @@ RUN cd /var/bitgo-express && \
301303
yarn link @bitgo/sdk-coin-initia && \
302304
yarn link @bitgo/sdk-coin-injective && \
303305
yarn link @bitgo/sdk-coin-islm && \
306+
yarn link @bitgo/sdk-coin-kaspa && \
304307
yarn link @bitgo/sdk-coin-mon && \
305308
yarn link @bitgo/sdk-coin-near && \
306309
yarn link @bitgo/sdk-coin-oas && \

modules/abstract-cosmos/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [11.18.4](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@11.18.3...@bitgo/abstract-cosmos@11.18.4) (2026-04-22)
7+
8+
**Note:** Version bump only for package @bitgo/abstract-cosmos
9+
10+
11+
12+
13+
614
## [11.18.3](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@11.18.2...@bitgo/abstract-cosmos@11.18.3) (2026-04-14)
715

816
**Note:** Version bump only for package @bitgo/abstract-cosmos

modules/abstract-cosmos/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@bitgo/abstract-cosmos",
3-
"version": "11.18.3",
3+
"version": "11.18.4",
44
"description": "BitGo SDK coin library for COSMOS base implementation",
55
"main": "./dist/src/index.js",
66
"types": "./dist/src/index.d.ts",
@@ -38,10 +38,10 @@
3838
]
3939
},
4040
"dependencies": {
41-
"@bitgo/sdk-core": "^36.40.0",
42-
"@bitgo/sdk-lib-mpc": "^10.10.2",
41+
"@bitgo/sdk-core": "^36.41.0",
42+
"@bitgo/sdk-lib-mpc": "^10.11.0",
4343
"@bitgo/secp256k1": "^1.11.0",
44-
"@bitgo/statics": "^58.35.0",
44+
"@bitgo/statics": "^58.36.0",
4545
"@cosmjs/amino": "^0.29.5",
4646
"@cosmjs/crypto": "^0.30.1",
4747
"@cosmjs/encoding": "^0.29.5",

modules/abstract-eth/CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
# [24.24.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-eth@24.23.1...@bitgo/abstract-eth@24.24.0) (2026-04-22)
7+
8+
9+
### Features
10+
11+
* hts nft transfer support ([2c21e3e](https://github.com/BitGo/BitGoJS/commit/2c21e3e27149c469fb73e6e40cecf1992e665b71))
12+
13+
14+
15+
16+
617
## [24.23.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-eth@24.23.0...@bitgo/abstract-eth@24.23.1) (2026-04-14)
718

819

modules/abstract-eth/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@bitgo/abstract-eth",
3-
"version": "24.23.1",
3+
"version": "24.24.0",
44
"description": "BitGo SDK coin library for ETH base implementation",
55
"main": "./dist/src/index.js",
66
"types": "./dist/src/index.d.ts",
@@ -40,10 +40,10 @@
4040
]
4141
},
4242
"dependencies": {
43-
"@bitgo/sdk-core": "^36.40.0",
44-
"@bitgo/sdk-lib-mpc": "^10.10.2",
43+
"@bitgo/sdk-core": "^36.41.0",
44+
"@bitgo/sdk-lib-mpc": "^10.11.0",
4545
"@bitgo/secp256k1": "^1.11.0",
46-
"@bitgo/statics": "^58.35.0",
46+
"@bitgo/statics": "^58.36.0",
4747
"@ethereumjs/common": "^2.6.5",
4848
"@ethereumjs/rlp": "^4.0.0",
4949
"@ethereumjs/tx": "^3.3.0",
@@ -60,8 +60,8 @@
6060
"superagent": "^9.0.1"
6161
},
6262
"devDependencies": {
63-
"@bitgo/sdk-api": "^1.77.0",
64-
"@bitgo/sdk-test": "^9.1.38",
63+
"@bitgo/sdk-api": "^1.78.0",
64+
"@bitgo/sdk-test": "^9.1.39",
6565
"@types/keccak": "^3.0.5"
6666
},
6767
"gitHead": "18e460ddf02de2dbf13c2aa243478188fb539f0c",

modules/abstract-eth/src/abstractEthLikeNewCoins.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3109,9 +3109,16 @@ export abstract class AbstractEthLikeNewCoins extends AbstractEthLikeCoin {
31093109
txParams.prebuildTx?.consolidateId ||
31103110
txPrebuild?.consolidateId ||
31113111
(txParams.type &&
3112-
['acceleration', 'fillNonce', 'transferToken', 'tokenApproval', 'consolidate', 'bridgeFunds'].includes(
3113-
txParams.type
3114-
))
3112+
[
3113+
'acceleration',
3114+
'fillNonce',
3115+
'transferToken',
3116+
'tokenApproval',
3117+
'consolidate',
3118+
'bridgeFunds',
3119+
'enableToken',
3120+
'customTx',
3121+
].includes(txParams.type))
31153122
)
31163123
) {
31173124
throw new Error('missing txParams');

modules/abstract-lightning/CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [7.10.2](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-lightning@7.10.1...@bitgo/abstract-lightning@7.10.2) (2026-04-22)
7+
8+
9+
### Bug Fixes
10+
11+
* **sdk-lib-mpc:** authenticate signatureR in DKLS DSG round 4 messages ([16392ca](https://github.com/BitGo/BitGoJS/commit/16392ca9e5d1fe73b927fba96a21e885a3abeff3))
12+
13+
14+
15+
16+
617
## [7.10.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-lightning@7.10.0...@bitgo/abstract-lightning@7.10.1) (2026-04-14)
718

819
**Note:** Version bump only for package @bitgo/abstract-lightning

0 commit comments

Comments
 (0)