cryptnox-pos 1.0.0
Standalone USDC payment terminal firmware (ESP32 + Cryptnox smart card)
Loading...
Searching...
No Matches
pos_asset_t Struct Reference

One selectable asset. More...

#include <assets.h>

Public Attributes

pos_chain_t chain
const char * ticker
const char * standard
const char * caption
pos_net_t net
bool native
unsigned decimals
pos_coin_t coin

Detailed Description

One selectable asset.

Definition at line 66 of file assets.h.

Member Data Documentation

◆ caption

const char* pos_asset_t::caption

Caption over the contract address, on the confirm screen and the Tx tab. A network's own coin has no contract to show, so its row names the asset instead. Spelled out per asset rather than derived from the ticker: the Tron rows say "Token contract" where the EVM ones name the token, and that is a wording decision, not a rule.

Definition at line 77 of file assets.h.

Referenced by asset_caption().

◆ chain

pos_chain_t pos_asset_t::chain

Definition at line 67 of file assets.h.

Referenced by open_coin_picker().

◆ coin

pos_coin_t pos_asset_t::coin

Definition at line 81 of file assets.h.

Referenced by coin_icon().

◆ decimals

unsigned pos_asset_t::decimals

on-chain: 18 for ETH/POL, 6 for TRX and tokens

Definition at line 80 of file assets.h.

◆ native

bool pos_asset_t::native

the network's own coin, not a token

Definition at line 79 of file assets.h.

Referenced by active_token(), make_asset_badge(), and pos_chain_is_native_evm().

◆ net

pos_net_t pos_asset_t::net

◆ standard

const char* pos_asset_t::standard

"ERC-20" — the coin picker's row subtitle.

Definition at line 69 of file assets.h.

Referenced by open_coin_picker().

◆ ticker

const char* pos_asset_t::ticker

"USDC" — the selector pill and the amount row.

Definition at line 68 of file assets.h.

Referenced by asset_name(), open_coin_picker(), and token_load().


The documentation for this struct was generated from the following file: