Skip to content

Commit

Permalink
renaming EWC to EWT (LedgerHQ#397)
Browse files Browse the repository at this point in the history
* correcting ticker

* modifying conf file

* updating main.c

* updating chainConfig.h

* Removed last bits of EWC

---------

Co-authored-by: Alexandre Paillier <[email protected]>
  • Loading branch information
tjulien-ledger and apaillier-ledger authored Feb 3, 2023
1 parent f5b3210 commit 160fed7
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
3 changes: 3 additions & 0 deletions makefile_conf/chain/energywebchain.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
APP_LOAD_PARAMS += --path "44'/246'" --path "44'/60'"
DEFINES += CHAINID_UPCASE=\"ENERGYWEBCHAIN\" CHAINID_COINNAME=\"EWT\" CHAIN_KIND=CHAIN_KIND_ENERGYWEBCHAIN CHAIN_ID=246
APPNAME = "EnergyWebChain"
3 changes: 0 additions & 3 deletions makefile_conf/chain/ewc.mk

This file was deleted.

2 changes: 1 addition & 1 deletion src/chainConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ typedef enum chain_kind_e {
CHAIN_KIND_TOBALABA,
CHAIN_KIND_DEXON,
CHAIN_KIND_VOLTA,
CHAIN_KIND_EWC,
CHAIN_KIND_ENERGYWEBCHAIN,
CHAIN_KIND_ARTIS_SIGMA1,
CHAIN_KIND_ARTIS_TAU1,
CHAIN_KIND_WEBCHAIN,
Expand Down
8 changes: 4 additions & 4 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,8 @@ extraInfo_t *getKnownToken(uint8_t *contractAddress) {
case CHAIN_KIND_VOLTA:
numTokens = NUM_TOKENS_VOLTA;
break;
case CHAIN_KIND_EWC:
numTokens = NUM_TOKENS_EWC;
case CHAIN_KIND_ENERGYWEBCHAIN:
numTokens = NUM_TOKENS_ENERGYWEBCHAIN;
break;
case CHAIN_KIND_WEBCHAIN:
numTokens = NUM_TOKENS_WEBCHAIN;
Expand Down Expand Up @@ -384,8 +384,8 @@ extraInfo_t *getKnownToken(uint8_t *contractAddress) {
case CHAIN_KIND_VOLTA:
currentToken = (tokenDefinition_t *) PIC(&TOKENS_VOLTA[i]);
break;
case CHAIN_KIND_EWC:
currentToken = (tokenDefinition_t *) PIC(&TOKENS_EWC[i]);
case CHAIN_KIND_ENERGYWEBCHAIN:
currentToken = (tokenDefinition_t *) PIC(&TOKENS_ENERGYWEBCHAIN[i]);
break;
case CHAIN_KIND_WEBCHAIN:
currentToken = (tokenDefinition_t *) PIC(&TOKENS_WEBCHAIN[i]);
Expand Down
2 changes: 1 addition & 1 deletion src/tokens.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ const tokenDefinition_t const TOKENS_DEXON[NUM_TOKENS_DEXON] = {};

const tokenDefinition_t const TOKENS_VOLTA[NUM_TOKENS_VOLTA] = {};

const tokenDefinition_t const TOKENS_EWC[NUM_TOKENS_EWC] = {};
const tokenDefinition_t const TOKENS_ENERGYWEBCHAIN[NUM_TOKENS_ENERGYWEBCHAIN] = {};

const tokenDefinition_t const TOKENS_ARTIS_SIGMA1[NUM_TOKENS_ARTIS_SIGMA1] = {};

Expand Down
4 changes: 2 additions & 2 deletions src/tokens.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ static const uint8_t LEDGER_SIGNATURE_PUBLIC_KEY[] = {
#define NUM_TOKENS_TOBALABA 0
#define NUM_TOKENS_DEXON 0
#define NUM_TOKENS_VOLTA 0
#define NUM_TOKENS_EWC 0
#define NUM_TOKENS_ENERGYWEBCHAIN 0
#define NUM_TOKENS_ARTIS_SIGMA1 0
#define NUM_TOKENS_ARTIS_TAU1 0
#define NUM_TOKENS_WEBCHAIN 0
Expand Down Expand Up @@ -151,7 +151,7 @@ extern tokenDefinition_t const TOKENS_TOMOCHAIN[NUM_TOKENS_TOMOCHAIN];
extern tokenDefinition_t const TOKENS_TOBALABA[NUM_TOKENS_TOBALABA];
extern tokenDefinition_t const TOKENS_DEXON[NUM_TOKENS_DEXON];
extern tokenDefinition_t const TOKENS_VOLTA[NUM_TOKENS_VOLTA];
extern tokenDefinition_t const TOKENS_EWC[NUM_TOKENS_EWC];
extern tokenDefinition_t const TOKENS_ENERGYWEBCHAIN[NUM_TOKENS_ENERGYWEBCHAIN];
extern tokenDefinition_t const TOKENS_ARTIS_SIGMA1[NUM_TOKENS_ARTIS_SIGMA1];
extern tokenDefinition_t const TOKENS_ARTIS_TAU1[NUM_TOKENS_ARTIS_TAU1];
extern tokenDefinition_t const TOKENS_WEBCHAIN[NUM_TOKENS_WEBCHAIN];
Expand Down

0 comments on commit 160fed7

Please sign in to comment.