diff --git a/Makefile.genericwallet b/Makefile.genericwallet index 9975e29..acd77b2 100755 --- a/Makefile.genericwallet +++ b/Makefile.genericwallet @@ -82,6 +82,10 @@ else ifeq ($(CHAIN),kusd) APP_LOAD_PARAMS += --path "44'/91927009'" DEFINES += CHAINID_UPCASE=\"KUSD\" CHAINID_COINNAME=\"KUSD\" CHAIN_KIND=CHAIN_KIND_KUSD CHAIN_ID=2 APPNAME = "KUSD" +else ifeq ($(CHAIN),musicoin) +APP_LOAD_PARAMS += --path "44'/184'" +DEFINES += CHAINID_UPCASE=\"MUSICOIN\" CHAINID_COINNAME=\"MUSIC\" CHAIN_KIND=CHAIN_KIND_MUSICOIN CHAIN_ID=7762959 +APPNAME = "Musicoin" else ifeq ($(filter clean,$(MAKECMDGOALS)),) $(error Unsupported CHAIN - use ethereum, ethereum_classic, expanse, poa, rsk, rsk_testnet, ubiq, wanchain, kusd) diff --git a/blue_app_musicoin.gif b/blue_app_musicoin.gif new file mode 100644 index 0000000..f66dac0 Binary files /dev/null and b/blue_app_musicoin.gif differ diff --git a/glyphs/blue_badge_musicoin.gif b/glyphs/blue_badge_musicoin.gif new file mode 100644 index 0000000..c56081d Binary files /dev/null and b/glyphs/blue_badge_musicoin.gif differ diff --git a/glyphs/nanos_badge_musicoin.gif b/glyphs/nanos_badge_musicoin.gif new file mode 100644 index 0000000..b8288ac Binary files /dev/null and b/glyphs/nanos_badge_musicoin.gif differ diff --git a/nanos_app_musicoin.gif b/nanos_app_musicoin.gif new file mode 100644 index 0000000..94b6195 Binary files /dev/null and b/nanos_app_musicoin.gif differ diff --git a/src_genericwallet/chainConfig.h b/src_genericwallet/chainConfig.h index a7a2817..4332e73 100644 --- a/src_genericwallet/chainConfig.h +++ b/src_genericwallet/chainConfig.h @@ -14,7 +14,8 @@ typedef enum chain_kind_e { CHAIN_KIND_WANCHAIN, CHAIN_KIND_KUSD, CHAIN_KIND_PIRL, - CHAIN_KIND_AKROMA + CHAIN_KIND_AKROMA, + CHAIN_KIND_MUSICOIN } chain_kind_t; typedef struct chain_config_s { diff --git a/src_genericwallet/main.c b/src_genericwallet/main.c index 9b5a23d..a0f6867 100644 --- a/src_genericwallet/main.c +++ b/src_genericwallet/main.c @@ -1290,6 +1290,9 @@ void handleSign(uint8_t p1, uint8_t p2, uint8_t *workBuffer, uint16_t dataLength case CHAIN_KIND_KUSD: numTokens = NUM_TOKENS_KUSD; break; + case CHAIN_KIND_MUSICOIN: + numTokens = NUM_TOKENS_MUSICOIN; + break; } for (i=0; iaddress, tmpContent.txContent.destination, 20) == 0) { dataPresent = false; diff --git a/src_genericwallet/tokens.c b/src_genericwallet/tokens.c index eccf92b..457e2ce 100644 --- a/src_genericwallet/tokens.c +++ b/src_genericwallet/tokens.c @@ -721,3 +721,5 @@ const tokenDefinition_t const TOKENS_EXPANSE[NUM_TOKENS_EXPANSE] = {}; const tokenDefinition_t const TOKENS_WANCHAIN[NUM_TOKENS_WANCHAIN] = {}; const tokenDefinition_t const TOKENS_KUSD[NUM_TOKENS_KUSD] = {}; + +const tokenDefinition_t const TOKENS_MUSICOIN[NUM_TOKENS_MUSICOIN] = {}; diff --git a/src_genericwallet/tokens.h b/src_genericwallet/tokens.h index b96c318..5416dcb 100644 --- a/src_genericwallet/tokens.h +++ b/src_genericwallet/tokens.h @@ -33,6 +33,7 @@ typedef struct tokenDefinition_t { #define NUM_TOKENS_EXPANSE 0 #define NUM_TOKENS_WANCHAIN 0 #define NUM_TOKENS_KUSD 0 +#define NUM_TOKENS_MUSICOIN 0 extern tokenDefinition_t const TOKENS_AKROMA[NUM_TOKENS_AKROMA]; extern tokenDefinition_t const TOKENS_ETHEREUM[NUM_TOKENS_ETHEREUM]; @@ -44,3 +45,4 @@ extern tokenDefinition_t const TOKENS_UBIQ[NUM_TOKENS_UBIQ]; extern tokenDefinition_t const TOKENS_EXPANSE[NUM_TOKENS_EXPANSE]; extern tokenDefinition_t const TOKENS_WANCHAIN[NUM_TOKENS_WANCHAIN]; extern tokenDefinition_t const TOKENS_KUSD[NUM_TOKENS_KUSD]; +extern tokenDefinition_t const TOKENS_MUSICOIN[NUM_TOKENS_MUSICOIN];