UNPKG

minterjs-tx

Version:

A simple module for creating, manipulating and signing Minter transactions

45 lines (42 loc) 1.11 kB
import defineProperties from '../define-properties.js'; export default class TxDataRemoveSwapPool { constructor(data, options) { // Define Properties const fields = [ { name: 'coin0', length: 4, allowLess: true, }, { name: 'coin1', length: 4, allowLess: true, }, { name: 'liquidity', length: 32, allowLess: true, }, { name: 'minimumVolume0', length: 32, allowLess: true, }, { name: 'minimumVolume1', 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); } }