@cowprotocol/widget-lib 0.15.0 → 0.16.0
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/package.json +1 -1
- package/types.d.ts +20 -1
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -63,6 +63,7 @@ interface TradeAsset {
|
|
|
63
63
|
*/
|
|
64
64
|
amount?: string;
|
|
65
65
|
}
|
|
66
|
+
export type ForcedOrderDeadline = FlexibleConfig<number>;
|
|
66
67
|
export declare enum TradeType {
|
|
67
68
|
SWAP = "swap",
|
|
68
69
|
LIMIT = "limit",
|
|
@@ -185,6 +186,14 @@ export interface CowSwapWidgetParams {
|
|
|
185
186
|
* Buy token, and optionally the amount.
|
|
186
187
|
*/
|
|
187
188
|
buy?: TradeAsset;
|
|
189
|
+
/**
|
|
190
|
+
* Forced order deadline in minutes. When set, user's won't be able to edit the deadline.
|
|
191
|
+
*
|
|
192
|
+
* Either a single value applied to each individual order type accordingly or an optional individual value per order type.
|
|
193
|
+
*
|
|
194
|
+
* The app will use the appropriated min/max value per order type.
|
|
195
|
+
*/
|
|
196
|
+
forcedOrderDeadline?: ForcedOrderDeadline;
|
|
188
197
|
/**
|
|
189
198
|
* Enables the ability to switch between trade types in the widget.
|
|
190
199
|
*/
|
|
@@ -222,10 +231,20 @@ export interface CowSwapWidgetParams {
|
|
|
222
231
|
* Option to hide the network selector in the widget.
|
|
223
232
|
*/
|
|
224
233
|
hideNetworkSelector?: boolean;
|
|
234
|
+
/**
|
|
235
|
+
* Option to hide bridge info
|
|
236
|
+
*/
|
|
237
|
+
hideBridgeInfo?: boolean;
|
|
238
|
+
/**
|
|
239
|
+
* Option to hide orders table on LIMIT and TWAP forms.
|
|
240
|
+
*
|
|
241
|
+
* Warning! When `true`, users won't be able to see their LIMIT/TWAP order status or history, neither they'll be able to cancel active orders.
|
|
242
|
+
*/
|
|
243
|
+
hideOrdersTable?: boolean;
|
|
225
244
|
/**
|
|
226
245
|
* Defines the widget mode.
|
|
227
246
|
* - `true` (standalone mode): The widget is standalone, so it will use its own Ethereum provider. The user can connect from within the widget.
|
|
228
|
-
* - `false` (dapp mode): The widget is embedded in a dapp which is responsible
|
|
247
|
+
* - `false` (dapp mode): The widget is embedded in a dapp which is responsible for providing the Ethereum provider. Therefore, there won't be a connect button in the widget as this should happen in the host app.
|
|
229
248
|
*
|
|
230
249
|
* Defaults to standalone.
|
|
231
250
|
*/
|