tokfetch/cli/main.py
def cap_table(config: BoardCommmadConfiguration, token_address, identity_file, order_by, order_direction, include_empty,
              max_entries, accuracy):
    """Print out token holder cap table.

    The token holder data must have been scanned earlier using token-scan command.

    You can supply optional CSV file that contains Ethereum address mappings to individual token holder names.
    """

    assert is_ethereum_network(config.network)

    logger = config.logger

    from tokfetch.generic.captable import generate_cap_table, print_cap_table
    from tokfetch.identityprovider import read_csv, NullIdentityProvider, CSVIdentityProvider
    from tokfetch.models.implementation import TokenScanStatus, TokenHolderAccount

    dbsession = config.dbsession

    if identity_file:
        entries = read_csv(logger, identity_file)
        provider = CSVIdentityProvider(entries)
    else:
        provider = NullIdentityProvider()

    cap_table = generate_cap_table(logger,
                                   dbsession,
                                   token_address=token_address,
                                   identity_provider=provider,
                                   order_by=order_by,
                                   order_direction=order_direction,
                                   include_empty=include_empty,
                                   TokenScanStatus=TokenScanStatus,
                                   TokenHolderAccount=TokenHolderAccount)

    print_cap_table(cap_table, max_entries, accuracy)
Print out token holder cap table.

    The token holder data must have been scanned earlier using token-scan command.

    You can supply optional CSV file that contains Ethereum address mappings to individual token holder names.
    
Print out token holder cap table.
The token holder data must have been scanned earlier using token-scan command.

You can supply optional CSV file that contains Ethereum address mappings to individual token holder names.
Print out token holder cap table . The token holder data must have been scanned earlier using token - scan command . You can supply optional CSV file that contains Ethereum address mappings to individual token holder names .
def cap_table(config: BoardCommmadConfiguration, token_address, identity_file, order_by, order_direction, include_empty,
              max_entries, accuracy):
    assert is_ethereum_network(config.network)
    logger = config.logger
    from tokfetch.generic.captable import generate_cap_table, print_cap_table
    from tokfetch.identityprovider import read_csv, NullIdentityProvider, CSVIdentityProvider
    from tokfetch.models.implementation import TokenScanStatus, TokenHolderAccount
    dbsession = config.dbsession
    if identity_file:
        entries = read_csv(logger, identity_file)
        provider = CSVIdentityProvider(entries)
    else:
        provider = NullIdentityProvider()
    cap_table = generate_cap_table(logger,
                                   dbsession,
                                   token_address=token_address,
                                   identity_provider=provider,
                                   order_by=order_by,
                                   order_direction=order_direction,
                                   include_empty=include_empty,
                                   TokenScanStatus=TokenScanStatus,
                                   TokenHolderAccount=TokenHolderAccount)
    print_cap_table(cap_table, max_entries, accuracy)
def cap_table ( config : BoardCommmadConfiguration , token_address , identity_file , order_by , order_direction , include_empty , max_entries , accuracy ) : assert is_ethereum_network ( config . network ) logger = config . logger from tokfetch . generic . captable import generate_cap_table , print_cap_table from tokfetch . identityprovider import read_csv , NullIdentityProvider , CSVIdentityProvider from tokfetch . models . implementation import TokenScanStatus , TokenHolderAccount dbsession = config . dbsession if identity_file : entries = read_csv ( logger , identity_file ) provider = CSVIdentityProvider ( entries ) else : provider = NullIdentityProvider ( ) cap_table = generate_cap_table ( logger , dbsession , token_address = token_address , identity_provider = provider , order_by = order_by , order_direction = order_direction , include_empty = include_empty , TokenScanStatus = TokenScanStatus , TokenHolderAccount = TokenHolderAccount ) print_cap_table ( cap_table , max_entries , accuracy )
Print out token holder cap table.
Print out token holder cap table .
"""Print out token holder cap table.

    The token holder data must have been scanned earlier using token-scan command.

    You can supply optional CSV file that contains Ethereum address mappings to individual token holder names.
    """
config
BoardCommmadConfiguration
token_address
identity_file
order_by
order_direction
include_empty
max_entries
accuracy