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

Commit

Permalink
Release/v22.0.0 (#1881)
Browse files Browse the repository at this point in the history
* Hotfix/v21.36.2 (#1878)

* (Solana): fix missing superstruct dependency -> making app crashes

* v21.36.2

Co-authored-by: LFBarreto <lfb.access@gmail.com>

* support/snapshot-update (#1882)

Co-authored-by: Henri Ly <henri.ly-ext@ledger.fr>

* 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 <93649819+wa-aal@users.noreply.github.com>
Co-authored-by: haammar-ledger <hakim.aammar-ext@ledger.fr>

* 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 <81727899+thomas-nguy@users.noreply.github.com>

* [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] <support@github.com>

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] <support@github.com>

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] <support@github.com>

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 <konoart@solana.com>
Co-authored-by: konoart <91595347+konoart@users.noreply.github.com>
Co-authored-by: lambertkevin <kevin.lambert@ledger.fr>

* 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: LFBarreto <lfb.access@gmail.com>
Co-authored-by: Henri Ly <henri.ly-ext@ledger.fr>
Co-authored-by: hzheng-ledger <71653044+hzheng-ledger@users.noreply.github.com>
Co-authored-by: Hakim <59644786+haammar-ledger@users.noreply.github.com>
Co-authored-by: @greweb <renaudeau.gaetan@gmail.com>
Co-authored-by: wa-aal <93649819+wa-aal@users.noreply.github.com>
Co-authored-by: haammar-ledger <hakim.aammar-ext@ledger.fr>
Co-authored-by: Thomas Nguy <81727899+thomas-nguy@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: konoart <konoart@solana.com>
Co-authored-by: konoart <91595347+konoart@users.noreply.github.com>
Co-authored-by: henrily-ledger <33897120+henrily-ledger@users.noreply.github.com>
  • Loading branch information
13 people authored Apr 11, 2022
1 parent 710f12f commit 9b63bb6
Show file tree
Hide file tree
Showing 239 changed files with 26,975 additions and 27,660 deletions.
3 changes: 0 additions & 3 deletions .circleci.disabled/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,3 @@ jobs:
paths:
- ~/.cache/yarn
- run: yarn ci-lint
- run:
command: yarn ci-test-cli
no_output_timeout: 1h
2 changes: 0 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
src/data/icons
src/data/flags

src/libcore/types/*.js
src/families/*/types.js
src/libcore/platforms/*.js
src/generated
src/load/tokens/
mobile-test-app/
5 changes: 2 additions & 3 deletions .github/workflows/bot-cosmos-mooncake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Bot 'Cosmos JS'
on:
push:
branches:
- cosmos-js
- family/cosmos

jobs:
start-runner:
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:
GITHUB_RUN_ID: ${{ github.run_id }}
GITHUB_WORKFLOW: ${{ github.workflow }}
SLACK_API_TOKEN: ${{ secrets.SLACK_API_TOKEN }}
SLACK_CHANNEL: live-ft-atom-js
SLACK_CHANNEL: ci-atom-ll
BOT_FILTER_FAMILY: cosmos
EXPERIMENTAL_CURRENCIES_JS_BRIDGE: cosmos
run: mkdir botreport; COINAPPS=$PWD/coin-apps yarn ci-test-bot
Expand All @@ -80,4 +80,3 @@ jobs:
with:
name: botreport
path: botreport/

79 changes: 79 additions & 0 deletions .github/workflows/bot-solana-silicium.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
name: Bot 'Solana on Silicium'
on:
push:
branches:
- family/solana

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@v2
- 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.SEED3 }}
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: ci-sol-ll
BOT_FILTER_FAMILY: solana
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/
6 changes: 0 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,6 @@ jobs:
yarn global add yalc
yarn --frozen-lockfile --network-timeout 100000
yarn ci-setup-cli
- name: Run CLI tests
run: yarn ci-test-cli
timeout-minutes: 60
cli:
strategy:
Expand All @@ -163,6 +160,3 @@ jobs:
yarn global add yalc
yarn --frozen-lockfile --network-timeout 100000
yarn ci-setup-cli
- name: Run CLI tests
run: yarn ci-test-cli
timeout-minutes: 60
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# See https://help.github.com/ignore-files/ for more about ignoring files.
libcoredb/

dbdata
tmp

Expand Down
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,18 +51,16 @@ The stack is pretty standard for a ES6 and FlowType library. The notable depende
- [Countervalues logic](./docs/countervalues.md)
- Coin integration specifics
- [Introduction](./docs/ci-intro.md)
- Bridge implementations, where to start? (JS, Libcore, Mock)
- Bridge implementations, where to start? (JS, Mock)
- Implementing the hardware wallet logic of a new coin
- [The account derivation (BIP44 and exceptions)](./docs/derivation.md)
- Advanced
- [api/socket `createDeviceSocket` and script runner](./docs/socket.md)
- env.js: live-common configuration system
- Serialization and reconciliation
- libcore typing and wrapping
- cross.js and "LiveQR" protocol
- cache.js helpers
- Tokens management and ERC20
- [Developing with lib-ledger-core bindings](./docs/adding-libcore-bindings.md)

### Developing with Ledger Live Common

Expand Down
Loading

1 comment on commit 9b63bb6

@vercel
Copy link

@vercel vercel bot commented on 9b63bb6 Apr 11, 2022

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.