Add support for TomoChain (TOMO)
This commit is contained in:
8
Makefile
8
Makefile
@@ -127,9 +127,13 @@ else ifeq ($(CHAIN),hpb)
|
||||
APP_LOAD_PARAMS += --path "44'/269'"
|
||||
DEFINES += CHAINID_UPCASE=\"HPB\" CHAINID_COINNAME=\"HPB\" CHAIN_KIND=CHAIN_KIND_HPB CHAIN_ID=269
|
||||
APPNAME = "HPB"
|
||||
else ifeq ($(CHAIN),tomochain)
|
||||
APP_LOAD_PARAMS += --path "44'/889'"
|
||||
DEFINES += CHAINID_UPCASE=\"TOMOCHAIN\" CHAINID_COINNAME=\"GO\" CHAIN_KIND=CHAIN_KIND_TOMOCHAIN CHAIN_ID=88
|
||||
APPNAME = "TomoChain"
|
||||
else
|
||||
ifeq ($(filter clean,$(MAKECMDGOALS)),)
|
||||
$(error Unsupported CHAIN - use ethereum, ethereum_classic, expanse, poa, rsk, rsk_testnet, ubiq, wanchain, kusd, musicoin, pirl, akroma, atheios, callisto, ethersocial, ellaism, ether1, ethergem, gochain, mix, reosc, hpb)
|
||||
$(error Unsupported CHAIN - use ethereum, ethereum_classic, expanse, poa, rsk, rsk_testnet, ubiq, wanchain, kusd, musicoin, pirl, akroma, atheios, callisto, ethersocial, ellaism, ether1, ethergem, gochain, mix, reosc, hpb, tomochain)
|
||||
endif
|
||||
endif
|
||||
|
||||
@@ -221,4 +225,4 @@ include $(BOLOS_SDK)/Makefile.rules
|
||||
dep/%.d: %.c Makefile
|
||||
|
||||
listvariants:
|
||||
@echo VARIANTS CHAIN ethereum ethereum_classic expanse poa rsk rsk_testnet ubiq wanchain kusd pirl akroma atheios callisto ethersocial ether1 gochain musicoin ethergem mix ellaism reosc hpb
|
||||
@echo VARIANTS CHAIN ethereum ethereum_classic expanse poa rsk rsk_testnet ubiq wanchain kusd pirl akroma atheios callisto ethersocial ether1 gochain musicoin ethergem mix ellaism reosc hpb tomochain
|
||||
|
||||
BIN
blue_app_tomochain.gif
Normal file
BIN
blue_app_tomochain.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.0 KiB |
BIN
glyphs/blue_badge_tomochain.gif
Normal file
BIN
glyphs/blue_badge_tomochain.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 579 B |
BIN
glyphs/nanos_badge_tomochain.gif
Normal file
BIN
glyphs/nanos_badge_tomochain.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 152 B |
BIN
nanos_app_tomochain.gif
Normal file
BIN
nanos_app_tomochain.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 195 B |
@@ -43,7 +43,8 @@ typedef enum chain_kind_e {
|
||||
CHAIN_KIND_GOCHAIN,
|
||||
CHAIN_KIND_MIX,
|
||||
CHAIN_KIND_REOSC,
|
||||
CHAIN_KIND_HPB
|
||||
CHAIN_KIND_HPB,
|
||||
CHAIN_KIND_TOMOCHAIN,
|
||||
} chain_kind_t;
|
||||
|
||||
typedef struct chain_config_s {
|
||||
|
||||
@@ -1460,6 +1460,9 @@ tokenDefinition_t* getKnownToken() {
|
||||
case CHAIN_KIND_HPB:
|
||||
numTokens = NUM_TOKENS_HPB;
|
||||
break;
|
||||
case CHAIN_KIND_TOMOCHAIN:
|
||||
numTokens = NUM_TOKENS_TOMOCHAIN;
|
||||
break;
|
||||
}
|
||||
for (i=0; i<numTokens; i++) {
|
||||
switch(chainConfig->kind) {
|
||||
@@ -1526,6 +1529,9 @@ tokenDefinition_t* getKnownToken() {
|
||||
case CHAIN_KIND_HPB:
|
||||
currentToken = (tokenDefinition_t *)PIC(&TOKENS_HPB[i]);
|
||||
break;
|
||||
case CHAIN_KIND_TOMOCHAIN:
|
||||
currentToken = (tokenDefinition_t *)PIC(&TOKENS_TOMOCHAIN[i]);
|
||||
break;
|
||||
}
|
||||
if (os_memcmp(currentToken->address, tmpContent.txContent.destination, 20) == 0) {
|
||||
return currentToken;
|
||||
|
||||
@@ -1175,3 +1175,5 @@ const tokenDefinition_t const TOKENS_MIX[NUM_TOKENS_MIX] = {};
|
||||
const tokenDefinition_t const TOKENS_REOSC[NUM_TOKENS_REOSC] = {};
|
||||
|
||||
const tokenDefinition_t const TOKENS_HPB[NUM_TOKENS_HPB] = {};
|
||||
|
||||
const tokenDefinition_t const TOKENS_TOMOCHAIN[NUM_TOKENS_TOMOCHAIN] = {};
|
||||
|
||||
@@ -47,6 +47,7 @@ typedef struct tokenDefinition_t {
|
||||
#define NUM_TOKENS_MIX 0
|
||||
#define NUM_TOKENS_REOSC 0
|
||||
#define NUM_TOKENS_HPB 0
|
||||
#define NUM_TOKENS_TOMOCHAIN 0
|
||||
|
||||
extern tokenDefinition_t const TOKENS_AKROMA[NUM_TOKENS_AKROMA];
|
||||
extern tokenDefinition_t const TOKENS_ELLAISM[NUM_TOKENS_ELLAISM];
|
||||
@@ -69,5 +70,6 @@ extern tokenDefinition_t const TOKENS_GOCHAIN[NUM_TOKENS_GOCHAIN];
|
||||
extern tokenDefinition_t const TOKENS_MIX[NUM_TOKENS_MIX];
|
||||
extern tokenDefinition_t const TOKENS_REOSC[NUM_TOKENS_REOSC];
|
||||
extern tokenDefinition_t const TOKENS_HPB[NUM_TOKENS_HPB];
|
||||
extern tokenDefinition_t const TOKENS_TOMOCHAIN[NUM_TOKENS_TOMOCHAIN];
|
||||
|
||||
#endif /* _TOKENS_H_ */
|
||||
|
||||
BIN
tomochain.png
Normal file
BIN
tomochain.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7.4 KiB |
Reference in New Issue
Block a user