credmark.cmf.types.ledger.ContractTable

class ContractTable(**kwargs)[source]

Bases: LedgerTable

Contracts ledger data table Column names

Methods

as_

describe

Attributes

ADDRESS

BLOCK_HASH

BLOCK_NUMBER

BLOCK_TIMESTAMP

BYTECODE

IS_ERC20

IS_ERC721

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'
BLOCK_HASH = 'block_hash'
BLOCK_NUMBER = 'block_number'
BLOCK_TIMESTAMP = 'block_timestamp'
BYTECODE = 'bytecode'
IS_ERC20 = 'is_erc20'
IS_ERC721 = 'is_erc721'
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.