Ejemplo n.º 1
0
def upgrade_bridge(
        badger: BadgerSystem,
        bridge: BridgeSystem) -> str:
    """
    Upgrades bridge.
    """
    adapterLogic = BadgerBridgeAdapter.deploy({"from": badger.deployer})

    return badger.queue_upgrade(bridge.adapter.address, adapterLogic.address,)
Ejemplo n.º 2
0
def upgrade_bridge(badger: BadgerSystem, bridge: BridgeSystem) -> str:
    '''
    Upgrades bridge.
    '''
    adapterLogic = BadgerBridgeAdapter.deploy({"from": badger.deployer})
    bridge.deploy_curve_token_wrapper()

    return badger.queue_upgrade(
        bridge.adapter.address,
        adapterLogic.address,
    )
Ejemplo n.º 3
0
def upgrade_swap_strategy(
        badger: BadgerSystem,
        strategy: network.contract.ProjectContract,
        SwapStrategy: network.contract.ContractContainer) -> str:
    '''
    Upgrades swap strategy.
    '''
    logic = SwapStrategy.deploy({"from": badger.deployer})
    return badger.queue_upgrade(
        strategy.address,
        logic.address,
    )