LighterAccountSetup
Documentation for eth_defi.lagoon.deployment.LighterAccountSetup Python class.
- class LighterAccountSetup
Bases:
objectRegistered 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_indexLighter account owned by the deployed Safe.
api_key_indexRegistered Lighter API-key slot.
private_keyPrivate key for downstream trading, never included in
repr().public_keyRegistered 40-byte Lighter public key.
activation_amountFixed Lagoon-accounted amount deposited to activate Lighter.
deposit_tx_hashLighter L1 deposit transaction hash.
change_pubkey_tx_hashSafe
changePubKeytransaction hash.observed_collateralCollateral 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
changePubKeytransaction 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
account_index (int) –
api_key_index (int) –
public_key (str) –
activation_amount (decimal.Decimal) –
deposit_tx_hash (str) –
change_pubkey_tx_hash (str) –
observed_collateral (decimal.Decimal) –
- Return type
None