Skip to main content

Module consts

Module consts 

Source
Expand description

Venue identifiers and tuning constants for the Lighter adapter.

Constants§

HEARTBEAT_INTERVAL
Default WebSocket heartbeat interval.
HTTP_TIMEOUT
Default HTTP request timeout.
LIGHTER
Venue name string for Lighter.
LIGHTER_AUTH_TOKEN_MAX_TTL
Maximum auth-token expiry permitted by the venue (8 hours).
LIGHTER_AUTH_TOKEN_REFRESH_LEAD
Default refresh window before an auth token expires.
LIGHTER_ERROR_CODE_INTEGRATOR_NOT_APPROVED
Venue error code for missing integrator approval.
LIGHTER_ERROR_CODE_INVALID_NONCE
Venue error code for an invalid (non-contiguous) transaction nonce.
LIGHTER_ERROR_CODE_TX_RANGE
Venue error-code range for L2 transaction failures.
LIGHTER_INTEGRATOR_APPROVAL_DOCS_URL
Public docs anchor for integrator approval.
LIGHTER_MAINNET_CHAIN_ID
L2 chain id for Lighter mainnet.
LIGHTER_MAX_BATCH_TX
Maximum batch size for sendTxBatch on the WebSocket transport.
LIGHTER_NAUTILUS_INTEGRATOR_ACCOUNT_INDEX
Nautilus integrator account index on Lighter.
LIGHTER_TESTNET_CHAIN_ID
L2 chain id for Lighter testnet.
QUEUE_MAX
Outbound command queue depth before backpressure kicks in.
RECONNECT_BASE_BACKOFF
Base reconnect backoff for the WebSocket client.
RECONNECT_MAX_BACKOFF
Maximum reconnect backoff for the WebSocket client.
SUBSCRIBE_INFLIGHT_MAX
Maximum subscribe messages awaiting venue acknowledgement at once.

Statics§

LIGHTER_VENUE
Lighter venue identifier.