minterjs-tx
Version:
A simple module for creating, manipulating and signing Minter transactions
47 lines (39 loc) • 1.13 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _defineProperties = _interopRequireDefault(require("../define-properties.js"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
var TxDataAddSwapPool = function TxDataAddSwapPool(data) {
_classCallCheck(this, TxDataAddSwapPool);
// Define Properties
var 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
(0, _defineProperties["default"])(this, fields, data);
};
exports["default"] = TxDataAddSwapPool;