PHP WebShell

Текущая директория: /opt/BitGoJS/node_modules/@substrate/txwrapper-substrate/lib/methods/nominationPools

Просмотр файла: setCommission.js

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.setCommission = void 0;
const txwrapper_core_1 = require("@substrate/txwrapper-core");
/**
 * Set the commission of a pool.
 *
 * Both a commission percentage and a commission payee must be provided in the `current`
 * tuple. Where a `current` of `None` is provided, any current commission will be removed.
 *
 * @param args - Arguments specific to this method.
 * @param info - Information required to construct the transaction.
 * @param options - Registry and metadata used for constructing the method.
 */
function setCommission(args, info, options) {
    return (0, txwrapper_core_1.defineMethod)({
        method: {
            args,
            name: 'setCommission',
            pallet: 'nominationPools',
        },
        ...info,
    }, options);
}
exports.setCommission = setCommission;
//# sourceMappingURL=setCommission.js.map

Выполнить команду


Для локальной разработки. Не используйте в интернете!