Beispiel #1
0
def main():
    console.print("[white]===== Checking Parameters for rebase =====[/white]")
    badger = connect_badger(load_deployer=True)

    console.print("=== Rebase (Eternal) ===")
    console.print("Interval between runs: {} minutes".format(to_minutes(60)))

    run_persistent(rebase, (badger, badger.deployer), run_interval=60)
Beispiel #2
0
def main():
    badger = connect_badger(load_deployer=True, load_keeper=True)
    skip = keeper_config.get_active_chain_skipped_setts("earn")
    run_interval = keeper_config.get_active_chain_run_interval("earn")

    console.print("=== Earn (Eternal) ===")
    console.print("All Setts on chain", badger.getAllSettIds())
    console.print("Setts to skip", skip)
    console.print("Interval between runs: {} minutes".format(
        to_minutes(run_interval)))

    run_persistent(earn_all, (badger, skip), run_interval=run_interval)
Beispiel #3
0
def main():
    badger = connect_badger(load_keeper=True)

    if rpc.is_active():
        """
        Test: Load up testing accounts with ETH
        """
        accounts[0].transfer(badger.deployer, Wei("5 ether"))
        accounts[0].transfer(badger.keeper, Wei("5 ether"))
        accounts[0].transfer(badger.guardian, Wei("5 ether"))

    skip = keeper_config.get_active_chain_skipped_setts("harvest")
    run_interval = keeper_config.get_active_chain_run_interval("harvest")

    console.print("=== Harvest (Eternal) ===")
    console.print("All Setts on chain", badger.getAllSettIds())
    console.print("Setts to skip", skip)
    console.print("Interval between runs: {} minutes".format(to_minutes(run_interval)))

    run_persistent(harvest_all, [badger, skip], run_interval=run_interval)