@skip-go/widget 2.1.3-alpha.1 → 2.2.1-alpha.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/README.md +1 -0
- package/build/chains/index.d.ts +6 -6
- package/build/hooks/use-swap-widget.d.ts +1 -1
- package/build/index.es.js +46 -46
- package/build/ui/Widget.d.ts +2 -1
- package/package.json +7 -7
- package/build/ast/_constants.d.ts +0 -1
- package/build/ast/_types.d.ts +0 -14
- package/build/ast/get-chains-paths.d.ts +0 -6
- package/build/ast/parse-asset-list-json.d.ts +0 -7
- package/build/ast/parse-chain-json.d.ts +0 -7
- package/build/ast/parse-chain-paths.d.ts +0 -9
- package/build/ast/validate-chains-paths.d.ts +0 -6
- package/build/ast/write-entrypoints.d.ts +0 -7
- package/build/chains/assets.d.ts +0 -3
- package/build/chains/chain-infos.d.ts +0 -3
- package/build/chains/chains.d.ts +0 -3
- package/build/chains/explorers.d.ts +0 -3
- package/build/chains/pretty.d.ts +0 -2
- package/build/chains/types.d.ts +0 -6
- package/build/preinstall.cjs +0 -16
- package/build/scripts/codegen.d.ts +0 -1
- package/build/ui/WalletModal/PraxWalletIndex.d.ts +0 -4
- package/build/utils/prax.d.ts +0 -75
package/README.md
CHANGED
|
@@ -133,6 +133,7 @@ interface SwapWidgetProps {
|
|
|
133
133
|
brandColor: string; // color used for confirmation buttons
|
|
134
134
|
highlightColor: string; // color used when hovering over buttons, and in select chain/asset dropdown
|
|
135
135
|
};
|
|
136
|
+
persistSwapWidgetState?: boolean; // whether or not swap widget state should persist after refresh. Defaults to true
|
|
136
137
|
}
|
|
137
138
|
````
|
|
138
139
|
|
package/build/chains/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Asset, AssetList
|
|
2
|
-
|
|
3
|
-
export declare
|
|
4
|
-
export declare function
|
|
1
|
+
import { Chain, Asset, AssetList } from '@chain-registry/types';
|
|
2
|
+
export declare const chains: Chain[];
|
|
3
|
+
export declare const assets: AssetList[];
|
|
4
|
+
export declare function getChain(chainId: string): Chain;
|
|
5
|
+
export declare function chainIdToName(chainId: string): string;
|
|
6
|
+
export declare function getAssets(chainId: string): Asset[];
|
|
5
7
|
export declare function getChains(): Chain[];
|
|
6
|
-
export declare function getAssetLists(): AssetList[];
|
|
7
|
-
export * from "./types";
|
|
@@ -10,7 +10,7 @@ export interface DefaultRouteConfig {
|
|
|
10
10
|
destChainID?: string;
|
|
11
11
|
destAssetDenom?: string;
|
|
12
12
|
}
|
|
13
|
-
export declare function useSwapWidget(): {
|
|
13
|
+
export declare function useSwapWidget(persistSwapWidgetState?: boolean): {
|
|
14
14
|
amountIn: string;
|
|
15
15
|
amountOut: string;
|
|
16
16
|
bridges: BridgeType[];
|