UNPKG

@hashgraphonline/conversational-agent

Version:

Hashgraph Online conversational AI agent implementing HCS-10 communication, HCS-2 registries, and content inscription on Hedera. https://hol.org

27 lines (26 loc) 1.01 kB
export type WalletNetwork = 'mainnet' | 'testnet'; export interface WalletStatus { connected: boolean; accountId?: string; network?: WalletNetwork; } export interface WalletExecutorResult { transactionId: string; } export interface StartInscriptionResult { transactionBytes: string; tx_id?: string; topic_id?: string; status?: string; completed?: boolean; } export interface WalletBridgeProvider { status: () => Promise<WalletStatus> | WalletStatus; executeBytes: (base64: string, network: WalletNetwork) => Promise<WalletExecutorResult>; startInscription?: (request: Record<string, unknown>, network: WalletNetwork) => Promise<StartInscriptionResult>; startHCS?: (op: string, request: Record<string, unknown>, network: WalletNetwork) => Promise<{ transactionBytes: string; }>; } export declare function setWalletBridgeProvider(provider: WalletBridgeProvider): void; export declare function getWalletBridgeProvider(): WalletBridgeProvider | null;