deploy_lagoon
Documentation for eth_defi.lagoon.deployment.deploy_lagoon function.
- deploy_lagoon(web3, deployer, safe, asset_manager, parameters, owner, gas=2000000, etherscan_api_key=None, use_forge=False, beacon_proxy=True, beacon_address='0x652716FaD571f04D26a3c8fFd9E593F17123Ab20')[source]
Deploy a new Lagoon vault.
Create a new Safe
Create a new Lagoon vault
Set guard policies
Set owership
For Foundry recipe see https://github.com/hopperlabsxyz/lagoon-v0/blob/main/script/deploy_vault.s.sol
- Parameters
deployer (eth_account.signers.local.LocalAccount) – The initial account used to deploy smart contracts
owner (Optional[eth_typing.evm.HexAddress]) –
All transfership is transferred to this user after.
Usually defaults to newly deployed Safe the vault is associated with.
asset_manager (eth_typing.evm.HexAddress) – Able to perform trades, valuations
beacon_address – Vault beacon on base.
use_forge –
Deploy a new vault contract from source with Forge and Etherscan verification.
TODO: Not implemented, contract not yet open source.
web3 (web3.main.Web3) –
safe (safe_eth.safe.safe.Safe) –
parameters (eth_defi.lagoon.deployment.LagoonDeploymentParameters) –
- Returns
Vault contract.
Is a proxy contract.
- Return type
web3.contract.contract.Contract