LighterDeployment

Documentation for eth_defi.lighter.deployment.LighterDeployment Python class.

class LighterDeployment

Bases: object

Lighter 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-asset whitelistLighter (or a whitelistLighterAssetIndex helper) plus multicall batching.

Variables
  • zk_lighter – The ZkLighter L1 contract (proxy) address. Holds user deposits.

  • usdc – The USDC token address used as the (single) Lighter deposit asset.

Attributes summary

zk_lighter

usdc

Methods summary

__init__(zk_lighter, usdc)

create_ethereum()

Create the canonical Ethereum mainnet Lighter deployment.

__init__(zk_lighter, usdc)
Parameters
Return type

None

classmethod create_ethereum()

Create the canonical Ethereum mainnet Lighter deployment.

Return type

eth_defi.lighter.deployment.LighterDeployment