Files
app-ethereum/src/tokens.h

107 lines
4.1 KiB
C
Raw Normal View History

/*******************************************************************************
2019-01-03 17:00:20 +01:00
* Ledger Ethereum App
* (c) 2016-2019 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.
********************************************************************************/
2019-01-03 16:05:21 +01:00
#ifndef _TOKENS_H_
#define _TOKENS_H_
#include <stdint.h>
typedef struct tokenDefinition_t {
2020-06-27 13:24:04 +02:00
#ifdef HAVE_CONTRACT_NAME_IN_DESCRIPTOR
uint8_t contractName[20];
#endif
uint8_t address[20];
2020-06-27 13:24:04 +02:00
uint8_t ticker[12]; // 10 characters + ' \0'
uint8_t decimals;
} tokenDefinition_t;
2020-06-27 13:24:04 +02:00
#ifdef HAVE_TOKENS_EXTRA_LIST
#define NUM_TOKENS_EXTRA 3
extern tokenDefinition_t const TOKENS_EXTRA[NUM_TOKENS_EXTRA];
#endif
2019-02-05 14:50:36 +01:00
#ifdef HAVE_TOKENS_LIST
2018-07-28 09:31:14 -04:00
#define NUM_TOKENS_AKROMA 0
2018-08-01 08:17:51 +09:00
#define NUM_TOKENS_ELLAISM 1
#define NUM_TOKENS_ETHEREUM 1102
#define NUM_TOKENS_ETHEREUM_CLASSIC 4
2018-07-30 09:43:11 +09:00
#define NUM_TOKENS_ETHERSOCIAL 0
2018-08-05 02:19:44 -04:00
#define NUM_TOKENS_ETHER1 0
2018-07-27 20:30:43 -04:00
#define NUM_TOKENS_PIRL 0
2018-07-27 21:02:24 +02:00
#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
2018-07-28 22:52:09 -04:00
#define NUM_TOKENS_MUSICOIN 0
2018-07-30 18:12:20 -04:00
#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
#define NUM_TOKENS_HPB 0
2019-02-06 08:03:49 +00:00
#define NUM_TOKENS_TOMOCHAIN 0
2019-01-31 17:38:12 +01:00
#define NUM_TOKENS_TOBALABA 0
#define NUM_TOKENS_DEXON 0
#define NUM_TOKENS_VOLTA 0
#define NUM_TOKENS_EWC 0
#define NUM_TOKENS_ARTIS_SIGMA1 0
#define NUM_TOKENS_ARTIS_TAU1 0
#define NUM_TOKENS_WEBCHAIN 0
#define NUM_TOKENS_THUNDERCORE 0
2018-07-28 09:31:14 -04:00
extern tokenDefinition_t const TOKENS_AKROMA[NUM_TOKENS_AKROMA];
2018-08-01 08:17:51 +09:00
extern tokenDefinition_t const TOKENS_ELLAISM[NUM_TOKENS_ELLAISM];
2018-07-27 21:02:24 +02:00
extern tokenDefinition_t const TOKENS_ETHEREUM[NUM_TOKENS_ETHEREUM];
extern tokenDefinition_t const TOKENS_ETHEREUM_CLASSIC[NUM_TOKENS_ETHEREUM_CLASSIC];
2018-07-30 09:43:11 +09:00
extern tokenDefinition_t const TOKENS_ETHERSOCIAL[NUM_TOKENS_ETHERSOCIAL];
2018-08-05 02:19:44 -04:00
extern tokenDefinition_t const TOKENS_ETHER1[NUM_TOKENS_ETHER1];
2018-07-27 20:30:43 -04:00
extern tokenDefinition_t const TOKENS_PIRL[NUM_TOKENS_PIRL];
2018-07-27 21:02:24 +02:00
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];
2018-07-28 22:52:09 -04:00
extern tokenDefinition_t const TOKENS_MUSICOIN[NUM_TOKENS_MUSICOIN];
2018-07-30 18:12:20 -04:00
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];
extern tokenDefinition_t const TOKENS_HPB[NUM_TOKENS_HPB];
2019-02-06 08:03:49 +00:00
extern tokenDefinition_t const TOKENS_TOMOCHAIN[NUM_TOKENS_TOMOCHAIN];
2019-01-31 17:38:12 +01:00
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_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];
extern tokenDefinition_t const TOKENS_THUNDERCORE[NUM_TOKENS_THUNDERCORE];
2019-01-03 16:05:21 +01:00
#endif /* HAVE_TOKENS_LIST */
2019-02-05 14:50:36 +01:00
2019-01-03 16:05:21 +01:00
#endif /* _TOKENS_H_ */