@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 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
 
@@ -1,7 +1,7 @@
1
- import { Asset, AssetList, Chain } from "@graz-sh/types";
2
- import { ChainId } from "./types";
3
- export declare function getChain(chainId: ChainId): Chain;
4
- export declare function getAssets(chainId: ChainId): Asset[];
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[];