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
sendTxBatchon 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.