@skip-go/widget 3.0.0-alpha.7 → 3.0.0-alpha.8

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/build/index.d.ts CHANGED
@@ -1,6 +1,24 @@
1
+ import { BridgeType } from '@skip-go/client';
2
+ import { ExperimentalFeature } from '@skip-go/client';
1
3
  import { JSX as JSX_2 } from 'react/jsx-runtime';
2
4
  import { ReactElement } from 'react';
3
5
  import { SkipClientOptions } from '@skip-go/client';
6
+ import { SmartSwapOptions } from '@skip-go/client';
7
+ import { SwapVenueRequest } from '@skip-go/client';
8
+
9
+ declare type ChainFilter = {
10
+ source?: Record<string, string[] | undefined>;
11
+ destination?: Record<string, string[] | undefined>;
12
+ };
13
+
14
+ declare type DefaultRouteConfig = {
15
+ amountIn?: number;
16
+ amountOut?: number;
17
+ srcChainId?: string;
18
+ srcAssetDenom?: string;
19
+ destChainId?: string;
20
+ destAssetDenom?: string;
21
+ };
4
22
 
5
23
  export declare const defaultTheme: {
6
24
  brandColor: string;
@@ -72,6 +90,15 @@ export declare const lightTheme: {
72
90
 
73
91
  declare type PartialTheme = Partial<Theme> | undefined;
74
92
 
93
+ declare type RouteConfig = {
94
+ experimentalFeatures?: ExperimentalFeature[];
95
+ allowMultiTx?: boolean;
96
+ allowUnsafe?: boolean;
97
+ bridges?: BridgeType[];
98
+ swapVenues?: SwapVenueRequest[];
99
+ smartSwapOptions?: SmartSwapOptions;
100
+ };
101
+
75
102
  declare type ShowSwapWidget = {
76
103
  button?: ReactElement;
77
104
  } & WidgetProps;
@@ -115,8 +142,24 @@ declare type Theme = {
115
142
  export declare const Widget: (props: WidgetProps) => JSX_2.Element;
116
143
 
117
144
  export declare type WidgetProps = {
118
- theme?: PartialTheme | 'light' | 'dark';
145
+ theme?: PartialTheme | "light" | "dark";
119
146
  brandColor?: string;
147
+ onlyTestnet?: boolean;
148
+ defaultRoute?: DefaultRouteConfig;
149
+ settings?: {
150
+ /**
151
+ * Default slippage percentage (0-100) for CosmosSDK chain swaps.
152
+ * @default 3
153
+ */
154
+ slippage?: number;
155
+ /**
156
+ * Gas amount for CosmosSDK chain transactions.
157
+ * @default 200_000
158
+ */
159
+ customGasAmount?: number;
160
+ };
161
+ routeConfig?: RouteConfig;
162
+ filter?: ChainFilter;
120
163
  } & SkipClientOptions;
121
164
 
122
165
  export { }
package/build/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { S as t, W as d, d as h, l as s } from "./index-q-_BLWCd.js";
1
+ import { S as t, W as d, d as h, l as s } from "./index-DvDn6Vrs.js";
2
2
  export {
3
3
  t as ShowWidget,
4
4
  d as Widget,
@@ -1,4 +1,4 @@
1
- import { H as Pt, h as Ft, t as Gt, e as Ot, b as Wt, c as Xt, r as Dt, s as Qt } from "./index-q-_BLWCd.js";
1
+ import { H as Pt, h as Ft, t as Gt, e as Ot, b as Wt, c as Xt, r as Dt, s as Qt } from "./index-DvDn6Vrs.js";
2
2
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
3
3
  const Ut = BigInt(0), ht = BigInt(1), Jt = BigInt(2);
4
4
  function nt(e) {
@@ -1163,4 +1163,4 @@ He.ProjectivePoint;
1163
1163
  export {
1164
1164
  He as secp256k1
1165
1165
  };
1166
- //# sourceMappingURL=secp256k1-C65orhZz.js.map
1166
+ //# sourceMappingURL=secp256k1-BVcQSWBq.js.map