minterjs-tx
Version:
A simple module for creating, manipulating and signing Minter transactions
51 lines (43 loc) • 1.21 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 TxDataRemoveSwapPool = function TxDataRemoveSwapPool(data) {
_classCallCheck(this, TxDataRemoveSwapPool);
// Define Properties
var 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
(0, _defineProperties["default"])(this, fields, data);
};
exports["default"] = TxDataRemoveSwapPool;