UNPKG

diamante-base

Version:

Low-level support library for the Diamante network.

23 lines (22 loc) 800 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.inflation = inflation; var _xdr = _interopRequireDefault(require("../xdr")); function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } /** * This operation generates the inflation. * @function * @alias Operation.inflation * @param {object} [opts] Options object * @param {string} [opts.source] - The optional source account. * @returns {xdr.InflationOp} Inflation operation */ function inflation() { var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; var opAttributes = {}; opAttributes.body = _xdr["default"].OperationBody.inflation(); this.setSourceAccount(opAttributes, opts); return new _xdr["default"].Operation(opAttributes); }