UNPKG

minterjs-tx

Version:

A simple module for creating, manipulating and signing Minter transactions

43 lines (40 loc) 1.06 kB
import defineProperties from '../define-properties.js'; export default class TxDataDeclareCandidacy { constructor(data, options) { // Define Properties const fields = [ { name: 'address', length: 20, }, { name: 'publicKey', length: 32, }, { name: 'commission', length: 1, allowLess: true, }, { name: 'coin', length: 4, allowLess: true, }, { name: 'stake', length: 32, allowLess: true, default: 0, }]; /** * Returns the rlp encoding of the transaction * @method serialize * @return {Buffer} * @memberof Transaction * @name serialize */ // attached serialize defineProperties(this, fields, data, options); } }