Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/codeql_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
strategy:
fail-fast: false
matrix:
sdk: ["$NANOX_SDK", "$NANOSP_SDK", "$STAX_SDK", "$FLEX_SDK"]
sdk: ["$NANOX_SDK", "$NANOSP_SDK", "$STAX_SDK", "$FLEX_SDK","$APEX_P_SDK"]
# 'cpp' covers C and C++
language: ['cpp']
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@ repos:
- id: pylint
language: system
types: [python]
args: ['--jobs=0', '--rcfile=tests/setup.cfg']
args: ['--jobs=0', '--rcfile=tests/standalone/setup.cfg']
files: '^tests/.*$'
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ ICON_NANOSP = icons/app_ont14px.gif
ICON_NANOX = icons/app_ont14px.gif
ICON_STAX = icons/app_ont32px.gif
ICON_FLEX = icons/app_ont40px.gif
ICON_APEX_P = icons/app_ont_32px.png

# Application allowed derivation curves.
# Possibles curves are: secp256k1, secp256r1, ed25519 and bls12381g1
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Ledger Ontology Application

This is the Ledger Onotlogy Application for the Ledger Stax, Flex, Nano S Plus, and Nano X. It is based on [the Ledger Boilerplate Application](https://github.com/LedgerHQ/app-boilerplate).
This is the Ledger Onotlogy Application for the Ledger devices. It is based on [the Ledger Boilerplate Application](https://github.com/LedgerHQ/app-boilerplate).

The application for Ledger Nano S can be found [here](https://github.com/LedgerHQ/app-ont/commit/babe2c673fac8f6429881773442bdcedf5aec666).

Expand Down Expand Up @@ -92,6 +92,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_SDK`

By default this variable is set to build/load for Nano S+.

Expand Down
1 change: 1 addition & 0 deletions fuzzing/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ include_directories(
"${BOLOS_SDK}/target/nanox/include"
"${BOLOS_SDK}/target/nanos2/include"
"${BOLOS_SDK}/target/nanos/include"
"${BOLOS_SDK}/target/apex/include"
"${BOLOS_SDK}/lib_cxng/include"
"${CMAKE_CURRENT_SOURCE_DIR}/../src"
"${CMAKE_CURRENT_SOURCE_DIR}/../src/transaction"
Expand Down
Binary file added glyphs/app_ont_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/app_ont_32px.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]
unit_directory = "./unit-tests/"
Expand Down
3 changes: 3 additions & 0 deletions src/ui/display.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
#elif defined(TARGET_FLEX)
#define ICON_APP_ONTOLOGY C_app_ont40px
#define ICON_APP_WARNING C_Warning_64px
#elif defined(TARGET_APEX_P)
#define ICON_APP_ONTOLOGY C_app_ont_32px
#define ICON_APP_WARNING C_Warning_48px
#endif

#define NUM_PAIRS (PARAMETERS_MAX_NUM + 2) // gas fee and signer
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions tests/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ You can use for this the container `ghcr.io/ledgerhq/ledger-app-builder/ledger-a
docker pull ghcr.io/ledgerhq/ledger-app-builder/ledger-app-builder-lite:latest
cd <your app repository> # replace <appname> with the name of your app, (eg boilerplate)
docker run --user "$(id -u)":"$(id -g)" --rm -ti -v "$(realpath .):/app" --privileged -v "/dev/bus/usb:/dev/bus/usb" ledger-app-builder-lite:latest
make clean && make BOLOS_SDK=$<device>_SDK # replace <device> with one of [NANOX, NANOSP, STAX, FLEX]
make clean && make BOLOS_SDK=$<device>_SDK # replace <device> with one of [NANOX, NANOSP, STAX, FLEX, APEX]
exit
```

Expand All @@ -43,7 +43,7 @@ You can use for this the container `ghcr.io/ledgerhq/ledger-app-builder/ledger-a
docker pull ghcr.io/ledgerhq/ledger-app-builder/ledger-app-builder-lite:latest
cd app-<appname>/ # replace <appname> with the name of your app, (eg boilerplate)
docker run --user "$(id -u)":"$(id -g)" --rm -ti -v "$(realpath .):/app" --privileged -v "/dev/bus/usb:/dev/bus/usb" ledger-app-builder-lite:latest
make clean && make BOLOS_SDK=$<device>_SDK load # replace <device> with one of [NANOX, NANOSP, STAX, FLEX]
make clean && make BOLOS_SDK=$<device>_SDK load # replace <device> with one of [NANOX, NANOSP, STAX, FLEX, APEX]
exit
```

Expand All @@ -70,7 +70,7 @@ Standard useful pytest options
Custom pytest options

```shell
--device <device> run the test on the specified device [nanox,nanosp,stax,flex,all]. This parameter is mandatory
--device <device> run the test on the specified device [nanox,nanosp,stax,flex,apex,all]. This parameter is mandatory
--backend <backend> run the tests against the backend [speculos, ledgercomm, ledgerwallet]. Speculos is the default
--display on Speculos, enables the display of the app screen using QT
--golden_run on Speculos, screen comparison functions will save the current screen instead of comparing
Expand Down
1 change: 1 addition & 0 deletions unit-tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ include_directories($ENV{BOLOS_SDK}/target/flex/include)
include_directories($ENV{BOLOS_SDK}/target/stax/include)
include_directories($ENV{BOLOS_SDK}/target/nanox/include)
include_directories($ENV{BOLOS_SDK}/target/nanos2/include)
include_directories($ENV{BOLOS_SDK}/target/apex/include)
include_directories($ENV{BOLOS_SDK}/lib_cxng/include)

add_executable(test_tx_parser test_tx_parser.c)
Expand Down