deploy_lighter_lib

Documentation for eth_defi.lighter.deployment.deploy_lighter_lib function.

deploy_lighter_lib(web3, deployer)

Deploy the LighterLib external Forge library.

The library must be deployed and linked into the guard / module at deployment time, exactly like GmxLib and HypercoreVaultLib. The Lagoon deployment flow calls this to populate library_addresses["LighterLib"].

Parameters
Returns

The deployed LighterLib contract.

Return type

web3.contract.contract.Contract