minterjs-tx
Version:
A simple module for creating, manipulating and signing Minter transactions
30 lines (27 loc) • 791 B
JavaScript
import defineProperties from '../define-properties.js';
export default class TxDataCreateMultisig {
constructor(data, options) {
// Define Properties
const fields = [
{
name: 'threshold',
// length: 2,
// allowLess: true,
}, {
name: 'weights',
isNonBinaryArray: true,
}, {
name: 'addresses',
isNonBinaryArray: true,
}];
/**
* Returns the rlp encoding of the transaction
* @method serialize
* @return {Buffer}
* @memberof Transaction
* @name serialize
*/
// attached serialize
defineProperties(this, fields, data, options);
}
}