UNPKG

cic-client

Version:

Typescript libraries for building CIC client applications

41 lines (40 loc) 947 B
/** * Abstractions of Web3 transactions and transaction receipt logs * * @module tx */ /** * Instance encapsulates metadata of a single mined transaction. * * @class Tx */ declare class Tx { block: number; txIndex: number; txHash: string; timestamp: number; success: boolean; /** * * @param block Block number * @param txIndex Transaction index in block * @param txHash Transaction hash * @param timestamp Block timestamp * @param success Whether transaction was successful */ constructor(block: number, txIndex: number, txHash: string, timestamp: number, success: boolean); } /** * Represents a single Web3 transaction receipt Log entry * * @class Log * @todo Should be changed to type def instead */ declare class Log { topics: Array<any>; data: string; blockNumber: number; transactionIndex: number; transactionHash: string; } export { Tx, Log, };