-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #145 from KeystoneHQ/cardano
Support Cardano Address generation
- Loading branch information
Showing
37 changed files
with
1,248 additions
and
71 deletions.
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
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 |
---|---|---|
|
@@ -18,6 +18,7 @@ typedef enum { | |
CHAIN_ETH, | ||
CHAIN_SOL, | ||
CHAIN_SUI, | ||
CHAIN_ADA, | ||
CHAIN_ATOM, | ||
CHAIN_OSMO, | ||
CHAIN_SCRT, | ||
|
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
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,51 @@ | ||
#include "gui.h" | ||
#include "gui_obj.h" | ||
#include "gui_views.h" | ||
#include "gui_multi_accounts_receive_widgets.h" | ||
|
||
static int32_t GuiMultiAccountsReceiveViewInit(uint8_t chain) | ||
{ | ||
GuiMultiAccountsReceiveInit(chain); | ||
return SUCCESS_CODE; | ||
} | ||
|
||
static int32_t GuiMultiAccountsReceiveViewDeInit(void) | ||
{ | ||
GuiMultiAccountsReceiveDeInit(); | ||
return SUCCESS_CODE; | ||
} | ||
|
||
int32_t GuiMultiAccountsReceiveViewEventProcess(void *self, uint16_t usEvent, void *param, uint16_t usLen) | ||
{ | ||
uint8_t chain = 0; | ||
switch (usEvent) { | ||
case GUI_EVENT_OBJ_INIT: | ||
if (param != NULL) { | ||
chain = *(uint8_t *)param; | ||
} else { | ||
return ERR_GUI_ERROR; | ||
} | ||
return GuiMultiAccountsReceiveViewInit(chain); | ||
case GUI_EVENT_OBJ_DEINIT: | ||
return GuiMultiAccountsReceiveViewDeInit(); | ||
case GUI_EVENT_DISACTIVE: | ||
break; | ||
case GUI_EVENT_REFRESH: | ||
GuiMultiAccountsReceiveRefresh(); | ||
break; | ||
case SIG_SETUP_VIEW_TILE_PREV: | ||
GuiMultiAccountsReceivePrevTile(); | ||
break; | ||
default: | ||
return ERR_GUI_UNHANDLED; | ||
} | ||
return SUCCESS_CODE; | ||
} | ||
|
||
GUI_VIEW g_multiAccountsReceiveView = { | ||
.id = SCREEN_MULTI_ACCOUNTS_RECEIVE, | ||
.previous = NULL, | ||
.isActive = false, | ||
.optimization = false, | ||
.pEvtHandler = GuiMultiAccountsReceiveViewEventProcess, | ||
}; |
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.