@silentswap/sdk 0.0.69 → 0.0.71

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/bridge.js CHANGED
@@ -310,7 +310,7 @@ export async function fetchDebridgeOrder(params, signal) {
310
310
  }
311
311
  }
312
312
  // Use create-tx endpoint for cross-chain swaps
313
- const response = await fetch(`https://deswap.debridge.finance/v1.0/dln/order/create-tx?${queryParams}`, { signal });
313
+ const response = await fetch(`https://dln.debridge.finance/v1.0/dln/order/create-tx?${queryParams}`, { signal });
314
314
  if (!response.ok) {
315
315
  const text = await response.text();
316
316
  throw parseQuoteApiErrorResponse(response.status, text);
@@ -339,7 +339,7 @@ async function fetchDebridgeSingleChainOrder(params, signal) {
339
339
  // Note: Single-chain endpoint may not support dlnHook parameter
340
340
  // If hook is needed for same-chain swaps, it may need to be handled differently
341
341
  // For now, we skip the hook parameter for single-chain swaps
342
- const response = await fetch(`https://deswap.debridge.finance/v1.0/chain/transaction?${queryParams}`, { signal });
342
+ const response = await fetch(`https://dln.debridge.finance/v1.0/chain/transaction?${queryParams}`, { signal });
343
343
  if (!response.ok) {
344
344
  const text = await response.text();
345
345
  throw parseQuoteApiErrorResponse(response.status, text);
@@ -64,6 +64,10 @@ export type QuoteRequest = {
64
64
  * Output specifications
65
65
  */
66
66
  outputs: OrderOutputArg[];
67
+ /**
68
+ * Pro user ID for volume tracking (from ?pro= URL or localStorage silentswap:pro)
69
+ */
70
+ pro?: string;
67
71
  };
68
72
  /**
69
73
  * API response schema for /quote endpoint
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@silentswap/sdk",
3
3
  "type": "module",
4
- "version": "0.0.69",
4
+ "version": "0.0.71",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
7
7
  "files": [