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:
BIN
icons/nanos_app_oasys.gif
Normal file
BIN
icons/nanos_app_oasys.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 107 B |
BIN
icons/nanox_app_oasys.gif
Normal file
BIN
icons/nanox_app_oasys.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 104 B |
3
makefile_conf/chain/oasys.mk
Normal file
3
makefile_conf/chain/oasys.mk
Normal file
@@ -0,0 +1,3 @@
|
||||
APP_LOAD_PARAMS += --path "44'/685'" --path "44'/60'"
|
||||
DEFINES += CHAINID_UPCASE=\"OASYS\" CHAINID_COINNAME=\"OAS\" CHAIN_KIND=CHAIN_KIND_OASYS CHAIN_ID=248
|
||||
APPNAME = "Oasys"
|
||||
@@ -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 */
|
||||
|
||||
|
||||
@@ -61,7 +61,8 @@ static const network_info_t NETWORK_MAPPING[] = {
|
||||
{.chain_id = 57, .name = "Syscoin", .ticker = "SYS"},
|
||||
{.chain_id = 106, .name = "Velas EVM", .ticker = "VLX"},
|
||||
{.chain_id = 288, .name = "Boba Network", .ticker = "ETH"},
|
||||
{.chain_id = 39797, .name = "Energi", .ticker = "NRG"}};
|
||||
{.chain_id = 39797, .name = "Energi", .ticker = "NRG"},
|
||||
{.chain_id = 248, .name = "Oasys", .ticker = "OAS"}};
|
||||
|
||||
uint64_t get_chain_id(void) {
|
||||
uint64_t chain_id = 0;
|
||||
|
||||
Reference in New Issue
Block a user