use ;
use ;
use JsonSchema;
use ;
// ============================
// ==== Verse Settings ====
// ============================
pub const ROOT: = new;
pub const COMMISSION_CHANGE: = new;
pub const DENOM: = new;
pub const VERSE_METADATA: = new;
pub const TOTAL_REWARDS: = new;
// ============================
// ==== Staking + Accounts ====
// ============================
// --- ITEM ( total_stake )
pub const TOTAL_STAKE: = new;
// --- ITEM ( default_take )
pub const DEFAULT_TAKE: = new;
// TODO think about to rename to block_reward
// --- ITEM ( global_block_emission )
pub const BLOCK_EMISSION: = new;
// TODo revisit total issuance and stake
// --- ITEM ( total_issuance )
pub const TOTAL_ISSUANCE: = new;
// --- MAP ( hot ) --> stake | Returns the total amount of stake under a hotkey.
pub const TOTAL_HOTKEY_STAKE: = new;
// --- MAP ( cold ) --> stake | Returns the total amount of stake under a coldkey.
pub const TOTAL_COLDKEY_STAKE: = new;
// --- MAP ( hot ) --> cold | Returns the controlling coldkey for a hotkey.
pub const OWNER: = new;
// --- MAP ( hot ) --> take | Returns the hotkey delegation take (commission). Signals that this key is open for delegation.
// NOTE: storage key "hotkey_stake" is a legacy name; renaming requires migration.
pub const DELEGATES: = new;
// --- DMAP ( hot, cold ) --> stake | Returns the stake under a coldkey prefixed by hotkey.
pub const STAKE: = new;
// =====================================
// ==== Difficulty / Registrations =====
// =====================================
// ---- StorageItem Global Used Work.
pub const USED_WORK: = new;
// --- MAP ( netuid ) --> Burn
pub const BURN: = new;
// --- MAP ( netuid ) --> Difficulty
pub const DIFFICULTY: = new;
// --- MAP ( netuid ) --> MinBurn
pub const MIN_BURN: = new;
// --- MAP ( netuid ) --> MaxBurn
pub const MAX_BURN: = new;
// --- MAP ( netuid ) --> MinDifficulty
pub const MIN_DIFFICULTY: = new;
// --- MAP ( netuid ) --> MaxDifficulty
pub const MAX_DIFFICULTY: = new;
// --- MAP ( netuid ) --> Block at last adjustment.
pub const LAST_ADJUSTMENT_BLOCK: = new;
// --- MAP ( netuid ) --> Registrations of this Block.
pub const REGISTRATIONS_THIS_BLOCK: = new;
// --- MAP ( netuid ) --> global_max_registrations_per_block
pub const MAX_REGISTRATION_PER_BLOCK: = new;
// --- MAP ( netuid ) --> global_RAO_recycled_for_registration )
pub const RAO_RECYCLED_FOR_REGISTRATION: = new;
// ==============================
// ==== Subnetworks Storage =====
// ==============================
// --- ITEM( total_number_of_existing_networks )
pub const SUBNET_LIMIT: = new;
// --- ITEM( total_number_of_existing_networks )
pub const TOTAL_NETWORKS: = new;
// --- MAP ( netuid ) --> subnetwork_n (Number of UIDs in the network).
pub const SUBNETWORK_N: = new;
// --- MAP ( netuid ) --> modality TEXT: 0, IMAGE: 1, TENSOR: 2
pub const NETWORK_MODALITY: = new;
// --- MAP ( netuid ) --> network_is_added
pub const NETWORKS_ADDED: = new;
// --- DMAP ( hotkey, netuid ) --> bool
pub const IS_NETWORK_MEMBER: = new;
// --- MAP ( netuid ) --> network_registration_allowed
pub const NETWORK_REGISTRATION_ALLOWED: = new;
// --- MAP ( netuid ) --> block_created
pub const NETWORK_REGISTERED_AT: = new;
// ITEM( network_immunity_period )
pub const NETWORK_IMMUNITY_PERIOD: = new;
// ITEM( network_last_registered_block )
pub const NETWORK_LAST_REGISTERED: = new;
// ITEM( network_min_allowed_uids )
pub const NETWORK_MIN_ALLOWED_UIDS: = new;
// ITEM( min_network_lock_cost )
pub const NETWORK_MIN_LOCK_COST: = new;
// ITEM( last_network_lock_cost )
pub const NETWORK_LAST_LOCK_COST: = new;
// ITEM( network_lock_reduction_interval )
pub const NETWORK_LOCK_REDUCTION_INTERVAL: = new;
// ITEM( subnet_owner_cut )
pub const SUBNET_OWNER_CUT: = new;
// ITEM( network_rate_limit )
pub const NETWORK_RATE_LIMIT: = new;
// ==============================
// ==== Subnetwork Features =====
// ==============================
// --- MAP ( netuid ) --> tempo
pub const TEMPO: = new;
// --- MAP ( netuid ) --> emission_values
pub const EMISSION_VALUES: = new;
// --- MAP ( netuid ) --> pending_emission
pub const PENDING_EMISSION: = new;
// --- MAP ( netuid ) --> blocks_since_last_step.
pub const BLOCKS_SINCE_LAST_STEP: = new;
// --- MAP ( netuid ) --> last_mechanism_step_block
pub const LAST_MECHANISM_STEP_BLOCK: = new;
// --- MAP (netuid ) --> subnet_owner
pub const SUBNET_OWNER: = new;
// --- MAP (netuid ) --> subnet_locked
pub const SUBNET_LOCKED: = new;
// --- MAP (netuid ) --> metadata
pub const NETWORKS_METADATA: = new;
// =================================
// ==== Axon / Promo Endpoints =====
// =================================
// --- Struct for Axon.
pub type AxonInfoOf = AxonInfo;
// --- Struct for Prometheus.
pub type PrometheusInfoOf = PrometheusInfo;
// --- ITEM ( tx_rate_limit )
pub const TX_RATE_LIMIT: = new;
// --- MAP ( key ) --> last_block
pub const LAST_TX_BLOCK: = new;
// --- MAP ( netuid ) --> serving_rate_limit
pub const SERVING_RATE_LIMIT: = new;
// --- MAP ( netuid, hotkey ) --> axon_info
pub const AXONS: = new;
// --- MAP ( netuid, hotkey ) --> prometheus_info
pub const PROMETHEUS: = new;
// =======================================
// ==== Subnetwork Hyperparam storage ====
// =======================================
// --- MAP ( netuid ) --> Rho
pub const RHO: = new;
// --- MAP ( netuid ) --> Kappa
pub const KAPPA: = new;
// --- MAP ( netuid ) --> uid, we use to record uids to prune at next epoch.
pub const NEURONS_TO_PRUNE_AT_NEXT_EPOCH: =
new;
// --- MAP ( netuid ) --> registrations_this_interval
pub const REGISTRATIONS_THIS_INTERVAL: = new;
// --- MAP ( netuid ) --> pow_registrations_this_interval
pub const POW_REGISTRATIONS_THIS_INTERVAL: =
new;
// --- MAP ( netuid ) --> burn_registrations_this_interval
pub const BURN_REGISTRATIONS_THIS_INTERVAL: =
new;
// --- MAP ( netuid ) --> max_allowed_uids
pub const MAX_ALLOWED_UIDS: = new;
// --- MAP ( netuid ) --> immunity_period
pub const IMMUNITY_PERIOD: = new;
// --- MAP ( netuid ) --> activity_cutoff
pub const ACTIVITY_CUTOFF: = new;
// --- MAP ( netuid ) --> max_weight_limit
pub const MAX_WEIGHTS_LIMIT: = new;
// --- MAP ( netuid ) --> weights_version_key
pub const WEIGHTS_VERSION_KEY: = new;
// --- MAP ( netuid ) --> min_allowed_weights
pub const MIN_ALLOWED_WEIGHTS: = new;
// --- MAP ( netuid ) --> max_allowed_validators
pub const MAX_ALLOWED_VALIDATORS: = new;
// --- MAP ( netuid ) --> adjustment_interval
pub const ADJUSTMENT_INTERVAL: = new;
// --- MAP ( netuid ) --> bonds_moving_average
pub const BONDS_MOVING_AVERAGE: = new;
// --- MAP ( netuid ) --> weights_set_rate_limit
pub const WEIGHTS_SET_RATE_LIMIT: = new;
// --- MAP ( netuid ) --> validator_prune_len
pub const VALIDATOR_PRUNE_LEN: = new;
// --- MAP ( netuid ) --> target_registrations_this_interval
// TODO update to target_regs_per_interval, check later
pub const TARGET_REGISTRATIONS_PER_INTERVAL: = new;
// --- DMAP ( netuid, uid ) --> block_at_registration
pub const BLOCK_AT_REGISTRATION: = new;
// --- DMAP ( netuid ) --> adjustment_alpha
pub const ADJUSTMENTS_ALPHA: = new;
// =======================================
// ==== Subnetwork Consensus Storage ====
// =======================================
// --- DMAP ( netuid, hotkey ) --> uid
pub const UIDS: = new;
// --- DMAP ( netuid, uid ) --> hotkey
pub const KEYS: = new;
// --- DMAP ( netuid ) --> (hotkey, se, ve)
pub const LOADED_EMISSION: = new;
// --- MAP ( netuid ) --> active
pub const ACTIVE: = new;
// --- MAP ( netuid ) --> rank
pub const RANK: = new;
// --- MAP ( netuid ) --> trust
pub const TRUST: = new;
// --- MAP ( netuid ) --> consensus
pub const CONSENSUS: = new;
// --- MAP ( netuid ) --> incentive
pub const INCENTIVE: = new;
// --- MAP ( netuid ) --> dividends
pub const DIVIDENDS: = new;
// --- MAP ( netuid ) --> emission
pub const EMISSION: = new;
// --- MAP ( netuid ) --> last_update
pub const LAST_UPDATE: = new;
// --- MAP ( netuid ) --> validator_trust
pub const VALIDATOR_TRUST: = new;
// --- MAP ( netuid ) --> pruning_scores
pub const PRUNING_SCORES: = new;
// --- MAP ( netuid ) --> validator_permit
pub const VALIDATOR_PERMIT: = new;
// --- DMAP ( netuid, uid ) --> weights
pub const WEIGHTS: = new;
// --- DMAP ( netuid, uid ) --> bonds
pub const BONDS: = new;
pub const ALLOW_FAUCET: = new;
cw-cyber/contracts/cybernet/src/state.rs
ฯ 0.0%