@ravnexchange/sdk 0.1.8 → 0.1.9

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.
Files changed (2) hide show
  1. package/dist/types.d.ts +6 -0
  2. package/package.json +1 -1
package/dist/types.d.ts CHANGED
@@ -52,6 +52,9 @@ export interface QuoteDTO {
52
52
  outputUsd: string | null;
53
53
  estimatedTimeSeconds: number;
54
54
  estimatedTimeIsGuess: boolean;
55
+ /** Epoch ms: execute() on `quoteToken` must reach RAVN before this, or it fails with
56
+ * QUOTE_EXPIRED. Already 5 s ahead of the venue's own deadline, so compare it to the clock as
57
+ * is. 0 means no deadline. A 2-hop route (`venue.id === "compose"`) re-prices at execute instead. */
55
58
  expiresAt: number;
56
59
  /** Present on 2-hop (`venue.id === "compose"`) and Relay dest-call quotes. Sign hop 1; hop 2 is
57
60
  * a unique deposit, not a second wallet tx. */
@@ -82,6 +85,9 @@ export interface AlternativeQuoteDTO {
82
85
  executable: boolean;
83
86
  estimatedTimeSeconds: number;
84
87
  estimatedTimeIsGuess: boolean;
88
+ /** This route's own execute deadline, same meaning as QuoteDTO.expiresAt. Venues differ, so
89
+ * check it before executing an alternative. */
90
+ expiresAt: number;
85
91
  hops?: {
86
92
  id: string;
87
93
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ravnexchange/sdk",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
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",