nimbus-sui-kit
Version:
Nimbus Suiet wallet kit
23 lines (17 loc) • 511 B
text/typescript
import { BaseError, Chain, WalletContextState } from "@suiet/wallet-kit";
export type WalletState = WalletContextState & {
toggleSelect: () => any;
};
export interface WidgetConfig {
walletFn: (input: WalletState) => any;
onConnectSuccess?: (walletName: string) => void;
onConnectError?: (error: BaseError) => void;
}
export interface WidgetConfigPartialProps {
config?: Partial<WidgetConfig>;
}
export type WidgetProps = {
autoConnect?: boolean;
chains?: Chain[];
config: WidgetConfig;
};