Skip to content
This repository was archived by the owner on Jun 19, 2024. It is now read-only.

Commit be1f93f

Browse files
committed
Merge pull request #26 from Zondax/edgeware_fixes
Edgeware fixes
2 parents 719255c + e8550a6 commit be1f93f

184 files changed

Lines changed: 14994 additions & 19184 deletions

File tree

Some content is hidden

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

.circleci/config.yml

Lines changed: 0 additions & 197 deletions
This file was deleted.

.github/workflows/ledger.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: CI
2+
3+
on:
4+
# Triggers the workflow on push or pull request events but only for the main branch
5+
push:
6+
branches: [ main ]
7+
pull_request:
8+
branches: [ main ]
9+
10+
# Allows you to run this workflow manually from the Actions tab
11+
workflow_dispatch:
12+
13+
jobs:
14+
scan-build:
15+
name: Clang Static Analyzer
16+
runs-on: ubuntu-latest
17+
18+
container:
19+
image: ghcr.io/ledgerhq/ledger-app-builder/ledger-app-builder:latest
20+
21+
steps:
22+
- uses: actions/checkout@v2
23+
24+
- name: Build with Clang Static Analyzer
25+
run: |
26+
scan-build --use-cc=clang -analyze-headers -enable-checker security -enable-checker unix -enable-checker valist -o scan-build --status-bugs make default
27+
- uses: actions/upload-artifact@v2
28+
if: failure()
29+
with:
30+
name: scan-build
31+
path: scan-build

.github/workflows/main.yml

Lines changed: 65 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 10
2323
make deps
2424
brew install conan
25+
conan config install https://github.com/conan-io/conanclientcert.git
2526
- run: cmake -DCMAKE_BUILD_TYPE=Debug . && make
2627
- run: GTEST_COLOR=1 ASAN_OPTIONS=detect_leaks=0 ctest -VV
2728

