deploy_lighter_lib
Documentation for eth_defi.lighter.deployment.deploy_lighter_lib function.
- deploy_lighter_lib(web3, deployer)
Deploy the
LighterLibexternal Forge library.The library must be deployed and linked into the guard / module at deployment time, exactly like
GmxLibandHypercoreVaultLib. The Lagoon deployment flow calls this to populatelibrary_addresses["LighterLib"].- Parameters
web3 (web3.main.Web3) – Web3 connection.
deployer (Union[eth_typing.evm.HexAddress, eth_account.signers.local.LocalAccount, eth_defi.hotwallet.HotWallet]) – Deployer account — a plain address (Anvil unlocked), a
LocalAccountor aHotWallet.
- Returns
The deployed
LighterLibcontract.- Return type
web3.contract.contract.Contract