UNPKG

test-triam-base-contract

Version:

Low level triam smart cotnract support library

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