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,)
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, )
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, )