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

Commit

Permalink
Merge remote-tracking branch 'ledgerhq/develop' into HEAD
Browse files Browse the repository at this point in the history
  • Loading branch information
hakim-adamik committed May 5, 2022
2 parents 25eab94 + d9b83d8 commit 9577c92
Show file tree
Hide file tree
Showing 307 changed files with 34,905 additions and 32,082 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/
12 changes: 8 additions & 4 deletions .github/workflows/bot-bitcoin-mooncake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
branches:
- bitcoin-js
- bitcoin-js-*
- feat/bitcoin-js-*
- bugfix/bitcoin-js-*
- support/bitcoin-js-*

jobs:
start-runner:
Expand Down Expand Up @@ -60,7 +63,8 @@ jobs:
SHOW_LEGACY_NEW_ACCOUNT: "1"
DEBUG_HTTP_RESPONSE: "1"
SEED: ${{ secrets.SEED4 }}
VERBOSE_FILE: bot-tests.txt
BOT_REPORT_FOLDER: botreport
VERBOSE_FILE: botreport/logs.txt
GITHUB_SHA: ${GITHUB_SHA}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_RUN_ID: ${{ github.run_id }}
Expand All @@ -70,7 +74,7 @@ jobs:
BOT_FILTER_FAMILY: bitcoin
EXPERIMENTAL_EXPLORERS: true
EXPERIMENTAL_CURRENCIES_JS_BRIDGE: algorand,bitcoin,bitcoin_cash,bsc,litecoin,dash,qtum,zcash,bitcoin_gold,stratis,dogecoin,digibyte,komodo,pivx,zencash,vertcoin,peercoin,viacoin,stakenet,stealthcoin,decred,bitcoin_testnet,tezosæ
run: COINAPPS=$PWD/coin-apps yarn ci-test-bot
run: mkdir botreport; COINAPPS=$PWD/coin-apps yarn ci-test-bot
timeout-minutes: 120
- name: Run coverage
if: failure() || success()
Expand All @@ -79,5 +83,5 @@ jobs:
if: failure() || success()
uses: actions/upload-artifact@v1
with:
name: bot-tests.txt
path: bot-tests.txt
name: botreport
path: botreport/
9 changes: 5 additions & 4 deletions .github/workflows/bot-carbone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,14 @@ jobs:
EXPLORER_BETA: https://explorers.api-01.live.ledger-stg.com
EXPERIMENTAL_EXPLORERS: true
SEED: ${{ secrets.SEED2 }}
VERBOSE_FILE: bot-tests.txt
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 }}
run: COINAPPS=$PWD/coin-apps yarn ci-test-bot
run: mkdir botreport; COINAPPS=$PWD/coin-apps yarn ci-test-bot
timeout-minutes: 120
- name: Run coverage
if: failure() || success()
Expand All @@ -75,5 +76,5 @@ jobs:
if: failure() || success()
uses: actions/upload-artifact@v1
with:
name: bot-tests.txt
path: bot-tests.txt
name: botreport
path: botreport/
9 changes: 5 additions & 4 deletions .github/workflows/bot-cosmos-meredenis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ jobs:
env:
SHOW_LEGACY_NEW_ACCOUNT: "1"
SEED: ${{ secrets.SEED1 }}
VERBOSE_FILE: bot-tests.txt
BOT_REPORT_FOLDER: botreport
VERBOSE_FILE: botreport/logs.txt
GITHUB_SHA: ${GITHUB_SHA}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_RUN_ID: ${{ github.run_id }}
Expand All @@ -67,7 +68,7 @@ jobs:
SLACK_CHANNEL: live-ft-atom-js
BOT_FILTER_FAMILY: cosmos
EXPERIMENTAL_CURRENCIES_JS_BRIDGE: cosmos
run: COINAPPS=$PWD/coin-apps yarn ci-test-bot
run: mkdir botreport; COINAPPS=$PWD/coin-apps yarn ci-test-bot
timeout-minutes: 120
- name: Run coverage
if: failure() || success()
Expand All @@ -76,6 +77,6 @@ jobs:
if: failure() || success()
uses: actions/upload-artifact@v1
with:
name: bot-tests.txt
path: bot-tests.txt
name: botreport
path: botreport/

14 changes: 7 additions & 7 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 @@ -59,16 +59,17 @@ jobs:
SHOW_LEGACY_NEW_ACCOUNT: "1"
DEBUG_HTTP_RESPONSE: "1"
SEED: ${{ secrets.SEED4 }}
VERBOSE_FILE: bot-tests.txt
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: live-ft-atom-js
SLACK_CHANNEL: ci-atom-ll
BOT_FILTER_FAMILY: cosmos
EXPERIMENTAL_CURRENCIES_JS_BRIDGE: cosmos
run: COINAPPS=$PWD/coin-apps yarn ci-test-bot
run: mkdir botreport; COINAPPS=$PWD/coin-apps yarn ci-test-bot
timeout-minutes: 120
- name: Run coverage
if: failure() || success()
Expand All @@ -77,6 +78,5 @@ jobs:
if: failure() || success()
uses: actions/upload-artifact@v1
with:
name: bot-tests.txt
path: bot-tests.txt

