Skip to content
This repository was archived by the owner on Jul 15, 2022. It is now read-only.

Commit 1360070

Browse files
lambertkevinLFBarretohenri-lyhzheng-ledgerHakim
authored
Release/v22.0.1 (#1894)
* Hotfix/v21.36.2 (#1878) * (Solana): fix missing superstruct dependency -> making app crashes * v21.36.2 Co-authored-by: LFBarreto <[email protected]> * support/snapshot-update (#1882) Co-authored-by: Henri Ly <[email protected]> * Release/v22.0.0 (#1880) * LL-1589 more robust bitcoin retry (#1835) * fix bot * fix sync error exception process * fix bch address convert issue (#1847) * LIVE-1890 Replace all deprecated uses of open(deviceId) with withDevice (#1856) * Remove all libcore codebase (#1831) * Remove all libcore codebase * trigger some bot (commit to revert before merging this PR) * lint * remove useless cli test run * fix type issue * cli update * Revert "trigger some bot (commit to revert before merging this PR)" This reverts commit add2667. * update cli/README * fix merge * Cosmos js (#1832) Document Nano app limitations + minor fix on reward amounts * Modularize the all.libcore.tests (#1834) * Additional cleanup on bitcoin implem * LIVE-1873 Co-authored-by: wa-aal <[email protected]> Co-authored-by: haammar-ledger <[email protected]> * Add ETH goerli (#1841) * add ETH goerli * add goerli test * Cosmos fixes (#1846) * Set bot on family/cosmos branch * LIVE-1873 * trigger bot * Family/crypto org (#1852) * LIVE-1743 Fix crypto.com address derivation path (#1836) * trigger bot * Tentative to fix crypto.com use of address Co-authored-by: Thomas Nguy <[email protected]> * [LIVE-1174] - Feature: Upgrade NFT Architecture (#1805) * Fix wrong NFTResource typing * Update NFT types to ProtoNFT * Update NFT Id to contain currency * Update NFT Helpers for new model * Update Eth API metadata call to include chainId * Move nft metadata resolution to bridge * Update NftMetadaProvider logic to use bridge * Update prepare tx of ERC721/1155 w/ new model * Update CLI for new NFT model * Add getNftCapabilities to nft support * Naming + fixing ERC1155 quantity potentially falsy * Make CLI use the LLC branch hash * Add type to nftMetadataResolver param + use of sync metadata * Remove useless import * Remove useless comment in CLI formatters * Add comment to nftsByCollection helper * Add comments + types to NFT metadata call batchers * Fix sync metadata resolution for Eth family * Add return type to nftMetadataResolver + decodeNftId * Add polygon to NFT currencies (#1848) * [LIVE-1909] - Bugfix: OpenSea Lazy mint quantity fix (#1862) * Fix lazyminting issue for nfts quantity * run ci * Reset CLI LLC dep * Fix nft operations wrong order to infer balance (#1865) * [LIVE-1911][LIVE-1912] Feature - Add collection name resolver to eth familly (#1863) * Change nfts resolvers from Bridge type * Update eth nft resolvers & add collection resolver * Add loadCollectionMetadata to nft context * Change eth NFT prepareTransaction to use collection call instead of nft metadata call * Bump plist from 3.0.4 to 3.0.5 in /mobile-test-app (#1849) Bumps [plist](https://github.com/TooTallNate/node-plist) from 3.0.4 to 3.0.5. - [Release notes](https://github.com/TooTallNate/node-plist/releases) - [Changelog](https://github.com/TooTallNate/plist.js/blob/master/History.md) - [Commits](https://github.com/TooTallNate/node-plist/commits) --- updated-dependencies: - dependency-name: plist dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump cocoapods-downloader from 1.3.0 to 1.6.3 in /mobile-test-app (#1857) Bumps [cocoapods-downloader](https://github.com/CocoaPods/cocoapods-downloader) from 1.3.0 to 1.6.3. - [Release notes](https://github.com/CocoaPods/cocoapods-downloader/releases) - [Changelog](https://github.com/CocoaPods/cocoapods-downloader/blob/master/CHANGELOG.md) - [Commits](CocoaPods/cocoapods-downloader@1.3.0...1.6.3) --- updated-dependencies: - dependency-name: cocoapods-downloader dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump ansi-regex from 3.0.0 to 3.0.1 (#1850) Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 3.0.0 to 3.0.1. - [Release notes](https://github.com/chalk/ansi-regex/releases) - [Commits](chalk/ansi-regex@v3.0.0...v3.0.1) --- updated-dependencies: - dependency-name: ansi-regex dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Solana staking (#1844) * solana add initial staking support * solana improve staking * solana fix typos * solana fix cli format for staking * solana add device fields for stake create acc * solana add stake delegate support * solana fix lint * solana add stake undelegate * solana add stake withdraw * solana add stake split * solana add stakes loading * solana improve staking * solana introduce solana resources * solana add preload data * solana add hydrate to bridge * solana add stake actions * solana improve staking * solana add meta to validators * solana add validator name * solana fix seed for stake accs * solana add stake reward * solana improve staking * solana stake add withdrawable amount * solana refactor framework * solana fix tests * solana make auto delegation mandatory * solana sort stakes * solana fix error key * solana add delegation validator validation * solana add staking create acc tests * solana add staking delegate tests * solana add stake undelegate tests * solana remove redundant checks for stake delegation * solana skip options validations on cli level * solana skip undelegate options validations on cli level * solana improve staking tests * solana add delegatable check to staking * solana fix estimate max spendable * solana add delegation active test * solana add stake state tests * solana introduce validators app validators * solana add validators for testnet & devnet * solana refactor validators app validators * solana update meta of stakes * solana update sort order of stakes * solana add delegated op type * solana shuffle staking validators * solana fix stake withdraw optimistic value * solana clean comments * solana update mock data * solana add initial staking bot specs * solana add staking bot specs * solana move ledger vote acc to utils * solana add swap util * solana update device tx config * solana fix lint * Add bot for Solana * Solana staking integration (#1825) * solana add initial staking support * solana improve staking * solana fix typos * solana fix cli format for staking * solana add device fields for stake create acc * solana add stake delegate support * solana fix lint * solana add stake undelegate * solana add stake withdraw * solana add stake split * solana add stakes loading * solana improve staking * solana introduce solana resources * solana add preload data * solana add hydrate to bridge * solana add stake actions * solana improve staking * solana add meta to validators * solana add validator name * solana fix seed for stake accs * solana add stake reward * solana improve staking * solana stake add withdrawable amount * solana refactor framework * solana fix tests * solana make auto delegation mandatory * solana sort stakes * solana fix error key * solana add delegation validator validation * solana add staking create acc tests * solana add staking delegate tests * solana add stake undelegate tests * solana remove redundant checks for stake delegation * solana skip options validations on cli level * solana skip undelegate options validations on cli level * solana improve staking tests * solana add delegatable check to staking * solana fix estimate max spendable * solana add delegation active test * solana add stake state tests * solana introduce validators app validators * solana add validators for testnet & devnet * solana refactor validators app validators * solana update meta of stakes * solana update sort order of stakes * solana add delegated op type * solana shuffle staking validators * solana fix stake withdraw optimistic value * solana clean comments * solana update mock data * solana add initial staking bot specs * solana add staking bot specs * solana move ledger vote acc to utils * solana add swap util * solana update device tx config * solana fix lint * Change seed for Solana bot * Change seed again for Solana bot * trigger bot * solana add stake percent calc fn * solana update spec for new nano app * solana set minimum required nano app version * solana add validators app url env variable * fix bad merge * trigger bot * trigger bot * trigger bot * trigger bot * Solana bot - increase timeout and decrease minimum to delegate * trigger bot * trigger bot * trigger bot * trigger bot * Setup the bot to not use the validators.app proxy (yet) * Replace all deprecated uses of open(deviceId) with withDevice * Solana - replace open(deviceId) with withDevice * Remove custom data * Update solana bot Co-authored-by: konoart <[email protected]> Co-authored-by: konoart <[email protected]> Co-authored-by: lambertkevin <[email protected]> * Update Cosmos dataset snapshot to fix test (#1861) * Update snapshots * Introduce a way to ignore preload data in dataset tests (#1875) * Fix new architecture nftsResolvers in cli (#1883) * v22.0.0 * Update snapshot Co-authored-by: hzheng-ledger <[email protected]> Co-authored-by: Hakim <[email protected]> Co-authored-by: @greweb <[email protected]> Co-authored-by: wa-aal <[email protected]> Co-authored-by: haammar-ledger <[email protected]> Co-authored-by: Thomas Nguy <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: konoart <[email protected]> Co-authored-by: konoart <[email protected]> Co-authored-by: henrily-ledger <[email protected]> * attempt to increase timeout (#1884) * Use live common v22.0.0 for CLI and tools (#1885) * Use Live Common v22.0.0 for tools * Use Live Common v22.0.0 for CLI * fix account index undefined (#1892) * Bump urijs from 1.19.10 to 1.19.11 in /mobile-test-app (#1888) Bumps [urijs](https://github.com/medialize/URI.js) from 1.19.10 to 1.19.11. - [Release notes](https://github.com/medialize/URI.js/releases) - [Changelog](https://github.com/medialize/URI.js/blob/gh-pages/CHANGELOG.md) - [Commits](medialize/URI.js@v1.19.10...v1.19.11) --- updated-dependencies: - dependency-name: urijs dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump urijs from 1.19.10 to 1.19.11 (#1889) Bumps [urijs](https://github.com/medialize/URI.js) from 1.19.10 to 1.19.11. - [Release notes](https://github.com/medialize/URI.js/releases) - [Changelog](https://github.com/medialize/URI.js/blob/gh-pages/CHANGELOG.md) - [Commits](medialize/URI.js@v1.19.10...v1.19.11) --- updated-dependencies: - dependency-name: urijs dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump urijs from 1.19.10 to 1.19.11 in /tools (#1890) Bumps [urijs](https://github.com/medialize/URI.js) from 1.19.10 to 1.19.11. - [Release notes](https://github.com/medialize/URI.js/releases) - [Changelog](https://github.com/medialize/URI.js/blob/gh-pages/CHANGELOG.md) - [Commits](medialize/URI.js@v1.19.10...v1.19.11) --- updated-dependencies: - dependency-name: urijs dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump urijs from 1.19.10 to 1.19.11 in /cli (#1891) Bumps [urijs](https://github.com/medialize/URI.js) from 1.19.10 to 1.19.11. - [Release notes](https://github.com/medialize/URI.js/releases) - [Changelog](https://github.com/medialize/URI.js/blob/gh-pages/CHANGELOG.md) - [Commits](medialize/URI.js@v1.19.10...v1.19.11) --- updated-dependencies: - dependency-name: urijs dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * v22.0.1 Co-authored-by: LFBarreto <[email protected]> Co-authored-by: Henri Ly <[email protected]> Co-authored-by: hzheng-ledger <[email protected]> Co-authored-by: Hakim <[email protected]> Co-authored-by: @greweb <[email protected]> Co-authored-by: wa-aal <[email protected]> Co-authored-by: haammar-ledger <[email protected]> Co-authored-by: Thomas Nguy <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: konoart <[email protected]> Co-authored-by: konoart <[email protected]> Co-authored-by: henrily-ledger <[email protected]>
1 parent 9b63bb6 commit 1360070

File tree

9 files changed

+3471
-1143
lines changed

9 files changed

+3471
-1143
lines changed

cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"@ledgerhq/hw-transport-mocker": "6.24.1",
3535
"@ledgerhq/hw-transport-node-hid": "6.24.1",
3636
"@ledgerhq/hw-transport-node-speculos": "6.24.1",
37-
"@ledgerhq/live-common": "21.34.0",
37+
"@ledgerhq/live-common": "22.0.0",
3838
"@ledgerhq/logs": "6.10.0",
3939
"@walletconnect/client": "^1.7.1",
4040
"asciichart": "^1.5.25",

cli/yarn.lock

Lines changed: 26 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -827,7 +827,14 @@
827827
dependencies:
828828
invariant "2"
829829

830-
"@ledgerhq/[email protected]", "@ledgerhq/cryptoassets@^6.27.0":
830+
"@ledgerhq/[email protected]":
831+
version "6.28.0"
832+
resolved "https://registry.yarnpkg.com/@ledgerhq/cryptoassets/-/cryptoassets-6.28.0.tgz#218a41c5184a176ceb3ec16dc21b37589f673c08"
833+
integrity sha512-j3fBnjsOi2qijWO7p/PNoiEHdzjxP849pO02Q4YWW4Ms4lByv7ysmNLMwrset91We2yyVrdHsjdWY8X5JE97qQ==
834+
dependencies:
835+
invariant "2"
836+
837+
"@ledgerhq/cryptoassets@^6.27.0":
831838
version "6.27.0"
832839
resolved "https://registry.yarnpkg.com/@ledgerhq/cryptoassets/-/cryptoassets-6.27.0.tgz#1a4efdef07858e8cb1b2dd4c1b9e110f1ed60f3f"
833840
integrity sha512-fM1tm+xJSkbgEB73RtWeTeogcWRkpAcgZX+hBGbvq7anhbRwF2jD4EL897SRNwDuvCKFfpSMxpSUaSvEmj9Lcw==
@@ -1087,19 +1094,24 @@
10871094
dependencies:
10881095
bignumber.js "^9.0.1"
10891096
json-rpc-2.0 "^0.2.16"
1090-
1091-
"@ledgerhq/live-common@https://github.com/LedgerHQ/ledger-live-common.git#31177aae3a559e17f8452ed8dc6e010cd1d6f41e":
1092-
version "21.32.4"
1093-
resolved "https://github.com/LedgerHQ/ledger-live-common.git#31177aae3a559e17f8452ed8dc6e010cd1d6f41e"
1094-
dependencies:
1095-
"@celo/contractkit" "^1.5.1"
1096-
"@celo/wallet-base" "^1.5.1"
1097-
"@celo/wallet-ledger" "^1.5.1"
1097+
1098+
"@ledgerhq/[email protected]":
1099+
version "22.0.0"
1100+
resolved "https://registry.yarnpkg.com/@ledgerhq/live-common/-/live-common-22.0.0.tgz#2717701fc8ba63b4befdd3cb1400527c2922335f"
1101+
integrity sha512-BUMgPMWmavlFip0LwMVzr+TABG1o77nLZepGSmxZWIcyLUvsmRRDtCEasVJCW60g0Cd0BhvbtUOo8l0NdDZ+/A==
1102+
dependencies:
1103+
"@celo/contractkit" "^1.5.2"
1104+
"@celo/wallet-base" "^1.5.2"
1105+
"@celo/wallet-ledger" "^1.5.2"
1106+
"@cosmjs/crypto" "^0.26.5"
1107+
"@cosmjs/ledger-amino" "^0.26.5"
1108+
"@cosmjs/proto-signing" "^0.26.5"
1109+
"@cosmjs/stargate" "^0.26.5"
10981110
"@crypto-com/chain-jslib" "0.0.19"
10991111
"@ethereumjs/common" "^2.6.2"
11001112
"@ethereumjs/tx" "^3.5.0"
11011113
"@ledgerhq/compressjs" "1.3.2"
1102-
"@ledgerhq/cryptoassets" "6.27.0"
1114+
"@ledgerhq/cryptoassets" "6.28.0"
11031115
"@ledgerhq/devices" "6.24.1"
11041116
"@ledgerhq/errors" "6.10.0"
11051117
"@ledgerhq/hw-app-algorand" "6.24.1"
@@ -1178,6 +1190,7 @@
11781190
semver "^7.3.5"
11791191
sha.js "^2.4.11"
11801192
stellar-sdk "^10.0.1"
1193+
superstruct "^0.14.2"
11811194
triple-beam "^1.3.0"
11821195
winston "^3.4.0"
11831196
xstate "^4.28.1"
@@ -6900,9 +6913,9 @@ uri-js@^4.2.2:
69006913
punycode "^2.1.0"
69016914

69026915
urijs@^1.19.1:
6903-
version "1.19.10"
6904-
resolved "https://registry.yarnpkg.com/urijs/-/urijs-1.19.10.tgz#8e2fe70a8192845c180f75074884278f1eea26cb"
6905-
integrity sha512-EzauQlgKuJgsXOqoMrCiePBf4At5jVqRhXykF3Wfb8ZsOBMxPcfiVBcsHXug4Aepb/ICm2PIgqAUGMelgdrWEg==
6916+
version "1.19.11"
6917+
resolved "https://registry.yarnpkg.com/urijs/-/urijs-1.19.11.tgz#204b0d6b605ae80bea54bea39280cdb7c9f923cc"
6918+
integrity sha512-HXgFDgDommxn5/bIv0cnQZsPhHDA90NPHD6+c/v21U5+Sx5hoP8+dP9IZXBU1gIfvdRfhG8cel9QNPeionfcCQ==
69066919

69076920
url-parse-lax@^1.0.0:
69086921
version "1.0.0"

mobile-test-app/yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6859,9 +6859,9 @@ unset-value@^1.0.0:
68596859
isobject "^3.0.0"
68606860

68616861
urijs@^1.19.1:
6862-
version "1.19.10"
6863-
resolved "https://registry.yarnpkg.com/urijs/-/urijs-1.19.10.tgz#8e2fe70a8192845c180f75074884278f1eea26cb"
6864-
integrity sha512-EzauQlgKuJgsXOqoMrCiePBf4At5jVqRhXykF3Wfb8ZsOBMxPcfiVBcsHXug4Aepb/ICm2PIgqAUGMelgdrWEg==
6862+
version "1.19.11"
6863+
resolved "https://registry.yarnpkg.com/urijs/-/urijs-1.19.11.tgz#204b0d6b605ae80bea54bea39280cdb7c9f923cc"
6864+
integrity sha512-HXgFDgDommxn5/bIv0cnQZsPhHDA90NPHD6+c/v21U5+Sx5hoP8+dP9IZXBU1gIfvdRfhG8cel9QNPeionfcCQ==
68656865

68666866
urix@^0.1.0:
68676867
version "0.1.0"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"type": "git",
99
"url": "https://github.com/LedgerHQ/ledger-live-common"
1010
},
11-
"version": "22.0.0",
11+
"version": "22.0.1",
1212
"main": "lib/index.js",
1313
"types": "lib/index.d.ts",
1414
"license": "Apache-2.0",

src/__tests__/test-helpers/setup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import BigNumber from "bignumber.js";
22
import { setSupportedCurrencies } from "../../currencies";
33
import { setPlatformVersion } from "../../platform/version";
44

5-
jest.setTimeout(180000);
5+
jest.setTimeout(240000);
66

77
expect.extend({
88
toBeBigNumber(value) {

src/families/bitcoin/wallet-btc/storage/index.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,7 @@ class BitcoinLikeStorage implements IStorage {
216216
this.unspentUtxos = data.unspentUtxos;
217217
this.addressCache = data.addressCache;
218218
Base.addressCache = { ...Base.addressCache, ...this.addressCache };
219-
if (
220-
(!this.accountIndex || isEmpty(this.accountIndex)) &&
221-
this.txs.length > 0
222-
) {
219+
if (!this.accountIndex || isEmpty(this.accountIndex)) {
223220
this.accountIndex = {};
224221
this.createAccountIndex();
225222
}

tools/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"@ledgerhq/hw-transport-web-ble": "^6.7.0",
1111
"@ledgerhq/hw-transport-webhid": "^6.7.0",
1212
"@ledgerhq/hw-transport-webusb": "^6.7.0",
13-
"@ledgerhq/live-common": "^21.7.0",
13+
"@ledgerhq/live-common": "^22.0.0",
1414
"@material-ui/core": "^4.11.3",
1515
"babel-polyfill": "^6.26.0",
1616
"bignumber.js": "^9.0.1",

0 commit comments

Comments
 (0)