deploy_fresh_lagoon_protocol

Documentation for eth_defi.erc_4626.vault_protocol.lagoon.deployment.deploy_fresh_lagoon_protocol function.

deploy_fresh_lagoon_protocol(web3, deployer, safe, broadcast_func, etherscan_api_key=None, verifier=None, verifier_url=None, forge_sync_delay=4.0, cache_dir=None, deploy_retries=1)

Deploy a fresh Lagoon implementation from the scratch.

  • Fee registry contract

  • Vault implementation

  • Beacon proxy factory contract

Parameters
  • cache_dir (Optional[pathlib.Path]) – Isolated directory for forge cache and output artifacts. Allows concurrent deployments from the same source tree.

  • web3 (web3.main.Web3) –

  • deployer (eth_defi.hotwallet.HotWallet) –

  • safe (safe_eth.safe.safe.Safe) –

  • broadcast_func (Callable) –

  • etherscan_api_key (str) –

  • verifier (Optional[Literal['etherscan', 'blockscout', 'sourcify', 'oklink']]) –

  • verifier_url (Optional[str]) –

  • deploy_retries (int) –

Return type

web3.contract.contract.Contract