Ejemplo n.º 1
0
def deploy_badger_minimal(deployer):
    badger = BadgerSystem(badger_config, None, deployer, deployer, deployer)

    badger.token.transfer(deployer, badger_total_supply,
                          {"from": badger_config.dao.initialOwner})
    badger.deploy_sett_core_logic()
    badger.deploy_logic("RewardsEscrow", RewardsEscrow)
    badger.deploy_logic("BadgerTree", BadgerTree)
    badger.deploy_rewards_escrow()
    badger.deploy_badger_tree()

    return badger
Ejemplo n.º 2
0
def deploy_badger_minimal(deployer, keeper=None, guardian=None):

    if not keeper:
        keeper = deployer
    if not guardian:
        guardian = deployer
    badger = BadgerSystem(badger_config, None, deployer, keeper, guardian)

    badger.deploy_sett_core_logic()
    badger.deploy_logic("RewardsEscrow", RewardsEscrow)
    badger.deploy_logic("BadgerTree", BadgerTree)
    badger.deploy_rewards_escrow()
    badger.deploy_badger_tree()

    return badger
Ejemplo n.º 3
0
def queue_upgrade_crv_sett(badger: BadgerSystem, settID: str) -> str:
    badger.deploy_logic("SettV1", SettV1)
    logic = badger.logic["SettV1"]
    return badger.queue_upgrade_sett(settID, logic)