@silentswap/sdk 0.1.80 → 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.
Files changed (2) hide show
  1. package/dist/bridge.d.ts +11 -0
  2. 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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@silentswap/sdk",
3
3
  "type": "module",
4
- "version": "0.1.80",
4
+ "version": "0.1.81",
5
5
  "license": "MIT",
6
6
  "sideEffects": false,
7
7
  "main": "dist/index.js",