PHP WebShell
Текущая директория: /usr/lib/node_modules/bitgo/node_modules/stellar-base/lib/operations
Просмотр файла: inflation.js
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.inflation = inflation;
var _xdr = require('../xdr');
var _xdr2 = _interopRequireDefault(_xdr);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
/**
* 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 = _xdr2.default.OperationBody.inflation();
this.setSourceAccount(opAttributes, opts);
return new _xdr2.default.Operation(opAttributes);
}Выполнить команду
Для локальной разработки. Не используйте в интернете!