2018-07-30 15:40:07 +00:00
|
|
|
// This file is automatically generated from ethereum_tokens.h.mako
|
|
|
|
// DO NOT EDIT
|
|
|
|
|
|
|
|
#ifndef __ETHEREUM_TOKENS_H__
|
|
|
|
#define __ETHEREUM_TOKENS_H__
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
<% erc20_list = list(supported_on("trezor1", erc20)) %>\
|
|
|
|
#define TOKENS_COUNT ${len(erc20_list)}
|
|
|
|
|
|
|
|
typedef struct {
|
2021-08-31 09:29:30 +00:00
|
|
|
uint64_t chain_id;
|
2019-02-19 17:01:10 +00:00
|
|
|
const char * const address;
|
|
|
|
const char * const ticker;
|
|
|
|
int decimals;
|
2018-07-30 15:40:07 +00:00
|
|
|
} TokenType;
|
|
|
|
|
|
|
|
extern const TokenType tokens[TOKENS_COUNT];
|
|
|
|
|
|
|
|
extern const TokenType *UnknownToken;
|
|
|
|
|
2021-08-31 09:29:30 +00:00
|
|
|
const TokenType *tokenByChainAddress(uint64_t chain_id, const uint8_t *address);
|
2018-07-30 15:40:07 +00:00
|
|
|
|
|
|
|
#endif
|