@kanalabs/kana-widget-v2
Version:
Kana Widget for cross-chain bridging and swap.
23 lines (22 loc) • 868 B
TypeScript
import { StateSlice, Store } from 'store/types';
import { BridgingType, ProgressType } from 'utils/types';
import { ChainType } from 'types/widget';
export type AppSlice = {
isChainType: ChainType;
isDarkMode: boolean;
sameChainSwap: ProgressType;
sourceChainSwap: any;
swapBridging: any;
targetChainSwap: any;
keylessWallet: any;
isGoogleWalletConnected: boolean;
updateIsChainType(payload: ChainType): void;
updateIsDarkMode(payload: boolean): void;
setSameChainSwap(payload: ProgressType): void;
setSourceChainSwap(payload: ProgressType): void;
setSwapBridging(payload: BridgingType): void;
setTargetChainSwap(payload: ProgressType): void;
updateKeylessWallet(payload: any): void;
updateIsGoogleWalletConnected(payload: any): void;
};
export declare const createAppSlice: StateSlice<Store, AppSlice>;