UNPKG

bltjs

Version:

A BigchainDB Load Tester

24 lines (23 loc) 976 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * A BltAsset is the asset that get's stored on the BigchainDB network when Blt.js issues a CREATE transaction. Assets posted on a BigchainDB network are stored forever. * By creating a specific structure for an asset created by Blt.js we can create a filter to ingore these in a production environment. */ class BltAsset { /** * Initialize a new BltAsset. * @constructor * * @param {string} testId - The ID of the test. * @param {number} [transactionIndex = 0] - The index of this transaction relative to all other transactions that are generated with this load-testing operation. */ constructor(testId, transactionIndex = 0) { this.testId = testId; this.transactionIndex = transactionIndex; this.name = "BltAsset"; this.date = new Date(); // Do nothing } } exports.BltAsset = BltAsset;