|
cryptnox-pos 1.0.0
Standalone USDC payment terminal firmware (ESP32 + Cryptnox smart card)
|
A token's contract, dual-stored. More...
#include <pos_app.h>
Public Attributes | |
| char | str [SETTINGS_PAYOUT_MAX] |
| pos_addr_t | addr |
| bool | ok |
| bool | checked |
A token's contract, dual-stored.
The contract decides which asset moves, so it gets the same dual store (§3.2/§7.1) and reconciles as the recipient. One per selection, indexed by pos_chain_t (USDT on Ethereum and Polygon are different deployments). A native coin's slot stays empty.
| pos_addr_t token_t::addr |
20 bytes; Tron without the 0x41
Definition at line 100 of file pos_app.h.
Referenced by app_main(), sign_and_broadcast(), sign_and_broadcast_tron(), token_decimals_ok(), and token_parse().
| bool token_t::checked |
decimals() read and found to be 6
Definition at line 102 of file pos_app.h.
Referenced by token_decimals_ok(), and token_load().
| bool token_t::ok |
false until it parsed twice
Definition at line 101 of file pos_app.h.
Referenced by app_main(), sign_and_broadcast(), sign_and_broadcast_tron(), and token_parse().
| char token_t::str[SETTINGS_PAYOUT_MAX] |
as configured: "0x…" or base58
Definition at line 99 of file pos_app.h.
Referenced by evm_balance_ok(), token_decimals_ok(), token_load(), token_parse(), and ui_refresh_addresses_for().