From 46c44824e5fedddad20626b74ab6e6c96ab2019e Mon Sep 17 00:00:00 2001 From: henrily-ledger <33897120+henrily-ledger@users.noreply.github.com> Date: Fri, 22 Apr 2022 13:56:27 +0200 Subject: [PATCH 1/8] LIVE-2014 set min version for DOT to 12.9180.0 (#1895) --- src/apps/support.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/support.ts b/src/apps/support.ts index 14257985b4..f0b5f0d591 100644 --- a/src/apps/support.ts +++ b/src/apps/support.ts @@ -29,7 +29,7 @@ export function shouldUpgrade( const appVersionsRequired = { Cosmos: ">= 2.14", Algorand: ">= 1.2.9", - Polkadot: ">= 11.9170.0", + Polkadot: ">= 12.9180.0", Elrond: ">= 1.0.11", Ethereum: ">= 1.9.17", Solana: ">= 1.2.0", From 76e3f11f3fcbc3deb0074344a5684a7aa313d664 Mon Sep 17 00:00:00 2001 From: henrily-ledger <33897120+henrily-ledger@users.noreply.github.com> Date: Tue, 26 Apr 2022 10:56:38 +0200 Subject: [PATCH 2/8] Add workflow for backend to test staging (#1909) * Add workflow for backend to test staging * all in one file --- .github/workflows/bot-staging-explorer.yml | 145 +++++++++++++++++++++ 1 file changed, 145 insertions(+) create mode 100644 .github/workflows/bot-staging-explorer.yml diff --git a/.github/workflows/bot-staging-explorer.yml b/.github/workflows/bot-staging-explorer.yml new file mode 100644 index 0000000000..8672426d02 --- /dev/null +++ b/.github/workflows/bot-staging-explorer.yml @@ -0,0 +1,145 @@ +name: Bot Staging Explorer 'Bitcoin' +on: + workflow_dispatch: + inputs: + ref: + description: "Which ref (branch or tag) to pull from ?" + required: false + default: master + +jobs: + start-runner: + name: "start ec2 instance (Linux)" + if: ${{ always() }} + uses: ledgerhq/actions/.github/workflows/start-linux-runner.yml@main + secrets: + CI_BOT_TOKEN: ${{ secrets.CI_BOT_TOKEN }} + + stop-runner: + name: "stop ec2 instance (Linux)" + needs: [start-runner, run-bot-btc, run-bot-eth] + uses: ledgerhq/actions/.github/workflows/stop-linux-runner.yml@main + if: ${{ always() }} + with: + label: ${{ needs.start-runner.outputs.label }} + ec2-instance-id: ${{ needs.start-runner.outputs.ec2-instance-id }} + secrets: + CI_BOT_TOKEN: ${{ secrets.CI_BOT_TOKEN }} + + run-bot-btc: + needs: [start-runner] + runs-on: ${{ needs.start-runner.outputs.label }} + steps: + - name: prepare runner + run: | + sudo growpart /dev/nvme0n1 1 + sudo resize2fs /dev/nvme0n1p1 + - uses: actions/checkout@v3 + with: + ref: ${{github.event.inputs.ref}} + - name: Retrieving coin apps + uses: actions/checkout@v2 + with: + repository: LedgerHQ/coin-apps + token: ${{ secrets.PAT }} + path: coin-apps + - uses: actions/setup-node@master + with: + node-version: 14.x + - name: install yarn + run: npm i -g yarn + - name: pull docker image + run: docker pull ghcr.io/ledgerhq/speculos + - name: kill apt-get + run: sudo killall -w apt-get apt || echo OK + - name: Install linux deps + run: sudo apt-get install -y libusb-1.0-0-dev jq + - name: Install dependencies + run: | + yarn global add yalc + yarn --frozen-lockfile + yarn ci-setup-cli + - name: BOT + env: + SHOW_LEGACY_NEW_ACCOUNT: "1" + DEBUG_HTTP_RESPONSE: "1" + SEED: ${{ secrets.SEED4 }} + BOT_REPORT_FOLDER: botreport + VERBOSE_FILE: botreport/logs.txt + GITHUB_SHA: ${GITHUB_SHA} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_RUN_ID: ${{ github.run_id }} + GITHUB_WORKFLOW: ${{ github.workflow }} + SLACK_API_TOKEN: ${{ secrets.SLACK_API_TOKEN }} + SLACK_CHANNEL: explorer-bot-stg + BOT_FILTER_FAMILY: bitcoin + EXPLORER: https://explorers.api-01.live.ledger-stg.com + run: mkdir botreport; COINAPPS=$PWD/coin-apps yarn ci-test-bot + timeout-minutes: 120 + - name: Run coverage + if: failure() || success() + run: CODECOV_TOKEN=${{ secrets.CODECOV_TOKEN }} npx codecov + - name: upload logs + if: failure() || success() + uses: actions/upload-artifact@v1 + with: + name: botreport + path: botreport/ + + run-bot-eth: + needs: [start-runner] + runs-on: ${{ needs.start-runner.outputs.label }} + steps: + - name: prepare runner + run: | + sudo growpart /dev/nvme0n1 1 + sudo resize2fs /dev/nvme0n1p1 + - uses: actions/checkout@v3 + with: + ref: ${{github.event.inputs.ref}} + - name: Retrieving coin apps + uses: actions/checkout@v2 + with: + repository: LedgerHQ/coin-apps + token: ${{ secrets.PAT }} + path: coin-apps + - uses: actions/setup-node@master + with: + node-version: 14.x + - name: install yarn + run: npm i -g yarn + - name: pull docker image + run: docker pull ghcr.io/ledgerhq/speculos + - name: kill apt-get + run: sudo killall -w apt-get apt || echo OK + - name: Install linux deps + run: sudo apt-get install -y libusb-1.0-0-dev jq + - name: Install dependencies + run: | + yarn global add yalc + yarn --frozen-lockfile + yarn ci-setup-cli + - name: BOT + env: + SEED: ${{ secrets.SEED2 }} + BOT_REPORT_FOLDER: botreport + VERBOSE_FILE: botreport/logs.txt + GITHUB_SHA: ${GITHUB_SHA} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_RUN_ID: ${{ github.run_id }} + GITHUB_WORKFLOW: ${{ github.workflow }} + SLACK_API_TOKEN: ${{ secrets.SLACK_API_TOKEN }} + SLACK_CHANNEL: explorer-bot-stg + BOT_FILTER_FAMILY: ethereum + EXPLORER: https://explorers.api-01.live.ledger-stg.com + run: mkdir botreport; COINAPPS=$PWD/coin-apps yarn ci-test-bot + timeout-minutes: 120 + - name: Run coverage + if: failure() || success() + run: CODECOV_TOKEN=${{ secrets.CODECOV_TOKEN }} npx codecov + - name: upload logs + if: failure() || success() + uses: actions/upload-artifact@v1 + with: + name: botreport + path: botreport/ \ No newline at end of file From efcf9b1c710a4ca00a8791cbeee47fdae1efbb01 Mon Sep 17 00:00:00 2001 From: henrily-ledger <33897120+henrily-ledger@users.noreply.github.com> Date: Wed, 27 Apr 2022 11:19:55 +0200 Subject: [PATCH 3/8] Add workflow for backend to test staging (#1914) --- ...lorer.yml => bot-staging-explorer-btc.yml} | 65 ++------------ .../workflows/bot-staging-explorer-eth.yml | 90 +++++++++++++++++++ 2 files changed, 95 insertions(+), 60 deletions(-) rename .github/workflows/{bot-staging-explorer.yml => bot-staging-explorer-btc.yml} (57%) create mode 100644 .github/workflows/bot-staging-explorer-eth.yml diff --git a/.github/workflows/bot-staging-explorer.yml b/.github/workflows/bot-staging-explorer-btc.yml similarity index 57% rename from .github/workflows/bot-staging-explorer.yml rename to .github/workflows/bot-staging-explorer-btc.yml index 8672426d02..a7148e1520 100644 --- a/.github/workflows/bot-staging-explorer.yml +++ b/.github/workflows/bot-staging-explorer-btc.yml @@ -1,5 +1,8 @@ name: Bot Staging Explorer 'Bitcoin' on: + schedule: + - cron: 0 8,12,16 * * 1-5 + workflow_dispatch: inputs: ref: @@ -17,7 +20,7 @@ jobs: stop-runner: name: "stop ec2 instance (Linux)" - needs: [start-runner, run-bot-btc, run-bot-eth] + needs: [start-runner, run-bot] uses: ledgerhq/actions/.github/workflows/stop-linux-runner.yml@main if: ${{ always() }} with: @@ -26,7 +29,7 @@ jobs: secrets: CI_BOT_TOKEN: ${{ secrets.CI_BOT_TOKEN }} - run-bot-btc: + run-bot: needs: [start-runner] runs-on: ${{ needs.start-runner.outputs.label }} steps: @@ -85,61 +88,3 @@ jobs: with: name: botreport path: botreport/ - - run-bot-eth: - needs: [start-runner] - runs-on: ${{ needs.start-runner.outputs.label }} - steps: - - name: prepare runner - run: | - sudo growpart /dev/nvme0n1 1 - sudo resize2fs /dev/nvme0n1p1 - - uses: actions/checkout@v3 - with: - ref: ${{github.event.inputs.ref}} - - name: Retrieving coin apps - uses: actions/checkout@v2 - with: - repository: LedgerHQ/coin-apps - token: ${{ secrets.PAT }} - path: coin-apps - - uses: actions/setup-node@master - with: - node-version: 14.x - - name: install yarn - run: npm i -g yarn - - name: pull docker image - run: docker pull ghcr.io/ledgerhq/speculos - - name: kill apt-get - run: sudo killall -w apt-get apt || echo OK - - name: Install linux deps - run: sudo apt-get install -y libusb-1.0-0-dev jq - - name: Install dependencies - run: | - yarn global add yalc - yarn --frozen-lockfile - yarn ci-setup-cli - - name: BOT - env: - SEED: ${{ secrets.SEED2 }} - BOT_REPORT_FOLDER: botreport - VERBOSE_FILE: botreport/logs.txt - GITHUB_SHA: ${GITHUB_SHA} - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GITHUB_RUN_ID: ${{ github.run_id }} - GITHUB_WORKFLOW: ${{ github.workflow }} - SLACK_API_TOKEN: ${{ secrets.SLACK_API_TOKEN }} - SLACK_CHANNEL: explorer-bot-stg - BOT_FILTER_FAMILY: ethereum - EXPLORER: https://explorers.api-01.live.ledger-stg.com - run: mkdir botreport; COINAPPS=$PWD/coin-apps yarn ci-test-bot - timeout-minutes: 120 - - name: Run coverage - if: failure() || success() - run: CODECOV_TOKEN=${{ secrets.CODECOV_TOKEN }} npx codecov - - name: upload logs - if: failure() || success() - uses: actions/upload-artifact@v1 - with: - name: botreport - path: botreport/ \ No newline at end of file diff --git a/.github/workflows/bot-staging-explorer-eth.yml b/.github/workflows/bot-staging-explorer-eth.yml new file mode 100644 index 0000000000..2482d4fedc --- /dev/null +++ b/.github/workflows/bot-staging-explorer-eth.yml @@ -0,0 +1,90 @@ +name: Bot Staging Explorer 'Ethereum' +on: + schedule: + - cron: 0 8,12,16 * * 1-5 + + workflow_dispatch: + inputs: + ref: + description: "Which ref (branch or tag) to pull from ?" + required: false + default: master + +jobs: + start-runner: + name: "start ec2 instance (Linux)" + if: ${{ always() }} + uses: ledgerhq/actions/.github/workflows/start-linux-runner.yml@main + secrets: + CI_BOT_TOKEN: ${{ secrets.CI_BOT_TOKEN }} + + stop-runner: + name: "stop ec2 instance (Linux)" + needs: [start-runner, run-bot] + uses: ledgerhq/actions/.github/workflows/stop-linux-runner.yml@main + if: ${{ always() }} + with: + label: ${{ needs.start-runner.outputs.label }} + ec2-instance-id: ${{ needs.start-runner.outputs.ec2-instance-id }} + secrets: + CI_BOT_TOKEN: ${{ secrets.CI_BOT_TOKEN }} + + run-bot: + needs: [start-runner] + runs-on: ${{ needs.start-runner.outputs.label }} + steps: + - name: prepare runner + run: | + sudo growpart /dev/nvme0n1 1 + sudo resize2fs /dev/nvme0n1p1 + - uses: actions/checkout@v3 + with: + ref: ${{github.event.inputs.ref}} + - name: Retrieving coin apps + uses: actions/checkout@v2 + with: + repository: LedgerHQ/coin-apps + token: ${{ secrets.PAT }} + path: coin-apps + - uses: actions/setup-node@master + with: + node-version: 14.x + - name: install yarn + run: npm i -g yarn + - name: pull docker image + run: docker pull ghcr.io/ledgerhq/speculos + - name: kill apt-get + run: sudo killall -w apt-get apt || echo OK + - name: Install linux deps + run: sudo apt-get install -y libusb-1.0-0-dev jq + - name: Install dependencies + run: | + yarn global add yalc + yarn --frozen-lockfile + yarn ci-setup-cli + - name: BOT + env: + SHOW_LEGACY_NEW_ACCOUNT: "1" + DEBUG_HTTP_RESPONSE: "1" + SEED: ${{ secrets.SEED2 }} + BOT_REPORT_FOLDER: botreport + VERBOSE_FILE: botreport/logs.txt + GITHUB_SHA: ${GITHUB_SHA} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_RUN_ID: ${{ github.run_id }} + GITHUB_WORKFLOW: ${{ github.workflow }} + SLACK_API_TOKEN: ${{ secrets.SLACK_API_TOKEN }} + SLACK_CHANNEL: explorer-bot-stg + BOT_FILTER_FAMILY: ethereum + EXPLORER: https://explorers.api-01.live.ledger-stg.com + run: mkdir botreport; COINAPPS=$PWD/coin-apps yarn ci-test-bot + timeout-minutes: 120 + - name: Run coverage + if: failure() || success() + run: CODECOV_TOKEN=${{ secrets.CODECOV_TOKEN }} npx codecov + - name: upload logs + if: failure() || success() + uses: actions/upload-artifact@v1 + with: + name: botreport + path: botreport/ From 3ae2e1351a3542a854f8d2c7045d5a43bcd8ea30 Mon Sep 17 00:00:00 2001 From: lambertkevin Date: Wed, 27 Apr 2022 15:50:34 +0200 Subject: [PATCH 4/8] FIX LIVE-2175 - Fix NFT order --- src/nft/helpers.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/nft/helpers.ts b/src/nft/helpers.ts index 020a9d29bb..04c1e9f29c 100644 --- a/src/nft/helpers.ts +++ b/src/nft/helpers.ts @@ -67,7 +67,8 @@ export const nftsFromOperations = (ops: Operation[]): ProtoNFT[] => { return acc; }, {}); - return Object.values(nftsMap); + // We reverse the array to make it from latest to oldest again + return Object.values(nftsMap).reverse(); }; /** From 7b392bb673aa984b8359f27b9633859df7109df9 Mon Sep 17 00:00:00 2001 From: lambertkevin Date: Thu, 28 Apr 2022 13:20:52 +0200 Subject: [PATCH 5/8] Update ledgerhq libs --- package.json | 32 ++++---- yarn.lock | 225 +++++++++++++++++++++------------------------------ 2 files changed, 110 insertions(+), 147 deletions(-) diff --git a/package.json b/package.json index 880b62c7f1..a7ce26e64f 100644 --- a/package.json +++ b/package.json @@ -52,24 +52,24 @@ "@ethereumjs/common": "^2.6.2", "@ethereumjs/tx": "^3.5.0", "@ledgerhq/compressjs": "1.3.2", - "@ledgerhq/cryptoassets": "6.28.0", - "@ledgerhq/devices": "6.24.1", + "@ledgerhq/cryptoassets": "6.28.1", + "@ledgerhq/devices": "6.27.1", "@ledgerhq/errors": "6.10.0", - "@ledgerhq/hw-app-algorand": "6.24.1", - "@ledgerhq/hw-app-btc": "6.24.1", - "@ledgerhq/hw-app-cosmos": "6.24.1", - "@ledgerhq/hw-app-eth": "6.27.0", - "@ledgerhq/hw-app-polkadot": "6.24.1", - "@ledgerhq/hw-app-solana": "^6.27.0", - "@ledgerhq/hw-app-str": "6.24.1", - "@ledgerhq/hw-app-tezos": "6.24.1", - "@ledgerhq/hw-app-trx": "6.24.1", - "@ledgerhq/hw-app-xrp": "6.24.1", - "@ledgerhq/hw-transport": "6.24.1", - "@ledgerhq/hw-transport-mocker": "6.24.1", - "@ledgerhq/hw-transport-node-speculos": "6.24.1", + "@ledgerhq/hw-app-algorand": "6.27.1", + "@ledgerhq/hw-app-btc": "6.27.1", + "@ledgerhq/hw-app-cosmos": "6.27.1", + "@ledgerhq/hw-app-eth": "6.28.1", + "@ledgerhq/hw-app-polkadot": "6.27.1", + "@ledgerhq/hw-app-solana": "^6.27.1", + "@ledgerhq/hw-app-str": "6.27.1", + "@ledgerhq/hw-app-tezos": "6.27.1", + "@ledgerhq/hw-app-trx": "6.27.1", + "@ledgerhq/hw-app-xrp": "6.27.1", + "@ledgerhq/hw-transport": "6.27.1", + "@ledgerhq/hw-transport-mocker": "6.27.1", + "@ledgerhq/hw-transport-node-speculos": "6.27.1", "@ledgerhq/json-bignumber": "^1.1.0", - "@ledgerhq/live-app-sdk": "^0.2.0", + "@ledgerhq/live-app-sdk": "^0.6.1", "@ledgerhq/logs": "6.10.0", "@polkadot/types": "7.8.1", "@polkadot/types-known": "7.8.1", diff --git a/yarn.lock b/yarn.lock index 43e47a5898..edae6d30e6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -472,17 +472,7 @@ "@cosmjs/math" "0.26.6" "@cosmjs/utils" "0.26.6" -"@cosmjs/amino@^0.25.0-alpha.2": - version "0.25.4" - resolved "https://registry.npmjs.org/@cosmjs/amino/-/amino-0.25.4.tgz" - integrity sha512-S22PlzC/VoJirv5UpDYe4XIVtOHKHxGLYgpgBkv10P4vpEhD872R0G7dRfiZZ35lMbu0+vvJxn3e/pEOEVGcuA== - dependencies: - "@cosmjs/crypto" "^0.25.4" - "@cosmjs/encoding" "^0.25.4" - "@cosmjs/math" "^0.25.4" - "@cosmjs/utils" "^0.25.4" - -"@cosmjs/amino@^0.25.6": +"@cosmjs/amino@^0.25.0-alpha.2", "@cosmjs/amino@^0.25.6": version "0.25.6" resolved "https://registry.yarnpkg.com/@cosmjs/amino/-/amino-0.25.6.tgz#cdf9632253bfab7b1d2ef967124953d7bf16351f" integrity sha512-9dXN2W7LHjDtJUGNsQ9ok0DfxeN3ca/TXnxCR3Ikh/5YqBqxI8Gel1J9PQO9L6EheYyh045Wff4bsMaLjyEeqQ== @@ -526,7 +516,7 @@ sha.js "^2.4.11" unorm "^1.5.0" -"@cosmjs/crypto@^0.25.0-alpha.2", "@cosmjs/crypto@^0.25.4", "@cosmjs/crypto@^0.25.6": +"@cosmjs/crypto@^0.25.0-alpha.2", "@cosmjs/crypto@^0.25.6": version "0.25.6" resolved "https://registry.yarnpkg.com/@cosmjs/crypto/-/crypto-0.25.6.tgz#695d2d0d2195bdbdd5825d415385646244900bbb" integrity sha512-ec+YcQLrg2ibcxtNrh4FqQnG9kG9IE/Aik2NH6+OXQdFU/qFuBTxSFcKDgzzBOChwlkXwydllM9Jjbp+dgIzRw== @@ -569,7 +559,7 @@ bech32 "^1.1.4" readonly-date "^1.0.0" -"@cosmjs/encoding@^0.25.0-alpha.2", "@cosmjs/encoding@^0.25.4", "@cosmjs/encoding@^0.25.6": +"@cosmjs/encoding@^0.25.0-alpha.2", "@cosmjs/encoding@^0.25.6": version "0.25.6" resolved "https://registry.yarnpkg.com/@cosmjs/encoding/-/encoding-0.25.6.tgz#da741a33eaf063a6d3611d7d68db5ca3938e0ef5" integrity sha512-0imUOB8XkUstI216uznPaX1hqgvLQ2Xso3zJj5IV5oJuNlsfDj9nt/iQxXWbJuettc6gvrFfpf+Vw2vBZSZ75g== @@ -586,15 +576,7 @@ "@cosmjs/stream" "0.26.6" xstream "^11.14.0" -"@cosmjs/json-rpc@^0.25.0-alpha.2": - version "0.25.4" - resolved "https://registry.npmjs.org/@cosmjs/json-rpc/-/json-rpc-0.25.4.tgz" - integrity sha512-X3BzvzUpThD2o9+Ak2+icAqm8AAdWhCGB6Hl229DvKG1NUnXEKdwSxlI/VNw0IKT7ljy47Jv56syQiK5nFdXRQ== - dependencies: - "@cosmjs/stream" "^0.25.4" - xstream "^11.14.0" - -"@cosmjs/json-rpc@^0.25.6": +"@cosmjs/json-rpc@^0.25.0-alpha.2", "@cosmjs/json-rpc@^0.25.6": version "0.25.6" resolved "https://registry.yarnpkg.com/@cosmjs/json-rpc/-/json-rpc-0.25.6.tgz#4f888630e84ee114b164758ec5b48f134068656c" integrity sha512-Mn9og3/IEzC6jWoYXs0ONqFJc8HxVjXzrZPLgaRRdMZEUBvctxdhynau1wbE4LdkYQHbu4aiRu1q1jMYGFAj4A== @@ -648,7 +630,7 @@ dependencies: bn.js "^4.11.8" -"@cosmjs/math@^0.25.0-alpha.2", "@cosmjs/math@^0.25.4", "@cosmjs/math@^0.25.6": +"@cosmjs/math@^0.25.0-alpha.2", "@cosmjs/math@^0.25.6": version "0.25.6" resolved "https://registry.yarnpkg.com/@cosmjs/math/-/math-0.25.6.tgz#25c7b106aaded889a5b80784693caa9e654b0c28" integrity sha512-Fmyc9FJ8KMU34n7rdapMJrT/8rx5WhMw2F7WLBu7AVLcBh0yWsXIcMSJCoPHTOnMIiABjXsnrrwEaLrOOBfu6A== @@ -695,17 +677,7 @@ ws "^7" xstream "^11.14.0" -"@cosmjs/socket@^0.25.0-alpha.2": - version "0.25.4" - resolved "https://registry.npmjs.org/@cosmjs/socket/-/socket-0.25.4.tgz" - integrity sha512-hcL+2kISZ1qqgviNB8OFSzMyYGdiKsBp+j582WYJa+5h9rpZrNWJSm2BFe8hah5AvfYsVCZX1kn7jRu8dZpUnA== - dependencies: - "@cosmjs/stream" "^0.25.4" - isomorphic-ws "^4.0.1" - ws "^7" - xstream "^11.14.0" - -"@cosmjs/socket@^0.25.6": +"@cosmjs/socket@^0.25.0-alpha.2", "@cosmjs/socket@^0.25.6": version "0.25.6" resolved "https://registry.yarnpkg.com/@cosmjs/socket/-/socket-0.25.6.tgz#7876bc24e1f16315fbb9e97bd63dea65ba90647d" integrity sha512-hu+pW3Fy0IuhstXgxnZ2Iq0RUnGYoTWfqrxbTsgXBJge4MpEQs2YwGXgJZPMJXedBQivG0tU3r/Wvam0EWuRkQ== @@ -756,14 +728,7 @@ dependencies: xstream "^11.14.0" -"@cosmjs/stream@^0.25.0-alpha.2": - version "0.25.4" - resolved "https://registry.npmjs.org/@cosmjs/stream/-/stream-0.25.4.tgz" - integrity sha512-Z/if46lnNyiGojzQgSi4ztaqDCJ4gljlmGw6hX/7MrPn5dtmaSqWjLep5CMh7moiR9ZaAeqRPTdUsb99CjiKMQ== - dependencies: - xstream "^11.14.0" - -"@cosmjs/stream@^0.25.4", "@cosmjs/stream@^0.25.6": +"@cosmjs/stream@^0.25.0-alpha.2", "@cosmjs/stream@^0.25.6": version "0.25.6" resolved "https://registry.yarnpkg.com/@cosmjs/stream/-/stream-0.25.6.tgz#1bf7536ed919be3fd7fbffa477c98ef5a93eac70" integrity sha512-2mXIzf+WaFd+GSrRaJJETVXeZoC5sosuKChFERxSY8zXQ/f3OaG9J6m+quHpPbU3nAIEtnF1jgBVqJiD+NKwGQ== @@ -825,7 +790,7 @@ resolved "https://registry.yarnpkg.com/@cosmjs/utils/-/utils-0.24.1.tgz#0adfefe63b7f17222bc2bc12f71296f35e7ad378" integrity sha512-VA3WFx1lMFb7esp9BqHWkDgMvHoA3D9w+uDRvWhVRpUpDc7RYHxMbWExASjz+gNblTCg556WJGzF64tXnf9tdQ== -"@cosmjs/utils@^0.25.0-alpha.2", "@cosmjs/utils@^0.25.4", "@cosmjs/utils@^0.25.6": +"@cosmjs/utils@^0.25.0-alpha.2", "@cosmjs/utils@^0.25.6": version "0.25.6" resolved "https://registry.yarnpkg.com/@cosmjs/utils/-/utils-0.25.6.tgz#934d9a967180baa66163847616a74358732227ca" integrity sha512-ofOYiuxVKNo238vCPPlaDzqPXy2AQ/5/nashBo5rvPZJkxt9LciGfUEQWPCOb1BIJDNx2Dzu0z4XCf/dwzl0Dg== @@ -1343,24 +1308,17 @@ dependencies: commander "^2.20.0" -"@ledgerhq/cryptoassets@6.28.0": - version "6.28.0" - resolved "https://registry.yarnpkg.com/@ledgerhq/cryptoassets/-/cryptoassets-6.28.0.tgz#218a41c5184a176ceb3ec16dc21b37589f673c08" - integrity sha512-j3fBnjsOi2qijWO7p/PNoiEHdzjxP849pO02Q4YWW4Ms4lByv7ysmNLMwrset91We2yyVrdHsjdWY8X5JE97qQ== - dependencies: - invariant "2" - -"@ledgerhq/cryptoassets@^6.27.0": - version "6.27.0" - resolved "https://registry.yarnpkg.com/@ledgerhq/cryptoassets/-/cryptoassets-6.27.0.tgz#1a4efdef07858e8cb1b2dd4c1b9e110f1ed60f3f" - integrity sha512-fM1tm+xJSkbgEB73RtWeTeogcWRkpAcgZX+hBGbvq7anhbRwF2jD4EL897SRNwDuvCKFfpSMxpSUaSvEmj9Lcw== +"@ledgerhq/cryptoassets@6.28.1", "@ledgerhq/cryptoassets@^6.28.1": + version "6.28.1" + resolved "https://registry.yarnpkg.com/@ledgerhq/cryptoassets/-/cryptoassets-6.28.1.tgz#a053cea8354a070b6303e5c7430152fb8ff76d36" + integrity sha512-FMbgurSw2YUIL7Ypdf/t6VSlt0gNYS9W3LTB3CQeneo7ZLtryJaPo093tu+afbDPXpZcR4W5D5sTRMBJHr9jKA== dependencies: invariant "2" -"@ledgerhq/devices@6.24.1", "@ledgerhq/devices@^6.24.1": - version "6.24.1" - resolved "https://registry.yarnpkg.com/@ledgerhq/devices/-/devices-6.24.1.tgz#9696d7831aa1a1a8204cdfa55df13f892b7da162" - integrity sha512-6SNXWXxojUF6WKXMVIbRs15Mveg+9k0RKJK/PKlwZh929Lnr/NcbONWdwPjWKZAp1g82eEPT4jIkG6qc4QXlcA== +"@ledgerhq/devices@6.27.1", "@ledgerhq/devices@^6.27.1": + version "6.27.1" + resolved "https://registry.yarnpkg.com/@ledgerhq/devices/-/devices-6.27.1.tgz#3b13ab1d1ba8201e9e74a08f390560483978c962" + integrity sha512-jX++oy89jtv7Dp2X6gwt3MMkoajel80JFWcdc0HCouwDsV1mVJ3SQdwl/bQU0zd8HI6KebvUP95QTwbQLLK/RQ== dependencies: "@ledgerhq/errors" "^6.10.0" "@ledgerhq/logs" "^6.10.0" @@ -1387,24 +1345,24 @@ resolved "https://registry.yarnpkg.com/@ledgerhq/errors/-/errors-5.50.0.tgz#e3a6834cb8c19346efca214c1af84ed28e69dad9" integrity sha512-gu6aJ/BHuRlpU7kgVpy2vcYk6atjB4iauP2ymF7Gk0ez0Y/6VSMVSJvubeEQN+IV60+OBK0JgeIZG7OiHaw8ow== -"@ledgerhq/hw-app-algorand@6.24.1": - version "6.24.1" - resolved "https://registry.yarnpkg.com/@ledgerhq/hw-app-algorand/-/hw-app-algorand-6.24.1.tgz#f2eb5a39bfc188a1ef02186b1c41dca18e2a2755" - integrity sha512-1HpUJM67kmDRuPpHg1BeoX5pFWaowpm6BrAqbTsXT0n5vyxGWN/7YVL2Gn7lhFxkssICptnjNcOHN5Eb1XEEBA== +"@ledgerhq/hw-app-algorand@6.27.1": + version "6.27.1" + resolved "https://registry.yarnpkg.com/@ledgerhq/hw-app-algorand/-/hw-app-algorand-6.27.1.tgz#e8c0b0b7864f1372d24f487bcd8a17af496a248d" + integrity sha512-bYXn1wBm0muDrCGOG+9ofrDQZ7MUkvZY+pcPGPthg/CwuGR9m9rwid934yEy+IwW5BUzvGvs6aorgL2reyKyDg== dependencies: "@ledgerhq/errors" "^6.10.0" - "@ledgerhq/hw-transport" "^6.24.1" + "@ledgerhq/hw-transport" "^6.27.1" bip32-path "^0.4.2" hi-base32 "^0.5.1" js-sha512 "^0.8.0" tweetnacl "^1.0.3" -"@ledgerhq/hw-app-btc@6.24.1": - version "6.24.1" - resolved "https://registry.yarnpkg.com/@ledgerhq/hw-app-btc/-/hw-app-btc-6.24.1.tgz#50591ec34c9c2c73fe6a03975cde64b6c4d24af7" - integrity sha512-01LlJemkOBoHA0LxZb/NNlw7EIAja27kbUZ5zIC7KgtTuxXgteVxoZWUb4RaX2AuczR2Y/FBvz1HBEwa67hUvA== +"@ledgerhq/hw-app-btc@6.27.1": + version "6.27.1" + resolved "https://registry.yarnpkg.com/@ledgerhq/hw-app-btc/-/hw-app-btc-6.27.1.tgz#5f7258f8a61532e14d6720678a80133320fc5666" + integrity sha512-2XOH5jtso4QsPYjXldwdcXw6amb8kCyiHtXw1NySA1QP/xBjxN8JLEXEPFsaK6l2zz55I8kKUtVoEGz7bpg0lg== dependencies: - "@ledgerhq/hw-transport" "^6.24.1" + "@ledgerhq/hw-transport" "^6.27.1" "@ledgerhq/logs" "^6.10.0" bip32-path "^0.4.2" bitcoinjs-lib "^5.2.0" @@ -1416,25 +1374,25 @@ tiny-secp256k1 "1.1.6" varuint-bitcoin "1.1.2" -"@ledgerhq/hw-app-cosmos@6.24.1": - version "6.24.1" - resolved "https://registry.yarnpkg.com/@ledgerhq/hw-app-cosmos/-/hw-app-cosmos-6.24.1.tgz#00b31c446e2902f5cca68a62e812164864e0ffe7" - integrity sha512-rIqPuHVL0AAeW3cmXZdcEALf91cGLLCxUnz5DE55TDhE3BMj/ej2H+RaYq+2ahlLERXlZCJ4cJhRjoSfKbbRQw== +"@ledgerhq/hw-app-cosmos@6.27.1": + version "6.27.1" + resolved "https://registry.yarnpkg.com/@ledgerhq/hw-app-cosmos/-/hw-app-cosmos-6.27.1.tgz#834df28568dfd59304103c7d4222a16c554a1d10" + integrity sha512-UJDQmsv5Fb3Owyem/d5mLJLAVIr3yKJjuYArZ3ui6n7zsx+MGtJgUIXUhpEVIk+FrDKnZGa0sqcbvoXW09NIXQ== dependencies: "@ledgerhq/errors" "^6.10.0" - "@ledgerhq/hw-transport" "^6.24.1" + "@ledgerhq/hw-transport" "^6.27.1" bip32-path "^0.4.2" -"@ledgerhq/hw-app-eth@6.27.0": - version "6.27.0" - resolved "https://registry.yarnpkg.com/@ledgerhq/hw-app-eth/-/hw-app-eth-6.27.0.tgz#944f901a95ed3d82759e3fb011859b1b357620a9" - integrity sha512-7uyXu7dCsFmgGWSaXqasxb9Cegrw54HtCeMcZIkq1yqR9ik0ipQIPG1/qW+TqWfS6VYNkorUSsnKc67Cc+0MwA== +"@ledgerhq/hw-app-eth@6.28.1": + version "6.28.1" + resolved "https://registry.yarnpkg.com/@ledgerhq/hw-app-eth/-/hw-app-eth-6.28.1.tgz#5c5220a9b9354418ef446064a89303745e926918" + integrity sha512-GEB9TPCaJsObotRe5ADKrSxdFftwT97tJ4fZGXw1eoi1TZQyyki+v95cb//EsWyw3CxqqJVpYvGmL/AHEMdDrw== dependencies: "@ethersproject/abi" "^5.5.0" "@ethersproject/rlp" "^5.5.0" - "@ledgerhq/cryptoassets" "^6.27.0" + "@ledgerhq/cryptoassets" "^6.28.1" "@ledgerhq/errors" "^6.10.0" - "@ledgerhq/hw-transport" "^6.24.1" + "@ledgerhq/hw-transport" "^6.27.1" "@ledgerhq/logs" "^6.10.0" axios "^0.26.1" bignumber.js "^9.0.2" @@ -1447,85 +1405,85 @@ "@ledgerhq/errors" "^5.11.0" "@ledgerhq/hw-transport" "^5.11.0" -"@ledgerhq/hw-app-polkadot@6.24.1": - version "6.24.1" - resolved "https://registry.yarnpkg.com/@ledgerhq/hw-app-polkadot/-/hw-app-polkadot-6.24.1.tgz#43d2c8149d42186ec1466caebd143d3ed102f57a" - integrity sha512-u5ZTLud2w3BP10t7rYpW/W7Ar3jDzeKrpwKsaWPk9vbuvc38puuj899iAoqRBjcM5T12y2KuoVcQ17n3cxe3Sg== +"@ledgerhq/hw-app-polkadot@6.27.1": + version "6.27.1" + resolved "https://registry.yarnpkg.com/@ledgerhq/hw-app-polkadot/-/hw-app-polkadot-6.27.1.tgz#bf253a6c58a44c97c406087dfce70438c3d213e1" + integrity sha512-LkRIDITOv3FNfGB4xldaGz62wgZHLlWA6zd/neE3FxqsCogZia28ieRYdSuin7J4LtDU+GahuyJ9tBXAxuUWKw== dependencies: "@ledgerhq/errors" "^6.10.0" - "@ledgerhq/hw-transport" "^6.24.1" + "@ledgerhq/hw-transport" "^6.27.1" bip32-path "^0.4.2" -"@ledgerhq/hw-app-solana@^6.27.0": - version "6.27.0" - resolved "https://registry.yarnpkg.com/@ledgerhq/hw-app-solana/-/hw-app-solana-6.27.0.tgz#6d6b52d04919d2725b402f4d3f5ffe2dfe7b3aef" - integrity sha512-DFaoJU/2y4RIivLeqlG1L0LhtcDulFcFKuwrw6M2+b6BO5y3bxjRoLMDjBrmAHaZmkUDRZYxqnTLvOeYRLIU2A== +"@ledgerhq/hw-app-solana@^6.27.1": + version "6.27.1" + resolved "https://registry.yarnpkg.com/@ledgerhq/hw-app-solana/-/hw-app-solana-6.27.1.tgz#9df40918f4175b597bf7f144732615da076f6375" + integrity sha512-mibdrbqW8cnu+cWBpdsfbVM0GOn5sundzlVyQ9Aydddkr45NtnjHsz7Yf+/S3idLxXRE64Kat1Jkb0XYnXPHwA== dependencies: "@ledgerhq/errors" "^6.10.0" - "@ledgerhq/hw-transport" "^6.24.1" + "@ledgerhq/hw-transport" "^6.27.1" "@ledgerhq/logs" "^6.10.0" bip32-path "^0.4.2" -"@ledgerhq/hw-app-str@6.24.1": - version "6.24.1" - resolved "https://registry.yarnpkg.com/@ledgerhq/hw-app-str/-/hw-app-str-6.24.1.tgz#aaecc30132831886b6a0eb30fe1e05143ecfaf2a" - integrity sha512-Xe/7b2xIerY5fQ/soE9mp+drbcWxF486xpmjZaX4w55NWwf7BR7mQ/HqcXvHqIiIvX1DrQhU31Iip926b/8k3g== +"@ledgerhq/hw-app-str@6.27.1": + version "6.27.1" + resolved "https://registry.yarnpkg.com/@ledgerhq/hw-app-str/-/hw-app-str-6.27.1.tgz#274aef6627b323e2f0bd630c69cd57bddd11c908" + integrity sha512-cAtl6UKdD/KThcEnsCDn99XZtNxMNcMc6Wcbk7L7h/lmF8zgl6b8fjaA9yPvEZZgOfu6CQ8NTjf4Mp6BHMx4lQ== dependencies: - "@ledgerhq/hw-transport" "^6.24.1" + "@ledgerhq/hw-transport" "^6.27.1" base32.js "^0.1.0" sha.js "^2.3.6" tweetnacl "^1.0.3" -"@ledgerhq/hw-app-tezos@6.24.1": - version "6.24.1" - resolved "https://registry.yarnpkg.com/@ledgerhq/hw-app-tezos/-/hw-app-tezos-6.24.1.tgz#891abd61d075f5b86d47fdb3e88adf6bfc4e7ac8" - integrity sha512-avGyuiWIIPm3bUY1C3xAMD90qQu7jlw7zv62hYtFnhgdo6uL/7yn1OmbU/uQsbA8QTrBYV6LyaXmhZMo7X7bHQ== +"@ledgerhq/hw-app-tezos@6.27.1": + version "6.27.1" + resolved "https://registry.yarnpkg.com/@ledgerhq/hw-app-tezos/-/hw-app-tezos-6.27.1.tgz#9150433b6aa5abb9bca4490bfd323a8b1217b730" + integrity sha512-rSR2fF3jrezbbCLprOxyfQwJ2A14d5VI4KpOsTsNY3RRrDUwtXwPXIlQ0lqQM6suNbJ9L9Z/QRGrubWZcPt4Yg== dependencies: - "@ledgerhq/hw-transport" "^6.24.1" + "@ledgerhq/hw-transport" "^6.27.1" blake2b "^2.1.4" bs58check "^2.1.2" invariant "^2.2.4" -"@ledgerhq/hw-app-trx@6.24.1": - version "6.24.1" - resolved "https://registry.yarnpkg.com/@ledgerhq/hw-app-trx/-/hw-app-trx-6.24.1.tgz#3b39a538e8bdd8ee193f0469d85384b344411101" - integrity sha512-5afQ05qYfNwFmYwluEwOP4qFMsuk/RJmFQ6UuQj1bweu1SKbHNHbPYXaKVk0Ba6YH6P7dwjuBLq5BZeqlgMxUg== +"@ledgerhq/hw-app-trx@6.27.1": + version "6.27.1" + resolved "https://registry.yarnpkg.com/@ledgerhq/hw-app-trx/-/hw-app-trx-6.27.1.tgz#ad804ff9e17b0867fc618ec8e32fe79f80afc06b" + integrity sha512-n4J5EO2a09bJVPEUWM1mzl+zbl9wZyEuX/yto/u8i64CFYT+nqF2Hf/XjkCMxIZ0Fvhh8/vh8jc/vyyYHR6dMg== dependencies: "@ledgerhq/errors" "^6.10.0" - "@ledgerhq/hw-transport" "^6.24.1" + "@ledgerhq/hw-transport" "^6.27.1" -"@ledgerhq/hw-app-xrp@6.24.1": - version "6.24.1" - resolved "https://registry.yarnpkg.com/@ledgerhq/hw-app-xrp/-/hw-app-xrp-6.24.1.tgz#875a31d46cb14c306ee630a3a54384e904f8be85" - integrity sha512-+WCzG7oUdUhO8EK1VOoW5oqMIvgsAS/o8mtZUvYroFaHF2wLiGrFAS/3qnj6f2r6WXGktgsz57HqkxmeysLN8w== +"@ledgerhq/hw-app-xrp@6.27.1": + version "6.27.1" + resolved "https://registry.yarnpkg.com/@ledgerhq/hw-app-xrp/-/hw-app-xrp-6.27.1.tgz#b89d6906f448438ad9c2df97c7bc69a7c90c7f41" + integrity sha512-A3pe31Uu7VXfXPy2nha9uhB1d6RJFPeuqAF1I8YCXXz8JRxExhFcWTUEAbZ5tXAE1L/KJeleFSuCO62U7obHqQ== dependencies: - "@ledgerhq/hw-transport" "^6.24.1" + "@ledgerhq/hw-transport" "^6.27.1" bip32-path "0.4.2" -"@ledgerhq/hw-transport-mocker@6.24.1": - version "6.24.1" - resolved "https://registry.yarnpkg.com/@ledgerhq/hw-transport-mocker/-/hw-transport-mocker-6.24.1.tgz#68091a98bea9f6a790253fb2256bf9407e2f4de8" - integrity sha512-4bv1nkdv1ZOXnudwIMub9A+2nRX7mwUgb1Na+E8GiaqssLUpqOEZdekM/VURszku75BKp0so+5k7yfIZdECUNQ== +"@ledgerhq/hw-transport-mocker@6.27.1": + version "6.27.1" + resolved "https://registry.yarnpkg.com/@ledgerhq/hw-transport-mocker/-/hw-transport-mocker-6.27.1.tgz#2ace1f2decba6c3d3d98c47795d0fa136b5a3f73" + integrity sha512-rCpI8RUBMSO/JFGAZ2JTkBaL0sXN1qBREvSmZLprRxNaZU0Sd2cHZhxL9rzAEHBRLrDx83Z1Lov8SDDZqSVFVQ== dependencies: - "@ledgerhq/hw-transport" "^6.24.1" + "@ledgerhq/hw-transport" "^6.27.1" "@ledgerhq/logs" "^6.10.0" -"@ledgerhq/hw-transport-node-speculos@6.24.1": - version "6.24.1" - resolved "https://registry.yarnpkg.com/@ledgerhq/hw-transport-node-speculos/-/hw-transport-node-speculos-6.24.1.tgz#735617a70ec162fb7bb9401ebdcd95e74e7c0cfe" - integrity sha512-xkOqK7m1HOALqnwxMTxrBU8N54/PnQJpGx9Xg9RRUpLVEU7m84LAI9uXemx4AKfs6CEL8D5EP51WIRlQlnhdCQ== +"@ledgerhq/hw-transport-node-speculos@6.27.1": + version "6.27.1" + resolved "https://registry.yarnpkg.com/@ledgerhq/hw-transport-node-speculos/-/hw-transport-node-speculos-6.27.1.tgz#46539775a3a871aed1ee9dc4314afb8c6fbb7889" + integrity sha512-HOf1Oy6DBaoFdr0HkRAgyICILfL1rNUoy3v17ui+W5ftIKoRivxw8OhvFSWN8SnflqKlVfRU5hQmH26fpmVh0w== dependencies: "@ledgerhq/errors" "^6.10.0" - "@ledgerhq/hw-transport" "^6.24.1" + "@ledgerhq/hw-transport" "^6.27.1" "@ledgerhq/logs" "^6.10.0" rxjs "6" -"@ledgerhq/hw-transport@6.24.1", "@ledgerhq/hw-transport@^6.24.1": - version "6.24.1" - resolved "https://registry.yarnpkg.com/@ledgerhq/hw-transport/-/hw-transport-6.24.1.tgz#5e787268e6d5ce4f9f0d53b0d520c1f071c2d1ae" - integrity sha512-cOhxkQJrN7DvPFLLXAS2nqAZ7NIDaFqnbgu9ugTccgbJm2/z7ClRZX/uQoI4FscswZ47MuJQdXqz4nK48phteQ== +"@ledgerhq/hw-transport@6.27.1", "@ledgerhq/hw-transport@^6.27.1": + version "6.27.1" + resolved "https://registry.yarnpkg.com/@ledgerhq/hw-transport/-/hw-transport-6.27.1.tgz#88072278f69c279cb6569352acd4ae2fec33ace3" + integrity sha512-hnE4/Fq1YzQI4PA1W0H8tCkI99R3UWDb3pJeZd6/Xs4Qw/q1uiQO+vNLC6KIPPhK0IajUfuI/P2jk0qWcMsuAQ== dependencies: - "@ledgerhq/devices" "^6.24.1" + "@ledgerhq/devices" "^6.27.1" "@ledgerhq/errors" "^6.10.0" events "^3.3.0" @@ -1554,13 +1512,13 @@ dependencies: bignumber.js "^9.0.1" -"@ledgerhq/live-app-sdk@^0.2.0": - version "0.2.0" - resolved "https://registry.yarnpkg.com/@ledgerhq/live-app-sdk/-/live-app-sdk-0.2.0.tgz#d50ca7ddd07eeeb564728a1998bf0fb154533315" - integrity sha512-OwyEu/Ue/D/mw/Fgc4HrXm4jlzD43r7nfLXC913U+YprPapUcT9e6cc28xIEYXnJqY0GVV/ISdP7ODGfJC21Xg== +"@ledgerhq/live-app-sdk@^0.6.1": + version "0.6.1" + resolved "https://registry.yarnpkg.com/@ledgerhq/live-app-sdk/-/live-app-sdk-0.6.1.tgz#e5841668cb0c7092ec0f0cc8d3fa662b153754ae" + integrity sha512-pGSNsTIg/K3P5xrj9n50Lmb6/sILh/7XrZjMsJA5HDTOYfbhWuYNOXtmDgaSjEO5vkI2YrU2I49VoE2XbwpEwg== dependencies: - bignumber.js "^9.0.1" - json-rpc-2.0 "^0.2.16" + bignumber.js "^9.0.2" + json-rpc-2.0 "^1.0.0" "@ledgerhq/logs@6.10.0", "@ledgerhq/logs@^6.10.0": version "6.10.0" @@ -6689,11 +6647,16 @@ json-parse-even-better-errors@^2.3.0: resolved "https://registry.yarnpkg.com/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz#7c47805a94319928e05777405dc12e1f7a4ee02d" integrity sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w== -json-rpc-2.0@^0.2.16, json-rpc-2.0@^0.2.19: +json-rpc-2.0@^0.2.19: version "0.2.19" resolved "https://registry.yarnpkg.com/json-rpc-2.0/-/json-rpc-2.0-0.2.19.tgz#082957f0d22d22f03473dbf5ffeeb20dcdeb1faa" integrity sha512-tegZKneDQjWintJS5Zlw8xNvJK0/xq4sct2M5AgfFmcCJFMjvrLgk1noH7OPfFgEQ+ScueuWdaGfikCPr+qBtg== +json-rpc-2.0@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/json-rpc-2.0/-/json-rpc-2.0-1.1.0.tgz#891eb5fd89de6a909444a2d81ae804655b757c29" + integrity sha512-A4v62rLgwC2U+G3hA1PKRgAXKS55ItTtjUJVbIq68yccD+AUJZSdjayxd0PLQD8i3ustyLvvaYKW6+DglScrjA== + json-schema-traverse@^0.4.1: version "0.4.1" resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz#69f6a87d9513ab8bb8fe63bdb0979c448e684660" From 0fa0c6c0e75dafe7a54af0bb84696f830c510b22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Renaudeau?= Date: Thu, 28 Apr 2022 15:47:29 +0200 Subject: [PATCH 6/8] Fixes LIVE-2166: nftsFromOperations was mutating account.operations --- src/nft/helpers.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/nft/helpers.ts b/src/nft/helpers.ts index 04c1e9f29c..e99b95b288 100644 --- a/src/nft/helpers.ts +++ b/src/nft/helpers.ts @@ -16,6 +16,7 @@ import { API, apiForCurrency } from "../api/Ethereum"; export const nftsFromOperations = (ops: Operation[]): ProtoNFT[] => { const nftsMap = ops + .slice(0) // make sure we have the operation in chronological order (older first) .sort((a, b) => a.date.getTime() - b.date.getTime()) // if ops are Operations get the prop nftOperations, else ops are considered nftOperations already From accfe97fbac21ae0cfbaebc82b76b3cf2dde9fa8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Renaudeau?= Date: Thu, 28 Apr 2022 15:50:50 +0200 Subject: [PATCH 7/8] Add a test --- src/families/ethereum/nft.unit.test.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/families/ethereum/nft.unit.test.ts b/src/families/ethereum/nft.unit.test.ts index 69639b6ad2..146fa974b8 100644 --- a/src/families/ethereum/nft.unit.test.ts +++ b/src/families/ethereum/nft.unit.test.ts @@ -141,7 +141,9 @@ describe("OpenSea lazy minting bs", () => { // -2 off-chain & -3 on-chain -> 0 on-chain (3 off-chain) // +1 on-chain -> 1 on-chain (and 3 off-chain) + const prevOperations = ops.slice(0); const nfts = nftsFromOperations(ops); + expect(prevOperations).toEqual(ops); // ensure preserved order of operations expect(nfts[0].amount.toNumber()).toBe(1); }); }); From a1c73d9823384d304848364899a37c6bc087d39f Mon Sep 17 00:00:00 2001 From: lambertkevin Date: Fri, 29 Apr 2022 11:19:42 +0200 Subject: [PATCH 8/8] v22.0.3 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a7ce26e64f..78c2ad1922 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "type": "git", "url": "https://github.com/LedgerHQ/ledger-live-common" }, - "version": "22.0.2", + "version": "22.0.3", "main": "lib/index.js", "types": "lib/index.d.ts", "license": "Apache-2.0",