deploy_lighter_simple_vault
Documentation for eth_defi.lighter.testing.deploy_lighter_simple_vault function.
- deploy_lighter_simple_vault(web3, deployer, asset_manager, owner, lighter_lib)
Deploy
SimpleVaultV0withLighterLiblinked (other libs zeroed).Mirrors the Hypercore test fixture: only the library under test gets a real address, the rest stay
ZERO_ADDRESSfromGUARD_LIBRARIES. The library itself is deployed viadeploy_lighter_lib().- Parameters
web3 (web3.main.Web3) – Web3 connection (Anvil fork).
deployer (Union[eth_typing.evm.HexAddress, str]) – Deployer address (becomes the initial owner before transfer).
asset_manager (Union[eth_typing.evm.HexAddress, str]) – Asset manager address (the allowed guard sender).
owner (Union[eth_typing.evm.HexAddress, str]) – Final guard owner (typically the Safe / governance).
lighter_lib (web3.contract.contract.Contract) – Deployed
LighterLibcontract to link.
- Returns
The deployed
SimpleVaultV0contract.- Return type
web3.contract.contract.Contract