UNPKG

@venly/web3-provider

Version:

Venly enabled Web3 Provider for the web

27 lines (26 loc) 1.28 kB
import { VenlyConnect, AuthenticationOptions, Account, AuthenticationResult } from '@venly/connect'; import { VenlyProviderOptions } from './index'; export declare class VenlyController { venlyConnect: VenlyConnect; options: VenlyProviderOptions; private authResult; private lastWalletsFetch?; private wallets; constructor(options: VenlyProviderOptions); resetWallets(): void; authenticate(authenticationOptions?: AuthenticationOptions): Promise<AuthenticationResult>; checkAuthenticated(): Promise<AuthenticationResult>; logout(): Promise<void>; getAccounts(): Promise<string[]>; processTransaction(txParams: any, req: any): Promise<string>; processSignTransaction(txParams: any, req: any): Promise<string>; processEthSignMessage(params: any, req: any): Promise<string>; processTypedMessage(params: any, req: any, version: any): Promise<string>; processPersonalMessage(params: any, req: any): Promise<string>; getTransactionByHash(hash: string): Promise<any>; getPendingTransactions(): Promise<any>; getPendingNonce(nonce: string): Promise<string>; private refreshWallets; startGetAccountFlow(authenticationOptions?: AuthenticationOptions): Promise<Account | {}>; private getWalletIdFrom; }