Sha256: d73d025f28494d5df190a1b57bab54a2a757df11eb2702304cdde5c213408f84
Contents?: true
Size: 1.08 KB
Versions: 2
Compression:
Stored size: 1.08 KB
Contents
import { Transaction, WithApiMixin } from '@waves/ts-types'; import { TLong } from '../../interface'; import { EventEmitter } from 'typed-ts-events'; export declare class Watch { readonly address: string; private readonly _base; private readonly _interval; private readonly _emitter; private _lastBlock; private _timer; constructor(base: string, address: string, tx: (Transaction<TLong> & WithApiMixin) | null, interval?: number); on<K extends keyof IEvents>(event: K, handler: EventEmitter.IHandler<IEvents[K], any>): void; once<K extends keyof IEvents>(event: K, handler: EventEmitter.IHandler<IEvents[K], any>): void; off(event?: keyof IEvents, handler?: EventEmitter.IHandler<IEvents[keyof IEvents], any>): void; private _run; private getTransactionsInHeight; private _addTimeout; private static _groupByHeight; private static _getTransactionsToDispatch; } export interface IEvents { 'change-state': Array<Transaction<TLong> & WithApiMixin>; } export default function (base: string, address: string, interval?: number): Promise<Watch>;
Version data entries
2 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
waves_lib-0.1.0 | js/node_modules/@waves/node-api-js/cjs/tools/adresses/watch.d.ts |
waves_lib-0.1.0 | js/node_modules/@waves/node-api-js/es/tools/adresses/watch.d.ts |