PHP WebShell
Текущая директория: /opt/BitGoJS/node_modules/@substrate/txwrapper-substrate/lib/methods/nominationPools
Просмотр файла: unbond.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.unbond = void 0;
const txwrapper_core_1 = require("@substrate/txwrapper-core");
/**
* Unbond up to `unbonding_points` of the `member_account`'s funds from the pool. It
* implicitly collects the rewards one last time, since not doing so would mean some
* rewards would be forfeited.
*
* Under certain conditions, this call can be dispatched permissionlessly (i.e. by any
* account).
*
* # Conditions for a permissionless dispatch.
*
* The pool is blocked and the caller is either the root or bouncer. This is refereed to
* as a kick.
* The pool is destroying and the member is not the depositor.
* The pool is destroying, the member is the depositor and no other members are in the
* pool.
*
* ## Conditions for permissioned dispatch (i.e. the caller is also the
* `member_account`):
*
* The caller is not the depositor.
* The caller is the depositor, the pool is destroying and no other members are in the
* pool.
*
* # Note
*
* If there are too many unlocking chunks to unbond with the pool account,
* [`Call::pool_withdraw_unbonded`] can be called to try and minimize unlocking chunks.
* The [`StakingInterface::unbond`] will implicitly call [`Call::pool_withdraw_unbonded`]
* to try to free chunks if necessary (ie. if unbound was called and no unlocking chunks
* are available). However, it may not be possible to release the current unlocking chunks,
* in which case, the result of this call will likely be the `NoMoreChunks` error from the
* staking system.
*
* @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 unbond(args, info, options) {
return (0, txwrapper_core_1.defineMethod)({
method: {
args,
name: 'unbond',
pallet: 'nominationPools',
},
...info,
}, options);
}
exports.unbond = unbond;
//# sourceMappingURL=unbond.js.mapВыполнить команду
Для локальной разработки. Не используйте в интернете!