Add support for Mix Blockchain

homepage: https://www.mix-blockchain.org
block explorer: https://blocks.mix-blockchain.org
network statistics : https://stats.mix-blockchain.org
slip0044 index : 76
chain ID: 76
This commit is contained in:
Michael Ira Krufky
2018-10-07 10:14:12 -04:00
committed by GitHub
parent 6ce175041a
commit 843b5ff80c
9 changed files with 18 additions and 3 deletions

View File

@@ -23,7 +23,8 @@ typedef enum chain_kind_e {
CHAIN_KIND_ETHERGEM,
CHAIN_KIND_ATHEIOS,
CHAIN_KIND_GOCHAIN,
CHAIN_KIND_EOSCLASSIC
CHAIN_KIND_EOSCLASSIC,
CHAIN_KIND_MIX
} chain_kind_t;
typedef struct chain_config_s {

View File

@@ -1517,6 +1517,9 @@ tokenDefinition_t* getKnownToken() {
case CHAIN_KIND_EOSCLASSIC:
numTokens = NUM_TOKENS_EOSCLASSIC;
break;
case CHAIN_KIND_MIX:
numTokens = NUM_TOKENS_MIX;
break;
}
for (i=0; i<numTokens; i++) {
switch(chainConfig->kind) {
@@ -1577,6 +1580,9 @@ tokenDefinition_t* getKnownToken() {
case CHAIN_KIND_EOSCLASSIC:
currentToken = PIC(&TOKENS_EOSCLASSIC[i]);
break;
case CHAIN_KIND_MIX:
currentToken = PIC(&TOKENS_MIX[i]);
break;
}
if (os_memcmp(currentToken->address, tmpContent.txContent.destination, 20) == 0) {
return currentToken;

View File

@@ -1137,3 +1137,5 @@ const tokenDefinition_t const TOKENS_ATHEIOS[NUM_TOKENS_ATHEIOS] = {};
const tokenDefinition_t const TOKENS_GOCHAIN[NUM_TOKENS_GOCHAIN] = {};
const tokenDefinition_t const TOKENS_EOSCLASSIC[NUM_TOKENS_EOSCLASSIC] = {};
const tokenDefinition_t const TOKENS_MIX[NUM_TOKENS_MIX] = {};

View File

@@ -42,6 +42,7 @@ typedef struct tokenDefinition_t {
#define NUM_TOKENS_ATHEIOS 0
#define NUM_TOKENS_GOCHAIN 0
#define NUM_TOKENS_EOSCLASSIC 0
#define NUM_TOKENS_MIX 0
extern tokenDefinition_t const TOKENS_AKROMA[NUM_TOKENS_AKROMA];
extern tokenDefinition_t const TOKENS_ELLAISM[NUM_TOKENS_ELLAISM];
@@ -62,3 +63,4 @@ extern tokenDefinition_t const TOKENS_ETHERGEM[NUM_TOKENS_ETHERGEM];
extern tokenDefinition_t const TOKENS_ATHEIOS[NUM_TOKENS_ATHEIOS];
extern tokenDefinition_t const TOKENS_GOCHAIN[NUM_TOKENS_GOCHAIN];
extern tokenDefinition_t const TOKENS_EOSCLASSIC[NUM_TOKENS_EOSCLASSIC];
extern tokenDefinition_t const TOKENS_MIX[NUM_TOKENS_MIX];