name: botreport
path: botreport/
9 changes: 5 additions & 4 deletions .github/workflows/bot-crypto_org-mooncake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ jobs:
- name: BOT
env:
SEED: ${{ secrets.SEED4 }}
VERBOSE_FILE: bot-tests.txt
BOT_REPORT_FOLDER: botreport
VERBOSE_FILE: botreport/logs.txt
GITHUB_SHA: ${GITHUB_SHA}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_RUN_ID: ${{ github.run_id }}
Expand All @@ -66,7 +67,7 @@ jobs:
SLACK_CHANNEL: ci-cro-ll
BOT_FILTER_FAMILY: crypto_org
EXPERIMENTAL_CURRENCIES_JS_BRIDGE: crypto_org
run: COINAPPS=$PWD/coin-apps yarn ci-test-bot
run: mkdir botreport; COINAPPS=$PWD/coin-apps yarn ci-test-bot
timeout-minutes: 120
- name: Run coverage
if: failure() || success()
Expand All @@ -75,5 +76,5 @@ jobs:
if: failure() || success()
uses: actions/upload-artifact@v1
with:
name: bot-tests.txt
path: bot-tests.txt
name: botreport
path: botreport/
9 changes: 5 additions & 4 deletions .github/workflows/bot-ethereum-carbone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,16 @@ jobs:
- name: BOT
env:
SEED: ${{ secrets.SEED2 }}
VERBOSE_FILE: bot-tests.txt
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-eth-ll
BOT_FILTER_FAMILY: ethereum
run: COINAPPS=$PWD/coin-apps yarn ci-test-bot
run: mkdir botreport; COINAPPS=$PWD/coin-apps yarn ci-test-bot
timeout-minutes: 120
- name: Run coverage
if: failure() || success()
Expand All @@ -74,5 +75,5 @@ jobs:
if: failure() || success()
uses: actions/upload-artifact@v1
with:
name: bot-tests.txt
path: bot-tests.txt
name: botreport
path: botreport/
80 changes: 80 additions & 0 deletions .github/workflows/bot-mooncake.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
name: Bot 'Mooncake'
on:
push:
branches:
- bot-mooncake

jobs:
start-runner:
name: "start ec2 instance (Linux)"
if: ${{ always() }}
uses: ledgerhq/actions/.github/workflows/start-linux-runner.yml@main
with:
instance-type: c5.4xlarge
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:
runs-on: ${{ needs.start-runner.outputs.label }}
needs: [start-runner]
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 jq
- name: Install dependencies
run: |
yarn global add yalc
yarn --frozen-lockfile
yarn ci-setup-cli
- name: BOT
env:
SHOW_LEGACY_NEW_ACCOUNT: "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 }}
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/
9 changes: 5 additions & 4 deletions .github/workflows/bot-phosphore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,14 @@ jobs:
env:
SHOW_LEGACY_NEW_ACCOUNT: "1"
SEED: ${{ secrets.SEED6 }}
VERBOSE_FILE: bot-tests.txt
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 }}
run: COINAPPS=$PWD/coin-apps yarn ci-test-bot
run: mkdir botreport; COINAPPS=$PWD/coin-apps yarn ci-test-bot
timeout-minutes: 120
- name: Run coverage
if: failure() || success()
Expand All @@ -77,5 +78,5 @@ jobs:
if: failure() || success()
uses: actions/upload-artifact@v1
with:
name: bot-tests.txt
path: bot-tests.txt
name: botreport
path: botreport/
10 changes: 5 additions & 5 deletions .github/workflows/bot-silicium.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,16 @@ jobs:
yarn ci-setup-cli
- name: BOT
env:
EXPERIMENTAL_CURRENCIES_JS_BRIDGE: "tezos"
SHOW_LEGACY_NEW_ACCOUNT: "1"
SEED: ${{ secrets.SEED3 }}
VERBOSE_FILE: bot-tests.txt
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 }}
run: COINAPPS=$PWD/coin-apps yarn ci-test-bot
run: mkdir botreport ; COINAPPS=$PWD/coin-apps yarn ci-test-bot
timeout-minutes: 120
- name: Run coverage
if: failure() || success()
Expand All @@ -76,5 +76,5 @@ jobs:
if: failure() || success()
uses: actions/upload-artifact@v1
with:
name: bot-tests.txt
path: bot-tests.txt
name: botreport
path: botreport/
Loading

1 comment on commit 9577c92

@github-actions
Copy link

Choose a reason for hiding this comment

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

($0.00) for Bot 'Filecoin via Mooncake'

⚠️ 2 mutations uncovered

Details of the 0 mutations

Spec Filecoin (failed)

Spec Filecoin found 1 Filecoin accounts. Will use Filecoin 0.22.2 on nanoS 2.1.0
(17.2s) Filecoin 1 cross: 0 FIL (0ops) (f1uxfmur64lbpcblhw7mlmi3s7ocii33e5niv4gda on 44'/461'/0'/0/0) #0 js:2:filecoin:f1uxfmur64lbpcblhw7mlmi3s7ocii33e5niv4gda:

This SEED does not have Filecoin. Please send funds to f1uxfmur64lbpcblhw7mlmi3s7ocii33e5niv4gda

Details of the 2 uncovered mutations

Spec Filecoin (2)

  • Send 50%~:
  • Transfer Max:

Portfolio ($0.00)

⚠️ 1 specs don't have enough funds! (Filecoin)

Details of the 1 currencies
Spec (accounts) Operations Balance funds?
Filecoin (0) 0 0 FIL ($0.00) ??? f1uxfmur64lbpcblhw7mlmi3s7ocii33e5niv4gda

Please sign in to comment.