@@ -45,11 +46,11 @@ jobs:
4546
cd ./app/rust
4647
cargo clippy --version
4748
cargo clippy --all-features --all-targets || true
48-
- name: audit
49-
run: |
50-
cd ./app/rust
51-
cargo audit --version
52-
cargo audit
49+
# - name: audit
50+
# run: |
51+
# cd ./app/rust
52+
# cargo audit --version
53+
# cargo audit
5354
- name: run tests
5455
run: |
5556
cd ./app/rust
@@ -102,7 +103,7 @@ jobs:
102103
- name: Install node
103104
uses: actions/setup-node@v2
104105
with:
105-
node-version: '14.4.0'
106+
node-version: '14.17.0'
106107
- name: Install yarn
107108
run: |
108109
npm install -g yarn
@@ -134,7 +135,7 @@ jobs:
134135
- name: Install node
135136
uses: actions/setup-node@v2
136137
with:
137-
node-version: '14.4.0'
138+
node-version: '14.17.0'
138139
- name: Install yarn
139140
run: |
140141
npm install -g yarn
@@ -149,3 +150,60 @@ jobs:
149150
run: |
150151
export PATH=~/.cargo/bin:$PATH
151152
cd tests_zemu && yarn testSR25519
153+
154+
build_package:
155+
needs: [ configure, build, build_ledger, test_zemu, test_zemu_sr25519 ]
156+
if: ${{ github.ref == 'refs/heads/master' }}
157+
runs-on: ubuntu-latest
158+
container:
159+
image: zondax/builder-bolos:latest
160+
options: --user ${{ needs.configure.outputs.uid_gid }}
161+
env:
162+
BOLOS_SDK: ${{ github.workspace }}/deps/nanos-secure-sdk
163+
BOLOS_ENV: /opt/bolos
164+
HOME: /home/zondax_circle
165+
steps:
166+
- name: Checkout
167+
uses: actions/checkout@v2
168+
with:
169+
submodules: true
170+
- name: Install deps
171+
run: pip install ledgerblue
172+
- name: Build
173+
shell: bash -l {0}
174+
run: |
175+
source $HOME/.cargo/env
176+
make SUBSTRATE_PARSER_FULL=0
177+
- name: Set tag name var (1)
178+
id: vars_1
179+
run: echo ::set-output name=tag_name::$(./app/pkg/installer_s.sh version)
180+
- name: Create or Update Release (1)
181+
id: create_release_1
182+
uses: softprops/action-gh-release@v1
183+
env:
184+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
185+
with:
186+
files: ./app/pkg/installer_s.sh
187+
tag_name: ${{ steps.vars_1.outputs.tag_name }}
188+
draft: false
189+
prerelease: false
190+
- name: Clear and rebuild XL version
191+
shell: bash -l {0}
192+
run: |
193+
source $HOME/.cargo/env
194+
make SUBSTRATE_PARSER_FULL=1
195+
cp rust/app/pkg/installer_s.sh rust/app/pkg/installer_baking_s.sh
196+
cp app/pkg/installer_s.sh app/pkg/installer_XL_s.sh
197+
- name: Set tag name var (2)
198+
id: vars_2
199+
run: echo ::set-output name=tag_name::$(./app/pkg/installer_XL_s.sh version)
200+
- name: Create or Update Release (2)
201+
id: create_release_2
202+
uses: softprops/action-gh-release@v1
203+
env:
204+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
205+
with:
206+
files: ./app/pkg/installer_XL_s.sh
207+
tag_name: ${{ steps.vars_2.outputs.tag_name }}
208+
draft: false
209+
prerelease: false

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Ledger Edgeware app
22
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
3-
[![CircleCI](https://circleci.com/gh/Zondax/ledger-edgeware.svg?style=shield&circle-token=1347836eec60736c630e1785834c4b3b0e8db221)](https://circleci.com/gh/Zondax/ledger-edgeware)
3+
[![GithubActions](https://github.com/zondax/ledger-edgeware/actions/workflows/main.yml/badge.svg)](https://github.com/Zondax/ledger-edgeware/blob/main/.github/workflows/main.yaml)
44

55
-------------------
66

app/Makefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ endif
7878
APPNAME = "Edgeware"
7979
APPPATH = "44'/523'"
8080

81-
else ifeq ($(COIN),DOT_XL)
81+
else ifeq ($(COIN),EDG_XL)
8282
# XXL app configuration
8383
DEFINES += APP_STANDARD SUBSTRATE_PARSER_FULL
8484
APPNAME = "Edgeware XL"
@@ -97,8 +97,13 @@ endif
9797

9898
APP_LOAD_PARAMS = --appFlags 0x200 --delete $(COMMON_LOAD_PARAMS) --path $(APPPATH)
9999

100+
# Pending review parameters
101+
APP_LOAD_PARAMS += --tlvraw 9F:01
102+
DEFINES += HAVE_PENDING_REVIEW_SCREEN
103+
104+
100105
ifeq ($(TARGET_NAME),TARGET_NANOS)
101-
APP_STACK_SIZE:=3472
106+
APP_STACK_SIZE:=3216
102107
ICONNAME:=$(CURDIR)/nanos_icon.gif
103108
OUTPUT_ELF ?= $(CURDIR)/output/app_s.elf
104109
OUTPUT_INSTALLER := $(CURDIR)/pkg/installer_s.sh

app/Makefile.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ APPVERSION_M=1
33
# This is the `spec_version` field of `Runtime`
44
APPVERSION_N=46
55
# This is the patch version of this release
6-
APPVERSION_P=2
6+
APPVERSION_P=3

app/glyphs/icon_warning.gif

1 KB
Loading

app/src/addr.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,11 @@
1818
#include "coin.h"
1919
#include "zxerror.h"
2020
#include "zxmacros.h"
21+
#include "zxformat.h"
2122
#include "app_mode.h"
2223
#include "crypto.h"
2324

25+
2426
zxerr_t addr_getNumItems(uint8_t *num_items) {
2527
zemu_log_stack("addr_getNumItems");
2628
*num_items = 1;

app/src/coin.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ typedef enum {
5353

5454
#define COIN_GENESIS_HASH "742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b"
5555
#define COIN_NAME "Edgeware"
56-
#define COIN_TICKER "EDG"
56+
#define COIN_TICKER "EDG "
5757

5858
#define COIN_SECRET_REQUIRED_CLICKS 0
5959

0 commit comments

Comments
 (0)