@taquito/taquito
Version:
High level functionality that builds upon the other packages in the Tezos Typescript Library Suite.
52 lines (51 loc) • 2.52 kB
TypeScript
import { MichelsonV1ExpressionBase, OperationResultDelegation, OperationResultOrigination, OperationResultRegisterGlobalConstant, OperationResultReveal, OperationResultSmartRollupOriginate, OperationResultTransaction, OperationResultTransferTicket, OperationResultTxRollupOrigination, OperationResultTxRollupSubmitBatch, PreapplyResponse, TezosGenericOperationError } from '@taquito/rpc';
export interface TezosOperationErrorWithMessage extends TezosGenericOperationError {
with: MichelsonV1ExpressionBase;
}
/**
* @category Error
* @description Generic tezos error that will be thrown when a mistake occurs when doing an operation; more details here https://tezos.gitlab.io/api/errors.html
*/
export declare class TezosOperationError extends Error {
errors: TezosGenericOperationError[];
errorDetails?: string | undefined;
name: string;
id: string;
kind: string;
constructor(errors: TezosGenericOperationError[], errorDetails?: string | undefined);
}
/**
* @category Error
* @description Tezos error that will be thrown when a mistake happens during the preapply stage
*/
export declare class TezosPreapplyFailureError extends Error {
result: any;
name: string;
constructor(result: any);
}
export declare type MergedOperationResult = OperationResultTransaction & OperationResultOrigination & OperationResultDelegation & OperationResultRegisterGlobalConstant & OperationResultTxRollupOrigination & OperationResultTxRollupSubmitBatch & OperationResultTransferTicket & Partial<OperationResultSmartRollupOriginate> & OperationResultReveal & {
fee?: string;
};
export declare const flattenOperationResult: (response: PreapplyResponse | PreapplyResponse[]) => MergedOperationResult[];
/***
* @description Flatten all error from preapply response (including internal error)
*/
export declare const flattenErrors: (response: PreapplyResponse | PreapplyResponse[], status?: string) => TezosGenericOperationError[];
/**
* @category Error
* @description Error that indicates a general failure happening during an origination operation
*/
export declare class OriginationOperationError extends Error {
message: string;
name: string;
constructor(message: string);
}
/**
* @category Error
* @description Error that indicates an invalid estimate value being passed
*/
export declare class InvalidEstimateValueError extends Error {
message: string;
name: string;
constructor(message: string);
}