From 5e2601c55724b4633ffdbfffbf5d7146cc5d7d08 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 9 Nov 2023 16:21:53 +0000 Subject: [PATCH 1/4] [auto-update] Bump SDK to latest develop version 4d8e044 --- ethereum-plugin-sdk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethereum-plugin-sdk b/ethereum-plugin-sdk index 1fe4085..4d8e044 160000 --- a/ethereum-plugin-sdk +++ b/ethereum-plugin-sdk @@ -1 +1 @@ -Subproject commit 1fe4085d04a88f4238103a4ed3db1484fdb69c63 +Subproject commit 4d8e04480530cd14dd670a0a6405bca992d16942 From 25d0fd99594909c9dbfcfe7f0417bb4e62b68b89 Mon Sep 17 00:00:00 2001 From: Manoj Patra Date: Wed, 8 Nov 2023 17:39:35 +0530 Subject: [PATCH 2/4] nanox icon change --- icons/nanox_app_staderlabs.gif | Bin 3129 -> 81 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/icons/nanox_app_staderlabs.gif b/icons/nanox_app_staderlabs.gif index 73f2f3216745f239cdd23a65074d6187492e7827..0a7a8e0e93d907b57cee533e88d645867aef1b2d 100644 GIT binary patch delta 52 zcmdlf5vb$t>1JV>$j89P(7*r!|NsA2{Lk&@8WQa67~pE8XTZz|6jl7m!ot8XS%gOw E0B%hToB#j- literal 3129 zcmZ?wbhEHb6v-9>hE{&S69ePu~iQ@^)>JYllY>8Vy$t`(VSA^G_^3Wi2{CI;$2 zLyA(;tb$zJphf_Bw(1!rB?VUc`sL;2dgaD?`9=P7{9OiaozEwNQs=Td+gU6PrGFgveU5A0OE1N{AbeZ0LqJ>1<~U7Vd99qjFF zZLF;0T=`r&r!dmJjFrI}0D%NPumAu6 From 51b5ce5bd9e20c8f32c1c072e9b7cb013890d99b Mon Sep 17 00:00:00 2001 From: Manoj Patra Date: Wed, 8 Nov 2023 18:37:29 +0530 Subject: [PATCH 3/4] version bump --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f0d0e64..db15e47 100755 --- a/Makefile +++ b/Makefile @@ -30,7 +30,7 @@ APPNAME = "Staderlabs" # Application version APPVERSION_M = 1 APPVERSION_N = 1 -APPVERSION_P = 0 +APPVERSION_P = 1 APPVERSION = "$(APPVERSION_M).$(APPVERSION_N).$(APPVERSION_P)" # Initialize plugin SDK submodule if needed From 6b8915976460e0ef56af3fdc1524f62b619b8620 Mon Sep 17 00:00:00 2001 From: Manoj Patra Date: Tue, 14 Nov 2023 19:02:04 +0530 Subject: [PATCH 4/4] disable unused param warning --- src/handle_provide_parameter.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/handle_provide_parameter.c b/src/handle_provide_parameter.c index 1a30be8..f888aa2 100644 --- a/src/handle_provide_parameter.c +++ b/src/handle_provide_parameter.c @@ -5,8 +5,12 @@ static void handle_amount_received(const ethPluginProvideParameter_t *msg, conte copy_parameter(context->amount_received, msg->parameter, sizeof(context->amount_received)); } -static void handle_unsupported_param(ethPluginProvideParameter_t *msg, const context_t *context) { +static void handle_unsupported_param(ethPluginProvideParameter_t *msg) { +#ifdef DEBUG + context_t *context = (context_t *) msg->pluginContext; PRINTF("Param not supported: %d\n", context->next_param); +#endif + msg->result = ETH_PLUGIN_RESULT_ERROR; } @@ -19,7 +23,7 @@ static void handle_stake(ethPluginProvideParameter_t *msg, context_t *context) { break; // Keep this default: - handle_unsupported_param(msg, context); + handle_unsupported_param(msg); break; } } @@ -37,7 +41,7 @@ static void handle_unstake(ethPluginProvideParameter_t *msg, context_t *context) break; // Keep this default: - handle_unsupported_param(msg, context); + handle_unsupported_param(msg); break; } } @@ -51,7 +55,7 @@ static void handle_ethx_deposit(ethPluginProvideParameter_t *msg, context_t *con // Keep this default: - handle_unsupported_param(msg, context); + handle_unsupported_param(msg); break; } } @@ -70,7 +74,7 @@ static void handle_ethx_request_withdraw(ethPluginProvideParameter_t *msg, conte // Keep this default: - handle_unsupported_param(msg, context); + handle_unsupported_param(msg); break; } }