@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 +2 -2
- package/dist/types/api.d.ts +4 -0
- package/package.json +1 -1
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://
|
|
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://
|
|
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);
|
package/dist/types/api.d.ts
CHANGED
|
@@ -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
|