Add support for REOSC Ecosystem

homepage           : https://www.reosc.io
    block explorer     : https://explorer.reosc.io
    network statistics : https://stats.reosc.io
    slip0044 index     : 2894
    chain ID           : 2894
This commit is contained in:
Michael Ira Krufky
2018-12-10 08:46:32 -05:00
committed by GitHub
parent 3fc6df5c07
commit 16dec940c9
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_MIX
CHAIN_KIND_MIX,
CHAIN_KIND_REOSC
} chain_kind_t;
typedef struct chain_config_s {

View File

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

View File

@@ -1171,3 +1171,5 @@ const tokenDefinition_t const TOKENS_ATHEIOS[NUM_TOKENS_ATHEIOS] = {};
const tokenDefinition_t const TOKENS_GOCHAIN[NUM_TOKENS_GOCHAIN] = {};
const tokenDefinition_t const TOKENS_MIX[NUM_TOKENS_MIX] = {};
const tokenDefinition_t const TOKENS_REOSC[NUM_TOKENS_REOSC] = {};

View File

@@ -42,6 +42,7 @@ typedef struct tokenDefinition_t {
#define NUM_TOKENS_ATHEIOS 0
#define NUM_TOKENS_GOCHAIN 0
#define NUM_TOKENS_MIX 0
#define NUM_TOKENS_REOSC 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_MIX[NUM_TOKENS_MIX];
extern tokenDefinition_t const TOKENS_REOSC[NUM_TOKENS_REOSC];