diff --git a/icons/nanos_app_astar.gif b/icons/nanos_app_astar.gif new file mode 100644 index 0000000..d656968 Binary files /dev/null and b/icons/nanos_app_astar.gif differ diff --git a/icons/nanos_app_cube.gif b/icons/nanos_app_cube.gif new file mode 100644 index 0000000..1e1d755 Binary files /dev/null and b/icons/nanos_app_cube.gif differ diff --git a/icons/nanos_app_okc.gif b/icons/nanos_app_okc.gif new file mode 100644 index 0000000..ef6b29c Binary files /dev/null and b/icons/nanos_app_okc.gif differ diff --git a/icons/nanos_app_shiden.gif b/icons/nanos_app_shiden.gif new file mode 100644 index 0000000..c3b91d4 Binary files /dev/null and b/icons/nanos_app_shiden.gif differ diff --git a/icons/nanox_app_astar.gif b/icons/nanox_app_astar.gif new file mode 100644 index 0000000..827e926 Binary files /dev/null and b/icons/nanox_app_astar.gif differ diff --git a/icons/nanox_app_cube.gif b/icons/nanox_app_cube.gif new file mode 100644 index 0000000..912c760 Binary files /dev/null and b/icons/nanox_app_cube.gif differ diff --git a/icons/nanox_app_okc.gif b/icons/nanox_app_okc.gif new file mode 100644 index 0000000..5f729da Binary files /dev/null and b/icons/nanox_app_okc.gif differ diff --git a/icons/nanox_app_shiden.gif b/icons/nanox_app_shiden.gif new file mode 100644 index 0000000..7494ccb Binary files /dev/null and b/icons/nanox_app_shiden.gif differ diff --git a/makefile_conf/chain/astar.mk b/makefile_conf/chain/astar.mk new file mode 100644 index 0000000..0f8bbe9 --- /dev/null +++ b/makefile_conf/chain/astar.mk @@ -0,0 +1,3 @@ +APP_LOAD_PARAMS += --path "44'/810'" --path "44'/60'" +DEFINES += CHAINID_UPCASE=\"ASTAR\" CHAINID_COINNAME=\"ASTR\" CHAIN_KIND=CHAIN_KIND_ASTAR CHAIN_ID=592 +APPNAME = "Astar EVM" diff --git a/makefile_conf/chain/cube.mk b/makefile_conf/chain/cube.mk new file mode 100644 index 0000000..6eff774 --- /dev/null +++ b/makefile_conf/chain/cube.mk @@ -0,0 +1,3 @@ +APP_LOAD_PARAMS += --path "44'/60'" +DEFINES += CHAINID_UPCASE=\"CUBE\" CHAINID_COINNAME=\"CUBE\" CHAIN_KIND=CHAIN_KIND_CUBE CHAIN_ID=1818 +APPNAME = "Cube" \ No newline at end of file diff --git a/makefile_conf/chain/okc.mk b/makefile_conf/chain/okc.mk new file mode 100644 index 0000000..d520276 --- /dev/null +++ b/makefile_conf/chain/okc.mk @@ -0,0 +1,3 @@ +APP_LOAD_PARAMS += --path "44'/60'" +DEFINES += CHAINID_UPCASE=\"OKC\" CHAINID_COINNAME=\"OKT\" CHAIN_KIND=CHAIN_KIND_OKC CHAIN_ID=66 +APPNAME = "OKXChain" \ No newline at end of file diff --git a/makefile_conf/chain/shiden.mk b/makefile_conf/chain/shiden.mk new file mode 100644 index 0000000..1a561f1 --- /dev/null +++ b/makefile_conf/chain/shiden.mk @@ -0,0 +1,3 @@ +APP_LOAD_PARAMS += --path "44'/809'" --path "44'/60'" +DEFINES += CHAINID_UPCASE=\"SHIDEN\" CHAINID_COINNAME=\"SDN\" CHAIN_KIND=CHAIN_KIND_SHIDEN CHAIN_ID=336 +APPNAME = "Shiden EVM" diff --git a/src/chainConfig.h b/src/chainConfig.h index 91aabe0..155e335 100644 --- a/src/chainConfig.h +++ b/src/chainConfig.h @@ -63,7 +63,11 @@ typedef enum chain_kind_e { CHAIN_KIND_MOONBEAM, CHAIN_KIND_BTTC, CHAIN_KIND_KARDIACHAIN, - CHAIN_KIND_WETHIO + CHAIN_KIND_WETHIO, + CHAIN_KIND_OKC, + CHAIN_KIND_CUBE, + CHAIN_KIND_SHIDEN, + CHAIN_KIND_ASTAR } chain_kind_t; typedef struct chain_config_s { diff --git a/src/main.c b/src/main.c index 0cd2025..8b029fa 100644 --- a/src/main.c +++ b/src/main.c @@ -284,6 +284,18 @@ extraInfo_t *getKnownToken(uint8_t *contractAddress) { case CHAIN_KIND_WETHIO: numTokens = NUM_TOKENS_WETHIO; break; + case CHAIN_KIND_OKC: + numTokens = NUM_TOKENS_OKC; + break; + case CHAIN_KIND_CUBE: + numTokens = NUM_TOKENS_CUBE; + break; + case CHAIN_KIND_SHIDEN: + numTokens = NUM_TOKENS_SHIDEN; + break; + case CHAIN_KIND_ASTAR: + numTokens = NUM_TOKENS_ASTAR; + break; } for (i = 0; i < numTokens; i++) { switch (chainConfig->kind) { @@ -410,6 +422,18 @@ extraInfo_t *getKnownToken(uint8_t *contractAddress) { case CHAIN_KIND_WETHIO: currentToken = (tokenDefinition_t *) PIC(&TOKENS_WETHIO[i]); break; + case CHAIN_KIND_OKC: + currentToken = (tokenDefinition_t *) PIC(&TOKENS_OKC[i]); + break; + case CHAIN_KIND_CUBE: + currentToken = (tokenDefinition_t *) PIC(&TOKENS_CUBE[i]); + break; + case CHAIN_KIND_SHIDEN: + currentToken = (tokenDefinition_t *) PIC(&TOKENS_SHIDEN[i]); + break; + case CHAIN_KIND_ASTAR: + currentToken = (tokenDefinition_t *) PIC(&TOKENS_ASTAR[i]); + break; } if (memcmp(currentToken->address, tmpContent.txContent.destination, ADDRESS_LENGTH) == 0) { return currentToken; diff --git a/src/tokens.c b/src/tokens.c index 0347ec4..b26771c 100644 --- a/src/tokens.c +++ b/src/tokens.c @@ -204,4 +204,12 @@ const tokenDefinition_t const TOKENS_KARDIACHAIN[NUM_TOKENS_KARDIACHAIN] = {}; const tokenDefinition_t const TOKENS_WETHIO[NUM_TOKENS_WETHIO] = {}; +const tokenDefinition_t const TOKENS_OKC[NUM_TOKENS_OKC] = {}; + +const tokenDefinition_t const TOKENS_CUBE[NUM_TOKENS_CUBE] = {}; + +const tokenDefinition_t const TOKENS_ASTAR[NUM_TOKENS_ASTAR] = {}; + +const tokenDefinition_t const TOKENS_SHIDEN[NUM_TOKENS_SHIDEN] = {}; + #endif diff --git a/src/tokens.h b/src/tokens.h index eb4a14e..318edad 100644 --- a/src/tokens.h +++ b/src/tokens.h @@ -106,6 +106,10 @@ static const uint8_t LEDGER_SIGNATURE_PUBLIC_KEY[] = { #define NUM_TOKENS_BTTC 0 #define NUM_TOKENS_KARDIACHAIN 0 #define NUM_TOKENS_WETHIO 0 +#define NUM_TOKENS_OKC 0 +#define NUM_TOKENS_CUBE 0 +#define NUM_TOKENS_ASTAR 0 +#define NUM_TOKENS_SHIDEN 0 extern tokenDefinition_t const TOKENS_AKROMA[NUM_TOKENS_AKROMA]; extern tokenDefinition_t const TOKENS_ELLAISM[NUM_TOKENS_ELLAISM]; @@ -148,6 +152,9 @@ extern tokenDefinition_t const TOKENS_MOONBEAM[NUM_TOKENS_MOONBEAM]; extern tokenDefinition_t const TOKENS_BTTC[NUM_TOKENS_BTTC]; extern tokenDefinition_t const TOKENS_KARDIACHAIN[NUM_TOKENS_KARDIACHAIN]; extern tokenDefinition_t const TOKENS_WETHIO[NUM_TOKENS_WETHIO]; +extern tokenDefinition_t const TOKENS_CUBE[NUM_TOKENS_CUBE]; +extern tokenDefinition_t const TOKENS_ASTAR[NUM_TOKENS_ASTAR]; +extern tokenDefinition_t const TOKENS_SHIDEN[NUM_TOKENS_SHIDEN]; #endif /* HAVE_TOKENS_LIST */ diff --git a/src_common/network.c b/src_common/network.c index 392b7d5..2d090b9 100644 --- a/src_common/network.c +++ b/src_common/network.c @@ -24,7 +24,10 @@ const network_info_t NETWORK_MAPPING[] = { {.chain_id = 43114, .name = "Avalanche", .ticker = "AVAX "}, {.chain_id = 44787, .name = "Celo Alfajores", .ticker = "aCELO "}, {.chain_id = 62320, .name = "Celo Baklava", .ticker = "bCELO "}, - {.chain_id = 11297108109, .name = "Palm Network", .ticker = "PALM "}}; + {.chain_id = 11297108109, .name = "Palm Network", .ticker = "PALM "}, + {.chain_id = 1818, .name = "Cube", .ticker = "CUBE "}, + {.chain_id = 336, .name = "Shiden", .ticker = "SDN "}, + {.chain_id = 592, .name = "Astar", .ticker = "ASTR "}}; uint64_t get_chain_id(void) { uint64_t chain_id = 0;