UNPKG

eosplayer

Version:

eosplayer is the glue layer of eosjs, which is packaged based on eosjs and provides better usability for the application layer. It can be used on browsers already installed scatter or in Dapp wallets.

21 lines (20 loc) 1.06 kB
import { IMultiSourcePlayerConfig, MultiSourcePlayer } from '../../multiSourcePlayer'; import { IAuthorization, IEosClient, IIdentity } from '../../types/eos'; import { ISignPlayerOptions, NodeStat, NodeStatMgr } from './nodeStat'; export interface ISignPlayerConfig extends IMultiSourcePlayerConfig { account: IIdentity; options?: ISignPlayerOptions; } export declare class SignPlayer extends MultiSourcePlayer { protected _identity: IIdentity; protected _options: ISignPlayerOptions; protected _nodeStates: NodeStatMgr; protected _concurrentCount: number; constructor(conf: ISignPlayerConfig); readonly eosClient: IEosClient; getIdentity(): Promise<IIdentity>; setIdentity(account: IIdentity): void; lockChain(): import("../../helpers/chain").default; dynamicCall(code: string, func: string, jsonData: any, authorization?: IAuthorization): Promise<{}>; protected log(mark: string, endPointUrl: string, code: string, func: string, jsonData: any, auth: IAuthorization, node: NodeStat, ...args: any[]): void; }