Skip to content

Commit 583677e

Browse files
Merge pull request #318 from LedgerHQ/develop
App release 1.9.19
2 parents 1f4ed3b + e20814c commit 583677e

Some content is hidden

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

84 files changed

+450
-210
lines changed

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

Lines changed: 60 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,14 @@ inputs:
2121
description: 'The directory in which the action will be performed'
2222
required: true
2323
default: '.'
24-
branch:
25-
description: 'Checkout (or create) on a specific branch before commit/push'
26-
required: true
27-
default: 'master'
24+
src_branch:
25+
description: 'Checkout (or create) a specific branch before commit/push. Defaults to current branch'
26+
required: false
27+
default: ''
28+
dst_branch:
29+
description: 'Push the created commit on a specific branch. Defaults to current branch'
30+
required: false
31+
default: ''
2832
secret:
2933
description: 'A token allowing to push the commit on the repository'
3034
required: true
@@ -43,38 +47,73 @@ runs:
4347
git config --global user.name ${{ inputs.name }}
4448
ORIGIN="$(pwd)"
4549
cd ${{ inputs.directory }}
46-
git switch ${{ inputs.branch }} 2>/dev/null || git switch -c ${{ inputs.branch }}
50+
51+
CURRENT_BRANCH=${GITHUB_REF#refs/heads/};
52+
# calculating source branch
53+
if [ -n "${{ inputs.src_branch }}" ]; \
54+
then \
55+
git switch ${{ inputs.src_branch }} 2>/dev/null || git switch -c ${{ inputs.src_branch }}; \
56+
SRC_BRANCH=${{ inputs.src_branch }}; \
57+
else \
58+
SRC_BRANCH=`git branch --show-current`; \
59+
if [ -z "$SRC_BRANCH" ]; \
60+
then \
61+
SRC_BRANCH=$CURRENT_BRANCH; \
62+
fi \
63+
fi
64+
65+
# calculating destination branch
66+
if [ -n "${{ inputs.dst_branch }}" ]; \
67+
then \
68+
DST_BRANCH=${{ inputs.dst_branch }}; \
69+
else \
70+
DST_BRANCH=`git branch --show-current`; \
71+
if [ -z "$DST_BRANCH" ]; \
72+
then \
73+
DST_BRANCH=$CURRENT_BRANCH; \
74+
fi \
75+
fi
76+
4777
echo "-----------------------------------------------------------"
4878
echo "Initial repo status"
4979
git status
80+
# checking changes, commit if needed
5081
CHANGES="$(git status --porcelain ${{ inputs.files }})"
51-
if [ -z "${CHANGES}" ]; \
82+
if [ -n "${CHANGES}" ]; \
5283
then \
84+
echo -e "Changes:\n${CHANGES}"; \
85+
git add ${{ inputs.files }}; \
5386
echo "-----------------------------------------------------------"; \
54-
echo "No changes, stopping now"; \
55-
echo "COMMIT=NO" > $GITHUB_ENV; \
56-
cd "${ORIGIN}"; \
57-
exit 0; \
87+
echo "Repo status before commit"; \
88+
git status; \
89+
git commit -am "${{ inputs.message }}"; \
5890
fi
59-
echo -e "Changes:\n${CHANGES}"
60-
git add ${{ inputs.files }}
61-
echo "-----------------------------------------------------------"
62-
echo "Repo status before commit"
63-
git status
64-
git commit -am "${{ inputs.message }}"
65-
echo "COMMIT=YES" > $GITHUB_ENV
91+
92+
# compute if a push is needed
93+
if [ -n "${CHANGES}" -o "$SRC_BRANCH" != "$DST_BRANCH" ]; \
94+
then \
95+
PUSH="YES"; \
96+
else \
97+
PUSH="NO"; \
98+
fi
99+
66100
git log -n 2
67101
cd "${ORIGIN}"
68-
shell: bash
69102
70-
- run: echo "${{ env.COMMIT }}"
103+
echo " -- Env SRC_BRANCH: $SRC_BRANCH";
104+
echo " -- Env DST_BRANCH: $DST_BRANCH";
105+
echo " -- Env PUSH: $PUSH"
106+
# exporting these variables for next steps
107+
echo "##[set-output name=src_branch;]$(echo $SRC_BRANCH)";
108+
echo "##[set-output name=dst_branch;]$(echo $DST_BRANCH)";
109+
echo "##[set-output name=push;]$(echo $PUSH)";
71110
shell: bash
72111

73112
- name: Push commit
74-
if: ${{ env.COMMIT == 'YES' }}
113+
if: steps.commit.outputs.push == 'YES'
75114
uses: ad-m/github-push-action@master
76115
with:
77116
github_token: ${{ inputs.secret }}
78-
branch: ${{ inputs.branch }}
117+
branch: ${{ steps.commit.outputs.src_branch }}:${{ steps.commit.outputs.dst_branch }}
79118
directory: ${{ inputs.directory }}
80119
repository: ${{ inputs.repository }}

.github/workflows/sdk-generation.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
with:
3838
name: 'ldg-github-ci'
3939
directory: ethereum-plugin-sdk
40-
branch: ${{ steps.extract_branch.outputs.branch }}
40+
dst_branch: ${{ steps.extract_branch.outputs.branch }}
4141
message: "[update] Branch ${{ steps.extract_branch.outputs.branch }} | Commit ${GITHUB_SHA}"
4242
secret: ${{ secrets.CI_BOT_TOKEN }}
4343
repository: LedgerHQ/ethereum-plugin-sdk
@@ -47,7 +47,6 @@ jobs:
4747
with:
4848
name: 'ldg-github-ci'
4949
files: ethereum-plugin-sdk
50-
branch: ${{ steps.extract_branch.outputs.branch }}
5150
message: "[update][SDK] Branch ${{ steps.extract_branch.outputs.branch }} | Commit ${GITHUB_SHA}"
5251
secret: ${{ secrets.CI_BOT_TOKEN }}
5352
repository: LedgerHQ/app-ethereum

CHANGELOG.md

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,34 @@ 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.9.19](https://github.com/ledgerhq/app-ethereum/compare/1.9.18...1.9.19) - 2022-06-15
9+
10+
### Added
11+
12+
- (clone) OKXChain
13+
- (clone) Cube
14+
- (clone) Astar EVM
15+
- (clone) Shiden EVM
16+
17+
### Changed
18+
19+
- EIP-191 signatures now show (up to 99 characters on LNS and 255 on LNX & LNS) the actual data contained in the message (clear-signing)
20+
21+
### Fixed
22+
23+
- Bug with huge swap amounts
24+
825
## [1.9.18](https://github.com/ledgerhq/app-ethereum/compare/1.9.17...1.9.18) - 2022-04-25
926

1027
### Added
1128

1229
- Easier way of adding a chain into the Makefile
1330
- EIP 1024 support
14-
- Conflux chain
15-
- Moonbeam chain
16-
- KardiaChain
17-
- BitTorrent Chain
18-
- Wethio chain
31+
- (clone) Conflux chain
32+
- (clone) Moonbeam chain
33+
- (clone) KardiaChain
34+
- (clone) BitTorrent Chain
35+
- (clone) Wethio chain
1936

2037
### Changed
2138

Makefile

Lines changed: 2 additions & 2 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=9
37-
APPVERSION_P=18
37+
APPVERSION_P=19
3838
APPVERSION=$(APPVERSION_M).$(APPVERSION_N).$(APPVERSION_P)
3939
APP_LOAD_FLAGS= --appFlags 0x240 --dep Ethereum:$(APPVERSION)
4040

@@ -79,7 +79,7 @@ all: default
7979
############
8080

8181
DEFINES += OS_IO_SEPROXYHAL
82-
DEFINES += HAVE_BAGL HAVE_SPRINTF
82+
DEFINES += HAVE_BAGL HAVE_SPRINTF HAVE_SNPRINTF_FORMAT_U
8383
DEFINES += HAVE_IO_USB HAVE_L4_USBLIB IO_USB_MAX_ENDPOINTS=4 IO_HID_EP_LENGTH=64 HAVE_USB_APDU
8484
DEFINES += LEDGER_MAJOR_VERSION=$(APPVERSION_M) LEDGER_MINOR_VERSION=$(APPVERSION_N) LEDGER_PATCH_VERSION=$(APPVERSION_P)
8585

icons/nanos_app_astar.gif

100 Bytes
Loading

icons/nanos_app_cube.gif

73 Bytes
Loading

icons/nanos_app_okc.gif

74 Bytes
Loading

icons/nanos_app_shiden.gif

95 Bytes
Loading

icons/nanox_app_astar.gif

77 Bytes
Loading

icons/nanox_app_cube.gif

70 Bytes
Loading

0 commit comments

Comments
 (0)