LagoonAutomatedDeployment

Documentation for eth_defi.erc_4626.vault_protocol.lagoon.deployment.LagoonAutomatedDeployment Python class.

class LagoonAutomatedDeployment

Bases: object

Capture information of the lagoon automated deployment.

  • Have the deployment report for the users for diagnostics

Attributes summary

chain_id

vault

trading_strategy_module

asset_managers

valuation_manager

multisig_owners

deployer

block_number

parameters

vault_abi

safe_address

old_trading_strategy_module

beacon_proxy_factory

gas_used

safe_salt_nonce

whitelisted_items

asset_manager

Get the primary asset manager.

is_satellite

Whether this deployment is a satellite chain (Safe + guard only, no vault).

safe

Methods summary

__init__(chain_id, vault, ...[, ...])

as_json_friendly_dict()

Get JSON-serialisable deployment data.

format_whitelisted_items([indent])

Format whitelisted items as a human-readable string.

from_json_friendly_dict(web3, data)

Recreate deployment information from JSON data.

get_deployment_data()

Get JSON data describing the deployment.

is_asset_manager(address)

pformat()

Return pretty print of deployment info.

__init__(chain_id, vault, trading_strategy_module, asset_managers, valuation_manager, multisig_owners, deployer, block_number, parameters, vault_abi, safe_address=None, old_trading_strategy_module=None, beacon_proxy_factory=None, gas_used=None, safe_salt_nonce=None, whitelisted_items=())
Parameters
Return type

None

as_json_friendly_dict()

Get JSON-serialisable deployment data.

LagoonAutomatedDeployment contains live Web3 contract and vault objects that cannot be written to JSON directly. This method captures the deployment as plain JSON values, keeping enough addresses and parameters to reconstruct the deployment object with from_json_friendly_dict().

Returns

JSON-serialisable Lagoon deployment information.

Return type

dict[str, Any]

property asset_manager: eth_typing.evm.HexAddress

Get the primary asset manager.

Kept for backwards compatibility with single-key deployments.

format_whitelisted_items(indent='    ')

Format whitelisted items as a human-readable string.

Parameters

indent (str) –

Return type

str

classmethod from_json_friendly_dict(web3, data)

Recreate deployment information from JSON data.

This recreates the live Web3 contract and vault reader objects from addresses stored by as_json_friendly_dict(). The JSON payload does not contain private keys or signed transactions.

Parameters
Returns

Hydrated Lagoon deployment information.

Return type

eth_defi.erc_4626.vault_protocol.lagoon.deployment.LagoonAutomatedDeployment

get_deployment_data()

Get JSON data describing the deployment.

Store all addresses etc.

Return type

dict

property is_satellite: bool

Whether this deployment is a satellite chain (Safe + guard only, no vault).

pformat()

Return pretty print of deployment info.

Return type

str