bittensor.core.extrinsics.pallets.admin_utils#
WARNING: This module contains administrative utilities that should ONLY be used for local development and testing purposes. These functions provide direct access to critical network parameters and should never be used in production environments as they can potentially disrupt network stability.
The AdminUtils module contains powerful administrative functions that can modify core network parameters. Improper use of these functions outside of development/testing contexts could have severe consequences for network operation.
Classes#
Factory class for creating GenericCall objects for AdminUtils pallet functions. |
Module Contents#
- class bittensor.core.extrinsics.pallets.admin_utils.AdminUtils#
Bases:
bittensor.core.extrinsics.pallets.base.CallBuilderFactory class for creating GenericCall objects for AdminUtils pallet functions.
This class provides methods to create GenericCall instances for all AdminUtils pallet extrinsics.
Works with both sync (Subtensor) and async (AsyncSubtensor) instances. For async operations, pass an AsyncSubtensor instance and await the result.
Example
# Sync usage call = AdminUtils(subtensor).sudo_set_default_take(default_take=100) response = subtensor.sign_and_send_extrinsic(call=call, …)
# Async usage call = await AdminUtils(async_subtensor).sudo_set_default_take(default_take=100) response = await async_subtensor.sign_and_send_extrinsic(call=call, …)
- schedule_grandpa_change(next_authorities, in_blocks, forced=None)#
Returns GenericCall instance for AdminUtils function schedule_grandpa_change.
A public interface for pallet_grandpa::Pallet::schedule_grandpa_change.
Schedule a change in the authorities.
The change will be applied at the end of execution of the block in_blocks after the current block. This value may be 0, in which case the change is applied at the end of the current block.
If the forced parameter is defined, this indicates that the current set has been synchronously determined to be offline and that after in_blocks the given change should be applied. The given block number indicates the median last finalized block number and it should be used as the canon block when starting the new grandpa voter.
No change should be signaled while any change is pending. Returns an error if a change is already pending.
- Parameters:
- Returns:
GenericCall instance.
- Return type:
bittensor.core.extrinsics.pallets.base.Call
- sudo_set_activity_cutoff(netuid, activity_cutoff)#
Returns GenericCall instance for AdminUtils function sudo_set_activity_cutoff.
The extrinsic sets the activity cutoff for a subnet. It is only callable by the root account or subnet owner. The extrinsic will call the Subtensor pallet to set the activity cutoff.
- sudo_set_adjustment_alpha(netuid, adjustment_alpha)#
Returns GenericCall instance for AdminUtils function sudo_set_adjustment_alpha.
The extrinsic sets the adjustment alpha for a subnet. It is only callable by the root account or subnet owner. The extrinsic will call the Subtensor pallet to set the adjustment alpha.
- sudo_set_adjustment_interval(netuid, adjustment_interval)#
Returns GenericCall instance for AdminUtils function sudo_set_adjustment_interval.
The extrinsic sets the adjustment interval for a subnet. It is only callable by the root account, not changeable by the subnet owner. The extrinsic will call the Subtensor pallet to set the adjustment interval.
- sudo_set_admin_freeze_window(window)#
Returns GenericCall instance for AdminUtils function sudo_set_admin_freeze_window.
Sets the admin freeze window length (in blocks) at the end of a tempo. Only callable by root.
- Parameters:
window (int) – The admin freeze window length in blocks (u16).
- Returns:
GenericCall instance.
- Return type:
bittensor.core.extrinsics.pallets.base.Call
- sudo_set_alpha_sigmoid_steepness(netuid, steepness)#
Returns GenericCall instance for AdminUtils function sudo_set_alpha_sigmoid_steepness.
Sets the Steepness for the alpha sigmoid function.
- sudo_set_alpha_values(netuid, alpha_low, alpha_high)#
Returns GenericCall instance for AdminUtils function sudo_set_alpha_values.
Sets values for liquid alpha.
- sudo_set_bonds_moving_average(netuid, bonds_moving_average)#
Returns GenericCall instance for AdminUtils function sudo_set_bonds_moving_average.
The extrinsic sets the bonds moving average for a subnet. It is only callable by the root account or subnet owner. The extrinsic will call the Subtensor pallet to set the bonds moving average.
- sudo_set_bonds_penalty(netuid, bonds_penalty)#
Returns GenericCall instance for AdminUtils function sudo_set_bonds_penalty.
The extrinsic sets the bonds penalty for a subnet. It is only callable by the root account or subnet owner. The extrinsic will call the Subtensor pallet to set the bonds penalty.
- sudo_set_bonds_reset_enabled(netuid, enabled)#
Returns GenericCall instance for AdminUtils function sudo_set_bonds_reset_enabled.
Enables or disables Bonds Reset for a given subnet.
- sudo_set_ck_burn(burn)#
Returns GenericCall instance for AdminUtils function sudo_set_ck_burn.
Sets the childkey burn for a subnet. It is only callable by the root account. The extrinsic will call the Subtensor pallet to set the childkey burn.
- Parameters:
burn (int) – The childkey burn value (u64).
- Returns:
GenericCall instance.
- Return type:
bittensor.core.extrinsics.pallets.base.Call
- sudo_set_coldkey_swap_schedule_duration(duration)#
Returns GenericCall instance for AdminUtils function sudo_set_coldkey_swap_schedule_duration.
Sets the duration of the coldkey swap schedule.
This extrinsic allows the root account to set the duration for the coldkey swap schedule. The coldkey swap schedule determines how long it takes for a coldkey swap operation to complete.
- Parameters:
duration (int) – The new duration for the coldkey swap schedule, in number of blocks.
- Returns:
GenericCall instance.
- Return type:
bittensor.core.extrinsics.pallets.base.Call
- sudo_set_commit_reveal_version(version)#
Returns GenericCall instance for AdminUtils function sudo_set_commit_reveal_version.
Sets the commit-reveal weights version for all subnets.
- Parameters:
version (int) – The commit-reveal weights version (u16).
- Returns:
GenericCall instance.
- Return type:
bittensor.core.extrinsics.pallets.base.Call
- sudo_set_commit_reveal_weights_enabled(netuid, enabled)#
Returns GenericCall instance for AdminUtils function sudo_set_commit_reveal_weights_enabled.
The extrinsic enabled/disables commit/reaveal for a given subnet. It is only callable by the root account or subnet owner. The extrinsic will call the Subtensor pallet to set the value.
- sudo_set_commit_reveal_weights_interval(netuid, interval)#
Returns GenericCall instance for AdminUtils function sudo_set_commit_reveal_weights_interval.
Sets the commit-reveal weights periods for a specific subnet.
This extrinsic allows the subnet owner or root account to set the duration (in epochs) during which committed weights must be revealed. The commit-reveal mechanism ensures that users commit weights in advance and reveal them only within a specified period.
- sudo_set_default_take(default_take)#
Returns GenericCall instance for AdminUtils function sudo_set_default_take.
The extrinsic sets the default take for the network. It is only callable by the root account. The extrinsic will call the Subtensor pallet to set the default take.
- Parameters:
default_take (int) – The default take value (u16).
- Returns:
GenericCall instance.
- Return type:
bittensor.core.extrinsics.pallets.base.Call
- sudo_set_difficulty(netuid, difficulty)#
Returns GenericCall instance for AdminUtils function sudo_set_difficulty.
The extrinsic sets the difficulty for a subnet. It is only callable by the root account or subnet owner. The extrinsic will call the Subtensor pallet to set the difficulty.
- sudo_set_dissolve_network_schedule_duration(duration)#
Returns GenericCall instance for AdminUtils function sudo_set_dissolve_network_schedule_duration.
Sets the duration of the dissolve network schedule.
This extrinsic allows the root account to set the duration for the dissolve network schedule. The dissolve network schedule determines how long it takes for a network dissolution operation to complete.
- Parameters:
duration (int) – The new duration for the dissolve network schedule, in number of blocks.
- Returns:
GenericCall instance.
- Return type:
bittensor.core.extrinsics.pallets.base.Call
- sudo_set_ema_price_halving_period(netuid, ema_halving)#
Returns GenericCall instance for AdminUtils function sudo_set_ema_price_halving_period.
Sets the number of blocks for EMA price to halve.
- sudo_set_evm_chain_id(chain_id)#
Returns GenericCall instance for AdminUtils function sudo_set_evm_chain_id.
Sets the EVM ChainID.
- Parameters:
chain_id (int) – The u64 chain ID.
- Returns:
GenericCall instance.
- Return type:
bittensor.core.extrinsics.pallets.base.Call
- sudo_set_immunity_period(netuid, immunity_period)#
Returns GenericCall instance for AdminUtils function sudo_set_immunity_period.
The extrinsic sets the immunity period for a subnet. It is only callable by the root account or subnet owner. The extrinsic will call the Subtensor pallet to set the immunity period.
- sudo_set_kappa(netuid, kappa)#
Returns GenericCall instance for AdminUtils function sudo_set_kappa.
The extrinsic sets the kappa for a subnet. It is only callable by the root account or subnet owner. The extrinsic will call the Subtensor pallet to set the kappa.
- sudo_set_liquid_alpha_enabled(netuid, enabled)#
Returns GenericCall instance for AdminUtils function sudo_set_liquid_alpha_enabled.
Enables or disables Liquid Alpha for a given subnet.
- sudo_set_lock_reduction_interval(interval)#
Returns GenericCall instance for AdminUtils function sudo_set_lock_reduction_interval.
The extrinsic sets the lock reduction interval for the network. It is only callable by the root account. The extrinsic will call the Subtensor pallet to set the lock reduction interval.
- Parameters:
interval (int) – The lock reduction interval (u64).
- Returns:
GenericCall instance.
- Return type:
bittensor.core.extrinsics.pallets.base.Call
- sudo_set_max_allowed_uids(netuid, max_allowed_uids)#
Returns GenericCall instance for AdminUtils function sudo_set_max_allowed_uids.
The extrinsic sets the maximum allowed UIDs for a subnet. It is only callable by the root account and subnet owner. The extrinsic will call the Subtensor pallet to set the maximum allowed UIDs for a subnet.
- sudo_set_max_allowed_validators(netuid, max_allowed_validators)#
Returns GenericCall instance for AdminUtils function sudo_set_max_allowed_validators.
The extrinsic sets the maximum allowed validators for a subnet. It is only callable by the root account. The extrinsic will call the Subtensor pallet to set the maximum allowed validators.
- sudo_set_max_burn(netuid, max_burn)#
Returns GenericCall instance for AdminUtils function sudo_set_max_burn.
The extrinsic sets the maximum burn for a subnet. It is only callable by root and subnet owner. The extrinsic will call the Subtensor pallet to set the maximum burn.
- sudo_set_max_difficulty(netuid, max_difficulty)#
Returns GenericCall instance for AdminUtils function sudo_set_max_difficulty.
The extrinsic sets the maximum difficulty for a subnet. It is only callable by the root account or subnet owner. The extrinsic will call the Subtensor pallet to set the maximum difficulty.
- sudo_set_max_registrations_per_block(netuid, max_registrations_per_block)#
Returns GenericCall instance for AdminUtils function sudo_set_max_registrations_per_block.
The extrinsic sets the maximum registrations per block for a subnet. It is only callable by the root account. The extrinsic will call the Subtensor pallet to set the maximum registrations per block.
- sudo_set_mechanism_count(netuid, mechanism_count)#
Returns GenericCall instance for AdminUtils function sudo_set_mechanism_count.
Sets the desired number of mechanisms in a subnet.
- sudo_set_mechanism_emission_split(netuid, maybe_split=None)#
Returns GenericCall instance for AdminUtils function sudo_set_mechanism_emission_split.
Sets the emission split between mechanisms in a subnet.
- sudo_set_min_allowed_uids(netuid, min_allowed_uids)#
Returns GenericCall instance for AdminUtils function sudo_set_min_allowed_uids.
The extrinsic sets the minimum allowed UIDs for a subnet. It is only callable by the root account.
- sudo_set_min_allowed_weights(netuid, min_allowed_weights)#
Returns GenericCall instance for AdminUtils function sudo_set_min_allowed_weights.
The extrinsic sets the minimum allowed weights for a subnet. It is only callable by the root account or subnet owner. The extrinsic will call the Subtensor pallet to set the minimum allowed weights.
- sudo_set_min_burn(netuid, min_burn)#
Returns GenericCall instance for AdminUtils function sudo_set_min_burn.
The extrinsic sets the minimum burn for a subnet. It is only callable by root and subnet owner. The extrinsic will call the Subtensor pallet to set the minimum burn.
- sudo_set_min_delegate_take(take)#
Returns GenericCall instance for AdminUtils function sudo_set_min_delegate_take.
The extrinsic sets the minimum delegate take. It is only callable by the root account. The extrinsic will call the Subtensor pallet to set the minimum delegate take.
- Parameters:
take (int) – The minimum delegate take value (u16).
- Returns:
GenericCall instance.
- Return type:
bittensor.core.extrinsics.pallets.base.Call
- sudo_set_min_difficulty(netuid, min_difficulty)#
Returns GenericCall instance for AdminUtils function sudo_set_min_difficulty.
The extrinsic sets the minimum difficulty for a subnet. It is only callable by the root account or subnet owner. The extrinsic will call the Subtensor pallet to set the minimum difficulty.
- sudo_set_network_immunity_period(immunity_period)#
Returns GenericCall instance for AdminUtils function sudo_set_network_immunity_period.
The extrinsic sets the immunity period for the network. It is only callable by the root account. The extrinsic will call the Subtensor pallet to set the immunity period for the network.
- Parameters:
immunity_period (int) – The immunity period (u64).
- Returns:
GenericCall instance.
- Return type:
bittensor.core.extrinsics.pallets.base.Call
- sudo_set_network_min_lock_cost(lock_cost)#
Returns GenericCall instance for AdminUtils function sudo_set_network_min_lock_cost.
The extrinsic sets the min lock cost for the network. It is only callable by the root account. The extrinsic will call the Subtensor pallet to set the min lock cost for the network.
- Parameters:
lock_cost (int) – The lock cost value in RAO (TaoCurrency).
- Returns:
GenericCall instance.
- Return type:
bittensor.core.extrinsics.pallets.base.Call
- sudo_set_network_pow_registration_allowed(netuid, registration_allowed)#
Returns GenericCall instance for AdminUtils function sudo_set_network_pow_registration_allowed.
The extrinsic sets the network PoW registration allowed for a subnet. It is only callable by the root account or subnet owner. The extrinsic will call the Subtensor pallet to set the network PoW registration allowed.
- sudo_set_network_rate_limit(rate_limit)#
Returns GenericCall instance for AdminUtils function sudo_set_network_rate_limit.
The extrinsic sets the network rate limit for the network. It is only callable by the root account. The extrinsic will call the Subtensor pallet to set the network rate limit.
- Parameters:
rate_limit (int) – The network rate limit (u64).
- Returns:
GenericCall instance.
- Return type:
bittensor.core.extrinsics.pallets.base.Call
- sudo_set_network_registration_allowed(netuid, registration_allowed)#
Returns GenericCall instance for AdminUtils function sudo_set_network_registration_allowed.
The extrinsic sets the network registration allowed for a subnet. It is only callable by the root account or subnet owner. The extrinsic will call the Subtensor pallet to set the network registration allowed.
- sudo_set_nominator_min_required_stake(min_stake)#
Returns GenericCall instance for AdminUtils function sudo_set_nominator_min_required_stake.
The extrinsic sets the minimum stake required for nominators. It is only callable by the root account. The extrinsic will call the Subtensor pallet to set the minimum stake required for nominators.
- Parameters:
min_stake (int) – The minimum stake required for nominators (u64).
- Returns:
GenericCall instance.
- Return type:
bittensor.core.extrinsics.pallets.base.Call
- sudo_set_owner_hparam_rate_limit(epochs)#
Returns GenericCall instance for AdminUtils function sudo_set_owner_hparam_rate_limit.
Sets the owner hyperparameter rate limit in epochs (global multiplier). Only callable by root.
- Parameters:
epochs (int) – The owner hyperparameter rate limit in epochs (u16).
- Returns:
GenericCall instance.
- Return type:
bittensor.core.extrinsics.pallets.base.Call
- sudo_set_owner_immune_neuron_limit(netuid, immune_neurons)#
Returns GenericCall instance for AdminUtils function sudo_set_owner_immune_neuron_limit.
Sets the number of immune owner neurons.
- sudo_set_rao_recycled(netuid, rao_recycled)#
Returns GenericCall instance for AdminUtils function sudo_set_rao_recycled.
The extrinsic sets the recycled RAO for a subnet. It is only callable by the root account. The extrinsic will call the Subtensor pallet to set the recycled RAO.
- sudo_set_recycle_or_burn(netuid, recycle_or_burn)#
Returns GenericCall instance for AdminUtils function sudo_set_recycle_or_burn.
Set the behaviour of the “burn” UID(s) for a given subnet. If set to Burn, the miner emission sent to the burn UID(s) will be burned. If set to Recycle, the miner emission sent to the burn UID(s) will be recycled.
- sudo_set_rho(netuid, rho)#
Returns GenericCall instance for AdminUtils function sudo_set_rho.
The extrinsic sets the rho for a subnet. It is only callable by the root account or subnet owner. The extrinsic will call the Subtensor pallet to set the rho.
- sudo_set_serving_rate_limit(netuid, serving_rate_limit)#
Returns GenericCall instance for AdminUtils function sudo_set_serving_rate_limit.
The extrinsic sets the serving rate limit for a subnet. It is only callable by the root account or subnet owner. The extrinsic will call the Subtensor pallet to set the serving rate limit.
- sudo_set_sn_owner_hotkey(netuid, hotkey)#
Returns GenericCall instance for AdminUtils function sudo_set_sn_owner_hotkey.
Sets or updates the hotkey account associated with the owner of a specific subnet.
This function allows either the root origin or the current subnet owner to set or update the hotkey for a given subnet. The subnet must already exist. To prevent abuse, the call is rate-limited to once per configured interval (default: one week) per subnet.
- sudo_set_stake_threshold(min_stake)#
Returns GenericCall instance for AdminUtils function sudo_set_stake_threshold.
The extrinsic sets the weights min stake. It is only callable by the root account. The extrinsic will call the Subtensor pallet to set the weights min stake.
- Parameters:
min_stake (int) – The minimum stake value (u64).
- Returns:
GenericCall instance.
- Return type:
bittensor.core.extrinsics.pallets.base.Call
- sudo_set_subnet_limit(max_subnets)#
Returns GenericCall instance for AdminUtils function sudo_set_subnet_limit.
The extrinsic sets the subnet limit for the network. It is only callable by the root account. The extrinsic will call the Subtensor pallet to set the subnet limit.
- Parameters:
max_subnets (int) – The maximum number of subnets (u16).
- Returns:
GenericCall instance.
- Return type:
bittensor.core.extrinsics.pallets.base.Call
- sudo_set_subnet_moving_alpha(alpha)#
Returns GenericCall instance for AdminUtils function sudo_set_subnet_moving_alpha.
Sets the new moving alpha value for the SubnetMovingAlpha.
- Parameters:
alpha (dict) – The new moving alpha value (I96F32).
- Returns:
GenericCall instance.
- Return type:
bittensor.core.extrinsics.pallets.base.Call
- sudo_set_subnet_owner_cut(subnet_owner_cut)#
Returns GenericCall instance for AdminUtils function sudo_set_subnet_owner_cut.
The extrinsic sets the subnet owner cut for a subnet. It is only callable by the root account. The extrinsic will call the Subtensor pallet to set the subnet owner cut.
- Parameters:
subnet_owner_cut (int) – The subnet owner cut value (u16).
- Returns:
GenericCall instance.
- Return type:
bittensor.core.extrinsics.pallets.base.Call
- sudo_set_subnet_owner_hotkey(netuid, hotkey)#
Returns GenericCall instance for AdminUtils function sudo_set_subnet_owner_hotkey.
Change the SubnetOwnerHotkey for a given subnet.
- sudo_set_subtoken_enabled(netuid, subtoken_enabled)#
Returns GenericCall instance for AdminUtils function sudo_set_subtoken_enabled.
Enables or disables subtoken trading for a given subnet.
- sudo_set_tao_flow_cutoff(flow_cutoff)#
Returns GenericCall instance for AdminUtils function sudo_set_tao_flow_cutoff.
Sets TAO flow cutoff value (A).
- Parameters:
flow_cutoff (dict) – The TAO flow cutoff value (I64F64).
- Returns:
GenericCall instance.
- Return type:
bittensor.core.extrinsics.pallets.base.Call
- sudo_set_tao_flow_normalization_exponent(exponent)#
Returns GenericCall instance for AdminUtils function sudo_set_tao_flow_normalization_exponent.
Sets TAO flow normalization exponent (p).
- Parameters:
exponent (dict) – The TAO flow normalization exponent (U64F64).
- Returns:
GenericCall instance.
- Return type:
bittensor.core.extrinsics.pallets.base.Call
- sudo_set_tao_flow_smoothing_factor(smoothing_factor)#
Returns GenericCall instance for AdminUtils function sudo_set_tao_flow_smoothing_factor.
Sets TAO flow smoothing factor (alpha).
- Parameters:
smoothing_factor (int) – The TAO flow smoothing factor (u64).
- Returns:
GenericCall instance.
- Return type:
bittensor.core.extrinsics.pallets.base.Call
- sudo_set_target_registrations_per_interval(netuid, target_registrations_per_interval)#
Returns GenericCall instance for AdminUtils function sudo_set_target_registrations_per_interval.
The extrinsic sets the target registrations per interval for a subnet. It is only callable by the root account. The extrinsic will call the Subtensor pallet to set the target registrations per interval.
- sudo_set_tempo(netuid, tempo)#
Returns GenericCall instance for AdminUtils function sudo_set_tempo.
The extrinsic sets the tempo for a subnet. It is only callable by the root account. The extrinsic will call the Subtensor pallet to set the tempo.
- sudo_set_toggle_transfer(netuid, toggle)#
Returns GenericCall instance for AdminUtils function sudo_set_toggle_transfer.
Enable or disable atomic alpha transfers for a given subnet.
- sudo_set_total_issuance(total_issuance)#
Returns GenericCall instance for AdminUtils function sudo_set_total_issuance.
The extrinsic sets the total issuance for the network. It is only callable by the root account. The extrinsic will call the Subtensor pallet to set the issuance for the network.
- Parameters:
total_issuance (int) – The total issuance value in RAO (TaoCurrency).
- Returns:
GenericCall instance.
- Return type:
bittensor.core.extrinsics.pallets.base.Call
- sudo_set_tx_delegate_take_rate_limit(tx_rate_limit)#
Returns GenericCall instance for AdminUtils function sudo_set_tx_delegate_take_rate_limit.
The extrinsic sets the rate limit for delegate take transactions. It is only callable by the root account. The extrinsic will call the Subtensor pallet to set the rate limit for delegate take transactions.
- Parameters:
tx_rate_limit (int) – The transaction rate limit (u64).
- Returns:
GenericCall instance.
- Return type:
bittensor.core.extrinsics.pallets.base.Call
- sudo_set_tx_rate_limit(tx_rate_limit)#
Returns GenericCall instance for AdminUtils function sudo_set_tx_rate_limit.
The extrinsic sets the transaction rate limit for the network. It is only callable by the root account. The extrinsic will call the Subtensor pallet to set the transaction rate limit.
- Parameters:
tx_rate_limit (int) – The transaction rate limit (u64).
- Returns:
GenericCall instance.
- Return type:
bittensor.core.extrinsics.pallets.base.Call
- sudo_set_weights_set_rate_limit(netuid, weights_set_rate_limit)#
Returns GenericCall instance for AdminUtils function sudo_set_weights_set_rate_limit.
The extrinsic sets the weights set rate limit for a subnet. It is only callable by the root account. The extrinsic will call the Subtensor pallet to set the weights set rate limit.
- sudo_set_weights_version_key(netuid, weights_version_key)#
Returns GenericCall instance for AdminUtils function sudo_set_weights_version_key.
The extrinsic sets the weights version key for a subnet. It is only callable by the root account or subnet owner. The extrinsic will call the Subtensor pallet to set the weights version key.
- sudo_set_yuma3_enabled(netuid, enabled)#
Returns GenericCall instance for AdminUtils function sudo_set_yuma3_enabled.
Enables or disables Yuma3 for a given subnet.
- sudo_toggle_evm_precompile(precompile_id, enabled)#
Returns GenericCall instance for AdminUtils function sudo_toggle_evm_precompile.
Toggles the enablement of an EVM precompile.
- sudo_trim_to_max_allowed_uids(netuid, max_n)#
Returns GenericCall instance for AdminUtils function sudo_trim_to_max_allowed_uids.
Trims the maximum number of UIDs for a subnet.
The trimming is done by sorting the UIDs by emission descending and then trimming the lowest emitters while preserving temporally and owner immune UIDs. The UIDs are then compressed to the left and storage is migrated to the new compressed UIDs.
- swap_authorities(new_authorities)#
Returns GenericCall instance for AdminUtils function swap_authorities.
The extrinsic sets the new authorities for Aura consensus. It is only callable by the root account. The extrinsic will call the Aura pallet to change the authorities.