@skip-go/widget 0.0.1-beta.5 → 0.0.1
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { AssetsRequest } from '@skip-go/core';
|
|
2
2
|
export declare function useAssets(options?: AssetsRequest): import("@tanstack/react-query/build/legacy/types").UseQueryResult<{
|
|
3
|
-
[k: string]: import("@skip-go/core/dist/shared-
|
|
3
|
+
[k: string]: import("@skip-go/core/dist/shared-BSxbo-0D").a[];
|
|
4
4
|
}, Error>;
|
|
@@ -16,5 +16,5 @@ interface UseRouteArgs extends RouteConfig {
|
|
|
16
16
|
destinationAssetChainID?: string;
|
|
17
17
|
enabled?: boolean;
|
|
18
18
|
}
|
|
19
|
-
export declare function useRoute({ direction, amount, sourceAsset, sourceAssetChainID, destinationAsset, destinationAssetChainID, enabled, swapVenues, bridges, experimentalFeatures, allowMultiTx, allowUnsafe, smartSwapOptions, }: UseRouteArgs): import("@tanstack/react-query/build/legacy/types").UseQueryResult<import("@skip-go/core/dist/shared-
|
|
19
|
+
export declare function useRoute({ direction, amount, sourceAsset, sourceAssetChainID, destinationAsset, destinationAssetChainID, enabled, swapVenues, bridges, experimentalFeatures, allowMultiTx, allowUnsafe, smartSwapOptions, }: UseRouteArgs): import("@tanstack/react-query/build/legacy/types").UseQueryResult<import("@skip-go/core/dist/shared-BSxbo-0D").R | undefined, Error>;
|
|
20
20
|
export {};
|
|
@@ -31,7 +31,7 @@ export declare function useSwapWidget(): {
|
|
|
31
31
|
onSourceAssetChange: (asset: Asset) => void;
|
|
32
32
|
onSourceChainChange: (chain: Chain, injectAsset?: Asset) => Promise<void>;
|
|
33
33
|
priceImpactThresholdReached: boolean;
|
|
34
|
-
route: import("@skip-go/core/dist/shared-
|
|
34
|
+
route: import("@skip-go/core/dist/shared-BSxbo-0D").R | undefined;
|
|
35
35
|
routeError: string;
|
|
36
36
|
routeLoading: boolean;
|
|
37
37
|
routeWarningMessage: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skip-go/widget",
|
|
3
3
|
"description": "Swap widget",
|
|
4
|
-
"version": "0.0.1
|
|
4
|
+
"version": "0.0.1",
|
|
5
5
|
"repository": "https://github.com/skip-mev/widget",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"@radix-ui/react-scroll-area": "^1.0.5",
|
|
61
61
|
"@radix-ui/react-switch": "^1.0.3",
|
|
62
62
|
"@radix-ui/react-tooltip": "^1.0.7",
|
|
63
|
-
"@skip-go/core": "0.0
|
|
63
|
+
"@skip-go/core": "0.1.0",
|
|
64
64
|
"@solana/spl-token": "^0.4.6",
|
|
65
65
|
"@solana/wallet-adapter-react": "^0.15.35",
|
|
66
66
|
"@solana/wallet-adapter-wallets": "^0.19.32",
|