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

Commit

Permalink
MVP Taproot support + BTCJS fixes
Browse files Browse the repository at this point in the history
* Clear cache to clear the bitcoinResources

* Log to include full url when axios uses 'baseURL'

* Correctly include currency name in InvalidAddress errors

* LL-7655 taproot derivation of accounts (#1451)

* LL-7233 - SWAP - Fix the sort algorithm from usePickDefaultAccount hook (#1433)

* fix(swap): usePickDefault sort algo

* (Swap): usePickDefaultAccounts fix review

* (Swap): updated defaultAccount logic pick

* (Swap): usePickDefaultAccount fix test

Co-authored-by: LFBarreto <[email protected]>

* update crypto.org mainnet rpc node url (#1450)

* WIP

* WIP

* Update ledgerjs versions with latest erc20

* Remove useless DerivationMode field

* Add proper derivation modes check methods for native_segwit and taproot

* snap

* Add files via upload

* Fix typo

* fixes tests

* fixes lint

Co-authored-by: Jonathan Giamporcaro <[email protected]>
Co-authored-by: LFBarreto <[email protected]>
Co-authored-by: Thomas Nguy <[email protected]>
Co-authored-by: haammar-ledger <[email protected]>

* make taproot evolution supporting current ledgerjs

* LL-6546 Fix for RBF mode

* Do not silence errors returned from getAddress

* Move xpub generation from wallet-btc to hwapp

* Change default seedIdentifier derivation path

* Fixes prettier & lint

* lint

* ledgerjs taproot bump (#1461)

* bitcoin testnet 2.0.0-alpha

* Minor fixes to support Taproot sync in CLI

* Fix error when using old Nano app with new JS implem

* Remove debug console.log

* Fix dumb parenthesis order

* add taproot tx size estimation

* regenerate bitcoin sync dataset

* Update specs.ts

* Include the bech32m additional when signing a taproot tx

* lint

* update dep

* v21.10.0-btcjs.0

* update deps in cli

* Re-use same instance of hw-app-btc in scanAccounts (#1468)

* Re-use same instance of hw-app-btc in scanAccounts

* attempt to bump a custom version

* Update test.yml

* Disable too heavy account on xpub.syncing test (#1471)

* remove accidentially committed file

* remove logs.txt

* make libcore still using BtcOld

* bot testnet to try to run again on 1.x

* v21.10.0-btcjs.1

* update

* apdus to be replayed on EXPERIMENTAL_CURRENCIES_JS_BRIDGE

* regen btc family sync dataset

* Adapt createAccountFromDevice to always use legacy calls to btc app

* Fix lint

* Fix lint again

* add some log to debug utxo picking strategy

* v21.10.0-btcjs.2

* LL-7117 Kepp native_segwit as the default new account type

* Update explorerConfig for testnet to be only v3

* v21.10.0-btcjs.3

* Receive address should return a new empty address (#1474)

* snapshot + better logs

* v21.10.0-btcjs.4

* CI fixes

* add some debug log

* v21.10.0-btcjs.5

* revert receive address fix

* v21.10.0-btcjs.6

* Update to latest btcjs

* only keep bitoin dataset that pass locally

* Fixes ci

* Fixes bot to not select a rc firmware

* stellar apdu

* Bump some libs and push some snapshot update

* Update snapshots and lib

Co-authored-by: haammar-ledger <[email protected]>
Co-authored-by: Jonathan Giamporcaro <[email protected]>
Co-authored-by: LFBarreto <[email protected]>
Co-authored-by: Thomas Nguy <[email protected]>
Co-authored-by: hzheng-ledger <[email protected]>
Co-authored-by: huiqi <[email protected]>
Co-authored-by: Arnaud97234 <[email protected]>
  • Loading branch information
8 people authored Oct 21, 2021
1 parent c10a55b commit 086633a
Show file tree
Hide file tree
Showing 76 changed files with 3,861 additions and 71,497 deletions.
1 change: 1 addition & 0 deletions .ci.env
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# always test on latest conditions
EXPERIMENTAL_EXPLORERS=1
EXPERIMENTAL_CURRENCIES_JS_BRIDGE=bitcoin,bitcoin_cash,bsc,litecoin,dash,qtum,zcash,bitcoin_gold,stratis,dogecoin,digibyte,komodo,pivx,zencash,vertcoin,peercoin,viacoin,stakenet,stealthcoin,bitcoin_testnet,tezos
20 changes: 10 additions & 10 deletions cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,17 @@
"@ledgerhq/hw-transport-node-ble": "5.7.0"
},
"dependencies": {
"@ledgerhq/cryptoassets": "6.9.0",
"@ledgerhq/errors": "6.2.0",
"@ledgerhq/hw-app-btc": "6.7.0",
"@ledgerhq/hw-transport-http": "6.7.0",
"@ledgerhq/hw-transport-mocker": "6.7.0",
"@ledgerhq/hw-transport-node-ble": "^6.7.0",
"@ledgerhq/hw-transport-node-hid": "6.7.0",
"@ledgerhq/hw-transport-node-speculos": "6.7.0",
"@ledgerhq/cryptoassets": "6.10.0",
"@ledgerhq/errors": "6.10.0",
"@ledgerhq/hw-app-btc": "6.10.0",
"@ledgerhq/hw-transport-http": "6.10.0",
"@ledgerhq/hw-transport-mocker": "6.10.0",
"@ledgerhq/hw-transport-node-ble": "^6.10.0",
"@ledgerhq/hw-transport-node-hid": "6.10.0",
"@ledgerhq/hw-transport-node-speculos": "6.10.0",
"@ledgerhq/ledger-core": "6.13.0",
"@ledgerhq/live-common": "^21.9.0-polkadot.0",
"@ledgerhq/logs": "6.2.0",
"@ledgerhq/live-common": "^21.10.0-btcjs.6",
"@ledgerhq/logs": "6.10.0",
"@walletconnect/client": "^1.6.6",
"asciichart": "^1.5.25",
"bignumber.js": "^9.0.1",
Expand Down
1 change: 0 additions & 1 deletion cli/src/live-common-setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ export function releaseMockDevice(id: string) {
const store = recordStores[id];
invariant(store, "MockDevice does not exist (%s)", id);
try {
// FIXME: I don't understand with the Queue is not empty
store.ensureQueueEmpty();
} finally {
delete recordStores[id];
Expand Down
510 changes: 261 additions & 249 deletions cli/yarn.lock

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions explorers-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
| PivX | PIVX | https://explorers.api.live.ledger.com/blockchain/v3/pivx | N/A |
| Qtum | QTUM | https://explorers.api.live.ledger.com/blockchain/v3/qtum | N/A |
| Stakenet | XSN | https://explorers.api.live.ledger.com/blockchain/v2/xsn | https://explorers.api.live.ledger.com/blockchain/v3/xsn |
| Stratis | STRAT | https://explorers.api.live.ledger.com/blockchain/v2/strat | N/A |
| Stealth | XST | https://explorers.api.live.ledger.com/blockchain/v2/xst | N/A |
| Vertcoin | VTC | https://explorers.api.live.ledger.com/blockchain/v3/vtc | N/A |
| Viacoin | VIA | https://explorers.api.live.ledger.com/blockchain/v3/via | N/A |
| Zcash | ZEC | https://explorers.api.live.ledger.com/blockchain/v3/zec | N/A |
Expand Down
64 changes: 32 additions & 32 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"type": "git",
"url": "https://github.com/LedgerHQ/ledger-live-common"
},
"version": "21.9.0-polkadot.0",
"version": "21.10.0-btcjs.6",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"license": "Apache-2.0",
Expand Down Expand Up @@ -44,36 +44,36 @@
"dependencies": {
"@crypto-com/chain-jslib": "0.0.19",
"@ledgerhq/compressjs": "1.3.2",
"@ledgerhq/cryptoassets": "6.9.0",
"@ledgerhq/devices": "6.7.0",
"@ledgerhq/errors": "6.2.0",
"@ledgerhq/hw-app-algorand": "6.7.0",
"@ledgerhq/hw-app-btc": "6.7.0",
"@ledgerhq/hw-app-cosmos": "6.7.0",
"@ledgerhq/hw-app-eth": "6.9.0",
"@ledgerhq/hw-app-polkadot": "6.7.0",
"@ledgerhq/hw-app-str": "6.7.0",
"@ledgerhq/hw-app-tezos": "6.7.0",
"@ledgerhq/hw-app-trx": "6.7.0",
"@ledgerhq/hw-app-xrp": "6.7.0",
"@ledgerhq/hw-transport": "6.7.0",
"@ledgerhq/hw-transport-mocker": "6.7.0",
"@ledgerhq/hw-transport-node-speculos": "6.7.0",
"@ledgerhq/cryptoassets": "6.11.0",
"@ledgerhq/devices": "6.11.0",
"@ledgerhq/errors": "6.10.0",
"@ledgerhq/hw-app-algorand": "6.11.0",
"@ledgerhq/hw-app-btc": "6.11.0",
"@ledgerhq/hw-app-cosmos": "6.11.0",
"@ledgerhq/hw-app-eth": "6.11.0",
"@ledgerhq/hw-app-polkadot": "6.11.0",
"@ledgerhq/hw-app-str": "6.11.0",
"@ledgerhq/hw-app-tezos": "6.11.0",
"@ledgerhq/hw-app-trx": "6.11.0",
"@ledgerhq/hw-app-xrp": "6.11.0",
"@ledgerhq/hw-transport": "6.11.0",
"@ledgerhq/hw-transport-mocker": "6.11.0",
"@ledgerhq/hw-transport-node-speculos": "6.11.0",
"@ledgerhq/json-bignumber": "^1.1.0",
"@ledgerhq/live-app-sdk": "^0.2.0",
"@ledgerhq/logs": "6.2.0",
"@polkadot/types": "6.3.1",
"@polkadot/types-known": "6.3.1",
"@taquito/ledger-signer": "^10.2.0",
"@taquito/taquito": "10.2.0",
"@ledgerhq/logs": "6.10.0",
"@polkadot/types": "6.4.2",
"@polkadot/types-known": "6.4.2",
"@taquito/ledger-signer": "^10.2.1",
"@taquito/taquito": "10.2.1",
"@types/bchaddrjs": "^0.4.0",
"@types/bs58check": "^2.1.0",
"@walletconnect/client": "1.6.6",
"@xstate/react": "^1.6.1",
"@zondax/ledger-filecoin": "^0.11.2",
"async": "^3.2.1",
"axios": "0.22.0",
"axios-retry": "^3.2.0",
"axios": "0.23.0",
"axios-retry": "^3.2.3",
"base32-decode": "^1.0.0",
"bchaddrjs": "^0.5.2",
"bech32": "^2.0.0",
Expand All @@ -95,8 +95,8 @@
"ethereumjs-abi": "^0.6.8",
"ethereumjs-common": "^1.5.2",
"ethereumjs-tx": "^2.1.2",
"ethereumjs-util": "^7.1.2",
"expect": "^27.2.5",
"ethereumjs-util": "^7.1.3",
"expect": "^27.3.1",
"generic-pool": "^3.8.2",
"invariant": "^2.2.2",
"isomorphic-ws": "^4.0.1",
Expand Down Expand Up @@ -130,8 +130,8 @@
"@types/bs58": "^4.0.1",
"@types/cbor": "^6.0.0",
"@types/jest": "^27.0.2",
"@types/lodash": "^4.14.175",
"@types/node": "16.10.3",
"@types/lodash": "^4.14.176",
"@types/node": "16.11.2",
"@types/object-hash": "^2.1.0",
"@typescript-eslint/eslint-plugin": "^4.33.0",
"@typescript-eslint/parser": "^4.33.0",
Expand All @@ -143,15 +143,15 @@
"eslint-config-prettier": "^8.3.0",
"eslint-config-typescript": "^3.0.0",
"eslint-formatter-pretty": "^3.0.1",
"eslint-plugin-import": "^2.24.2",
"eslint-plugin-import": "^2.25.2",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-react": "^7.26.1",
"eslint-plugin-react-hooks": "^4.2.0",
"eslint-plugin-typescript": "^0.14.0",
"fs": "^0.0.1-security",
"glob": "^7.2.0",
"jest": "^27.2.5",
"jest": "^27.3.1",
"jest-file-snapshot": "^0.5.0",
"object-hash": "^2.2.0",
"prettier": "2.3.2",
Expand All @@ -161,9 +161,9 @@
"react-test-renderer": "^17.0.2",
"rimraf": "^3.0.2",
"timemachine": "^0.3.2",
"ts-jest": "^27.0.5",
"ts-node": "^10.2.1",
"typescript": "^4.4.2",
"ts-jest": "^27.0.7",
"ts-node": "^10.3.0",
"typescript": "^4.4.4",
"typescript-eslint-parser": "^22.0.0"
}
}
Loading

1 comment on commit 086633a

@vercel
Copy link

@vercel vercel bot commented on 086633a Oct 21, 2021

Choose a reason for hiding this comment

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

Please sign in to comment.