PHP WebShell
Текущая директория: /opt/BitGoJS/node_modules/@substrate/txwrapper-substrate/lib/methods/nominationPools
Просмотр файла: updateRoles.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.updateRoles = void 0;
const txwrapper_core_1 = require("@substrate/txwrapper-core");
/**
* Update the roles of the pool.
*
* The root is the only entity that can change any of the roles, including itself,
* excluding the depositor, who can never change.
*
* It emits an event, notifying UIs of the role change. This event is quite relevant to
* most pool members and they should be informed of changes to pool roles.
*
* @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 updateRoles(args, info, options) {
return (0, txwrapper_core_1.defineMethod)({
method: {
args,
name: 'updateRoles',
pallet: 'nominationPools',
},
...info,
}, options);
}
exports.updateRoles = updateRoles;
//# sourceMappingURL=updateRoles.js.mapВыполнить команду
Для локальной разработки. Не используйте в интернете!