@ravnexchange/sdk 0.2.2 → 0.2.3
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/dist/types.d.ts +16 -9
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -65,7 +65,8 @@ export interface QuoteDTO {
|
|
|
65
65
|
* minimum shown can no longer be met). */
|
|
66
66
|
expiresAt: number;
|
|
67
67
|
/** Present on 2-hop (`venue.id === "compose"`) and Relay dest-call quotes. Sign hop 1; hop 2 is
|
|
68
|
-
* a unique deposit, not a second wallet tx.
|
|
68
|
+
* a unique deposit, not a second wallet tx. The stablecoin route also sweeps its leftover through
|
|
69
|
+
* 0x (`0x_swap`), which isn't listed here. */
|
|
69
70
|
hops?: {
|
|
70
71
|
id: string;
|
|
71
72
|
name: string;
|
|
@@ -331,16 +332,22 @@ export interface GetQuoteParams {
|
|
|
331
332
|
* wait; a quote with slippage.noMinimum counts only 2000 ms past the limit). A positive integer;
|
|
332
333
|
* default 6000, clamped to 1000–15000. An API that predates it ignores it. */
|
|
333
334
|
timeoutMs?: number;
|
|
334
|
-
/**
|
|
335
|
+
/** Venues never to use, e.g. a risk objection to one of them. An excluded venue is used
|
|
336
|
+
* nowhere in the route, including the steps of RAVN's multi-step routes (compose, relay quotes
|
|
337
|
+
* with hops); a multi-step route that needs it isn't offered. Venues that swap for you may still
|
|
338
|
+
* route through it on their own (see onlyVenues). */
|
|
335
339
|
excludeVenues?: string[];
|
|
336
340
|
/** Race only these venues, e.g. ["bebop"] for an RFQ-only race. Every other venue is left
|
|
337
|
-
* out, including ones RAVN adds later; excludeVenues still applies on top.
|
|
338
|
-
* venue
|
|
339
|
-
*
|
|
340
|
-
*
|
|
341
|
-
*
|
|
342
|
-
*
|
|
343
|
-
*
|
|
341
|
+
* out, including ones RAVN adds later; excludeVenues still applies on top. It covers every
|
|
342
|
+
* venue RAVN routes funds through: a multi-step route is offered only when its own venue.id and
|
|
343
|
+
* every venue in its hops are listed, e.g. ["compose", "jupiter", "relay"] or
|
|
344
|
+
* ["relay", "kyberswap"]. RAVN's stablecoin route also needs "0x_swap" beside its hops: it
|
|
345
|
+
* sweeps the leftover. Venues that swap for you may route through other venues of their own
|
|
346
|
+
* choosing, which neither list can reach: Layerswap (a Solana token often goes through Jupiter
|
|
347
|
+
* first), Relay, Rift, Across (when it swaps before or after bridging) and Mayan (Jupiter on
|
|
348
|
+
* Solana, other DEXs such as Nordstern on EVM). An empty list is rejected (INVALID_REQUEST); if
|
|
349
|
+
* none of them can quote, NO_LIQUIDITY lists every left-out venue in
|
|
350
|
+
* error.details.excludedVenues. */
|
|
344
351
|
onlyVenues?: string[];
|
|
345
352
|
/** Settle privately: the race narrows to NEAR Intents (Confidential Intents) and Houdini Swap,
|
|
346
353
|
* and NO_LIQUIDITY replaces a public fill if neither can quote. Houdini is sent the request's IP,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ravnexchange/sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "Typed client for the RAVN integrator API (/api/v1): quote, execute, submit-signature, status.",
|
|
5
5
|
"keywords": ["ravn", "cross-chain", "swap", "swap-api", "dex-aggregator", "bitcoin", "native-btc", "solana", "evm", "crypto", "defi", "typescript", "sdk", "api-client"],
|
|
6
6
|
"main": "./dist/index.js",
|