credmark.cmf.types.ledger.TokenBalanceTable

class TokenBalanceTable(**kwargs)[source]

Bases: LedgerTable

Token balance ledger data table Column names

Methods

as_

describe

Attributes

ADDRESS

AMOUNT

Raw Amount scaled by token decimals

BLOCK_HASH

BLOCK_NUMBER

BLOCK_TIMESTAMP

COUNTERPARTY_ADDRESS

LOG_INDEX

RAW_AMOUNT

Unscaled raw amount

TOKEN_ADDRESS

TRANSACTION_HASH

TYPE_MAPPER

alias

bigint_cols

colnames

Return the set of column names in the table.

columns

Return the set of column names for the table.

table_key

ADDRESS = 'address'
AMOUNT = 'amount'

Raw Amount scaled by token decimals

BLOCK_HASH = 'block_hash'
BLOCK_NUMBER = 'block_number'
BLOCK_TIMESTAMP = 'block_timestamp'
COUNTERPARTY_ADDRESS = 'counterparty_address'
LOG_INDEX = 'log_index'
RAW_AMOUNT = 'raw_amount'

Unscaled raw amount

TOKEN_ADDRESS = 'token_address'
TRANSACTION_HASH = 'transaction_hash'
property colnames: List[str]

Return the set of column names in the table. They can be used in the query.

property columns: List[str]

Return the set of column names for the table. They will be used in the database.

For contract ledger tables, the set will include all contract-specific columns.