@skip-go/widget 2.4.12 → 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 +82 -253
- 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
|
@@ -3,3 +3,5 @@ export declare const endpointOptions: {
|
|
|
3
3
|
getRestEndpointForChain: (chainID: string) => Promise<string>;
|
|
4
4
|
};
|
|
5
5
|
export declare const apiURL = "https://go.skip.build/api/widget/skip";
|
|
6
|
+
export declare const ETH_GAS_FEE = 0.01;
|
|
7
|
+
export declare const COSMOS_GAS_AMOUNT = 2000000;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { GasPrice } from '@cosmjs/stargate';
|
|
2
1
|
import { Asset, BridgeType } from '@skip-go/client';
|
|
3
2
|
import { MouseEvent } from 'react';
|
|
4
3
|
import { Chain } from './use-chains';
|
|
@@ -31,15 +30,13 @@ export declare function useSwapWidget(persistSwapWidgetState?: boolean): {
|
|
|
31
30
|
onSourceAssetChange: (asset: Asset) => void;
|
|
32
31
|
onSourceChainChange: (chain: Chain, injectAsset?: Asset) => Promise<void>;
|
|
33
32
|
priceImpactThresholdReached: boolean;
|
|
34
|
-
route: import("@skip-go/client/dist/shared-
|
|
33
|
+
route: import("@skip-go/client/dist/shared-DxdVuIaC").R | undefined;
|
|
35
34
|
routeError: string;
|
|
36
35
|
routeLoading: boolean;
|
|
37
36
|
routeWarningMessage: string | undefined;
|
|
38
37
|
routeWarningTitle: string | undefined;
|
|
39
38
|
sourceAsset: Asset | undefined;
|
|
40
39
|
sourceChain: Chain | undefined;
|
|
41
|
-
sourceFeeAmount: string | undefined;
|
|
42
|
-
sourceFeeAsset: Asset | undefined;
|
|
43
40
|
swapPriceImpactPercent: number | undefined;
|
|
44
41
|
usdDiffPercent: number | undefined;
|
|
45
42
|
shareable: {
|
|
@@ -51,12 +48,9 @@ export interface SwapWidgetStore {
|
|
|
51
48
|
amountOut: string;
|
|
52
49
|
sourceChain?: Chain;
|
|
53
50
|
sourceAsset?: Asset;
|
|
54
|
-
sourceFeeAsset?: Asset;
|
|
55
|
-
sourceGasPrice?: GasPrice;
|
|
56
51
|
destinationChain?: Chain;
|
|
57
52
|
destinationAsset?: Asset;
|
|
58
53
|
direction: 'swap-in' | 'swap-out';
|
|
59
|
-
gasRequired?: string;
|
|
60
54
|
bridges: BridgeType[];
|
|
61
55
|
}
|
|
62
56
|
export declare const defaultValues: SwapWidgetStore;
|