Skip to content

Commit

Permalink
Rename boilerplate_plugin.h into generic plugin.h
Browse files Browse the repository at this point in the history
  • Loading branch information
fbeutin-ledger committed Oct 26, 2023
1 parent 3c09c21 commit 15e6d22
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/handle_finalize.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "boilerplate_plugin.h"
#include "plugin.h"

void handle_finalize(void *parameters) {
ethPluginFinalize_t *msg = (ethPluginFinalize_t *) parameters;
Expand Down
2 changes: 1 addition & 1 deletion src/handle_init_contract.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "boilerplate_plugin.h"
#include "plugin.h"
#include "utils.h"

// Called once to init.
Expand Down
2 changes: 1 addition & 1 deletion src/handle_provide_parameter.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "boilerplate_plugin.h"
#include "plugin.h"

// EDIT THIS: Remove this function and write your own handlers!
static void handle_swap_exact_eth_for_tokens(ethPluginProvideParameter_t *msg, context_t *context) {
Expand Down
2 changes: 1 addition & 1 deletion src/handle_provide_token.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "boilerplate_plugin.h"
#include "plugin.h"

// EDIT THIS: Adapt this function to your needs! Remember, the information for tokens are held in
// `msg->token1` and `msg->token2`. If those pointers are `NULL`, this means the ethereum app didn't
Expand Down
2 changes: 1 addition & 1 deletion src/handle_query_contract_id.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "boilerplate_plugin.h"
#include "plugin.h"

// Sets the first screen to display.
void handle_query_contract_id(ethQueryContractID_t *msg) {
Expand Down
2 changes: 1 addition & 1 deletion src/handle_query_contract_ui.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "boilerplate_plugin.h"
#include "plugin.h"

// EDIT THIS: You need to adapt / remove the static functions (set_send_ui, set_receive_ui ...) to
// match what you wish to display.
Expand Down
2 changes: 1 addition & 1 deletion src/boilerplate_plugin.c → src/plugin.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
********************************************************************************/

#include <stdint.h>
#include "boilerplate_plugin.h"
#include "plugin.h"

// This array will be automatically expanded to map all selector_t names with the correct value.
// Do not modify !
Expand Down
File renamed without changes.

0 comments on commit 15e6d22

Please sign in to comment.