@silentswap/sdk 0.1.79 → 0.1.81
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.d.ts +11 -0
- package/dist/types/api.d.ts +1 -1
- package/package.json +1 -1
package/dist/bridge.d.ts
CHANGED
|
@@ -132,6 +132,17 @@ export interface RelayQuoteParams {
|
|
|
132
132
|
data: string;
|
|
133
133
|
}>;
|
|
134
134
|
txsGasLimit?: number;
|
|
135
|
+
/**
|
|
136
|
+
* Address to send the refund to in the case of a bridge/route failure.
|
|
137
|
+
* Per relay's API, if unset relay falls back to the `recipient` address (or
|
|
138
|
+
* `user`). Since SilentSwap sets `recipient` to the depositor contract, an
|
|
139
|
+
* unset `refundTo` would refund to the depositor — set this to the user so
|
|
140
|
+
* failed routes return funds to the user instead.
|
|
141
|
+
* https://docs.relay.link/features/deposit-addresses#refundto-configuration
|
|
142
|
+
*/
|
|
143
|
+
refundTo?: string;
|
|
144
|
+
/** Always refund on the origin chain in case of failure. */
|
|
145
|
+
refundOnOrigin?: boolean;
|
|
135
146
|
}
|
|
136
147
|
export interface RelayQuoteResponse {
|
|
137
148
|
details: {
|
package/dist/types/api.d.ts
CHANGED
|
@@ -65,7 +65,7 @@ export type QuoteRequest = {
|
|
|
65
65
|
*/
|
|
66
66
|
outputs: OrderOutputArg[];
|
|
67
67
|
/**
|
|
68
|
-
* Pro user ID for volume tracking (from ?pro= URL or localStorage silentswap:pro)
|
|
68
|
+
* Pro user ID for volume tracking and custom fees (from ?pro= URL or localStorage silentswap:pro)
|
|
69
69
|
*/
|
|
70
70
|
pro?: string;
|
|
71
71
|
};
|