UNPKG

cic-client

Version:

Typescript libraries for building CIC client applications

45 lines (44 loc) 1.07 kB
"use strict"; /** * Abstractions of Web3 transactions and transaction receipt logs * * @module tx */ Object.defineProperty(exports, "__esModule", { value: true }); exports.Log = exports.Tx = void 0; /** * Instance encapsulates metadata of a single mined transaction. * * @class Tx */ var Tx = /** @class */ (function () { /** * * @param block Block number * @param txIndex Transaction index in block * @param txHash Transaction hash * @param timestamp Block timestamp * @param success Whether transaction was successful */ function Tx(block, txIndex, txHash, timestamp, success) { this.block = block; this.txIndex = txIndex; this.txHash = txHash; this.timestamp = timestamp; this.success = success; } return Tx; }()); exports.Tx = Tx; /** * Represents a single Web3 transaction receipt Log entry * * @class Log * @todo Should be changed to type def instead */ var Log = /** @class */ (function () { function Log() { } return Log; }()); exports.Log = Log;