PHP WebShell

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

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

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.setState = void 0;
const txwrapper_core_1 = require("@substrate/txwrapper-core");
/**
 *  Set a new state for the pool.
 *
 *  If a pool is already in the `Destroying` state, then under no condition can its state
 *  change again.
 *
 *  The dispatch origin of this call must be either:
 *
 *  1. signed by the bouncer, or the root role of the pool,
 *  2. if the pool conditions to be open are NOT met (as described by `ok_to_be_open`), and
 *     then the state of the pool can be permissionlessly changed to `Destroying`.
 *
 * @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 setState(args, info, options) {
    return (0, txwrapper_core_1.defineMethod)({
        method: {
            args,
            name: 'setState',
            pallet: 'nominationPools',
        },
        ...info,
    }, options);
}
exports.setState = setState;
//# sourceMappingURL=setState.js.map

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


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