Skip to content

Commit 1c024e5

Browse files
Merge pull request #424 from LedgerHQ/release/1.10.2
App release 1.10.2
2 parents 793bc57 + 9062be0 commit 1c024e5

File tree

117 files changed

+1893
-596
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

117 files changed

+1893
-596
lines changed

.github/actions/commit-changes/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,6 @@ runs:
114114
uses: ad-m/github-push-action@master
115115
with:
116116
github_token: ${{ inputs.secret }}
117-
branch: ${{ steps.commit.outputs.src_branch }}:${{ steps.commit.outputs.dst_branch }}
117+
branch: ${{ steps.commit.outputs.dst_branch }}
118118
directory: ${{ inputs.directory }}
119119
repository: ${{ inputs.repository }}

.github/workflows/auto-author-assign.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ jobs:
1111
assign-author:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: toshimaru/auto-author-assign@v1.4.0
14+
- uses: toshimaru/auto-author-assign@v1.6.1

.github/workflows/build-workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222

2323
steps:
2424
- name: Clone
25-
uses: actions/checkout@v2
25+
uses: actions/checkout@v3
2626

2727
- name: Build Ethereum
2828
run: |

.github/workflows/ci-workflow.yml

Lines changed: 26 additions & 121 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ jobs:
1818
image: ghcr.io/ledgerhq/ledger-app-builder/ledger-app-builder-lite:latest
1919

2020
steps:
21-
- uses: actions/checkout@v2
21+
- uses: actions/checkout@v3
2222

2323
- name: Build with Clang Static Analyzer
2424
run: |
2525
make clean
2626
scan-build --use-cc=clang -analyze-headers -enable-checker security -enable-checker unix -enable-checker valist -o scan-build --status-bugs make default
2727
28-
- uses: actions/upload-artifact@v2
28+
- uses: actions/upload-artifact@v3
2929
if: failure()
3030
with:
3131
name: scan-build
@@ -42,15 +42,15 @@ jobs:
4242
image: ghcr.io/ledgerhq/ledger-app-builder/ledger-app-builder-lite:latest
4343

4444
steps:
45-
- uses: actions/checkout@v2
45+
- uses: actions/checkout@v3
4646

4747
- name: Build testing binaries
4848
run: |
4949
git config --global --add safe.directory "$GITHUB_WORKSPACE"
5050
cd tests/zemu/ && ./build_local_test_elfs.sh
5151
5252
- name: Upload app binaries
53-
uses: actions/upload-artifact@v2
53+
uses: actions/upload-artifact@v3
5454
with:
5555
name: e2e_zemu_elfs
5656
path: ./tests/zemu/elfs/
@@ -68,14 +68,14 @@ jobs:
6868
echo $DISPLAY
6969
7070
- name: Checkout
71-
uses: actions/checkout@v2
71+
uses: actions/checkout@v3
7272

7373
- run: sudo apt-get update -y && sudo apt-get install -y libusb-1.0.0 libudev-dev
7474

75-
- name: Install node
76-
uses: actions/setup-node@v2
75+
- name: Install NodeJS
76+
uses: actions/setup-node@v3
7777
with:
78-
node-version: "14.4.0"
78+
node-version: "16"
7979

8080
- name: Install yarn
8181
run: npm install -g yarn
@@ -87,7 +87,7 @@ jobs:
8787
run: mkdir tests/zemu/elfs
8888

8989
- name: Download app binaries
90-
uses: actions/download-artifact@v2
90+
uses: actions/download-artifact@v3
9191
with:
9292
path: tmp/
9393

@@ -109,7 +109,7 @@ jobs:
109109
image: ghcr.io/ledgerhq/ledger-app-builder/ledger-app-builder-lite:latest
110110

111111
steps:
112-
- uses: actions/checkout@v2
112+
- uses: actions/checkout@v3
113113

114114
- name: Build testing binaries
115115
run: |
@@ -119,7 +119,7 @@ jobs:
119119
make clean && make -j DEBUG=1 NFT_TESTING_KEY=1 BOLOS_SDK=$NANOSP_SDK && mv bin/app.elf tests/speculos/elfs/nanosp.elf
120120
121121
- name: Upload app binaries
122-
uses: actions/upload-artifact@v2
122+
uses: actions/upload-artifact@v3
123123
with:
124124
name: e2e_speculos_elfs
125125
path: ./tests/speculos/elfs
@@ -136,13 +136,13 @@ jobs:
136136

137137
steps:
138138
- name: Clone
139-
uses: actions/checkout@v2
139+
uses: actions/checkout@v3
140140

141141
- name: Create tmp folder for artifacts
142142
run: mkdir tests/speculos/elfs
143143

144144
- name: Download app binaries
145-
uses: actions/download-artifact@v2
145+
uses: actions/download-artifact@v3
146146
with:
147147
path: tmp/
148148

@@ -166,113 +166,18 @@ jobs:
166166
# =====================================================
167167

