-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor the app, fix bugs and add tests.
## Updated - Added a `Sequence Number` setting: `Displayed` or `NOT Displayed`, default to `NOT Displayed`. - Optimized the display of amount. (ex. `10000000 XLM` -> `10,000,000 XLM`) - Optimized the display of offer price. - Optimize the display of `Memo Text` and `Manage Data Value`, if they are printable ASCII characters, they will be printed directly, otherwise display the base64 encoded summary. - In some common operations, the prompt for the operation type was removed. - Other UX improvements. - Other bugfixes. - Refactored this app based on [app-boilerplate](https://github.com/ledgerhq/app-boilerplate). - Refactored unit tests and added full e2e tests. - Added APDU documentation. ## Breaking changes - Removed keypair validation in `GET_PUBLIC_KEY` command. If necessary, we recommend that you ask the user to confirm the address on the device. - Removed support for the `KEEP_ALIVE` command at the app layer.
- Loading branch information
Showing
4,637 changed files
with
22,374 additions
and
7,194 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# We provide a pre-built image to save you time, but if you want to build it yourself, | ||
# you can copy https://github.com/overcat/ledger-devcontainer/blob/main/Dockerfile to the current | ||
# folder to overwrite this file. | ||
# | ||
# More information: https://github.com/overcat/ledger-devcontainer | ||
|
||
FROM ghcr.io/overcat/ledger-devcontainer:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
// For format details, see https://aka.ms/vscode-remote/devcontainer.json or the definition README at | ||
// https://github.com/microsoft/vscode-dev-containers/tree/master/containers/ubuntu-18.04-git | ||
{ | ||
"name": "Ledger Dev", | ||
"dockerFile": "Dockerfile", | ||
"build": { | ||
"args": {} | ||
}, | ||
// https://code.visualstudio.com/remote/advancedcontainers/environment-variables | ||
// BOLOS_SDK can be one of NANOS_SDK, NANOX_SDK and NANOSPLUS_SDK | ||
"remoteEnv": { | ||
"BOLOS_SDK": "${containerEnv:NANOS_SDK}", | ||
"MNEMONIC": "other base behind follow wet put glad muscle unlock sell income october", // "${localEnv:MNEMONIC}" | ||
"CTEST_OUTPUT_ON_FAILURE": "1", | ||
"PIP_INDEX_URL": "https://mirrors.ustc.edu.cn/pypi/web/simple" | ||
}, | ||
// The optional 'runArgs' property can be used to specify additional runtime arguments. | ||
"runArgs": [ | ||
// Uncomment the line if you will use a ptrace-based debugger like C++, Go, and Rust. | ||
"--cap-add=SYS_PTRACE", | ||
"--security-opt", | ||
"seccomp=unconfined" | ||
], | ||
// Use 'settings' to set *default* container specific settings.json values on container create. | ||
// You can edit these settings after create using File > Preferences > Settings > Remote. | ||
"settings": { | ||
"terminal.integrated.profiles.linux": { | ||
"bash": { | ||
"path": "/bin/bash" | ||
}, | ||
"fish": { | ||
"path": "/bin/fish" | ||
} | ||
}, | ||
"terminal.integrated.defaultProfile.linux": "fish" | ||
}, | ||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
// "forwardPorts": [3000], | ||
// Use 'portsAttributes' to set default properties for specific forwarded ports. More info: https://code.visualstudio.com/docs/remote/devcontainerjson-reference. | ||
"portsAttributes": { | ||
"5000": { | ||
"label": "Speculos Restful API", | ||
"onAutoForward": "notify" | ||
}, | ||
"9999": { | ||
"label": "Speculos APDU Server TCP port", | ||
"onAutoForward": "silent" | ||
}, | ||
}, | ||
// Use 'otherPortsAttributes' to configure any ports that aren't configured using 'portsAttributes'. | ||
"otherPortsAttributes": { | ||
"onAutoForward": "silent" | ||
}, | ||
// Uncomment the next line to run commands after the container is created. | ||
// "postCreateCommand": "", | ||
// Add the IDs of extensions you want installed when the container is created in the array below. | ||
"extensions": [ | ||
"ms-vscode.cpptools-extension-pack", | ||
"spmeesseman.vscode-taskexplorer", | ||
"webfreak.debug" | ||
], | ||
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. | ||
// On Linux, this will prevent new files getting created as root, but you may need to update the USER_UID | ||
// and USER_GID in .devcontainer/Dockerfile to match your user if not 1000. | ||
"remoteUser": "ledgerdev" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.