Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ fuzz/corpus/
fuzz/build/
tests/functional/snapshots-tmp/
tests/functional/venv/

# Nano NBGL reversed icon for Home Screen
glyphs/home_app_eos.gif
Comment thread
agrojean-ledger marked this conversation as resolved.
Outdated
13 changes: 12 additions & 1 deletion Makefile
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
ifeq ($(BOLOS_SDK),)
$(error Environment variable BOLOS_SDK is not set)
endif
include $(BOLOS_SDK)/Makefile.defines

include $(BOLOS_SDK)/Makefile.target

########################################
# Mandatory configuration #
Expand All @@ -39,6 +40,15 @@ ICON_NANOX = icons/nano_app_eos.gif
ICON_NANOSP = icons/nano_app_eos.gif
ICON_STAX = icons/stax_app_eos.gif
ICON_FLEX = icons/flex_app_eos.gif
ICON_APEX = icons/apex_app_eos.gif

ifeq ($(TARGET_NAME),$(filter $(TARGET_NAME),TARGET_NANOX TARGET_NANOS2))
# With the Nano NBGL Design, the Home Screen icon is the reverse of the App icon:
# It should be on white background, with rounded corners.
# This definition allows SDK Makefiles to automatically generate it based on the App icon.
# Please note that the icon is dynamically generated, and declared in the .gitignore to avoid storing it.
ICON_HOME_NANO = glyphs/home_app_eos.gif
endif
Comment thread
agrojean-ledger marked this conversation as resolved.
Outdated

# Application allowed derivation curves.
# Possibles curves are: secp256k1, secp256r1, ed25519 and bls12381g1
Expand Down Expand Up @@ -89,6 +99,7 @@ ENABLE_BLUETOOTH = 1
ENABLE_NBGL_QRCODE = 1
#ENABLE_NBGL_KEYBOARD = 1
#ENABLE_NBGL_KEYPAD = 1
ENABLE_NBGL_FOR_NANO_DEVICES = 1

########################################
# Features disablers #
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# app-eos

Eos wallet application framework for Ledger devices
Eos wallet application framework for Ledger devices (Nano S Plus, Nano X, Flex, Stax, Apex)

This follows the specification available in the doc/ folder

Expand Down Expand Up @@ -95,6 +95,7 @@ You can choose which device to compile and load for by setting the `BOLOS_SDK` e
- `BOLOS_SDK=$NANOSP_SDK`
- `BOLOS_SDK=$STAX_SDK`
- `BOLOS_SDK=$FLEX_SDK`
- `BOLOS_SDK=$APEX_P_SDK`

### Loading on a physical device

Expand Down
Binary file added glyphs/app_eos_48px.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/apex_app_eos.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion ledger_app.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[app]
build_directory = "./"
sdk = "C"
devices = ["nanox", "nanos+", "stax", "flex"]
devices = ["nanox", "nanos+", "stax", "flex", "apex_p"]

[tests]
pytest_directory = "./tests/functional"
14 changes: 14 additions & 0 deletions src/ui.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
#pragma once

#if defined(TARGET_NANOX) || defined(TARGET_NANOS2)
#define ICON_APP_EOS C_nano_app_eos
#define ICON_APP_HOME C_home_app_eos
#define ICON_APP_WARNING C_icon_warning
#elif defined(TARGET_STAX) || defined(TARGET_FLEX)
#define ICON_APP_EOS C_app_eos_64px
#define ICON_APP_HOME ICON_APP_EOS
#define ICON_APP_WARNING C_Warning_64px
Comment thread
agrojean-ledger marked this conversation as resolved.
Outdated
#elif defined(TARGET_APEX_P)
#define ICON_APP_EOS C_app_eos_48px
#define ICON_APP_HOME ICON_APP_EOS
#define ICON_APP_WARNING LARGE_WARNING_ICON
#endif

void ui_idle(void);
void ui_display_public_key_flow(void);
void ui_display_public_key_done(bool validated);
Expand Down
Loading
Loading