src/signer/index.ts
v0.2.1 · 987 B
// Signer sidecar: TypeScript client (health, auth, order, cancel, leverage) and error classification.
// The sidecar itself is `signer/sidecar.py` in the package root (Python, official lighter-sdk).
export {
createSignerClient,
DEFAULT_SIGNER_AUTH_TIMEOUT_MS,
DEFAULT_SIGNER_HEALTH_TIMEOUT_MS,
DEFAULT_SIGNER_STARTUP_POLL_MS,
DEFAULT_SIGNER_STARTUP_WAIT_MS,
DEFAULT_SIGNER_WRITE_TIMEOUT_MS,
type SignerClient,
type SignerClientOptions,
type SignerWriteEvent,
} from './client.js';
export {
ERROR_CODE_BELOW_MIN_BASE_AMOUNT,
ERROR_CODE_FAR_FROM_MARK,
ERROR_CODE_RATE_LIMITED,
extractErrorCode,
interpretSignerError,
isExchangeRateLimitError,
isFarFromMarkError,
type SignerErrorInfo,
type SignerErrorKind,
} from './errors.js';
export {
type CancelOrderRequest,
CROSS_MARGIN_MODE,
ISOLATED_MARGIN_MODE,
type PlaceOrderRequest,
SIGNER_PATHS,
type SignerHealth,
type SignerWriteResult,
type UpdateLeverageRequest,
} from './types.js';