@quirks/store
Version:
15 lines (14 loc) • 493 B
TypeScript
import { AssetList, Chain } from '@chain-registry/types';
import { Wallet } from '@quirks/core';
export interface ConfigState {
wallets: Wallet[];
chains: Chain[];
assetsLists: AssetList[];
}
export interface ConfigActions {
getChain: (chainName: string) => Chain | undefined;
setChains: (chains: Chain[]) => void;
setAssetsLists: (assetsLists: AssetList[]) => void;
setWallets: (wallets: Wallet[]) => void;
}
export type ConfigSlice = ConfigState & ConfigActions;