@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.
@@ -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, gasRequired, priceImpactPercent, priceImpactThresholdReached, route, sourceAsset, sourceChain, sourceFeeAsset, }: Props) => import("react/jsx-runtime").JSX.Element | null;
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 {};
@@ -0,0 +1,2 @@
1
+ export declare const convertHumanReadableAmountToCryptoAmount: (humanReadableAmount: number | string, decimals?: number) => string;
2
+ export declare const convertTokenAmountToHumanReadableAmount: (tokenAmount: number | string, decimals?: number) => string;
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.11",
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.8.2",
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;