@ravnexchange/sdk 0.1.1 → 0.1.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/client.d.ts +1 -1
- package/dist/client.js +4 -1
- package/dist/types.d.ts +3 -0
- package/package.json +1 -1
package/dist/client.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { ChainDTO, ExecuteParams, ExecutionDTO, GetQuoteParams, QuoteDTO, S
|
|
|
2
2
|
export interface RavnClientConfig {
|
|
3
3
|
/** Self-serve or enterprise key. Omit for the anonymous tier (works immediately, lower rate limit). */
|
|
4
4
|
apiKey?: string;
|
|
5
|
-
/** Default: https://ravn.exchange/api/v1 */
|
|
5
|
+
/** Default: https://app.ravn.exchange/api/v1 */
|
|
6
6
|
baseUrl?: string;
|
|
7
7
|
/** Swap in your own fetch (e.g. for React Native, or a test double). Defaults to global fetch. */
|
|
8
8
|
fetch?: typeof fetch;
|
package/dist/client.js
CHANGED
|
@@ -2,7 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.RavnClient = void 0;
|
|
4
4
|
const types_1 = require("./types");
|
|
5
|
-
|
|
5
|
+
// ravn.exchange is the marketing site (separate deployment, no /api/* routes at all) — the
|
|
6
|
+
// actual app, including this API, is served from the app subdomain. A caller that omits
|
|
7
|
+
// baseUrl entirely was 404ing on every single call until this fix.
|
|
8
|
+
const DEFAULT_BASE_URL = "https://app.ravn.exchange/api/v1";
|
|
6
9
|
class RavnClient {
|
|
7
10
|
constructor(config = {}) {
|
|
8
11
|
this.apiKey = config.apiKey;
|
package/dist/types.d.ts
CHANGED
|
@@ -153,6 +153,9 @@ export interface GetQuoteParams {
|
|
|
153
153
|
rankingMode?: "best_output" | "fastest";
|
|
154
154
|
/** Drop specific venues from this race — e.g. a risk objection to one of them. */
|
|
155
155
|
excludeVenues?: string[];
|
|
156
|
+
/** Test quote -> execute -> status with no real funds and no live venue settlement. See
|
|
157
|
+
* the API's own sandbox field description for per-venue/per-route exceptions. */
|
|
158
|
+
sandbox?: boolean;
|
|
156
159
|
}
|
|
157
160
|
export interface ExecuteParams {
|
|
158
161
|
quoteToken: string;
|
package/package.json
CHANGED