Boilerplate plugin | Developers

Boilerplate plugin

Estimated reading time: One minute

Here is a boilerplate plugin to help you write your own. This guide walks you through the plugin.

You can follow it best by forking the repository https://github.com/LedgerHQ/app-plugin-boilerplate in the plugin_dev/ folder:

cd ..
git clone --recurse-submodules https://github.com/LedgerHQ/app-plugin-boilerplate  

What’s what

There is no need to build it right now, only after adding tests. For now, in app-plugin-boilerplate/ there are these folders:

  • ethereum-plugin-sdk: This submodule (read sub-repo) contains information shared by the Ethereum app and your plugin, such as structure definitions, utility functions, etc.
  • icons: plugin icons as displayed on the device. We will get to it later, but you can read about it here.
  • src: the actual source code (in C).
  • tests/: the test folder (using the js Testing Framework).

Change plugin name

There is the Makefile directly in the repository root. You need to open Makefile and change APPNAME to suit your plugin name (e.g., Paraswap, 1inch, Lido, etc.).


Did you find this page helpful?


How would you improve this page?



Introduction
Selector Setup
Getting Started
Theme Features
Customization