diff --git a/Makefile b/Makefile index e878102..553ab70 100755 --- a/Makefile +++ b/Makefile @@ -110,9 +110,13 @@ else ifeq ($(CHAIN),atheios) APP_LOAD_PARAMS += --path "44'/1620'" DEFINES += CHAINID_UPCASE=\"ATHEIOS\" CHAINID_COINNAME=\"ATH\" CHAIN_KIND=CHAIN_KIND_ATHEIOS CHAIN_ID=1620 APPNAME = "Atheios" +else ifeq ($(CHAIN),eosclassic) +APP_LOAD_PARAMS += --path "44'/2018'" +DEFINES += CHAINID_UPCASE=\"EOSCLASSIC\" CHAINID_COINNAME=\"EOSC\" CHAIN_KIND=CHAIN_KIND_EOSCLASSIC CHAIN_ID=20 +APPNAME = "EOSClassic" else ifeq ($(filter clean,$(MAKECMDGOALS)),) -$(error Unsupported CHAIN - use ethereum, ethereum_classic, expanse, poa, rsk, rsk_testnet, ubiq, wanchain, kusd, musicoin, callisto, ethersocial, ellaism, pirl, akroma, ether1, ethergem) +$(error Unsupported CHAIN - use ethereum, ethereum_classic, expanse, poa, rsk, rsk_testnet, ubiq, wanchain, kusd, musicoin, callisto, ethersocial, ellaism, pirl, akroma, ether1, ethergem, atheios, eosclassic) endif endif @@ -204,4 +208,4 @@ include $(BOLOS_SDK)/Makefile.rules dep/%.d: %.c Makefile.genericwallet listvariants: - @echo VARIANTS CHAIN ethereum ethereum_classic expanse poa rsk rsk_testnet ubiq wanchain kusd #musicoin callisto ethersocial ellaism pirl akroma ether1 ethergem + @echo VARIANTS CHAIN ethereum ethereum_classic expanse poa rsk rsk_testnet ubiq wanchain kusd #musicoin callisto ethersocial ellaism pirl akroma ether1 ethergem atheios eosclassic diff --git a/blue_app_eosclassic.gif b/blue_app_eosclassic.gif new file mode 100644 index 0000000..d34bd90 Binary files /dev/null and b/blue_app_eosclassic.gif differ diff --git a/eosclassic.png b/eosclassic.png new file mode 100644 index 0000000..ec6a78c Binary files /dev/null and b/eosclassic.png differ diff --git a/glyphs/blue_badge_eosclassic.gif b/glyphs/blue_badge_eosclassic.gif new file mode 100644 index 0000000..3ad0bba Binary files /dev/null and b/glyphs/blue_badge_eosclassic.gif differ diff --git a/glyphs/nanos_badge_eosclassic.gif b/glyphs/nanos_badge_eosclassic.gif new file mode 100644 index 0000000..03797f0 Binary files /dev/null and b/glyphs/nanos_badge_eosclassic.gif differ diff --git a/nanos_app_eosclassic.gif b/nanos_app_eosclassic.gif new file mode 100644 index 0000000..6f8cdaf Binary files /dev/null and b/nanos_app_eosclassic.gif differ diff --git a/src_genericwallet/chainConfig.h b/src_genericwallet/chainConfig.h index 79c1636..26dbe0e 100644 --- a/src_genericwallet/chainConfig.h +++ b/src_genericwallet/chainConfig.h @@ -21,7 +21,8 @@ typedef enum chain_kind_e { CHAIN_KIND_ELLAISM, CHAIN_KIND_ETHER1, CHAIN_KIND_ETHERGEM, - CHAIN_KIND_ATHEIOS + CHAIN_KIND_ATHEIOS, + CHAIN_KIND_EOSCLASSIC } chain_kind_t; typedef struct chain_config_s { diff --git a/src_genericwallet/main.c b/src_genericwallet/main.c index 132903a..0c86c06 100644 --- a/src_genericwallet/main.c +++ b/src_genericwallet/main.c @@ -1561,6 +1561,9 @@ tokenDefinition_t* getKnownToken() { case CHAIN_KIND_ATHEIOS: numTokens = NUM_TOKENS_ATHEIOS; break; + case CHAIN_KIND_EOSCLASSIC: + numTokens = NUM_TOKENS_EOSCLASSIC; + break; } for (i=0; ikind) { @@ -1615,6 +1618,9 @@ tokenDefinition_t* getKnownToken() { case CHAIN_KIND_ATHEIOS: currentToken = PIC(&TOKENS_ATHEIOS[i]); break; + case CHAIN_KIND_EOSCLASSIC: + currentToken = PIC(&TOKENS_EOSCLASSIC[i]); + break; } if (os_memcmp(currentToken->address, tmpContent.txContent.destination, 20) == 0) { return currentToken; diff --git a/src_genericwallet/tokens.c b/src_genericwallet/tokens.c index c9a898a..2ae1e62 100644 --- a/src_genericwallet/tokens.c +++ b/src_genericwallet/tokens.c @@ -737,3 +737,5 @@ const tokenDefinition_t const TOKENS_CALLISTO[NUM_TOKENS_CALLISTO] = {}; const tokenDefinition_t const TOKENS_ETHERGEM[NUM_TOKENS_ETHERGEM] = {}; const tokenDefinition_t const TOKENS_ATHEIOS[NUM_TOKENS_ATHEIOS] = {}; + +const tokenDefinition_t const TOKENS_EOSCLASSIC[NUM_TOKENS_EOSCLASSIC] = {}; diff --git a/src_genericwallet/tokens.h b/src_genericwallet/tokens.h index 6ab3082..c8d3518 100644 --- a/src_genericwallet/tokens.h +++ b/src_genericwallet/tokens.h @@ -40,6 +40,7 @@ typedef struct tokenDefinition_t { #define NUM_TOKENS_CALLISTO 0 #define NUM_TOKENS_ETHERGEM 0 #define NUM_TOKENS_ATHEIOS 0 +#define NUM_TOKENS_EOSCLASSIC 0 extern tokenDefinition_t const TOKENS_AKROMA[NUM_TOKENS_AKROMA]; extern tokenDefinition_t const TOKENS_ELLAISM[NUM_TOKENS_ELLAISM]; @@ -58,3 +59,4 @@ extern tokenDefinition_t const TOKENS_MUSICOIN[NUM_TOKENS_MUSICOIN]; extern tokenDefinition_t const TOKENS_CALLISTO[NUM_TOKENS_CALLISTO]; extern tokenDefinition_t const TOKENS_ETHERGEM[NUM_TOKENS_ETHERGEM]; extern tokenDefinition_t const TOKENS_ATHEIOS[NUM_TOKENS_ATHEIOS]; +extern tokenDefinition_t const TOKENS_EOSCLASSIC[NUM_TOKENS_EOSCLASSIC];