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

A token's contract, dual-stored. More...

#include <pos_app.h>

Collaboration diagram for token_t:
[legend]

Public Attributes

char str [SETTINGS_PAYOUT_MAX]
pos_addr_t addr
bool ok
bool checked

Detailed Description

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.

Definition at line 98 of file pos_app.h.

Member Data Documentation

◆ addr

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().

◆ checked

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().

◆ ok

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().

◆ str

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().


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