示例#1
0
def accounts(general_config, staker_options, config_file):
    """
    Show ETH and NU balances for stakeholder's accounts.
    """
    emitter = _setup_emitter(general_config)
    STAKEHOLDER = staker_options.create_character(emitter, config_file)
    painting.paint_accounts(emitter=emitter, balances=STAKEHOLDER.wallet.balances, registry=STAKEHOLDER.registry)
示例#2
0
def accounts(
        click_config,

        # API Options
        poa,
        light,
        registry_filepath,
        config_file,
        provider_uri,
        staking_address):
    """
    Show ETH and NU balances for stakeholder's accounts.
    """

    ### Setup ###
    emitter = _setup_emitter(click_config)

    STAKEHOLDER, blockchain = _create_stakeholder(config_file,
                                                  provider_uri,
                                                  poa,
                                                  light,
                                                  registry_filepath,
                                                  staking_address,
                                                  beneficiary_address=None,
                                                  allocation_filepath=None)
    #############

    painting.paint_accounts(emitter=emitter,
                            balances=STAKEHOLDER.wallet.balances)