@taquito/taquito
Version:
High level functionality that builds upon the other packages in the Tezos Typescript Library Suite.
36 lines (35 loc) • 1.42 kB
TypeScript
import { OperationContentsAndResult, OperationContentsAndResultReveal } from '@taquito/rpc';
import { Context } from '../context';
import { ForgedBytes } from './types';
/**
* @description Utility class to interact with Tezos operations
*/
export declare class Operation {
readonly hash: string;
readonly raw: ForgedBytes;
readonly results: OperationContentsAndResult[];
protected readonly context: Context;
private _pollingConfig$;
private lastHead;
private currentHead$;
private confirmed$;
protected _foundAt: number;
get includedInBlock(): number;
/**
*
* @param hash Operation hash
* @param raw Raw operation that was injected
* @param context Taquito context allowing access to rpc and signer
* @throws {@link InvalidOperationHashError}
*/
constructor(hash: string, raw: ForgedBytes, results: OperationContentsAndResult[], context: Context);
get revealOperation(): false | OperationContentsAndResultReveal | undefined;
get revealStatus(): "applied" | "failed" | "skipped" | "backtracked" | "unknown";
get status(): "applied" | "failed" | "skipped" | "backtracked" | "unknown";
/**
*
* @param confirmations [0] Number of confirmation to wait for
* @param timeout [180] Timeout
*/
confirmation(confirmations?: number, timeout?: number): Promise<number>;
}