Oasys (#413)
* correcting ticker * modifying conf file * updating main.c * updating chainConfig.h * Removed last bits of EWC * correcting arbitrum * adding oasys conf file * adding oasys icons * remaining changes for oasys * removing trailing space --------- Co-authored-by: Alexandre Paillier <alexandre.paillier@ledger.fr>
This commit is contained in:
@@ -73,7 +73,8 @@ typedef enum chain_kind_e {
|
||||
CHAIN_KIND_MULTIVAC,
|
||||
CHAIN_KIND_TECRA,
|
||||
CHAIN_KIND_APOTHEMNETWORK,
|
||||
CHAIN_KIND_ID4GOOD
|
||||
CHAIN_KIND_ID4GOOD,
|
||||
CHAIN_KIND_OASYS
|
||||
} chain_kind_t;
|
||||
|
||||
typedef struct chain_config_s {
|
||||
|
||||
@@ -297,6 +297,9 @@ extraInfo_t *getKnownToken(uint8_t *contractAddress) {
|
||||
case CHAIN_KIND_ID4GOOD:
|
||||
numTokens = NUM_TOKENS_ID4GOOD;
|
||||
break;
|
||||
case CHAIN_KIND_OASYS:
|
||||
numTokens = NUM_TOKENS_OASYS;
|
||||
break;
|
||||
}
|
||||
for (i = 0; i < numTokens; i++) {
|
||||
switch (chainConfig->kind) {
|
||||
@@ -453,6 +456,9 @@ extraInfo_t *getKnownToken(uint8_t *contractAddress) {
|
||||
case CHAIN_KIND_ID4GOOD:
|
||||
currentToken = (tokenDefinition_t *) PIC(&TOKENS_ID4GOOD[i]);
|
||||
break;
|
||||
case CHAIN_KIND_OASYS:
|
||||
currentToken = (tokenDefinition_t *) PIC(&TOKENS_OASYS[i]);
|
||||
break;
|
||||
}
|
||||
if (memcmp(currentToken->address, tmpContent.txContent.destination, ADDRESS_LENGTH) == 0) {
|
||||
return currentToken;
|
||||
|
||||
@@ -222,4 +222,6 @@ const tokenDefinition_t const TOKENS_TECRA[NUM_TOKENS_TECRA] = {};
|
||||
|
||||
const tokenDefinition_t const TOKENS_APOTHEMNETWORK[NUM_TOKENS_APOTHEMNETWORK] = {};
|
||||
|
||||
const tokenDefinition_t const TOKENS_OASYS[NUM_TOKENS_OASYS] = {};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -125,6 +125,7 @@ static const uint8_t LEDGER_SIGNATURE_PUBLIC_KEY[] = {
|
||||
#define NUM_TOKENS_MULTIVAC 0
|
||||
#define NUM_TOKENS_TECRA 0
|
||||
#define NUM_TOKENS_APOTHEMNETWORK 0
|
||||
#define NUM_TOKENS_OASYS 0
|
||||
|
||||
extern tokenDefinition_t const TOKENS_AKROMA[NUM_TOKENS_AKROMA];
|
||||
extern tokenDefinition_t const TOKENS_ELLAISM[NUM_TOKENS_ELLAISM];
|
||||
@@ -175,6 +176,7 @@ extern tokenDefinition_t const TOKENS_METER[NUM_TOKENS_METER];
|
||||
extern tokenDefinition_t const TOKENS_MULTIVAC[NUM_TOKENS_MULTIVAC];
|
||||
extern tokenDefinition_t const TOKENS_TECRA[NUM_TOKENS_TECRA];
|
||||
extern tokenDefinition_t const TOKENS_APOTHEMNETWORK[NUM_TOKENS_APOTHEMNETWORK];
|
||||
extern tokenDefinition_t const TOKENS_OASYS[NUM_TOKENS_OASYS];
|
||||
|
||||
#endif /* HAVE_TOKENS_LIST */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user