LighterDeployment
Documentation for eth_defi.lighter.deployment.LighterDeployment Python class.
- class LighterDeployment
Bases:
objectLighter L1 deployment configuration for guard whitelisting.
Note
USDC-only. This integration currently whitelists a single Lighter deposit asset — USDC — whose on-chain asset index is read from
ZkLighter.USDC_ASSET_INDEX()at whitelist time. Multiple deposit assets / asset indexes are not yet supported (unlike Hypercore, which whitelists multiple vaults via a single multicall). Adding more assets would require a multi-assetwhitelistLighter(or awhitelistLighterAssetIndexhelper) plus multicall batching.- Variables
zk_lighter – The
ZkLighterL1 contract (proxy) address. Holds user deposits.usdc – The USDC token address used as the (single) Lighter deposit asset.
Attributes summary
zk_lighterusdcMethods summary
__init__(zk_lighter, usdc)Create the canonical Ethereum mainnet Lighter deployment.
- __init__(zk_lighter, usdc)
- Parameters
zk_lighter (eth_typing.evm.HexAddress) –
usdc (eth_typing.evm.HexAddress) –
- Return type
None
- classmethod create_ethereum()
Create the canonical Ethereum mainnet Lighter deployment.
- Return type