LighterAccountSetup

Documentation for eth_defi.lagoon.deployment.LighterAccountSetup Python class.

class LighterAccountSetup

Bases: object

Registered Lighter account details created by Lagoon deployment.

The private key is present only on a successful in-memory deployment or a deliberately secret-bearing report. Redacted report hydration sets it to None.

Attributes summary

account_index

Lighter account owned by the deployed Safe.

api_key_index

Registered Lighter API-key slot.

private_key

Private key for downstream trading, never included in repr().

public_key

Registered 40-byte Lighter public key.

activation_amount

Fixed Lagoon-accounted amount deposited to activate Lighter.

deposit_tx_hash

Lighter L1 deposit transaction hash.

change_pubkey_tx_hash

Safe changePubKey transaction hash.

observed_collateral

Collateral observed by the Lighter public API after activation.

Methods summary

__init__(account_index, api_key_index, ...)

account_index: int

Lighter account owned by the deployed Safe.

api_key_index: int

Registered Lighter API-key slot.

private_key: Optional[str]

Private key for downstream trading, never included in repr().

public_key: str

Registered 40-byte Lighter public key.

activation_amount: decimal.Decimal

Fixed Lagoon-accounted amount deposited to activate Lighter.

deposit_tx_hash: str

Lighter L1 deposit transaction hash.

change_pubkey_tx_hash: str

Safe changePubKey transaction hash.

observed_collateral: decimal.Decimal

Collateral observed by the Lighter public API after activation.

__init__(account_index, api_key_index, private_key, public_key, activation_amount, deposit_tx_hash, change_pubkey_tx_hash, observed_collateral)
Parameters
Return type

None