mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-29 17:48:10 +00:00
f051225730
* Changes from original PR * Now that we are rejecting chain_ids of 0, we need to have the tests set the chain_ids to at least 1. * Ran 'make gen' and uploaded changed files. * Ran make style_check and fixed reported errors * Added changelog files * Reverted changes concerning chain_id 0 being rejected. * Adds tests for MAX_CHAIN_ID and MAX_CHAIN_ID+1. Also reverts MAX_CHAIN_ID to the previous value. * Added missing whitespace around arithmetic operator. Co-authored-by: Michael Hatton <michaelhatton@Michaels-Mini.fios-router.home>
26 lines
561 B
Mako
26 lines
561 B
Mako
// 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 {
|
|
uint64_t chain_id;
|
|
const char * const address;
|
|
const char * const ticker;
|
|
int decimals;
|
|
} TokenType;
|
|
|
|
extern const TokenType tokens[TOKENS_COUNT];
|
|
|
|
extern const TokenType *UnknownToken;
|
|
|
|
const TokenType *tokenByChainAddress(uint64_t chain_id, const uint8_t *address);
|
|
|
|
#endif
|
|
|