UNPKG

minterjs-tx

Version:

A simple module for creating, manipulating and signing Minter transactions

39 lines (36 loc) 980 B
import defineProperties from '../define-properties.js'; export default class TxDataAddLimitOrder { constructor(data, options) { // Define Properties const fields = [ { name: 'coinToSell', length: 4, allowLess: true, }, { name: 'valueToSell', length: 32, allowLess: true, }, { name: 'coinToBuy', length: 4, allowLess: true, }, { name: 'valueToBuy', length: 32, allowLess: true, }]; /** * Returns the rlp encoding of the transaction * @method serialize * @return {Buffer} * @memberof Transaction * @name serialize */ // attached serialize defineProperties(this, fields, data, options); } }