UNPKG

minterjs-tx

Version:

A simple module for creating, manipulating and signing Minter transactions

40 lines (37 loc) 979 B
import defineProperties from '../define-properties.js'; export default class TxDataAddSwapPool { constructor(data, options) { // Define Properties const fields = [ { name: 'coin0', length: 4, allowLess: true, }, { name: 'coin1', length: 4, allowLess: true, }, { name: 'volume0', length: 32, allowLess: true, }, { name: 'maximumVolume1', 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); } }