Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

πŸ”– (eth) [NO-ISSUE]: Signer Eth v1.1.1 + Context module v1.1.0 #553

Merged
merged 84 commits into from
Dec 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
66580e2
πŸ“ (doc): Update documentation after feedbacks
mbertin-ledger Nov 8, 2024
60c29a0
⬆️ (eslint): Eslint packages bump
valpinkman Nov 18, 2024
3fda7f8
⬆️ (repo): Upgrade various dependencies
valpinkman Nov 18, 2024
d013c77
πŸ”€ (main) [NO-ISSUE]: Backmerge main into develop (#507)
valpinkman Nov 18, 2024
0cab0d9
πŸ”§ (changesets): Remove ignore packages from changeset config
valpinkman Nov 19, 2024
30d47b4
πŸ”§ (changesets) [NO-ISSUE]: Remove ignore packages from changeset conf…
valpinkman Nov 19, 2024
2b61b7a
πŸ“ (doc) [NO-ISSUE]: Update documentation after feedbacks (#483)
valpinkman Nov 19, 2024
881c9c4
⬆️ (repo) [NO-ISSUE]: Various dependencies update (#501)
valpinkman Nov 19, 2024
6d25024
πŸ”§ (signer-btc): Rename package name to device-signer-kit-bitcoin
aussedatlo Nov 19, 2024
0c6aa9c
πŸ”§ (signer-btc) [DSDK-590]: Rename package name to device-signer-kit-b…
aussedatlo Nov 19, 2024
1fda407
:bug: (signer-eth): Improve transaction v6 mapper typeguard
jdabbech-ledger Nov 19, 2024
0eab94e
:pushpin: (signer-btc): Set bitcoin-js as peer dep
jdabbech-ledger Nov 19, 2024
d248f89
✨ (repo): Extract transaction into their own packages
valpinkman Nov 5, 2024
75ccd44
βœ… (dmk): Add tests for TransportService + fixes
valpinkman Nov 6, 2024
3cdf201
✨ (transport): Extracted MockServer + mockserver-client
valpinkman Nov 6, 2024
6d45eba
βœ… (transports): Update tests + fixes from pr comments
valpinkman Nov 7, 2024
d3033a4
♻️ (dmk): TransportService interface + DefaultTransportService implem
valpinkman Nov 8, 2024
541edcf
πŸ’š (ci): Fix condition in pull_request.yml
valpinkman Nov 19, 2024
49693db
πŸ’š (ci) [NO-ISSUE]: Fix condition in pull_request.yml (#511)
valpinkman Nov 19, 2024
4b2aef5
πŸ› (signer-eth) [DSDK-582]: Ethereum/Bitcoin internal transaction mapp…
jdabbech-ledger Nov 19, 2024
3dcc220
πŸ’š (release): Push snapshot release to jfrog
valpinkman Oct 2, 2024
b3c25e4
✏️ (changesets): Update wrong changeset names
valpinkman Nov 22, 2024
37e755e
πŸ’š (release) [DSDK-500]: Push snapshot release to jfrog (#350)
valpinkman Nov 22, 2024
8c2c05d
✨ (repo) [DSDK-558]: Extract transports into their own packages (#474)
valpinkman Nov 22, 2024
00cea69
πŸ”€ (sync): Resolve conflicts with develop
valpinkman Nov 22, 2024
23bbbc2
πŸ”€ (release) [NO-ISSUE]: Backmerge main into develop (#521)
valpinkman Nov 22, 2024
6daa8b9
πŸ”§ (repo) [NO-ISSUE]: Update toolchain
github-actions[bot] Nov 24, 2024
62939a3
πŸ”§ (repo) [NO-ISSUE]: Update toolchain (#523)
valpinkman Nov 25, 2024
f20f429
:sparkles: (signer-btc): Add RegisterWallet command.
jdabbech-ledger Nov 21, 2024
325359b
:sparkles: (signer-btc) [DSDK-466]: Implement RegisterWallet Command …
jdabbech-ledger Nov 25, 2024
fc66f35
✨ (btc-signer): Add GetWalletAddressCommand
fAnselmi-Ledger Nov 20, 2024
a877b80
✨ (btc-signer) [DSDK-465]: Add GetWalletAddressCommand (#512)
fAnselmi-Ledger Nov 25, 2024
b92be97
♻️ (context-module): Rework builder
aussedatlo Nov 25, 2024
3b69436
πŸ”– (chore): Add changeset
aussedatlo Nov 26, 2024
eafad9e
:sparkles: (dmk): Add API calls and models for secure channel
jdabbech-ledger Nov 4, 2024
e0a0d5b
:art: (dmk): Reviews
jdabbech-ledger Nov 26, 2024
21e9de8
✨ (signer-btc): Implement getSignMessageCommand
fAnselmi-Ledger Nov 21, 2024
62acf6c
:sparkles: (signer-eth): Implement parser of binary paths for transac…
paoun-ledger Nov 8, 2024
f6b152c
:sparkles: (signer-eth) [DSDK-583]: Implement parser of binary paths …
paoun-ledger Nov 28, 2024
ac0fd80
:sparkles: (signer-btc): Add SignPsbt command
jdabbech-ledger Nov 22, 2024
d454397
:sparkles: (signer-btc) [DSDK-468]: Add SignPsbt command (#522)
jdabbech-ledger Nov 28, 2024
044747d
:sparkles: (dmk) [DSDK-542]: Add API calls and models for secure chan…
jdabbech-ledger Nov 28, 2024
355eb47
♻️ (context-module) [NO-ISSUE]: Rework context module builder (#526)
aussedatlo Nov 28, 2024
07c575d
:sparkles: (context-module): Implement generic transaction context lo…
paoun-ledger Nov 13, 2024
c69c689
:sparkles: (context-module) [DSDK-528]: Implement generic transaction…
paoun-ledger Nov 28, 2024
0b0d509
:sparkles: (context-module): Implement transaction fields loader
paoun-ledger Nov 19, 2024
fa9c3d6
:sparkles: (context-module): Implement trusted names provider
paoun-ledger Nov 20, 2024
ba98481
:sparkles: (context-module): Update ProvideGenericContext task with n…
paoun-ledger Nov 21, 2024
773e620
:sparkles: (context-module): Update SignTransaction with generic-pars…
paoun-ledger Nov 22, 2024
1fed539
πŸ‘· (ci): Fix ubuntu version + merge queue on gh runners
valpinkman Nov 29, 2024
d97c060
πŸ‘· (ci) [NO-ISSUE]: Fix ubuntu version + merge queue on gh runners (#529)
valpinkman Nov 29, 2024
56164a3
✨ (signer-btc) [DSDK-467]: Implement getSignMessageCommand (#525)
fAnselmi-Ledger Nov 29, 2024
daa9a6d
πŸ”§ (repo) [NO-ISSUE]: Update toolchain
github-actions[bot] Dec 1, 2024
bb46c9d
:sparkles: (context-module) [DSDK-586]: Implement transaction fields …
paoun-ledger Dec 2, 2024
4061dbc
:bug: (signer-eth): Fix generic parser integration with released app
paoun-ledger Nov 28, 2024
d4b9d66
:sparkles: (context-module) [DSDK-594]: Update ProvideGenericContext …
paoun-ledger Dec 2, 2024
c56a35c
🩹 (signer-eth): StartTransaction cmd should contain a signature
aussedatlo Nov 29, 2024
b7e36da
✏️ (signer-eth): Update error message for invalid chaincode
aussedatlo Dec 2, 2024
32461ba
:sparkles: (context-module) [DSDK-527]: Update SignTransaction with g…
paoun-ledger Dec 2, 2024
40cc00f
πŸ”¨ (turbo): Update dev scripts to skip doc project
valpinkman Dec 2, 2024
8e3e7ca
πŸ”§ (repo) [NO-ISSUE]: Update toolchain (#530)
valpinkman Dec 2, 2024
5f13e63
πŸ”¨ (turbo) [NO-ISSUE]: Update dev scripts to skip doc project (#533)
valpinkman Dec 2, 2024
3dc67c9
βœ… (signer-eth): Add missing TU for generic parser
aussedatlo Dec 2, 2024
ebd01e8
πŸ”– (chore): Add changeset
aussedatlo Dec 2, 2024
cb2dbe8
βœ… (signer-eth) [DSDK-529]: Add missing TU for generic parser (#531)
aussedatlo Dec 3, 2024
ba3ae39
♻️ (signer-eth): Add SendPayloadInChunk task
aussedatlo Dec 3, 2024
5da11c0
:sparkles: (signer-btc): Implement SignerBtc, DI & GetExtendedPkeyDA
jdabbech-ledger Dec 2, 2024
8ca777b
πŸ”‡ (signer-solana): Remove debug logs
aussedatlo Dec 5, 2024
55d75f6
πŸ”‡ (signer-solana) [NO-ISSUE]: Remove debug logs (#540)
aussedatlo Dec 5, 2024
0eb82c3
:sparkles: (signer-btc) [DSDK-475]: Implement GetExtendedPublicKey de…
jdabbech-ledger Dec 5, 2024
7d2be39
πŸ”§ (repo) [NO-ISSUE]: Update toolchain
github-actions[bot] Dec 8, 2024
24d747e
πŸ”§ (repo) [NO-ISSUE]: Update toolchain (#542)
valpinkman Dec 9, 2024
66443df
♻️ (signer-eth): Split ProvideTransactionGenericContext task
aussedatlo Dec 4, 2024
b13a95a
πŸ”– (chore): Add changeset
aussedatlo Dec 5, 2024
5c52bdf
♻️ (signer-eth) [DSDK-602]: Improve provide generic context structure…
aussedatlo Dec 9, 2024
828fffa
⬆️ (repo): Various dependencies updates
valpinkman Dec 9, 2024
515a114
πŸ”’οΈ (repo): Pnpm overrides to fix the security issues
valpinkman Dec 9, 2024
ad4c3f5
πŸ”’οΈ (dependencies) [NO-ISSUE]: Update dependencies + pnpm overrides on…
valpinkman Dec 9, 2024
8f6907a
✨ (dmk): Add new ToggleDeviceSessionRefresher method
valpinkman Dec 10, 2024
c11b93e
✨ (dmk) [NO-ISSUE]: Add new ToggleDeviceSessionRefresher method (#548)
valpinkman Dec 10, 2024
cca3846
:rocket: (chore): Set private package
jdabbech-ledger Dec 10, 2024
8f85445
:rocket: (chore): Split changesets for ignored packages
jdabbech-ledger Dec 10, 2024
65cedf3
πŸ”– (release): Versioning packages
github-actions[bot] Dec 11, 2024
8322125
πŸ”– (release) [NO-ISSUE]: Versioning packages (#552)
jdabbech-ledger Dec 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 0 additions & 5 deletions .changeset/afraid-readers-swim.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/afraid-readers-swimmer.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/calm-monkeys-peel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ledgerhq/device-signer-kit-bitcoin": minor
---

Add RegisterWallet command
2 changes: 1 addition & 1 deletion .changeset/calm-months-live.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
"@ledgerhq/device-signer-kit-btc": minor
"@ledgerhq/device-signer-kit-bitcoin": minor
---

Implement MerkleTree and MerkleMap services
9 changes: 9 additions & 0 deletions .changeset/chilly-carpets-press.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"@ledgerhq/device-management-kit": minor
"@ledgerhq/device-transport-kit-mockserver": minor
"@ledgerhq/device-transport-kit-web-ble": minor
"@ledgerhq/device-transport-kit-web-hid": minor
"@ledgerhq/device-management-kit-sample": minor
---

Extract Transports to their own module
12 changes: 5 additions & 7 deletions .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,11 @@
"fixed": [],
"linked": [],
"access": "public",
"privatePackages": {
"version": false
},
"bumpVersionsWithWorkspaceProtocolOnly": true,
"baseBranch": "develop",
"updateInternalDependencies": "patch",
"ignore": [
"@ledgerhq/ledger-dmk-docs",
"@ledgerhq/device-management-kit-sample",
"@ledgerhq/device-signer-kit-btc",
"@ledgerhq/device-signer-kit-ethereum",
"@ledgerhq/context-module"
]
"ignore": []
}
6 changes: 0 additions & 6 deletions .changeset/cool-dancers-coin.md

This file was deleted.

2 changes: 1 addition & 1 deletion .changeset/cuddly-impalas-sing.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
"@ledgerhq/device-signer-kit-btc": minor
"@ledgerhq/device-signer-kit-bitcoin": minor
---

Implement GetExtendedPublicKeyCommand
6 changes: 0 additions & 6 deletions .changeset/eleven-spies-explainer.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fuzzy-cups-refuse.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/good-mayflies-jog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ledgerhq/device-signer-kit-bitcoin": minor
---

Implement GetSignMessageCommand
5 changes: 5 additions & 0 deletions .changeset/gorgeous-tables-cheer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ledgerhq/device-signer-kit-bitcoin": patch
---

Set bitcoin-js as peer dep
5 changes: 0 additions & 5 deletions .changeset/great-paws-sell.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/hip-ducks-study.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/lemon-impalas-flash.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/loud-balloons-poke.md

This file was deleted.

2 changes: 1 addition & 1 deletion .changeset/lucky-keys-explode.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
"@ledgerhq/device-signer-kit-btc": minor
"@ledgerhq/device-signer-kit-bitcoin": minor
---

Implement GetMasterFingerprintCommand
5 changes: 5 additions & 0 deletions .changeset/metal-tables-move.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ledgerhq/device-management-kit": minor
---

Add new toggle for the device session refresher
5 changes: 0 additions & 5 deletions .changeset/metal-wombats-relate.md

This file was deleted.

2 changes: 1 addition & 1 deletion .changeset/mighty-vans-kiss.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
"@ledgerhq/device-signer-kit-btc": patch
"@ledgerhq/device-signer-kit-bitcoin": patch
---

Implement wallet policy service
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
"@ledgerhq/device-signer-kit-ethereum": patch
"@ledgerhq/device-management-kit-sample": patch
---

Expand Down
2 changes: 1 addition & 1 deletion .changeset/perfect-deers-sneeze.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
"@ledgerhq/device-signer-kit-btc": patch
"@ledgerhq/device-signer-kit-bitcoin": patch
---

Rename packages
5 changes: 0 additions & 5 deletions .changeset/plenty-snakes-agree.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/purple-deers-grow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ledgerhq/device-signer-kit-bitcoin": minor
---

Add SignPsbt command
5 changes: 5 additions & 0 deletions .changeset/quiet-feet-leave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ledgerhq/device-signer-kit-bitcoin": minor
---

Add GetWalletAddressCommand
5 changes: 5 additions & 0 deletions .changeset/rare-elephants-breathe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ledgerhq/device-management-kit": patch
---

Add manager api calls for secure channel
5 changes: 0 additions & 5 deletions .changeset/slow-lies-float.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/stale-buttons-repair.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ledgerhq/device-signer-kit-solana": patch
---

Remove debug logs
5 changes: 0 additions & 5 deletions .changeset/strange-mayflies-repair.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/sweet-stingrays-give.md

This file was deleted.

4 changes: 2 additions & 2 deletions .changeset/tall-hairs-cheer.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
"@ledgerhq/device-signer-kit-btc": minor
"@ledgerhq/device-signer-kit-bitcoin": minor
---

Create device-signer-kit-btc package
Create device-signer-kit-bitcoin package
5 changes: 0 additions & 5 deletions .changeset/ten-carrots-wait.md

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
"@ledgerhq/context-module": patch
"@ledgerhq/device-signer-kit-ethereum": patch
"@ledgerhq/device-management-kit-sample": patch
---

Expand Down
5 changes: 0 additions & 5 deletions .changeset/twelve-stingrays-shake.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/twenty-beans-teach.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ledgerhq/device-signer-kit-bitcoin": minor
---

Implement SignerBtc, DI & GetExtendedPkeyDA
2 changes: 1 addition & 1 deletion .changeset/weak-ads-chew.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
"@ledgerhq/device-signer-kit-btc": patch
"@ledgerhq/device-signer-kit-bitcoin": patch
---

Implement PSBT parser and mapper services
5 changes: 5 additions & 0 deletions .changeset/wise-ducks-whisper.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ledgerhq/device-management-kit-sample": patch
---

Rework context module builder
5 changes: 0 additions & 5 deletions .changeset/witty-boats-lay.md

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
"@ledgerhq/device-signer-kit-ethereum": patch
"@ledgerhq/device-management-kit-sample": patch
---

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/generate_sbom.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
generate-sbom:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/merge_queue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ concurrency:
jobs:
checks:
name: Run health check and unit tests
runs-on: ledgerhq-device-sdk
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ concurrency:
jobs:
auto-assign:
name: Auto assign
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: toshimaru/auto-author-assign@v2.1.1

danger:
name: Run Danger check
runs-on: [ubuntu-latest]
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4

Expand All @@ -38,7 +38,7 @@ jobs:
checks:
name: Run health check and unit tests
needs: [danger]
runs-on: ${{ github.event.pull_request.head.repo.fork == 'true' && 'ubuntu-latest' || 'ledgerhq-device-sdk' }}
runs-on: ${{ !github.event.pull_request.head.repo.fork && 'ledgerhq-device-sdk' || 'ubuntu-22.04' }}
steps:
- uses: actions/checkout@v4

Expand Down
59 changes: 48 additions & 11 deletions .github/workflows/snapshot_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,29 @@ on:
inputs:
ref:
description: The base branch to publish a snapshot release from
required: true
required: false
default: "develop"
tag:
description: Snapshot version name
required: false
default: ""
default: "develop"

env:
FORCE_COLOR: "1"
# if no inputs it's considered as a cron job
REF: ${{ inputs.ref || 'develop' }}
TAG: ${{ inputs.tag || 'develop' }}
NPM_TOKEN: ${{ secrets.NPMJS_TOKEN }}
REF: ${{ inputs.ref }}
TAG: ${{ inputs.tag }}
NPM_REGISTRY: jfrog.ledgerlabs.net/artifactory/api/npm/ldk-npm-prod-public

permissions:
id-token: write
contents: write
pull-requests: write
# Need to attest artifacts
attestations: write

jobs:
snapshot:
runs-on: ubuntu-latest
runs-on: ledgerhq-device-sdk
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -31,14 +37,45 @@ jobs:
- uses: LedgerHQ/device-sdk-ts/.github/actions/setup-toolchain-composite@develop

- name: build libraries
run: pnpm build
run: pnpm build:libs

- name: Login to internal JFrog registry
id: jfrog-login
uses: LedgerHQ/actions-security/actions/jfrog-login@actions/jfrog-login-1

- name: Setup npm config for JFrog
env:
NPM_REGISTRY_TOKEN: ${{ steps.jfrog-login.outputs.oidc-token }}
run: |
cat << EOF | tee .npmrc
enable-pre-post-scripts=true
registry=https://${NPM_REGISTRY}/
//${NPM_REGISTRY}/:_authToken=${NPM_REGISTRY_TOKEN}
EOF

- name: Create dist directory to store tarball
run: mkdir -p dist

- name: create .npmrc
run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> .npmrc
# - name: create .npmrc
# run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> .npmrc

- name: create and publish snapshot release version
id: changesets
run: |
pnpm bump --snapshot ${{ env.TAG }}
pnpm release --snapshot --no-git-tag --tag ${{ env.TAG }}
env:
GITHUB_TOKEN: ${{ github.token }}
GITHUB_TOKEN: ${{ secrets.CI_BOT_TOKEN }}

- name: Attest tarball
if: steps.changesets.conclusion == 'success'
uses: LedgerHQ/actions-security/actions/attest@actions/attest-1
with:
subject-path: ./dist

# The action currently doesn't support pushing the blob to the registry
- name: Sign tarball
if: steps.changesets.conclusion == 'success'
uses: LedgerHQ/actions-security/actions/sign-blob@actions/sign-blob-1
with:
path: ./dist
Loading
Loading