@quirks/store
Version:
15 lines (14 loc) • 427 B
TypeScript
import { Key } from '@quirks/core';
export interface AddressWithChain extends Key {
chainName: string;
chainId: string;
}
export interface AccountState {
accountName?: string;
accounts: AddressWithChain[];
}
export interface AccountActions {
getAddress: (chainId: string) => string | undefined;
getAddresses: (chainIds: string[]) => string[];
}
export type AccountSlice = AccountState & AccountActions;