@taquito/taquito
Version:
High level functionality that builds upon the other packages in the Tezos Typescript Library Suite.
25 lines (24 loc) • 1.34 kB
TypeScript
import { OperationContentsAndResult, OperationContentsDelegation } from '@taquito/rpc';
import { Context } from '../context';
import { Operation } from './operations';
import { FeeConsumingOperation, ForgedBytes, GasConsumingOperation, StorageConsumingOperation } from './types';
/**
* @description Delegation operation provide utility function to fetch newly issued delegation
*
* @warn Currently support only one delegation per operation
*/
export declare class DelegateOperation extends Operation implements GasConsumingOperation, StorageConsumingOperation, FeeConsumingOperation {
private readonly params;
readonly source: string;
constructor(hash: string, params: OperationContentsDelegation, source: string, raw: ForgedBytes, results: OperationContentsAndResult[], context: Context);
get operationResults(): import("@taquito/rpc").OperationResultDelegation | undefined;
get status(): import("@taquito/rpc").OperationResultStatusEnum | "unknown";
get delegate(): string | undefined;
get isRegisterOperation(): boolean;
get fee(): number;
get gasLimit(): number;
get storageLimit(): number;
get consumedGas(): string | undefined;
get consumedMilliGas(): string | undefined;
get errors(): import("@taquito/rpc").TezosGenericOperationError[] | undefined;
}