コード例 #1
0
def reclaim_eth(ctx, min_age, password, keystore_file):
    from scenario_player.utils import reclaim_eth

    data_path = Path(ctx.obj['data_path'].name)
    chain_rpc_urls = ctx.obj['chain_rpc_urls']
    account = load_account_obj(keystore_file, password)

    configure_logging_for_subcommand(construct_log_file_name('reclaim-eth', data_path))

    reclaim_eth(min_age_hours=min_age, chain_rpc_urls=chain_rpc_urls, data_path=data_path, account=account)
コード例 #2
0
def reclaim_eth(ctx, min_age, password, password_file, keystore_file):
    from scenario_player.utils import reclaim_eth

    data_path = ctx.obj["data_path"]
    chain_rpc_urls = ctx.obj["chain_rpc_urls"]
    password = get_password(password, password_file)
    account = get_account(keystore_file, password)

    configure_logging_for_subcommand(construct_log_file_name("reclaim-eth", data_path))

    reclaim_eth(
        min_age_hours=min_age, chain_rpc_urls=chain_rpc_urls, data_path=data_path, account=account
    )
コード例 #3
0
def reclaim_eth(ctx, min_age, password, password_file, keystore_file, chain,
                data_path):
    from scenario_player.utils import reclaim_eth

    log.info("start cmd", chain=chain)

    data_path = Path(data_path)
    if not chain:
        chain = f"{DEFAULT_NETWORK}:{DEFAULT_ETH_RPC_ADDRESS}"
    log.info("using chain", chain=chain)

    password = get_password(password, password_file)
    account = get_account(keystore_file, password)

    configure_logging_for_subcommand(
        construct_log_file_name("reclaim-eth", data_path))
    log.info("start reclaim", chain=chain)
    reclaim_eth(min_age_hours=min_age,
                chain_str=chain,
                data_path=data_path,
                account=account)
コード例 #4
0
ファイル: main.py プロジェクト: hackaugusto/raiden
def reclaim_eth(obj, min_age):
    from scenario_player.utils import reclaim_eth

    reclaim_eth(min_age_hours=min_age, **obj)
コード例 #5
0
ファイル: main.py プロジェクト: binaryflesh/raiden
def reclaim_eth(obj, min_age):
    from scenario_player.utils import reclaim_eth

    reclaim_eth(min_age_hours=min_age, **obj)