Skip to content

Commit

Permalink
Merge branch 'release'
Browse files Browse the repository at this point in the history
  • Loading branch information
live-github-bot[bot] committed Jun 28, 2024
2 parents 2614225 + f71c9d6 commit de0a6f2
Show file tree
Hide file tree
Showing 450 changed files with 14,471 additions and 23,136 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/release-create.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,6 @@ jobs:
run: |
git add .
git commit -m 'chore(prerelease) update cryptoassets' || echo "No new tokens added"
- name: update cryptoassets.md
run: pnpm generate:cryptoassets-md
- name: commit cryptoassets.md
run: |
git add .
git commit -m 'update cryptoassets.md' || echo "No changes in cryptoassets.md"
- name: update sortByMarketcap snapshot
run: pnpm common jest --runTestsByPath src/currencies/sortByMarketcap.test.ts -u
- name: commit sortByMarketcap.test.ts
Expand Down
99 changes: 99 additions & 0 deletions apps/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,104 @@
# @ledgerhq/live-cli

## 24.3.2

### Patch Changes

- [#7206](https://github.com/LedgerHQ/ledger-live/pull/7206) [`81e5b8b`](https://github.com/LedgerHQ/ledger-live/commit/81e5b8bf4830dcb9d666436f2cc4367d92e93e78) Thanks [@kallen-ledger](https://github.com/kallen-ledger)! - chore: resolve merge conflicts

- [#7019](https://github.com/LedgerHQ/ledger-live/pull/7019) [`2e56708`](https://github.com/LedgerHQ/ledger-live/commit/2e567080b07abb8540907c0cb89457c746362917) Thanks [@ofreyssinet-ledger](https://github.com/ofreyssinet-ledger)! - Refactor install/uninstall app commands to only rely on v2 manager apis

- Updated dependencies [[`9551536`](https://github.com/LedgerHQ/ledger-live/commit/955153681ebc19344ed5becfbf7b131224b2ebd0), [`2e5d5bd`](https://github.com/LedgerHQ/ledger-live/commit/2e5d5bdb988c73c91f1fe42c809b192ca5dbeb7a), [`782d637`](https://github.com/LedgerHQ/ledger-live/commit/782d637b5fba8c9c9d37609b6ad492f45a4b3737), [`2e56708`](https://github.com/LedgerHQ/ledger-live/commit/2e567080b07abb8540907c0cb89457c746362917), [`2e56708`](https://github.com/LedgerHQ/ledger-live/commit/2e567080b07abb8540907c0cb89457c746362917), [`cde94b9`](https://github.com/LedgerHQ/ledger-live/commit/cde94b9584d6889849fb097813a5fc11ea19d069), [`d2368f6`](https://github.com/LedgerHQ/ledger-live/commit/d2368f632b834207c33df14468599b6a543d11da), [`785c618`](https://github.com/LedgerHQ/ledger-live/commit/785c6180c2212ca879c2fddb8302f0bab5686761), [`b478096`](https://github.com/LedgerHQ/ledger-live/commit/b478096537a0f86a9e39acc8c6cf17b1184e0849), [`9e82327`](https://github.com/LedgerHQ/ledger-live/commit/9e823278b69d7ccd5f8927f699930172cd50a59d), [`fc6d09b`](https://github.com/LedgerHQ/ledger-live/commit/fc6d09be89a6e8775d77b98d5a0256b68346a14d), [`6b3c8ca`](https://github.com/LedgerHQ/ledger-live/commit/6b3c8cab371db8212e1b0a02f03bb0baa46ce95c), [`c988a94`](https://github.com/LedgerHQ/ledger-live/commit/c988a946d86e7f874823ac96d66573281ba00b13), [`9f33fc1`](https://github.com/LedgerHQ/ledger-live/commit/9f33fc14e0628a68d32957171aa879c30041f27e), [`81e5b8b`](https://github.com/LedgerHQ/ledger-live/commit/81e5b8bf4830dcb9d666436f2cc4367d92e93e78), [`1df64d2`](https://github.com/LedgerHQ/ledger-live/commit/1df64d27e75c2a3445903ebce9e1f681683676da), [`d9f586e`](https://github.com/LedgerHQ/ledger-live/commit/d9f586ea4bd45d15f3e42c9f733f30dceef3027d), [`d13a5d7`](https://github.com/LedgerHQ/ledger-live/commit/d13a5d7f8f23624feb3a4a041cd7966d3b100dcf), [`fec3dc8`](https://github.com/LedgerHQ/ledger-live/commit/fec3dc84ea00fc6f7f632942826978607e20c2ff), [`6692f5f`](https://github.com/LedgerHQ/ledger-live/commit/6692f5fe6701a4e47c626ea3cbb73a4641c9021d), [`4b7f19c`](https://github.com/LedgerHQ/ledger-live/commit/4b7f19c96d95d86d5b6fbb480032d77532bf755e)]:
- @ledgerhq/live-common@34.5.0
- @ledgerhq/coin-framework@0.15.0
- @ledgerhq/cryptoassets@13.1.1
- @ledgerhq/live-wallet@0.3.0
- @ledgerhq/hw-transport-node-hid@6.29.1
- @ledgerhq/coin-bitcoin@0.6.1
- @ledgerhq/live-countervalues@0.2.1

## 24.3.2-next.8

### Patch Changes

- Updated dependencies []:
- @ledgerhq/live-common@34.5.0-next.7

## 24.3.2-next.7

### Patch Changes

- Updated dependencies [[`fec3dc8`](https://github.com/LedgerHQ/ledger-live/commit/fec3dc84ea00fc6f7f632942826978607e20c2ff)]:
- @ledgerhq/live-common@34.5.0-next.6

## 24.3.2-next.6

### Patch Changes

- Updated dependencies [[`9e82327`](https://github.com/LedgerHQ/ledger-live/commit/9e823278b69d7ccd5f8927f699930172cd50a59d)]:
- @ledgerhq/live-common@34.5.0-next.5

## 24.3.2-next.5

### Patch Changes

- [#7206](https://github.com/LedgerHQ/ledger-live/pull/7206) [`81e5b8b`](https://github.com/LedgerHQ/ledger-live/commit/81e5b8bf4830dcb9d666436f2cc4367d92e93e78) Thanks [@kallen-ledger](https://github.com/kallen-ledger)! - chore: resolve merge conflicts

- Updated dependencies [[`81e5b8b`](https://github.com/LedgerHQ/ledger-live/commit/81e5b8bf4830dcb9d666436f2cc4367d92e93e78)]:
- @ledgerhq/hw-transport-node-hid@6.29.1-next.1
- @ledgerhq/cryptoassets@13.1.1-next.1
- @ledgerhq/coin-bitcoin@0.6.1-next.2
- @ledgerhq/live-common@34.5.0-next.4
- @ledgerhq/live-countervalues@0.2.1-next.2
- @ledgerhq/coin-framework@0.15.0-next.2
- @ledgerhq/live-wallet@0.3.0-next.2

## 24.3.2-next.4

### Patch Changes

- Updated dependencies [[`b478096`](https://github.com/LedgerHQ/ledger-live/commit/b478096537a0f86a9e39acc8c6cf17b1184e0849), [`d13a5d7`](https://github.com/LedgerHQ/ledger-live/commit/d13a5d7f8f23624feb3a4a041cd7966d3b100dcf)]:
- @ledgerhq/cryptoassets@13.1.1-next.0
- @ledgerhq/live-common@34.4.0-next.3
- @ledgerhq/coin-framework@0.15.0-next.1
- @ledgerhq/coin-bitcoin@0.6.1-next.1
- @ledgerhq/live-countervalues@0.2.1-next.1
- @ledgerhq/live-wallet@0.3.0-next.1

## 24.3.2-next.3

### Patch Changes

- Updated dependencies []:
- @ledgerhq/live-common@34.4.0-next.2

## 24.3.2-next.2

### Patch Changes

- Updated dependencies []:
- @ledgerhq/live-common@34.4.0-next.1

## 24.3.2-next.1

### Patch Changes

- Updated dependencies [[`1df64d2`](https://github.com/LedgerHQ/ledger-live/commit/1df64d27e75c2a3445903ebce9e1f681683676da)]:
- @ledgerhq/hw-transport-node-hid@6.29.1-next.0

## 24.3.2-next.0

### Patch Changes

- [#7019](https://github.com/LedgerHQ/ledger-live/pull/7019) [`2e56708`](https://github.com/LedgerHQ/ledger-live/commit/2e567080b07abb8540907c0cb89457c746362917) Thanks [@ofreyssinet-ledger](https://github.com/ofreyssinet-ledger)! - Refactor install/uninstall app commands to only rely on v2 manager apis

- Updated dependencies [[`9551536`](https://github.com/LedgerHQ/ledger-live/commit/955153681ebc19344ed5becfbf7b131224b2ebd0), [`2e5d5bd`](https://github.com/LedgerHQ/ledger-live/commit/2e5d5bdb988c73c91f1fe42c809b192ca5dbeb7a), [`782d637`](https://github.com/LedgerHQ/ledger-live/commit/782d637b5fba8c9c9d37609b6ad492f45a4b3737), [`2e56708`](https://github.com/LedgerHQ/ledger-live/commit/2e567080b07abb8540907c0cb89457c746362917), [`2e56708`](https://github.com/LedgerHQ/ledger-live/commit/2e567080b07abb8540907c0cb89457c746362917), [`cde94b9`](https://github.com/LedgerHQ/ledger-live/commit/cde94b9584d6889849fb097813a5fc11ea19d069), [`d2368f6`](https://github.com/LedgerHQ/ledger-live/commit/d2368f632b834207c33df14468599b6a543d11da), [`785c618`](https://github.com/LedgerHQ/ledger-live/commit/785c6180c2212ca879c2fddb8302f0bab5686761), [`fc6d09b`](https://github.com/LedgerHQ/ledger-live/commit/fc6d09be89a6e8775d77b98d5a0256b68346a14d), [`6b3c8ca`](https://github.com/LedgerHQ/ledger-live/commit/6b3c8cab371db8212e1b0a02f03bb0baa46ce95c), [`c988a94`](https://github.com/LedgerHQ/ledger-live/commit/c988a946d86e7f874823ac96d66573281ba00b13), [`9f33fc1`](https://github.com/LedgerHQ/ledger-live/commit/9f33fc14e0628a68d32957171aa879c30041f27e), [`d9f586e`](https://github.com/LedgerHQ/ledger-live/commit/d9f586ea4bd45d15f3e42c9f733f30dceef3027d), [`6692f5f`](https://github.com/LedgerHQ/ledger-live/commit/6692f5fe6701a4e47c626ea3cbb73a4641c9021d), [`4b7f19c`](https://github.com/LedgerHQ/ledger-live/commit/4b7f19c96d95d86d5b6fbb480032d77532bf755e)]:
- @ledgerhq/live-common@34.4.0-next.0
- @ledgerhq/coin-framework@0.15.0-next.0
- @ledgerhq/live-wallet@0.3.0-next.0
- @ledgerhq/coin-bitcoin@0.6.1-next.0
- @ledgerhq/live-countervalues@0.2.1-next.0

## 24.3.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion apps/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ledgerhq/live-cli",
"version": "24.3.1",
"version": "24.3.2",
"description": "ledger-live CLI version",
"repository": {
"type": "git",
Expand Down
13 changes: 8 additions & 5 deletions apps/cli/src/commands/device/app.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import { from, concat } from "rxjs";
import { map, mergeMap, ignoreElements } from "rxjs/operators";
import manager from "@ledgerhq/live-common/manager/index";
import { withDevice } from "@ledgerhq/live-common/hw/deviceAccess";
import getDeviceInfo from "@ledgerhq/live-common/hw/getDeviceInfo";
import openApp from "@ledgerhq/live-common/hw/openApp";
import quitApp from "@ledgerhq/live-common/hw/quitApp";
import installApp from "@ledgerhq/live-common/hw/installApp";
import uninstallApp from "@ledgerhq/live-common/hw/uninstallApp";
import { getAppsCatalogForDevice } from "@ledgerhq/live-common/device/use-cases/getAppsCatalogForDevice";
import { mapApplicationV2ToApp } from "@ledgerhq/live-common/apps/polyfill";
import { deviceOpt, inferManagerApp } from "../../scan";
import type { DeviceInfo } from "@ledgerhq/types-live";
export default {
Expand Down Expand Up @@ -74,10 +75,10 @@ export default {
if (debug)
return from(getDeviceInfo(t)).pipe(
mergeMap((deviceInfo: DeviceInfo) =>
from(manager.getAppsList(deviceInfo, true)).pipe(
from(getAppsCatalogForDevice(deviceInfo)).pipe(
mergeMap(list => {
const app = list.find(
item => item.name.toLowerCase() === inferManagerApp(debug).toLowerCase(),
item => item.versionName.toLowerCase() === inferManagerApp(debug).toLowerCase(),
);

if (!app) {
Expand All @@ -91,11 +92,12 @@ export default {
);
return from(getDeviceInfo(t)).pipe(
mergeMap((deviceInfo: DeviceInfo) =>
from(manager.getAppsList(deviceInfo, true)).pipe(
mergeMap(list =>
from(getAppsCatalogForDevice(deviceInfo)).pipe(
mergeMap(v2List =>
concat(
...(uninstall || []).map(application => {
const { targetId } = deviceInfo;
const list = v2List.map(mapApplicationV2ToApp);
const app = list.find(
item => item.name.toLowerCase() === inferManagerApp(application).toLowerCase(),
);
Expand All @@ -108,6 +110,7 @@ export default {
}),
...(install || []).map(application => {
const { targetId } = deviceInfo;
const list = v2List.map(mapApplicationV2ToApp);
const app = list.find(
item => item.name.toLowerCase() === inferManagerApp(application).toLowerCase(),
);
Expand Down
2 changes: 1 addition & 1 deletion apps/ledger-live-desktop/.unimportedrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
],
"extensions": [".ts", ".js", ".jsx", ".tsx"],
"ignorePatterns": ["**/node_modules/**"],
"ignoreUnresolved": ["unzip-crx-3", "../../../../release-notes.json"],
"ignoreUnresolved": ["../../../../release-notes.json", "unzip-crx-3"],
"ignoreUnimported": [
"**/*.test.*",
"**/*.spec.*",
Expand Down
Loading

1 comment on commit de0a6f2

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Bot] Testing with 'Nitrogen' ❌ 1 txs ($4.21) ⏲ 70.3s

❌ 1 specs have problems: Tezos

What is the bot and how does it work? Everything is documented here!

❌ 1 mutation errors
necessary accounts resynced in 0.25ms
▬ TezosWallet 3.0.3 on nanoS 2.1.0
→ FROM undefined: 5.28869 XTZ (152ops) (tz1aDK1uFAmnUXZ7KJPEmcCEFeYHiVZ56zVF on 44'/1729'/0'/0') tezbox#0 js:2:tezos:0240051fc51799e60dcc8870415b87fc4fd948e71b23fdc0d9b8ac7438cf7d4708:tezbox
max spendable ~5.28803
★ using mutation 'delegate unrevealed'
✔️ transaction 
DELEGATE 0 XTZ
TO tz3LV9aGKHDnAZHCtC9SjNtTrKRu678FqSki
with fees=0.000184
with gasLimit=100
with storageLimit=0
(estimatedFees 0.000558)
STATUS (1098ms)
  amount: 0 XTZ
  estimated fees: 0.000558 XTZ
  total spent: 0.000558 XTZ
errors: 
warnings: 
⚠️ Error: device action timeout. Recent events was:
{"text":"Review operation","x":13,"y":17,"w":107,"h":11}
{"text":"Operation (0)","x":26,"y":-1,"w":94,"h":11}
{"text":"Reveal","x":47,"y":10,"w":81,"h":11}
(totally spent 61.7s – ends at 2024-07-01T11:31:07.857Z)
⚠️ 2 spec hints
  • Spec Tezos:
    • mutations should define a test(): send unrevealed, send revealed, send max (non delegating), delegate unrevealed, delegate revealed, undelegate unrevealed, undelegate revealed
    • There are not enough accounts (3) to cover all mutations (7).
      Please increase the account target to at least 8 accounts
Details of the 1 mutations

Spec Tezos (3)

Spec Tezos found 3 Tezos accounts (preload: 207ms). Will use TezosWallet 3.0.3 on nanoS 2.1.0
undefined: 5.28869 XTZ (152ops) (tz1aDK1uFAmnUXZ7KJPEmcCEFeYHiVZ56zVF on 44'/1729'/0'/0') tezbox#0 js:2:tezos:0240051fc51799e60dcc8870415b87fc4fd948e71b23fdc0d9b8ac7438cf7d4708:tezbox
undefined: 0 XTZ (4ops) (tz1he4fPXP3c9fFrztYT3k7KyYuLb28arFNn on 44'/1729'/1'/0') tezbox#1 js:2:tezos:02fe3d777af5380ef0a431c4985772c9669743050cee5feff717c3c3272d7a2810:tezbox
undefined: 0 XTZ (0ops) (tz1SApkt3kmMaqNE1qtgADc6m3B49HZkFVDA on 44'/1729'/2'/0') tezbox#2 js:2:tezos:029d7bcf10737806147b22ba4578747ce4ac53e26b443c9eb1ac0e4d5bfbb8f67e:tezbox
necessary accounts resynced in 0.25ms
▬ TezosWallet 3.0.3 on nanoS 2.1.0
→ FROM undefined: 5.28869 XTZ (152ops) (tz1aDK1uFAmnUXZ7KJPEmcCEFeYHiVZ56zVF on 44'/1729'/0'/0') tezbox#0 js:2:tezos:0240051fc51799e60dcc8870415b87fc4fd948e71b23fdc0d9b8ac7438cf7d4708:tezbox
max spendable ~5.28803
★ using mutation 'delegate unrevealed'
✔️ transaction 
DELEGATE 0 XTZ
TO tz3LV9aGKHDnAZHCtC9SjNtTrKRu678FqSki
with fees=0.000184
with gasLimit=100
with storageLimit=0
(estimatedFees 0.000558)
STATUS (1098ms)
  amount: 0 XTZ
  estimated fees: 0.000558 XTZ
  total spent: 0.000558 XTZ
errors: 
warnings: 
⚠️ Error: device action timeout. Recent events was:
{"text":"Review operation","x":13,"y":17,"w":107,"h":11}
{"text":"Operation (0)","x":26,"y":-1,"w":94,"h":11}
{"text":"Reveal","x":47,"y":10,"w":81,"h":11}
(totally spent 61.7s – ends at 2024-07-01T11:31:07.860Z)

Details of the 6 uncovered mutations

Spec Tezos (6)

  • send unrevealed: balance is too low (2)
  • send revealed: balance is too low (2)
  • send max (non delegating): balance is too low (2)
  • delegate revealed: balance is too low (2)
  • undelegate unrevealed: balance is too low (2)
  • undelegate revealed: balance is too low (2)
Portfolio ($4.21) – Details of the 1 currencies
Spec (accounts) State Remaining Runs (est) funds?
Tezos (3) 156 ops , 5.28869 XTZ ($4.21) 👍 182 tz1aDK1uFAmnUXZ7KJPEmcCEFeYHiVZ56zVF
undefined: 5.28869 XTZ (152ops) (tz1aDK1uFAmnUXZ7KJPEmcCEFeYHiVZ56zVF on 44'/1729'/0'/0') tezbox#0 js:2:tezos:0240051fc51799e60dcc8870415b87fc4fd948e71b23fdc0d9b8ac7438cf7d4708:tezbox
undefined: 0 XTZ (4ops) (tz1he4fPXP3c9fFrztYT3k7KyYuLb28arFNn on 44'/1729'/1'/0') tezbox#1 js:2:tezos:02fe3d777af5380ef0a431c4985772c9669743050cee5feff717c3c3272d7a2810:tezbox
undefined: 0 XTZ (0ops) (tz1SApkt3kmMaqNE1qtgADc6m3B49HZkFVDA on 44'/1729'/2'/0') tezbox#2 js:2:tezos:029d7bcf10737806147b22ba4578747ce4ac53e26b443c9eb1ac0e4d5bfbb8f67e:tezbox
Performance ⏲ 70.3s

Time spent for each spec: (total across mutations)

Spec (accounts) preload scan re-sync tx status sign op broadcast test destination test
TOTAL 207ms 3.6s 0.64ms 1098ms N/A N/A N/A N/A
Tezos (2) 207ms 3.6s 0.64ms 1098ms N/A N/A N/A N/A

What is the bot and how does it work? Everything is documented here!

Please sign in to comment.