168168
build_ragger_elfs:
169-
name: Building binaries for Ragger tests
170-
runs-on: ubuntu-latest
171-
container:
172-
image: ghcr.io/ledgerhq/ledger-app-builder/ledger-app-builder-lite:latest
173-
174-
steps:
175-
- name: Clone
176-
uses: actions/checkout@v2
177-
178-
- name: Build test binaries
179-
run: |
180-
make -j BOLOS_SDK=$NANOS_SDK CAL_TESTING_KEY=1
181-
mv bin/app.elf app-nanos.elf
182-
make clean
183-
make -j BOLOS_SDK=$NANOX_SDK CAL_TESTING_KEY=1
184-
mv bin/app.elf app-nanox.elf
185-
make clean
186-
make -j BOLOS_SDK=$NANOSP_SDK CAL_TESTING_KEY=1
187-
mv bin/app.elf app-nanosp.elf
188-
189-
- name: Upload app binaries
190-
uses: actions/upload-artifact@v2
191-
with:
192-
name: ragger_elfs
193-
path: ./app-*.elf
194-
195-
create_ragger_env:
196-
name: Cache Ragger environment
197-
runs-on: ubuntu-latest
198-
199-
steps:
200-
- name: Clone
201-
uses: actions/checkout@v2
202-
203-
- name: APT update
204-
run: |
205-
sudo apt update
206-
207-
- name: Create virtual env with dependencies
208-
run: |
209-
cd tests/ragger
210-
python3 -m venv ./venv
211-
. ./venv/bin/activate
212-
pip3 install --extra-index-url https://test.pypi.org/simple/ -r requirements.txt
213-
# Used for the cache key
214-
echo "py_deps=$(pip freeze | md5sum | cut -d' ' -f1)" >> $GITHUB_ENV
215-
216-
- name: Download QEMU
217-
run: |
218-
sudo apt install --download-only -y qemu-user-static
219-
mkdir -p tests/ragger/packages
220-
cp /var/cache/apt/archives/*.deb tests/ragger/packages/
221-
# Used for the cache key
222-
echo "deb_deps=$(find /var/cache/apt/archives/ -maxdepth 0 -type f -name '*.deb' | md5sum | cut -d' ' -f 1)" >> $GITHUB_ENV
223-
224-
- name: Set up cache
225-
uses: actions/cache@v3
226-
with:
227-
key: ${{ runner.os }}-raggenv-${{ env.py_deps }}-${{ env.deb_deps }}
228-
path: |
229-
tests/ragger/venv/
230-
tests/ragger/packages/
231-
outputs:
232-
py_deps: ${{ env.py_deps }}
233-
deb_deps: ${{ env.deb_deps }}
234-
169+
name: Build app for Ragger tests
170+
uses: LedgerHQ/ledger-app-workflows/.github/workflows/reusable_build.yml@v1
171+
with:
172+
upload_app_binaries_artifact: "ragger_elfs"
173+
flags: "DEBUG=1 CAL_CI_KEY=1 DOMAIN_NAME_TEST_KEY=1"
174+
run_for_devices: '["nanos", "nanox", "nanosp"]'
235175

236176
jobs-ragger-tests:
237-
name: Ragger tests
238-
strategy:
239-
matrix:
240-
model: ["nanos", "nanox", "nanosp"]
241-
needs: [build_ragger_elfs, create_ragger_env]
242-
runs-on: ubuntu-latest
243-
244-
steps:
245-
- name: Clone
246-
uses: actions/checkout@v2
247-
248-
- name: Download previously built artifacts
249-
uses: actions/download-artifact@v2
250-
with:
251-
name: ragger_elfs
252-
path: tmp/
253-
254-
- name: Put them where they belong
255-
run: |
256-
mkdir -p tests/ragger/elfs
257-
find tmp/ -type f -name '*.elf' -exec cp {} tests/ragger/elfs/ \;
258-
259-
- name: Get cached environment
260-
uses: actions/cache@v3
261-
with:
262-
key: ${{ runner.os }}-raggenv-${{ needs.create_ragger_env.outputs.py_deps }}-${{ needs.create_ragger_env.outputs.deb_deps }}
263-
path: |
264-
tests/ragger/venv/
265-
tests/ragger/packages/
266-
267-
- name: Install QEMU
268-
run: |
269-
sudo mv tests/ragger/packages/*.deb /var/cache/apt/archives/
270-
sudo apt install -y qemu-user-static
271-
272-
- name: Run tests
273-
env:
274-
CAL_SIGNATURE_TEST_KEY: ${{ secrets.CAL_SIGNATURE_TEST_KEY }}
275-
run: |
276-
cd tests/ragger
277-
. ./venv/bin/activate
278-
pytest --path ./elfs --model ${{ matrix.model }} -s -v
177+
name: Run Ragger tests
178+
needs: build_ragger_elfs
179+
uses: LedgerHQ/ledger-app-workflows/.github/workflows/reusable_ragger_tests.yml@v1
180+
with:
181+
download_app_binaries_artifact: "ragger_elfs"
182+
test_dir: tests/ragger
183+
run_for_devices: '["nanos", "nanox", "nanosp"]'

.github/workflows/lint-workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616

1717
steps:
1818
- name: Clone
19-
uses: actions/checkout@v2
19+
uses: actions/checkout@v3
2020

2121
- name: Lint
2222
uses: DoozyX/[email protected]

.github/workflows/sdk-generation.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414

1515
steps:
1616
- name: Clone
17-
uses: actions/checkout@v2
17+
uses: actions/checkout@v3
1818
with:
1919
# by default the action uses fetch-depth = 1, which creates
2020
# shallow repositories from which we can't push
@@ -42,11 +42,10 @@ jobs:
4242
secret: ${{ secrets.CI_BOT_TOKEN }}
4343
repository: LedgerHQ/ethereum-plugin-sdk
4444

45-
- name: Update the SDK submodule in the Ethereum app
46-
uses: ./.github/actions/commit-changes
45+
- name: Create SDK update pull request
46+
uses: peter-evans/create-pull-request@v4
4747
with:
48-
name: 'ldg-github-ci'
49-
files: ethereum-plugin-sdk
50-
message: "[update][SDK] Branch ${{ steps.extract_branch.outputs.branch }} | Commit ${GITHUB_SHA}"
51-
secret: ${{ secrets.CI_BOT_TOKEN }}
52-
repository: LedgerHQ/app-ethereum
48+
branch: sdk/update-submodule
49+
delete-branch: true
50+
title: Update the SDK submodule
51+
reviewers: apailler-ledger

CHANGELOG.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,39 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

8+
## [1.10.2](https://github.com/ledgerhq/app-ethereum/compare/1.10.1...1.10.2) - 2023-04-24
9+
10+
### Added
11+
12+
- (clone) ID4Good
13+
- (network) Cronos
14+
- (network) Scroll
15+
- (network) KCC
16+
- (network) Rootstock
17+
- (network) Evmos
18+
- (network) Metis Andromeda
19+
- (network) Kava EVM
20+
- (network) Klaytn Cypress
21+
- (network) Syscoin
22+
- (network) Velas EVM
23+
- (network) Boba Network
24+
- (network) Energi
25+
- Domain names support (LNX / LNS+)
26+
27+
### Changed
28+
29+
- Starknet blind signing wording
30+
31+
### Fixed
32+
33+
- Missing 44'/60' derivation path for XDC Network
34+
- Small visual glitch with EIP-712 verbose mode with the "Review struct" page
35+
- Possible overflow with very large transactions
36+
- EnergyWebChain ticker
37+
- Arbitrum ticker
38+
- Error handling on EIP-191 APDUs
39+
- Swap transactions handling
40+
841
## [1.10.1](https://github.com/ledgerhq/app-ethereum/compare/1.10.0...1.10.1) - 2022-11-09
942

1043
### Fixed

Makefile

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ APP_LOAD_PARAMS += --path "1517992542'/1101353413'"
3434

3535
APPVERSION_M=1
3636
APPVERSION_N=10
37-
APPVERSION_P=1
37+
APPVERSION_P=2
3838
APPVERSION=$(APPVERSION_M).$(APPVERSION_N).$(APPVERSION_P)
3939
APP_LOAD_FLAGS= --appFlags 0xa40 --dep Ethereum:$(APPVERSION)
4040

@@ -147,10 +147,23 @@ ifneq ($(TARGET_NAME),TARGET_NANOS)
147147
DEFINES += HAVE_EIP712_FULL_SUPPORT
148148
endif
149149

150-
# CryptoAssetsList testing key
151-
CAL_TESTING_KEY:=0
152-
ifneq ($(CAL_TESTING_KEY),0)
153-
DEFINES += HAVE_CAL_TESTING_KEY
150+
# CryptoAssetsList key
151+
CAL_TEST_KEY:=0
152+
CAL_CI_KEY:=0
153+
ifneq ($(CAL_TEST_KEY),0)
154+
DEFINES += HAVE_CAL_TEST_KEY
155+
endif
156+
ifneq ($(CAL_CI_KEY),0)
157+
DEFINES += HAVE_CAL_CI_KEY
158+
endif
159+
160+
# ENS
161+
ifneq ($(TARGET_NAME),TARGET_NANOS)
162+
DEFINES += HAVE_DOMAIN_NAME
163+
DOMAIN_NAME_TEST_KEY:=0
164+
ifneq ($(DOMAIN_NAME_TEST_KEY),0)
165+
DEFINES += HAVE_DOMAIN_NAME_TEST_KEY
166+
endif
154167
endif
155168

156169
# Enabling debug PRINTF

0 commit comments

Comments
 (0)