SPB Git

Repository Public

index.ts 1.4 KB 16 lines typescript

1// Controlled live trading — the part shared by the isolated signer and the API (entry point `@spw/derivatives/live`).2// LEAN ON PURPOSE: this entry point is bundled into the isolated signer. It re-exports only pure code — canonical objects and3// hashes, the pinned asset table, the acknowledgement text, and the Hyperliquid action builder / `describe` / signing helpers.4// It must never import an HTTP client, a websocket stream or a venue read adapter (scripts/check in test/live.test.ts).5export * from './canonical.ts';6export * from './hl-assets.ts';7export * from './jurisdiction.ts';8export * from './mandate.ts';9export * from './collateral.ts'; // funding the venue account: pinned bridge, canonical deposit section and withdrawal (v6)10export * from './gmx.ts'; // v8: GMX v2 orders as wallet transactions — pins, calldata builder, intent verification, venue policy11export { D, type DecStr } from '../decimal.ts';12export { VenueError, type OrderRequest } from '../models.ts';13export type { SignRequest } from '../venue.ts';14export { createHlTrading, hlCloid, HL_KIND_L1, HL_KIND_USER, type HlAsset, type HlDescription, type HlL1SignPayload, type HlTrading, type HlUserSignPayload } from '../venues/hyperliquid/trading.ts';15export { normalizeSignature, recoverTypedDataSigner, signatureFromHex, typedDataDigest, type HlNetwork, type HlSignature, type HlTypedData, type HlApproveAgentAction } from '../venues/hyperliquid/signing.ts';16
Files main
Menu

Theme