import { BlockBase, BlockHeaderBase, BlockTipBase } from "../base-objects/BlockBase"; import { FullBlockBase } from "../base-objects/FullBlockBase"; import { INodeStatus } from "../base-objects/StatusBase"; import { TransactionBase } from "../base-objects/TransactionBase"; interface BaseRpcInterface { chainType: ChainType; } export interface ReadRpcInterface, T extends TransactionBase> extends BaseRpcInterface { getNodeStatus(): Promise; /** * The lowest block in the latest joined set of blocks */ getBottomBlockHeight(): Promise; getBlockHeader(blockNumberOrHash: number | string | any): Promise; getBlock(blockNumberOrHash: number | string | any): Promise; getFullBlock(blockNumberOrHash: number | string): Promise; getBlockHeight(): Promise; getBlockTips?(height_gte: number): Promise; getTopLiteBlocks(branch_len: number, read_main?: boolean): Promise; getTransaction(txId: string, metaData?: getTransactionOptions): Promise; listTransactions?(options?: any): any; } export interface RPCInterface, T extends TransactionBase> extends ReadRpcInterface { } export interface IIGetTransactionRes { } export interface IIGetBlockRes { } export declare enum TransactionSuccessStatus { SUCCESS = 0, SENDER_FAILURE = 1,// if there is a failure and cannot be clearly attributed to the receiver, then it is SENDER_FAILURE RECEIVER_FAILURE = 2 } /** * Object to use in get transaction additional parameters */ export interface getTransactionOptions { verbose?: boolean; binary?: boolean; min_block?: number; max_block?: number; } export declare enum ChainType { invalid = -1, BTC = 0, DOGE = 2, XRP = 3 } export type LoggingModes = "off" | "production" | "develop"; export type IExceptionCallback = (error: any, message: string) => void; export type ILoggingCallback = (message: string) => void; export declare class MccLoggingOptions { mode?: LoggingModes; loggingCallback?: ILoggingCallback; warningCallback?: ILoggingCallback; exceptionCallback?: IExceptionCallback; } export declare class MccLoggingOptionsFull { mode: LoggingModes; loggingCallback: ILoggingCallback; warningCallback: ILoggingCallback; exceptionCallback: IExceptionCallback; } export interface IEmptyObject { } export {}; //# sourceMappingURL=genericMccTypes.d.ts.map