adding id4good
This commit is contained in:
committed by
Alexandre Paillier
parent
5cf1e1e8e2
commit
795140015d
BIN
icons/nanos_app_id4good.gif
Normal file
BIN
icons/nanos_app_id4good.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 81 B |
BIN
icons/nanox_app_id4good.gif
Normal file
BIN
icons/nanox_app_id4good.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 78 B |
3
makefile_conf/chain/id4good.mk
Normal file
3
makefile_conf/chain/id4good.mk
Normal file
@@ -0,0 +1,3 @@
|
||||
APP_LOAD_PARAMS += "44'/161803'"
|
||||
DEFINES += CHAINID_UPCASE=\"ID4GOOD\" CHAINID_COINNAME=\"A4G\" CHAIN_KIND=CHAIN_KIND_ID4GOOD CHAIN_ID=846000
|
||||
APPNAME = "ID4Good"
|
||||
@@ -72,7 +72,8 @@ typedef enum chain_kind_e {
|
||||
CHAIN_KIND_METER,
|
||||
CHAIN_KIND_MULTIVAC,
|
||||
CHAIN_KIND_TECRA,
|
||||
CHAIN_KIND_APOTHEMNETWORK
|
||||
CHAIN_KIND_APOTHEMNETWORK,
|
||||
CHAIN_KIND_ID4GOOD
|
||||
} chain_kind_t;
|
||||
|
||||
typedef struct chain_config_s {
|
||||
|
||||
@@ -294,6 +294,9 @@ extraInfo_t *getKnownToken(uint8_t *contractAddress) {
|
||||
case CHAIN_KIND_APOTHEMNETWORK:
|
||||
numTokens = NUM_TOKENS_APOTHEMNETWORK;
|
||||
break;
|
||||
case CHAIN_KIND_ID4GOOD:
|
||||
numTokens = NUM_TOKENS_ID4GOOD;
|
||||
break;
|
||||
}
|
||||
for (i = 0; i < numTokens; i++) {
|
||||
switch (chainConfig->kind) {
|
||||
@@ -447,6 +450,9 @@ extraInfo_t *getKnownToken(uint8_t *contractAddress) {
|
||||
case CHAIN_KIND_APOTHEMNETWORK:
|
||||
currentToken = (tokenDefinition_t *) PIC(&TOKENS_APOTHEMNETWORK[i]);
|
||||
break;
|
||||
case CHAIN_KIND_ID4GOOD:
|
||||
currentToken = (tokenDefinition_t *) PIC(&TOKENS_ID4GOOD[i]);
|
||||
break;
|
||||
}
|
||||
if (memcmp(currentToken->address, tmpContent.txContent.destination, ADDRESS_LENGTH) == 0) {
|
||||
return currentToken;
|
||||
|
||||
Reference in New Issue
Block a user