skewtape 0.0.1 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +182 -0
- package/dist/cjs/backtest.d.ts +146 -0
- package/dist/cjs/backtest.js +410 -0
- package/dist/cjs/client.d.ts +255 -0
- package/dist/cjs/client.js +447 -0
- package/dist/cjs/download.d.ts +33 -0
- package/dist/cjs/download.js +160 -0
- package/dist/cjs/errors.d.ts +76 -0
- package/dist/cjs/errors.js +159 -0
- package/dist/cjs/exact.d.ts +36 -0
- package/dist/cjs/exact.js +168 -0
- package/dist/cjs/fees.d.ts +68 -0
- package/dist/cjs/fees.js +196 -0
- package/dist/cjs/geoblock.d.ts +48 -0
- package/dist/cjs/geoblock.js +78 -0
- package/dist/cjs/index.d.ts +31 -0
- package/dist/cjs/index.js +98 -0
- package/dist/cjs/kalshi.d.ts +261 -0
- package/dist/cjs/kalshi.js +416 -0
- package/dist/cjs/keccak.d.ts +10 -0
- package/dist/cjs/keccak.js +84 -0
- package/dist/cjs/msgpack.d.ts +15 -0
- package/dist/cjs/msgpack.js +112 -0
- package/dist/cjs/package.json +1 -0
- package/dist/cjs/paginated.d.ts +26 -0
- package/dist/cjs/paginated.js +51 -0
- package/dist/cjs/quote-math.d.ts +146 -0
- package/dist/cjs/quote-math.js +446 -0
- package/dist/cjs/quote.d.ts +108 -0
- package/dist/cjs/quote.js +307 -0
- package/dist/cjs/route-hyperliquid.d.ts +228 -0
- package/dist/cjs/route-hyperliquid.js +387 -0
- package/dist/cjs/route.d.ts +297 -0
- package/dist/cjs/route.js +516 -0
- package/dist/cjs/stream.d.ts +99 -0
- package/dist/cjs/stream.js +529 -0
- package/dist/cjs/version.d.ts +6 -0
- package/dist/cjs/version.js +9 -0
- package/dist/esm/backtest.d.ts +146 -0
- package/dist/esm/backtest.js +403 -0
- package/dist/esm/client.d.ts +255 -0
- package/dist/esm/client.js +441 -0
- package/dist/esm/download.d.ts +33 -0
- package/dist/esm/download.js +155 -0
- package/dist/esm/errors.d.ts +76 -0
- package/dist/esm/errors.js +142 -0
- package/dist/esm/exact.d.ts +36 -0
- package/dist/esm/exact.js +158 -0
- package/dist/esm/fees.d.ts +68 -0
- package/dist/esm/fees.js +185 -0
- package/dist/esm/geoblock.d.ts +48 -0
- package/dist/esm/geoblock.js +74 -0
- package/dist/esm/index.d.ts +31 -0
- package/dist/esm/index.js +30 -0
- package/dist/esm/kalshi.d.ts +261 -0
- package/dist/esm/kalshi.js +404 -0
- package/dist/esm/keccak.d.ts +10 -0
- package/dist/esm/keccak.js +80 -0
- package/dist/esm/msgpack.d.ts +15 -0
- package/dist/esm/msgpack.js +109 -0
- package/dist/esm/paginated.d.ts +26 -0
- package/dist/esm/paginated.js +47 -0
- package/dist/esm/quote-math.d.ts +146 -0
- package/dist/esm/quote-math.js +437 -0
- package/dist/esm/quote.d.ts +108 -0
- package/dist/esm/quote.js +297 -0
- package/dist/esm/route-hyperliquid.d.ts +228 -0
- package/dist/esm/route-hyperliquid.js +376 -0
- package/dist/esm/route.d.ts +297 -0
- package/dist/esm/route.js +507 -0
- package/dist/esm/stream.d.ts +99 -0
- package/dist/esm/stream.js +524 -0
- package/dist/esm/version.d.ts +6 -0
- package/dist/esm/version.js +6 -0
- package/package.json +48 -1
- package/src/backtest.ts +490 -0
- package/src/client.ts +595 -0
- package/src/download.ts +161 -0
- package/src/errors.ts +143 -0
- package/src/exact.ts +159 -0
- package/src/fees.ts +189 -0
- package/src/generated/schema.d.ts +2500 -0
- package/src/geoblock.ts +90 -0
- package/src/index.ts +146 -0
- package/src/kalshi.ts +563 -0
- package/src/keccak.ts +82 -0
- package/src/msgpack.ts +83 -0
- package/src/paginated.ts +51 -0
- package/src/quote-math.ts +555 -0
- package/src/quote.ts +324 -0
- package/src/route-hyperliquid.ts +457 -0
- package/src/route.ts +631 -0
- package/src/stream.ts +539 -0
- package/src/version.ts +6 -0
|
@@ -0,0 +1,297 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* sk.route: an unsigned order for the developer to sign and submit (F2,
|
|
3
|
+
* ADR-0016, ARCHITECTURE 13.3).
|
|
4
|
+
*
|
|
5
|
+
* route() builds and checks an order, and stops there: it never signs, never
|
|
6
|
+
* sends, never takes a private key, and needs no Skewtape key. Every code and
|
|
7
|
+
* fee it carries is the developer's own: the Polymarket builder code, the
|
|
8
|
+
* DFlow fee account and fee. Omitting them sends none, and no Skewtape value
|
|
9
|
+
* exists in this package (a test scans it). The developer is responsible for
|
|
10
|
+
* their users: who may trade where, and under which terms (sk.geoblock helps
|
|
11
|
+
* with Polymarket's).
|
|
12
|
+
*
|
|
13
|
+
* const order = route({
|
|
14
|
+
* venue: "polymarket", exchange: "ctf", tokenId: "7132...", side: "BUY",
|
|
15
|
+
* price: "0.52", size: "10", tickSize: "0.01", maker: "0xYourAddress",
|
|
16
|
+
* builder: "0xYourBuilderCode", // optional, yours
|
|
17
|
+
* });
|
|
18
|
+
* const signature = await walletClient.signTypedData(order.typedData);
|
|
19
|
+
* const body = order.postBody(signature, yourClobApiKeyId);
|
|
20
|
+
*/
|
|
21
|
+
import { RouteError } from "./errors.js";
|
|
22
|
+
import { HyperliquidOrder, type HyperliquidRoute } from "./route-hyperliquid.js";
|
|
23
|
+
export { RouteError };
|
|
24
|
+
/**
|
|
25
|
+
* The V2 order the exchange hashes (Polymarket/ctf-exchange-v2 @ 5c65f2d,
|
|
26
|
+
* src/exchange/libraries/Structs.sol,
|
|
27
|
+
* ORDER_TYPEHASH 0xbb86318a...818589), the same type
|
|
28
|
+
* docs.polymarket.com/trading/place-orders.md gives. `signature` is not
|
|
29
|
+
* hashed, and `expiration` is not part of the order: it rides in the POST body.
|
|
30
|
+
*/
|
|
31
|
+
export declare const POLYMARKET_ORDER_TYPE: readonly [{
|
|
32
|
+
readonly name: "salt";
|
|
33
|
+
readonly type: "uint256";
|
|
34
|
+
}, {
|
|
35
|
+
readonly name: "maker";
|
|
36
|
+
readonly type: "address";
|
|
37
|
+
}, {
|
|
38
|
+
readonly name: "signer";
|
|
39
|
+
readonly type: "address";
|
|
40
|
+
}, {
|
|
41
|
+
readonly name: "tokenId";
|
|
42
|
+
readonly type: "uint256";
|
|
43
|
+
}, {
|
|
44
|
+
readonly name: "makerAmount";
|
|
45
|
+
readonly type: "uint256";
|
|
46
|
+
}, {
|
|
47
|
+
readonly name: "takerAmount";
|
|
48
|
+
readonly type: "uint256";
|
|
49
|
+
}, {
|
|
50
|
+
readonly name: "side";
|
|
51
|
+
readonly type: "uint8";
|
|
52
|
+
}, {
|
|
53
|
+
readonly name: "signatureType";
|
|
54
|
+
readonly type: "uint8";
|
|
55
|
+
}, {
|
|
56
|
+
readonly name: "timestamp";
|
|
57
|
+
readonly type: "uint256";
|
|
58
|
+
}, {
|
|
59
|
+
readonly name: "metadata";
|
|
60
|
+
readonly type: "bytes32";
|
|
61
|
+
}, {
|
|
62
|
+
readonly name: "builder";
|
|
63
|
+
readonly type: "bytes32";
|
|
64
|
+
}];
|
|
65
|
+
export declare const EIP712_DOMAIN_TYPE: readonly [{
|
|
66
|
+
readonly name: "name";
|
|
67
|
+
readonly type: "string";
|
|
68
|
+
}, {
|
|
69
|
+
readonly name: "version";
|
|
70
|
+
readonly type: "string";
|
|
71
|
+
}, {
|
|
72
|
+
readonly name: "chainId";
|
|
73
|
+
readonly type: "uint256";
|
|
74
|
+
}, {
|
|
75
|
+
readonly name: "verifyingContract";
|
|
76
|
+
readonly type: "address";
|
|
77
|
+
}];
|
|
78
|
+
export declare const POLYMARKET_DOMAIN_NAME = "Polymarket CTF Exchange";
|
|
79
|
+
export declare const POLYGON_CHAIN_ID = 137;
|
|
80
|
+
/**
|
|
81
|
+
* The exchange that verifies the order, and its domain version, by book
|
|
82
|
+
* (place-orders.md, "Create the Order Typed Data"; addresses also on
|
|
83
|
+
* docs.polymarket.com/resources/contracts.md, Polygon 137): the CTF exchange
|
|
84
|
+
* and the neg risk CTF exchange sign with version "2", a Protocol V2 book
|
|
85
|
+
* ("version": "v2" in the market's data, ExchangeV3) with "3". The developer
|
|
86
|
+
* names it: route() never guesses which book a token trades on.
|
|
87
|
+
*/
|
|
88
|
+
export declare const POLYMARKET_EXCHANGES: {
|
|
89
|
+
readonly ctf: {
|
|
90
|
+
readonly version: "2";
|
|
91
|
+
readonly verifyingContract: "0xE111180000d2663C0091e4f400237545B87B996B";
|
|
92
|
+
};
|
|
93
|
+
readonly neg_risk: {
|
|
94
|
+
readonly version: "2";
|
|
95
|
+
readonly verifyingContract: "0xe2222d279d744050d28e00520010520000310F59";
|
|
96
|
+
};
|
|
97
|
+
readonly protocol_v2: {
|
|
98
|
+
readonly version: "3";
|
|
99
|
+
readonly verifyingContract: "0xe3333700cA9d93003F00f0F71f8515005F6c00Aa";
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
export type PolymarketExchange = keyof typeof POLYMARKET_EXCHANGES;
|
|
103
|
+
/** Side and SignatureType (Structs.sol): BUY 0, SELL 1; EOA 0, POLY_PROXY 1, POLY_GNOSIS_SAFE 2, POLY_1271 3. */
|
|
104
|
+
export declare const POLYMARKET_SIDES: {
|
|
105
|
+
readonly BUY: 0;
|
|
106
|
+
readonly SELL: 1;
|
|
107
|
+
};
|
|
108
|
+
export declare const POLYMARKET_SIGNATURE_TYPES: {
|
|
109
|
+
readonly EOA: 0;
|
|
110
|
+
readonly POLY_PROXY: 1;
|
|
111
|
+
readonly POLY_GNOSIS_SAFE: 2;
|
|
112
|
+
readonly POLY_1271: 3;
|
|
113
|
+
};
|
|
114
|
+
export type PolymarketOrderType = "GTC" | "GTD" | "FOK" | "FAK";
|
|
115
|
+
/** Price, size and amount decimals by tick size (place-orders.md, "Rounding"). */
|
|
116
|
+
export declare const POLYMARKET_TICKS: Readonly<Record<string, readonly [number, number, number]>>;
|
|
117
|
+
/** Six-decimal base units: "1_000_000 is one pUSD or one share" (migrate/polymarket-v2/contract-integrations.md). */
|
|
118
|
+
export declare const POLYMARKET_DECIMALS = 6;
|
|
119
|
+
/** A size or amount (shares or USD) at or above 10^15 is refused, as in the Python SDK, which needs the bound for its decimal context. */
|
|
120
|
+
export declare const POLYMARKET_MAX_SIZE: bigint;
|
|
121
|
+
/** A GTD order's expiration is Unix seconds at least three minutes ahead (place-orders.md). */
|
|
122
|
+
export declare const POLYMARKET_GTD_MIN_SECONDS = 180;
|
|
123
|
+
export declare const MAX_SAFE_SALT: number;
|
|
124
|
+
export declare const ZERO_BYTES32: `0x${string}`;
|
|
125
|
+
type Hex = `0x${string}`;
|
|
126
|
+
/**
|
|
127
|
+
* makerAmount and takerAmount in six-decimal units, by the docs' rounding: a
|
|
128
|
+
* BUY gives USD and takes shares, a SELL the reverse. A limit order (GTC, GTD)
|
|
129
|
+
* and a market SELL (FOK, FAK) are sized in shares; a market BUY in USD to
|
|
130
|
+
* spend, at most `price` a share.
|
|
131
|
+
*/
|
|
132
|
+
export declare function polymarketAmounts(side: "BUY" | "SELL", price: string, tickSize: string, orderType: PolymarketOrderType, sizing: {
|
|
133
|
+
size?: string | undefined;
|
|
134
|
+
amount?: string | undefined;
|
|
135
|
+
}): {
|
|
136
|
+
makerAmount: bigint;
|
|
137
|
+
takerAmount: bigint;
|
|
138
|
+
};
|
|
139
|
+
/** The EIP-712 typed data of a Polymarket order, as viem's signTypedData takes it; ethers v6 takes its domain, types and message as three arguments. */
|
|
140
|
+
export interface PolymarketTypedData {
|
|
141
|
+
domain: {
|
|
142
|
+
name: string;
|
|
143
|
+
version: string;
|
|
144
|
+
chainId: number;
|
|
145
|
+
verifyingContract: Hex;
|
|
146
|
+
};
|
|
147
|
+
types: {
|
|
148
|
+
Order: typeof POLYMARKET_ORDER_TYPE;
|
|
149
|
+
};
|
|
150
|
+
primaryType: "Order";
|
|
151
|
+
message: {
|
|
152
|
+
salt: bigint;
|
|
153
|
+
maker: Hex;
|
|
154
|
+
signer: Hex;
|
|
155
|
+
tokenId: bigint;
|
|
156
|
+
makerAmount: bigint;
|
|
157
|
+
takerAmount: bigint;
|
|
158
|
+
side: number;
|
|
159
|
+
signatureType: number;
|
|
160
|
+
timestamp: bigint;
|
|
161
|
+
metadata: Hex;
|
|
162
|
+
builder: Hex;
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* An unsigned Polymarket V2 order. Sign `typedData` (EIP-712, the `Order`
|
|
167
|
+
* primary type) with the signer's wallet, then post `postBody(signature,
|
|
168
|
+
* owner)` to the CLOB's POST /order with your own CLOB credentials. Nothing
|
|
169
|
+
* here was signed or sent.
|
|
170
|
+
*/
|
|
171
|
+
export declare class PolymarketOrder {
|
|
172
|
+
readonly typedData: PolymarketTypedData;
|
|
173
|
+
readonly orderType: PolymarketOrderType;
|
|
174
|
+
/** Unix seconds for a GTD order, 0 otherwise; not signed. */
|
|
175
|
+
readonly expiration: number;
|
|
176
|
+
readonly side: "BUY" | "SELL";
|
|
177
|
+
readonly venue: "polymarket";
|
|
178
|
+
constructor(typedData: PolymarketTypedData, orderType: PolymarketOrderType,
|
|
179
|
+
/** Unix seconds for a GTD order, 0 otherwise; not signed. */
|
|
180
|
+
expiration: number, side: "BUY" | "SELL");
|
|
181
|
+
/** The typed data as eth_signTypedData_v4 takes it: JSON, the EIP712Domain type included, integers as decimal strings. */
|
|
182
|
+
typedDataJson(): string;
|
|
183
|
+
/**
|
|
184
|
+
* The JSON body of POST /order (place-orders.md): the order with its
|
|
185
|
+
* signature, amounts and timestamp as strings, the salt a number, the side a
|
|
186
|
+
* word; `owner` is your CLOB API key's id. orderType and expiration are not
|
|
187
|
+
* part of what was signed.
|
|
188
|
+
*/
|
|
189
|
+
postBody(signature: string, owner: string, options?: {
|
|
190
|
+
deferExec?: boolean;
|
|
191
|
+
postOnly?: boolean;
|
|
192
|
+
}): Record<string, unknown>;
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* A Polymarket order to build (ARCHITECTURE 13.3). exchange: the book's
|
|
196
|
+
* exchange, which sets the EIP-712 domain. tokenId: the outcome's asset id.
|
|
197
|
+
* price: the limit price, on the tick; for a market BUY the most you pay a
|
|
198
|
+
* share. size: shares (a limit order, a market SELL). amount: USD to spend (a
|
|
199
|
+
* market BUY only). tickSize: the book's tick size. maker: the address that
|
|
200
|
+
* funds the order. signer: the address that signs, the maker itself for an
|
|
201
|
+
* EOA (the default) or the owner of the proxy or Safe. builder: your
|
|
202
|
+
* Polymarket builder code (bytes32), carried in the signed order; omitted, the
|
|
203
|
+
* order carries the zero code, none. orderType: GTC, GTD (expiration in Unix
|
|
204
|
+
* seconds, at least three minutes ahead), FOK or FAK.
|
|
205
|
+
*/
|
|
206
|
+
export interface PolymarketRoute {
|
|
207
|
+
venue: "polymarket";
|
|
208
|
+
exchange: PolymarketExchange;
|
|
209
|
+
tokenId: string | bigint;
|
|
210
|
+
side: "BUY" | "SELL";
|
|
211
|
+
price: string;
|
|
212
|
+
tickSize: string;
|
|
213
|
+
maker: string;
|
|
214
|
+
size?: string;
|
|
215
|
+
amount?: string;
|
|
216
|
+
orderType?: PolymarketOrderType;
|
|
217
|
+
signatureType?: keyof typeof POLYMARKET_SIGNATURE_TYPES | 0 | 1 | 2 | 3;
|
|
218
|
+
signer?: string;
|
|
219
|
+
builder?: string;
|
|
220
|
+
metadata?: string;
|
|
221
|
+
expiration?: number;
|
|
222
|
+
salt?: number | bigint;
|
|
223
|
+
timestampMs?: number;
|
|
224
|
+
}
|
|
225
|
+
/** The fields each venue's order takes: anything else, a private key above all, is refused. */
|
|
226
|
+
export declare const ROUTE_FIELDS: {
|
|
227
|
+
readonly polymarket: readonly ["venue", "exchange", "tokenId", "side", "price", "tickSize", "maker", "size", "amount", "orderType", "signatureType", "signer", "builder", "metadata", "expiration", "salt", "timestampMs"];
|
|
228
|
+
readonly kalshi_dflow: readonly ["venue", "inputMint", "outputMint", "amount", "userPublicKey", "slippageBps", "predictionMarketSlippageBps", "platformFeeScale", "platformFeeBps", "platformFeeMode", "feeAccount", "baseUrl"];
|
|
229
|
+
readonly hyperliquid: readonly ["venue", "outcome", "side", "isBuy", "price", "size", "tif", "reduceOnly", "cloid", "builder", "builderFee", "szDecimals", "nonce", "vaultAddress", "expiresAfter", "mainnet"];
|
|
230
|
+
};
|
|
231
|
+
export declare function polymarketOrder(input: PolymarketRoute): PolymarketOrder;
|
|
232
|
+
/**
|
|
233
|
+
* The Trading API that returns the unsigned transaction: GET /order on
|
|
234
|
+
* https://quote-api.dflow.net (pond.dflow.net/get-started/endpoints.md), with
|
|
235
|
+
* the developer's own key in the x-api-key header ("All calls to the
|
|
236
|
+
* production endpoints must use an API key", pond.dflow.net/get-started/api-key.md).
|
|
237
|
+
*/
|
|
238
|
+
export declare const DFLOW_TRADING_API = "https://quote-api.dflow.net";
|
|
239
|
+
export declare const DFLOW_API_KEY_HEADER = "x-api-key";
|
|
240
|
+
/**
|
|
241
|
+
* platformFeeScale: "Optional platform fee scale for World prediction market
|
|
242
|
+
* swaps and async prediction market swaps, with 3 decimals ... Must be >= 0 and
|
|
243
|
+
* < 1000. For example, a value of 50 means 0.050." platformFeeBps: a fixed fee
|
|
244
|
+
* in basis points, for spot trades (pond.dflow.net/spot/trading/platform-fees.md).
|
|
245
|
+
*/
|
|
246
|
+
export declare const DFLOW_FEE_SCALE_MAX = 999;
|
|
247
|
+
export declare const DFLOW_FEE_BPS_MAX = 10000;
|
|
248
|
+
/**
|
|
249
|
+
* The request that returns an unsigned DFlow transaction: GET `url` with
|
|
250
|
+
* `params` and your own DFlow key in the x-api-key header. The response's
|
|
251
|
+
* `transaction` (base64) is for your user to sign and submit. Nothing was
|
|
252
|
+
* sent: route() never calls DFlow.
|
|
253
|
+
*/
|
|
254
|
+
export declare class DFlowOrderRequest {
|
|
255
|
+
readonly url: string;
|
|
256
|
+
readonly params: Readonly<Record<string, string>>;
|
|
257
|
+
readonly venue: "kalshi_dflow";
|
|
258
|
+
readonly apiKeyHeader = "x-api-key";
|
|
259
|
+
constructor(url: string, params: Readonly<Record<string, string>>);
|
|
260
|
+
get fullUrl(): string;
|
|
261
|
+
}
|
|
262
|
+
/**
|
|
263
|
+
* A DFlow order to build, for tokenized Kalshi outcome tokens or any DFlow
|
|
264
|
+
* trade, carrying the developer's own fee (ARCHITECTURE 13.3). amount: the
|
|
265
|
+
* input amount in the input mint's base units. userPublicKey: your user's
|
|
266
|
+
* wallet, so the response carries the transaction to sign. platformFeeScale:
|
|
267
|
+
* your fee for a prediction market swap, 0 to 999 in thousandths (DFlow's
|
|
268
|
+
* platformFeeScale; its docs give no formula). Or platformFeeBps: a fixed fee
|
|
269
|
+
* in basis points, DFlow's spot fee. Either needs feeAccount, your token
|
|
270
|
+
* account for the fee mint (the stablecoin for a prediction market swap),
|
|
271
|
+
* which must exist before the trade. With no fee, none is sent.
|
|
272
|
+
*/
|
|
273
|
+
export interface DFlowRoute {
|
|
274
|
+
venue: "kalshi_dflow";
|
|
275
|
+
inputMint: string;
|
|
276
|
+
outputMint: string;
|
|
277
|
+
amount: number | bigint;
|
|
278
|
+
userPublicKey: string;
|
|
279
|
+
slippageBps?: number | "auto";
|
|
280
|
+
predictionMarketSlippageBps?: number;
|
|
281
|
+
platformFeeScale?: number;
|
|
282
|
+
platformFeeBps?: number;
|
|
283
|
+
platformFeeMode?: "outputMint" | "inputMint";
|
|
284
|
+
feeAccount?: string;
|
|
285
|
+
baseUrl?: string;
|
|
286
|
+
}
|
|
287
|
+
export declare function dflowOrder(input: DFlowRoute): DFlowOrderRequest;
|
|
288
|
+
export type RouteInput = PolymarketRoute | DFlowRoute | HyperliquidRoute;
|
|
289
|
+
/**
|
|
290
|
+
* An unsigned order for `venue` ("polymarket", "kalshi_dflow" or
|
|
291
|
+
* "hyperliquid", a HIP-4 outcome), with the developer's own builder code or
|
|
292
|
+
* fee. It never signs, never sends, and takes no private key.
|
|
293
|
+
*/
|
|
294
|
+
export declare function route(order: PolymarketRoute): PolymarketOrder;
|
|
295
|
+
export declare function route(order: DFlowRoute): DFlowOrderRequest;
|
|
296
|
+
export declare function route(order: HyperliquidRoute): HyperliquidOrder;
|
|
297
|
+
export declare function route(order: RouteInput): PolymarketOrder | DFlowOrderRequest | HyperliquidOrder;
|