UNPKG

@signumjs/wallets

Version:

Wallets communication package for DApps in the Signum Network

19 lines (18 loc) 819 B
import { ConfirmedTransaction, SendEncryptedMessageArgs, Wallet } from '../typings'; import { WalletConnection } from './walletConnection'; interface GenericExtensionWalletConnectArgs { appName: string; networkName: string | 'Signum' | 'Signum-TESTNET'; } export declare class GenericExtensionWallet implements Wallet { private readonly adapter; private _connection; constructor(adapter?: import("./extensionAdapter").ExtensionAdapter); private assertConnection; private fetchPermission; get connection(): WalletConnection | null; connect(args: GenericExtensionWalletConnectArgs): Promise<WalletConnection>; confirm(unsignedTransaction: string): Promise<ConfirmedTransaction>; sendEncryptedMessage(args: SendEncryptedMessageArgs): Promise<ConfirmedTransaction>; } export {};