This plugin allows users to safely interact with Figment's deposit smart contract by parsing the transaction data and displaying its content in a human-readable way.
The plugin is compatible with the Nano S and Nano X device.
Before building the plugin, you need to set up a working environment:
mkdir plugin_dev
cd plugin_dev
Inside plugin_dev
, clone the plugin repository (including submodules):
git clone --recurse-submodules https://github.com/LedgerHQ/app-plugin-figment
You can compile the plugin using a Docker image provided by Ledger. Make sure you have Docker installed and execute:
docker pull ghcr.io/ledgerhq/ledger-app-builder/ledger-app-dev-tools
Then, start a Docker container and attach a console:
docker run --rm -ti -v "$(realpath .):/app" ghcr.io/ledgerhq/ledger-app-builder/ledger-app-dev-tools
Inside the container, build the plugin by running:
cd app-plugin-figment
make
For more information, see Setup.
In order to run a test suite, you need to compile both the plugin and the Ethereum app.
Inside the plugin_dev
directory, clone the Ethereum application:
git clone --recurse-submodules https://github.com/LedgerHQ/app-ethereum
Then, start a Docker container from within the plugin_dev
directory:
docker run --rm -ti -v "$(realpath .):/app" ghcr.io/ledgerhq/ledger-app-builder/ledger-app-dev-tools
Inside the container, run the following build script:
cd app-plugin-figment/tests
./build_local_test_elfs.sh
Now you can exit the container and execute the tests:
cd app-plugin-figment/tests
yarn
yarn test