credmark.cmf.types.ledger_contract.ContractEventsTable

class ContractEventsTable(**kwargs)[source]

Bases: LedgerTable

Contract events ledger data table Column names common to all events Event-specific columns are added from ABI.

Methods

as_

describe

Attributes

BLOCK_NUMBER

BLOCK_TIMESTAMP

CONTRACT_ADDRESS

LOG_INDEX

SIGNATURE

TXN_HASH

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

BLOCK_NUMBER = 'block_number'
BLOCK_TIMESTAMP = 'block_timestamp'
CONTRACT_ADDRESS = 'contract_address'
LOG_INDEX = 'log_index'
TXN_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.