sui-svelte-wallet-kit
Version:
Svelte 5 wallet kit for Sui: connect wallets, manage accounts, SuiNS, balance, sign transactions/messages
22 lines (21 loc) • 965 B
TypeScript
import type { SuiWalletAdapter, SuiAccount } from '../types.js';
import type { ConnectionStatus } from '@suiet/wallet-sdk';
export type SessionContext = {
getAccount: () => SuiAccount | undefined;
getAdapter: () => SuiWalletAdapter | undefined;
getChain: (zkLoginGoogle: any) => string;
getStatus: () => ConnectionStatus;
ensureCallable: () => void;
};
export declare const signAndExecuteTransaction: (transaction: any, session: SessionContext, zkLoginGoogle: any) => Promise<any>;
export declare const signTransaction: (transaction: any, options: {
sender?: string;
} | undefined, session: SessionContext, zkLoginGoogle: any) => Promise<{
signature: string;
bytes: Uint8Array;
}>;
export declare const signMessage: (message: string | Uint8Array, session: SessionContext, zkLoginGoogle: any) => Promise<{
signature: string;
messageBytes: string;
}>;
export declare const canSignMessage: (session: SessionContext) => boolean;