@skip-go/widget 2.4.11 → 2.5.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/build/constants/defaults.d.ts +2 -0
- package/build/hooks/use-swap-widget.d.ts +1 -7
- package/build/index.es.js +83 -254
- package/build/index.es.js.map +1 -1
- package/build/store/swap-widget.d.ts +0 -5
- package/build/ui/SwapDetails.d.ts +1 -1
- package/build/utils/crypto.d.ts +2 -0
- package/package.json +2 -2
- package/build/ui/SettingsDialog/GasSetting.d.ts +0 -1
|
@@ -55,11 +55,6 @@ export declare const useSwapWidgetUIStore: import("zustand").UseBoundStore<Omit<
|
|
|
55
55
|
}>;
|
|
56
56
|
export interface ConfigureSwapWidgetArgs {
|
|
57
57
|
settings?: {
|
|
58
|
-
/**
|
|
59
|
-
* gas amount for validation
|
|
60
|
-
* @default 200_000
|
|
61
|
-
*/
|
|
62
|
-
customGasAmount?: number;
|
|
63
58
|
/**
|
|
64
59
|
* percentage of slippage 0-100
|
|
65
60
|
* @default 3
|
|
@@ -7,5 +7,5 @@ type Props = SwapWidgetStore & {
|
|
|
7
7
|
priceImpactThresholdReached: boolean;
|
|
8
8
|
route: RouteResponse;
|
|
9
9
|
};
|
|
10
|
-
export declare const SwapDetails: ({ amountIn, amountOut, destinationAsset, destinationChain,
|
|
10
|
+
export declare const SwapDetails: ({ amountIn, amountOut, destinationAsset, destinationChain, priceImpactPercent, priceImpactThresholdReached, route, sourceAsset, sourceChain }: Props) => import("react/jsx-runtime").JSX.Element | null;
|
|
11
11
|
export {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skip-go/widget",
|
|
3
3
|
"description": "Swap widget",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.5.0",
|
|
5
5
|
"repository": "https://github.com/skip-mev/widget",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"@radix-ui/react-scroll-area": "^1.0.5",
|
|
63
63
|
"@radix-ui/react-switch": "^1.0.3",
|
|
64
64
|
"@radix-ui/react-tooltip": "^1.0.7",
|
|
65
|
-
"@skip-go/client": "0.
|
|
65
|
+
"@skip-go/client": "0.9.2",
|
|
66
66
|
"@solana/spl-token": "^0.4.6",
|
|
67
67
|
"@solana/wallet-adapter-react": "^0.15.35",
|
|
68
68
|
"@solana/wallet-adapter-wallets": "^0.19.32",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const GasSetting: () => import("react/jsx-runtime").JSX.Element;
|