AdminUtils::Call
Variant 308 v393pallet_admin_utils::pallet::Call
Dispatchable functions allows users to interact with the pallet and invoke state changes.
About This Type
Call enum for the Call pallet.
Contains all dispatchable functions (extrinsics) for the Call pallet. Each variant represents a different callable function with its parameters.
Variants (74)
| Index | Name | Fields | Docs |
|---|---|---|---|
| 0 | swap_authorities | new_authorities: BoundedVec | 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. |
| 1 | sudo_set_default_take | default_take: u16 | 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. |
| 2 | sudo_set_tx_rate_limit | tx_rate_limit: u64 | 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. |
| 3 | 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. | |
| 4 | 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. | |
| 5 | 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. | |
| 6 | 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. | |
| 7 | 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. | |
| 8 | 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. | |
| 9 | 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. | |
| 13 | 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. | |
| 14 | 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. | |
| 15 | 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. | |
| 16 | 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. | |
| 17 | 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. | |
| 18 | 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. | |
| 19 | 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. | |
| 20 | 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. | |
| 21 | 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. | |
| 22 | 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. | |
| 23 | 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. | |
| 24 | 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. | |
| 25 | 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. | |
| 26 | 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. | |
| 60 | 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. | |
| 27 | 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. | |
| 28 | sudo_set_subnet_owner_cut | subnet_owner_cut: u16 | 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. |
| 29 | sudo_set_network_rate_limit | rate_limit: u64 | 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. |
| 30 | 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. | |
| 33 | sudo_set_total_issuance | total_issuance: u64 | 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. |
| 35 | sudo_set_network_immunity_period | immunity_period: u64 | 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. |
| 36 | sudo_set_network_min_lock_cost | lock_cost: u64 | 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. |
| 37 | sudo_set_subnet_limit | max_subnets: u16 | 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. |
| 38 | sudo_set_lock_reduction_interval | interval: u64 | 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. |
| 39 | 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. | |
| 42 | sudo_set_stake_threshold | min_stake: u64 | 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. |
| 43 | sudo_set_nominator_min_required_stake | min_stake: u64 | 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. |
| 45 | sudo_set_tx_delegate_take_rate_limit | tx_rate_limit: u64 | 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. |
| 46 | sudo_set_min_delegate_take | take: u16 | 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. |
| 49 | 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. | |
| 50 | sudo_set_liquid_alpha_enabled | Enables or disables Liquid Alpha for a given subnet. # Parameters - `origin`: The origin of the call, which must be the root account or subnet owner. - `netuid`: The unique identifier for the subnet. - `enabled`: A boolean flag to enable or disable Liquid Alpha. # Weight This function has a fixed weight of 0 and is classified as an operational transaction that does not incur any fees. | |
| 51 | sudo_set_alpha_values | Sets values for liquid alpha | |
| 55 | sudo_set_dissolve_network_schedule_duration | duration: u32 | 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. # Arguments * `origin` - The origin of the call, which must be the root account. * `duration` - The new duration for the dissolve network schedule, in number of blocks. # Errors * `BadOrigin` - If the caller is not the root account. # Weight Weight is handled by the `#[pallet::weight]` attribute. |
| 57 | 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. # Arguments * `origin` - The origin of the call, which must be the subnet owner or the root account. * `netuid` - The unique identifier of the subnet for which the periods are being set. * `periods` - The number of epochs that define the commit-reveal period. # Errors * `BadOrigin` - If the caller is neither the subnet owner nor the root account. * `SubnetDoesNotExist` - If the specified subnet does not exist. # Weight Weight is handled by the `#[pallet::weight]` attribute. | |
| 58 | sudo_set_evm_chain_id | chain_id: u64 | Sets the EVM ChainID. # Arguments * `origin` - The origin of the call, which must be the subnet owner or the root account. * `chainId` - The u64 chain ID # Errors * `BadOrigin` - If the caller is neither the subnet owner nor the root account. # Weight Weight is handled by the `#[pallet::weight]` attribute. |
| 59 | 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. | |
| 61 | sudo_set_toggle_transfer | Enable or disable atomic alpha transfers for a given subnet. # Parameters - `origin`: The origin of the call, which must be the root account or subnet owner. - `netuid`: The unique identifier for the subnet. - `enabled`: A boolean flag to enable or disable Liquid Alpha. # Weight This function has a fixed weight of 0 and is classified as an operational transaction that does not incur any fees. | |
| 80 | sudo_set_recycle_or_burn | netuid: u16 recycle_or_burn: RecycleOrBurnEnum | 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. # Parameters - `origin`: The origin of the call, which must be the root account or subnet owner. - `netuid`: The unique identifier for the subnet. - `recycle_or_burn`: The desired behaviour of the "burn" UID(s) for the subnet. |
| 62 | sudo_toggle_evm_precompile | precompile_id: PrecompileEnum enabled: bool | Toggles the enablement of an EVM precompile. # Arguments * `origin` - The origin of the call, which must be the root account. * `precompile_id` - The identifier of the EVM precompile to toggle. * `enabled` - The new enablement state of the precompile. # Errors * `BadOrigin` - If the caller is not the root account. # Weight Weight is handled by the `#[pallet::weight]` attribute. |
| 63 | sudo_set_subnet_moving_alpha | alpha: FixedI128 | # Arguments * `origin` - The origin of the call, which must be the root account. * `alpha` - The new moving alpha value for the SubnetMovingAlpha. # Errors * `BadOrigin` - If the caller is not the root account. # Weight Weight is handled by the `#[pallet::weight]` attribute. |
| 64 | sudo_set_subnet_owner_hotkey | Change the SubnetOwnerHotkey for a given subnet. # Arguments * `origin` - The origin of the call, which must be the subnet owner. * `netuid` - The unique identifier for the subnet. * `hotkey` - The new hotkey for the subnet owner. # Errors * `BadOrigin` - If the caller is not the subnet owner or root account. # Weight Weight is handled by the `#[pallet::weight]` attribute. | |
| 65 | sudo_set_ema_price_halving_period | # Arguments * `origin` - The origin of the call, which must be the root account. * `ema_alpha_period` - Number of blocks for EMA price to halve # Errors * `BadOrigin` - If the caller is not the root account. # Weight Weight is handled by the `#[pallet::weight]` attribute. | |
| 68 | sudo_set_alpha_sigmoid_steepness | # Arguments * `origin` - The origin of the call, which must be the root account. * `netuid` - The unique identifier for the subnet. * `steepness` - The Steepness for the alpha sigmoid function. (range is 0-int16::MAX, negative values are reserved for future use) # Errors * `BadOrigin` - If the caller is not the root account. * `SubnetDoesNotExist` - If the specified subnet does not exist. * `NegativeSigmoidSteepness` - If the steepness is negative and the caller is root. # Weight Weight is handled by the `#[pallet::weight]` attribute. | |
| 69 | sudo_set_yuma3_enabled | Enables or disables Yuma3 for a given subnet. # Parameters - `origin`: The origin of the call, which must be the root account or subnet owner. - `netuid`: The unique identifier for the subnet. - `enabled`: A boolean flag to enable or disable Yuma3. # Weight This function has a fixed weight of 0 and is classified as an operational transaction that does not incur any fees. | |
| 70 | sudo_set_bonds_reset_enabled | Enables or disables Bonds Reset for a given subnet. # Parameters - `origin`: The origin of the call, which must be the root account or subnet owner. - `netuid`: The unique identifier for the subnet. - `enabled`: A boolean flag to enable or disable Bonds Reset. # Weight This function has a fixed weight of 0 and is classified as an operational transaction that does not incur any fees. | |
| 67 | 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. # Parameters - `origin`: The dispatch origin of the call. Must be either root or the current owner of the subnet. - `netuid`: The unique identifier of the subnet whose owner hotkey is being set. - `hotkey`: The new hotkey account to associate with the subnet owner. # Returns - `DispatchResult`: Returns `Ok(())` if the hotkey was successfully set, or an appropriate error otherwise. # Errors - `Error::SubnetNotExists`: If the specified subnet does not exist. - `Error::TxRateLimitExceeded`: If the function is called more frequently than the allowed rate limit. # Access Control Only callable by: - Root origin, or - The coldkey account that owns the subnet. # Storage - Updates [`SubnetOwnerHotkey`] for the given `netuid`. - Reads and updates [`LastRateLimitedBlock`] for rate-limiting. - Reads [`DefaultSetSNOwnerHotkeyRateLimit`] to determine the interval between allowed updates. # Rate Limiting This function is rate-limited to one call per subnet per interval (e.g., one week). | |
| 66 | sudo_set_subtoken_enabled | Enables or disables subtoken trading for a given subnet. # Arguments * `origin` - The origin of the call, which must be the root account. * `netuid` - The unique identifier of the subnet. * `subtoken_enabled` - A boolean indicating whether subtoken trading should be enabled or disabled. # Errors * `BadOrigin` - If the caller is not the root account. # Weight Weight is handled by the `#[pallet::weight]` attribute. | |
| 71 | sudo_set_commit_reveal_version | version: u16 | Sets the commit-reveal weights version for all subnets |
| 72 | sudo_set_owner_immune_neuron_limit | Sets the number of immune owner neurons | |
| 73 | sudo_set_ck_burn | burn: u64 | 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. |
| 74 | sudo_set_admin_freeze_window | window: u16 | Sets the admin freeze window length (in blocks) at the end of a tempo. Only callable by root. |
| 75 | sudo_set_owner_hparam_rate_limit | epochs: u16 | Sets the owner hyperparameter rate limit in epochs (global multiplier). Only callable by root. |
| 76 | sudo_set_mechanism_count | Sets the desired number of mechanisms in a subnet | |
| 77 | sudo_set_mechanism_emission_split | Sets the emission split between mechanisms in a subnet | |
| 78 | 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. | |
| 79 | sudo_set_min_allowed_uids | The extrinsic sets the minimum allowed UIDs for a subnet. It is only callable by the root account. | |
| 81 | sudo_set_tao_flow_cutoff | flow_cutoff: FixedI128 | Sets TAO flow cutoff value (A) |
| 82 | sudo_set_tao_flow_normalization_exponent | exponent: FixedU128 | Sets TAO flow normalization exponent (p) |
| 83 | sudo_set_tao_flow_smoothing_factor | smoothing_factor: u64 | Sets TAO flow smoothing factor (alpha) |
| 88 | sudo_set_max_mechanism_count | max_mechanism_count: u8 | Sets the global maximum number of mechanisms in a subnet |
| 84 | sudo_set_min_non_immune_uids | Sets the minimum number of non-immortal & non-immune UIDs that must remain in a subnet | |
| 85 | sudo_set_start_call_delay | delay: u64 | Sets the delay before a subnet can call start |
| 86 | sudo_set_coldkey_swap_announcement_delay | duration: u32 | Sets the announcement delay for coldkey swap. |
| 87 | sudo_set_coldkey_swap_reannouncement_delay | duration: u32 | Sets the coldkey swap reannouncement delay. |
SCALE Encoding
- Rule
- 1-byte variant index followed by variant-specific field data. 74 possible variants.
- Size
- variable (1+ bytes)
Examples
swap_authorities = swap_authorities(new_authorities)
0x00<field0>00 Variant index 0 = swap_authoritiesfield 0 new_authorities: BoundedVecsudo_set_default_take = sudo_set_default_take(default_take)
0x01<field0>01 Variant index 1 = sudo_set_default_takefield 0 default_take: u16sudo_set_tx_rate_limit = sudo_set_tx_rate_limit(tx_rate_limit)
0x02<field0>02 Variant index 2 = sudo_set_tx_rate_limitfield 0 tx_rate_limit: u64Code Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode AdminUtils::Call — variant "swap_authorities"
const value = registry.createType("AdminUtils::Call", { swap_authorities: { new_authorities: 0 } });
console.log("Hex:", value.toHex());Type Parameters
T
Referenced By (23)
#123 RuntimeCall via System#123 RuntimeCall via Timestamp#123 RuntimeCall via Grandpa#123 RuntimeCall via Balances#123 RuntimeCall via SubtensorModule#123 RuntimeCall via Utility#123 RuntimeCall via Sudo#123 RuntimeCall via Multisig#123 RuntimeCall via Preimage#123 RuntimeCall via Scheduler#123 RuntimeCall via Proxy#123 RuntimeCall via Registry#123 RuntimeCall via Commitments#123 RuntimeCall via AdminUtils#123 RuntimeCall via SafeMode#123 RuntimeCall via Ethereum#123 RuntimeCall via EVM#123 RuntimeCall via BaseFee#123 RuntimeCall via Drand#123 RuntimeCall via Crowdloan
and 3 more...
Also See
Type Information
- Type ID
- 308
- Kind
- Variant
- Path
- pallet_admin_utils::pallet::Call
- Runtime
- v393