UNPKG

@oko-wallet/oko-sdk-cosmos

Version:
25 lines (21 loc) 520 B
import type { Key } from "@keplr-wallet/types"; export interface AccountChangePayload { email: string | null; publicKey: Key["pubKey"] | null; } export type OkoCosmosWalletEvent2 = | ({ type: "accountsChanged"; } & AccountChangePayload) | { type: "chainChanged"; }; export type OkoCosmosWalletEventHandler2 = | { type: "accountsChanged"; handler: (payload: AccountChangePayload) => void; } | { type: "chainChanged"; handler: (payload: void) => void; };