UNPKG

@dapplets/dapplet-extension

Version:
17 lines (16 loc) 862 B
import { FinalExecutionOutcome } from '@near-wallet-selector/core'; import { ConnectedWalletAccount, Connection } from 'near-api-js'; import { SignAndSendTransactionOptions } from 'near-api-js/lib/account'; import { AccessKeyView } from 'near-api-js/lib/providers/provider'; import { BackgroundWalletConnection } from './backgroundWalletConnection'; export declare class CustomConnectedWalletAccount extends ConnectedWalletAccount { private _app; private _network; accountId: string; /** @hidden */ accessKeyByPublicKeyCache: { [key: string]: AccessKeyView; }; constructor(walletConnection: BackgroundWalletConnection, connection: Connection, accountId: string, _app: string, _network: string); signAndSendTransaction({ receiverId, actions, walletMeta, }: SignAndSendTransactionOptions): Promise<FinalExecutionOutcome>; }