move src_genericwallet to src
This will avoid an error with glyph.h which is not found when compiling deps. Due to INCLUDE_PATH is looking for *.h but the glyph.h doesn't exist at this moment
This commit is contained in:
44
src/chainConfig.h
Normal file
44
src/chainConfig.h
Normal file
@@ -0,0 +1,44 @@
|
||||
#include "os.h"
|
||||
|
||||
#ifndef CHAIN_CONFIG_H
|
||||
|
||||
#define CHAIN_CONFIG_H
|
||||
|
||||
typedef enum chain_kind_e {
|
||||
CHAIN_KIND_ETHEREUM,
|
||||
CHAIN_KIND_ETHEREUM_CLASSIC,
|
||||
CHAIN_KIND_EXPANSE,
|
||||
CHAIN_KIND_POA,
|
||||
CHAIN_KIND_RSK,
|
||||
CHAIN_KIND_UBIQ,
|
||||
CHAIN_KIND_WANCHAIN,
|
||||
CHAIN_KIND_KUSD,
|
||||
CHAIN_KIND_PIRL,
|
||||
CHAIN_KIND_AKROMA,
|
||||
CHAIN_KIND_MUSICOIN,
|
||||
CHAIN_KIND_CALLISTO,
|
||||
CHAIN_KIND_ETHERSOCIAL,
|
||||
CHAIN_KIND_ELLAISM,
|
||||
CHAIN_KIND_ETHER1,
|
||||
CHAIN_KIND_ETHERGEM,
|
||||
CHAIN_KIND_ATHEIOS,
|
||||
CHAIN_KIND_GOCHAIN,
|
||||
CHAIN_KIND_MIX,
|
||||
CHAIN_KIND_REOSC
|
||||
} chain_kind_t;
|
||||
|
||||
typedef struct chain_config_s {
|
||||
const char* coinName; // ticker
|
||||
uint32_t chainId;
|
||||
chain_kind_t kind;
|
||||
|
||||
#ifdef TARGET_BLUE
|
||||
const char* header_text;
|
||||
unsigned int color_header;
|
||||
unsigned int color_dashboard;
|
||||
#endif // TARGET_BLUE
|
||||
|
||||
} chain_config_t;
|
||||
|
||||
#endif
|
||||
|
||||
2363
src/main.c
Normal file
2363
src/main.c
Normal file
File diff suppressed because it is too large
Load Diff
1175
src/tokens.c
Normal file
1175
src/tokens.c
Normal file
File diff suppressed because it is too large
Load Diff
66
src/tokens.h
Normal file
66
src/tokens.h
Normal file
@@ -0,0 +1,66 @@
|
||||
/*******************************************************************************
|
||||
* Ledger Blue
|
||||
* (c) 2016 Ledger
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
********************************************************************************/
|
||||
|
||||
#include "os.h"
|
||||
|
||||
typedef struct tokenDefinition_t {
|
||||
uint8_t address[20];
|
||||
uint8_t ticker[10];
|
||||
uint8_t decimals;
|
||||
} tokenDefinition_t;
|
||||
|
||||
#define NUM_TOKENS_AKROMA 0
|
||||
#define NUM_TOKENS_ELLAISM 1
|
||||
#define NUM_TOKENS_ETHEREUM 1102
|
||||
#define NUM_TOKENS_ETHEREUM_CLASSIC 4
|
||||
#define NUM_TOKENS_ETHERSOCIAL 0
|
||||
#define NUM_TOKENS_ETHER1 0
|
||||
#define NUM_TOKENS_PIRL 0
|
||||
#define NUM_TOKENS_POA 0
|
||||
#define NUM_TOKENS_RSK 0
|
||||
#define NUM_TOKENS_UBIQ 6
|
||||
#define NUM_TOKENS_EXPANSE 0
|
||||
#define NUM_TOKENS_WANCHAIN 0
|
||||
#define NUM_TOKENS_KUSD 0
|
||||
#define NUM_TOKENS_MUSICOIN 0
|
||||
#define NUM_TOKENS_CALLISTO 0
|
||||
#define NUM_TOKENS_ETHERGEM 0
|
||||
#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];
|
||||
extern tokenDefinition_t const TOKENS_ETHEREUM[NUM_TOKENS_ETHEREUM];
|
||||
extern tokenDefinition_t const TOKENS_ETHEREUM_CLASSIC[NUM_TOKENS_ETHEREUM_CLASSIC];
|
||||
extern tokenDefinition_t const TOKENS_ETHERSOCIAL[NUM_TOKENS_ETHERSOCIAL];
|
||||
extern tokenDefinition_t const TOKENS_ETHER1[NUM_TOKENS_ETHER1];
|
||||
extern tokenDefinition_t const TOKENS_PIRL[NUM_TOKENS_PIRL];
|
||||
extern tokenDefinition_t const TOKENS_POA[NUM_TOKENS_POA];
|
||||
extern tokenDefinition_t const TOKENS_RSK[NUM_TOKENS_RSK];
|
||||
extern tokenDefinition_t const TOKENS_UBIQ[NUM_TOKENS_UBIQ];
|
||||
extern tokenDefinition_t const TOKENS_EXPANSE[NUM_TOKENS_EXPANSE];
|
||||
extern tokenDefinition_t const TOKENS_WANCHAIN[NUM_TOKENS_WANCHAIN];
|
||||
extern tokenDefinition_t const TOKENS_KUSD[NUM_TOKENS_KUSD];
|
||||
extern tokenDefinition_t const TOKENS_MUSICOIN[NUM_TOKENS_MUSICOIN];
|
||||
extern tokenDefinition_t const TOKENS_CALLISTO[NUM_TOKENS_CALLISTO];
|
||||
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];
|
||||
Reference in New Issue
Block a user