{"commit":"19a6485969253ee9756bc382bac536e0fcb0b72f","note":"Rust source of the Bittensor chain (pallets, runtime, primitives; no tests/mocks/benchmarks). View at /code/<path> (line anchors: #L<n>), fetch plain text at /code/raw/<path>.","files":[{"path":"chain-extensions/src/lib.rs","lines":989,"bytes":35101},{"path":"chain-extensions/src/types.rs","lines":201,"bytes":7761},{"path":"common/src/currency.rs","lines":712,"bytes":17912},{"path":"common/src/evm_context.rs","lines":47,"bytes":1198},{"path":"common/src/lib.rs","lines":492,"bytes":13041},{"path":"common/src/proxy.rs","lines":219,"bytes":6346},{"path":"common/src/transaction_error.rs","lines":79,"bytes":3190},{"path":"pallets/admin-utils/src/lib.rs","lines":2357,"bytes":100870},{"path":"pallets/admin-utils/src/weights.rs","lines":2059,"bytes":115358},{"path":"pallets/alpha-assets/src/lib.rs","lines":353,"bytes":10248},{"path":"pallets/commitments/src/lib.rs","lines":627,"bytes":22411},{"path":"pallets/commitments/src/types.rs","lines":456,"bytes":14364},{"path":"pallets/commitments/src/weights.rs","lines":61,"bytes":1918},{"path":"pallets/crowdloan/src/lib.rs","lines":995,"bytes":39750},{"path":"pallets/crowdloan/src/migrations/migrate_add_contributors_count.rs","lines":189,"bytes":6628},{"path":"pallets/crowdloan/src/migrations/mod.rs","lines":2,"bytes":79},{"path":"pallets/crowdloan/src/weights.rs","lines":368,"bytes":18902},{"path":"pallets/drand/src/bls12_381.rs","lines":47,"bytes":1581},{"path":"pallets/drand/src/drand_priority.rs","lines":89,"bytes":2875},{"path":"pallets/drand/src/lib.rs","lines":773,"bytes":30261},{"path":"pallets/drand/src/migrations/migrate_prune_old_pulses.rs","lines":63,"bytes":2097},{"path":"pallets/drand/src/migrations/migrate_set_oldest_round.rs","lines":57,"bytes":1704},{"path":"pallets/drand/src/migrations/mod.rs","lines":4,"bytes":142},{"path":"pallets/drand/src/types.rs","lines":208,"bytes":6863},{"path":"pallets/drand/src/utils.rs","lines":81,"bytes":2889},{"path":"pallets/drand/src/verifier.rs","lines":111,"bytes":4092},{"path":"pallets/drand/src/weights.rs","lines":56,"bytes":1762},{"path":"pallets/limit-orders/src/lib.rs","lines":1300,"bytes":57473},{"path":"pallets/limit-orders/src/migrations/migrate_register_pallet_hotkey.rs","lines":52,"bytes":1885},{"path":"pallets/limit-orders/src/migrations/mod.rs","lines":2,"bytes":79},{"path":"pallets/limit-orders/src/weights.rs","lines":362,"bytes":23266},{"path":"pallets/proxy/src/lib.rs","lines":1154,"bytes":45293},{"path":"pallets/proxy/src/weights.rs","lines":484,"bytes":24073},{"path":"pallets/shield/src/extension.rs","lines":198,"bytes":7466},{"path":"pallets/shield/src/lib.rs","lines":676,"bytes":25375},{"path":"pallets/shield/src/migrations/migrate_clear_v1_storage.rs","lines":49,"bytes":1654},{"path":"pallets/shield/src/migrations/mod.rs","lines":4,"bytes":100},{"path":"pallets/shield/src/weights.rs","lines":194,"bytes":8848},{"path":"pallets/subtensor/rpc/src/lib.rs","lines":586,"bytes":20590},{"path":"pallets/subtensor/runtime-api/src/lib.rs","lines":86,"bytes":4959},{"path":"pallets/subtensor/src/coinbase/alpha.rs","lines":59,"bytes":1839},{"path":"pallets/subtensor/src/coinbase/block_emission.rs","lines":82,"bytes":4095},{"path":"pallets/subtensor/src/coinbase/block_step.rs","lines":100,"bytes":4105},{"path":"pallets/subtensor/src/coinbase/mod.rs","lines":10,"bytes":195},{"path":"pallets/subtensor/src/coinbase/reveal_commits.rs","lines":205,"bytes":9303},{"path":"pallets/subtensor/src/coinbase/root.rs","lines":332,"bytes":14493},{"path":"pallets/subtensor/src/coinbase/run_coinbase.rs","lines":1171,"bytes":54877},{"path":"pallets/subtensor/src/coinbase/subnet_emissions.rs","lines":419,"bytes":17443},{"path":"pallets/subtensor/src/coinbase/tao.rs","lines":363,"bytes":12040},{"path":"pallets/subtensor/src/coinbase/tempo_control.rs","lines":127,"bytes":4738},{"path":"pallets/subtensor/src/epoch/math.rs","lines":1594,"bytes":51750},{"path":"pallets/subtensor/src/epoch/mod.rs","lines":3,"bytes":47},{"path":"pallets/subtensor/src/epoch/run_epoch.rs","lines":1660,"bytes":68257},{"path":"pallets/subtensor/src/extensions/mod.rs","lines":3,"bytes":38},{"path":"pallets/subtensor/src/extensions/subtensor.rs","lines":306,"bytes":12538},{"path":"pallets/subtensor/src/guards/check_coldkey_swap.rs","lines":372,"bytes":13096},{"path":"pallets/subtensor/src/guards/check_delegate_take.rs","lines":241,"bytes":7728},{"path":"pallets/subtensor/src/guards/check_evm_key_association.rs","lines":253,"bytes":8542},{"path":"pallets/subtensor/src/guards/check_rate_limits.rs","lines":316,"bytes":11022},{"path":"pallets/subtensor/src/guards/check_serving_endpoints.rs","lines":263,"bytes":8036},{"path":"pallets/subtensor/src/guards/check_weights.rs","lines":669,"bytes":23634},{"path":"pallets/subtensor/src/guards/mod.rs","lines":32,"bytes":865},{"path":"pallets/subtensor/src/lib.rs","lines":3031,"bytes":105966},{"path":"pallets/subtensor/src/macros/config.rs","lines":291,"bytes":11618},{"path":"pallets/subtensor/src/macros/dispatches.rs","lines":2390,"bytes":103420},{"path":"pallets/subtensor/src/macros/errors.rs","lines":336,"bytes":15558},{"path":"pallets/subtensor/src/macros/events.rs","lines":706,"bytes":27648},{"path":"pallets/subtensor/src/macros/genesis.rs","lines":134,"bytes":6312},{"path":"pallets/subtensor/src/macros/hooks.rs","lines":247,"bytes":16891},{"path":"pallets/subtensor/src/macros/mod.rs","lines":6,"bytes":100},{"path":"pallets/subtensor/src/migrations/migrate_associated_evm_address_index.rs","lines":91,"bytes":4024},{"path":"pallets/subtensor/src/migrations/migrate_auto_stake_destination.rs","lines":87,"bytes":2841},{"path":"pallets/subtensor/src/migrations/migrate_cleanup_swap_v3.rs","lines":70,"bytes":2458},{"path":"pallets/subtensor/src/migrations/migrate_clear_deprecated_registration_maps.rs","lines":64,"bytes":2175},{"path":"pallets/subtensor/src/migrations/migrate_clear_orphan_subnet_identities_v3.rs","lines":71,"bytes":2897},{"path":"pallets/subtensor/src/migrations/migrate_coldkey_swap_scheduled.rs","lines":71,"bytes":2236},{"path":"pallets/subtensor/src/migrations/migrate_coldkey_swap_scheduled_to_announcements.rs","lines":133,"bytes":4657},{"path":"pallets/subtensor/src/migrations/migrate_commit_reveal_settings.rs","lines":64,"bytes":1980},{"path":"pallets/subtensor/src/migrations/migrate_commit_reveal_v2.rs","lines":82,"bytes":3021},{"path":"pallets/subtensor/src/migrations/migrate_create_root_network.rs","lines":88,"bytes":2721},{"path":"pallets/subtensor/src/migrations/migrate_crv3_commits_add_block.rs","lines":50,"bytes":1898},{"path":"pallets/subtensor/src/migrations/migrate_crv3_v2_to_timelocked.rs","lines":36,"bytes":1321},{"path":"pallets/subtensor/src/migrations/migrate_delete_subnet_21.rs","lines":120,"bytes":4212},{"path":"pallets/subtensor/src/migrations/migrate_delete_subnet_3.rs","lines":122,"bytes":4120},{"path":"pallets/subtensor/src/migrations/migrate_disable_commit_reveal.rs","lines":37,"bytes":1276},{"path":"pallets/subtensor/src/migrations/migrate_dynamic_tempo.rs","lines":163,"bytes":8349},{"path":"pallets/subtensor/src/migrations/migrate_fix_bad_hk_swap.rs","lines":297,"bytes":14263},{"path":"pallets/subtensor/src/migrations/migrate_fix_childkeys.rs","lines":40,"bytes":1204},{"path":"pallets/subtensor/src/migrations/migrate_fix_is_network_member.rs","lines":59,"bytes":1993},{"path":"pallets/subtensor/src/migrations/migrate_fix_root_claimed_overclaim.rs","lines":135,"bytes":5215},{"path":"pallets/subtensor/src/migrations/migrate_fix_root_subnet_tao.rs","lines":51,"bytes":1852},{"path":"pallets/subtensor/src/migrations/migrate_fix_root_tao_and_alpha_in.rs","lines":57,"bytes":2100},{"path":"pallets/subtensor/src/migrations/migrate_fix_staking_hot_keys.rs","lines":56,"bytes":1816},{"path":"pallets/subtensor/src/migrations/migrate_fix_subnet_hotkey_lock_swaps.rs","lines":371,"bytes":14621},{"path":"pallets/subtensor/src/migrations/migrate_fix_total_issuance_evm_fees.rs","lines":52,"bytes":1895},{"path":"pallets/subtensor/src/migrations/migrate_init_tao_flow.rs","lines":40,"bytes":1141},{"path":"pallets/subtensor/src/migrations/migrate_init_total_issuance.rs","lines":161,"bytes":6167},{"path":"pallets/subtensor/src/migrations/migrate_kappa_map_to_default.rs","lines":54,"bytes":1681},{"path":"pallets/subtensor/src/migrations/migrate_network_immunity_period.rs","lines":40,"bytes":1553},{"path":"pallets/subtensor/src/migrations/migrate_network_lock_cost_2500.rs","lines":48,"bytes":1735},{"path":"pallets/subtensor/src/migrations/migrate_network_lock_reduction_interval.rs","lines":55,"bytes":2213},{"path":"pallets/subtensor/src/migrations/migrate_orphaned_storage_items.rs","lines":68,"bytes":2627},{"path":"pallets/subtensor/src/migrations/migrate_pending_emissions.rs","lines":72,"bytes":2709},{"path":"pallets/subtensor/src/migrations/migrate_populate_locking_coldkeys.rs","lines":71,"bytes":2410},{"path":"pallets/subtensor/src/migrations/migrate_populate_owned_hotkeys.rs","lines":81,"bytes":3038},{"path":"pallets/subtensor/src/migrations/migrate_rao.rs","lines":163,"bytes":7459},{"path":"pallets/subtensor/src/migrations/migrate_rate_limit_keys.rs","lines":241,"bytes":7532},{"path":"pallets/subtensor/src/migrations/migrate_rate_limiting_last_blocks.rs","lines":161,"bytes":5086},{"path":"pallets/subtensor/src/migrations/migrate_remove_add_stake_burn_rate_limit.rs","lines":53,"bytes":1647},{"path":"pallets/subtensor/src/migrations/migrate_remove_commitments_rate_limit.rs","lines":54,"bytes":2102},{"path":"pallets/subtensor/src/migrations/migrate_remove_deprecated_conviction_maps.rs","lines":105,"bytes":3434},{"path":"pallets/subtensor/src/migrations/migrate_remove_network_modality.rs","lines":64,"bytes":2316},{"path":"pallets/subtensor/src/migrations/migrate_remove_old_identity_maps.rs","lines":43,"bytes":1372},{"path":"pallets/subtensor/src/migrations/migrate_remove_stake_map.rs","lines":59,"bytes":1931},{"path":"pallets/subtensor/src/migrations/migrate_remove_tao_dividends.rs","lines":64,"bytes":2101},{"path":"pallets/subtensor/src/migrations/migrate_remove_total_hotkey_coldkey_stakes_this_interval.rs","lines":46,"bytes":1739},{"path":"pallets/subtensor/src/migrations/migrate_remove_unknown_neuron_axon_cert_prom.rs","lines":83,"bytes":3314},{"path":"pallets/subtensor/src/migrations/migrate_remove_unused_maps_and_values.rs","lines":43,"bytes":1277},{"path":"pallets/subtensor/src/migrations/migrate_remove_zero_total_hotkey_alpha.rs","lines":57,"bytes":1897},{"path":"pallets/subtensor/src/migrations/migrate_reset_bonds_moving_average.rs","lines":56,"bytes":1795},{"path":"pallets/subtensor/src/migrations/migrate_reset_max_burn.rs","lines":56,"bytes":1696},{"path":"pallets/subtensor/src/migrations/migrate_reset_tnet_conviction_locks.rs","lines":81,"bytes":3238},{"path":"pallets/subtensor/src/migrations/migrate_reset_unactive_sn.rs","lines":73,"bytes":2680},{"path":"pallets/subtensor/src/migrations/migrate_set_first_emission_block_number.rs","lines":53,"bytes":1703},{"path":"pallets/subtensor/src/migrations/migrate_set_min_burn.rs","lines":53,"bytes":1633},{"path":"pallets/subtensor/src/migrations/migrate_set_min_difficulty.rs","lines":53,"bytes":1633},{"path":"pallets/subtensor/src/migrations/migrate_set_nominator_min_stake.rs","lines":39,"bytes":1220},{"path":"pallets/subtensor/src/migrations/migrate_set_registration_enable.rs","lines":54,"bytes":1641},{"path":"pallets/subtensor/src/migrations/migrate_set_subtoken_enabled.rs","lines":54,"bytes":1698},{"path":"pallets/subtensor/src/migrations/migrate_stake_threshold.rs","lines":48,"bytes":1481},{"path":"pallets/subtensor/src/migrations/migrate_subnet_balances.rs","lines":127,"bytes":5774},{"path":"pallets/subtensor/src/migrations/migrate_subnet_limit_to_default.rs","lines":44,"bytes":1493},{"path":"pallets/subtensor/src/migrations/migrate_subnet_locked.rs","lines":119,"bytes":3986},{"path":"pallets/subtensor/src/migrations/migrate_subnet_symbols.rs","lines":52,"bytes":1647},{"path":"pallets/subtensor/src/migrations/migrate_subnet_volume.rs","lines":39,"bytes":1229},{"path":"pallets/subtensor/src/migrations/migrate_tao_in_refund_deployment_block.rs","lines":40,"bytes":1316},{"path":"pallets/subtensor/src/migrations/migrate_to_v1_separate_emission.rs","lines":104,"bytes":3647},{"path":"pallets/subtensor/src/migrations/migrate_to_v2_fixed_total_stake.rs","lines":103,"bytes":3770},{"path":"pallets/subtensor/src/migrations/migrate_total_issuance.rs","lines":92,"bytes":3640},{"path":"pallets/subtensor/src/migrations/migrate_transfer_ownership_to_foundation.rs","lines":91,"bytes":3286},{"path":"pallets/subtensor/src/migrations/migrate_upgrade_revealed_commitments.rs","lines":55,"bytes":2207},{"path":"pallets/subtensor/src/migrations/mod.rs","lines":144,"bytes":5397},{"path":"pallets/subtensor/src/rpc_info/delegate_info.rs","lines":197,"bytes":7787},{"path":"pallets/subtensor/src/rpc_info/dynamic_info.rs","lines":83,"bytes":3580},{"path":"pallets/subtensor/src/rpc_info/metagraph.rs","lines":1638,"bytes":73764},{"path":"pallets/subtensor/src/rpc_info/mod.rs","lines":8,"bytes":161},{"path":"pallets/subtensor/src/rpc_info/neuron_info.rs","lines":234,"bytes":8543},{"path":"pallets/subtensor/src/rpc_info/show_subnet.rs","lines":166,"bytes":6877},{"path":"pallets/subtensor/src/rpc_info/stake_info.rs","lines":223,"bytes":8179},{"path":"pallets/subtensor/src/rpc_info/subnet_info.rs","lines":632,"bytes":25497},{"path":"pallets/subtensor/src/staking/account.rs","lines":13,"bytes":326},{"path":"pallets/subtensor/src/staking/add_stake.rs","lines":185,"bytes":6736},{"path":"pallets/subtensor/src/staking/claim_root.rs","lines":555,"bytes":21100},{"path":"pallets/subtensor/src/staking/decrease_take.rs","lines":61,"bytes":2342},{"path":"pallets/subtensor/src/staking/helpers.rs","lines":476,"bytes":18162},{"path":"pallets/subtensor/src/staking/increase_take.rs","lines":72,"bytes":2723},{"path":"pallets/subtensor/src/staking/lock.rs","lines":2025,"bytes":78322},{"path":"pallets/subtensor/src/staking/mod.rs","lines":14,"bytes":271},{"path":"pallets/subtensor/src/staking/move_stake.rs","lines":519,"bytes":20678},{"path":"pallets/subtensor/src/staking/order_swap.rs","lines":188,"bytes":7298},{"path":"pallets/subtensor/src/staking/recycle_alpha.rs","lines":215,"bytes":7621},{"path":"pallets/subtensor/src/staking/remove_stake.rs","lines":981,"bytes":38348},{"path":"pallets/subtensor/src/staking/set_children.rs","lines":1114,"bytes":45656},{"path":"pallets/subtensor/src/staking/stake_utils.rs","lines":1488,"bytes":60365},{"path":"pallets/subtensor/src/subnets/dissolution.rs","lines":1009,"bytes":40242},{"path":"pallets/subtensor/src/subnets/leasing.rs","lines":382,"bytes":16790},{"path":"pallets/subtensor/src/subnets/mechanism.rs","lines":407,"bytes":17008},{"path":"pallets/subtensor/src/subnets/mod.rs","lines":10,"bytes":174},{"path":"pallets/subtensor/src/subnets/registration.rs","lines":542,"bytes":21337},{"path":"pallets/subtensor/src/subnets/serving.rs","lines":356,"bytes":11722},{"path":"pallets/subtensor/src/subnets/subnet.rs","lines":672,"bytes":27910},{"path":"pallets/subtensor/src/subnets/symbols.rs","lines":975,"bytes":46941},{"path":"pallets/subtensor/src/subnets/uids.rs","lines":461,"bytes":21100},{"path":"pallets/subtensor/src/subnets/weights.rs","lines":1274,"bytes":50681},{"path":"pallets/subtensor/src/swap/mod.rs","lines":3,"bytes":57},{"path":"pallets/subtensor/src/swap/swap_coldkey.rs","lines":173,"bytes":7152},{"path":"pallets/subtensor/src/swap/swap_hotkey.rs","lines":810,"bytes":36387},{"path":"pallets/subtensor/src/utils/cleanup.rs","lines":46,"bytes":1282},{"path":"pallets/subtensor/src/utils/evm.rs","lines":244,"bytes":9494},{"path":"pallets/subtensor/src/utils/identity.rs","lines":231,"bytes":8414},{"path":"pallets/subtensor/src/utils/misc.rs","lines":1068,"bytes":40740},{"path":"pallets/subtensor/src/utils/mod.rs","lines":9,"bytes":172},{"path":"pallets/subtensor/src/utils/rate_limiting.rs","lines":272,"bytes":10157},{"path":"pallets/subtensor/src/utils/try_state.rs","lines":33,"bytes":1016},{"path":"pallets/subtensor/src/utils/voting_power.rs","lines":283,"bytes":11127},{"path":"pallets/subtensor/src/weights.rs","lines":5089,"bytes":350602},{"path":"pallets/swap/rpc/src/lib.rs","lines":144,"bytes":4184},{"path":"pallets/swap/runtime-api/src/lib.rs","lines":34,"bytes":1131},{"path":"pallets/swap/src/lib.rs","lines":12,"bytes":194},{"path":"pallets/swap/src/pallet/balancer.rs","lines":1351,"bytes":51847},{"path":"pallets/swap/src/pallet/hooks.rs","lines":30,"bytes":910},{"path":"pallets/swap/src/pallet/impls.rs","lines":540,"bytes":19418},{"path":"pallets/swap/src/pallet/migrations/migrate_swapv3_to_balancer.rs","lines":91,"bytes":3600},{"path":"pallets/swap/src/pallet/migrations/mod.rs","lines":25,"bytes":908},{"path":"pallets/swap/src/pallet/mod.rs","lines":308,"bytes":9418},{"path":"pallets/swap/src/pallet/swap_step.rs","lines":261,"bytes":9161},{"path":"pallets/swap/src/weights.rs","lines":75,"bytes":2891},{"path":"pallets/transaction-fee/src/lib.rs","lines":558,"bytes":21719},{"path":"pallets/utility/src/lib.rs","lines":642,"bytes":26536},{"path":"pallets/utility/src/weights.rs","lines":221,"bytes":9665},{"path":"precompiles/src/address_mapping.rs","lines":191,"bytes":7271},{"path":"precompiles/src/alpha.rs","lines":616,"bytes":23218},{"path":"precompiles/src/balance.rs","lines":242,"bytes":8508},{"path":"precompiles/src/balance_transfer.rs","lines":87,"bytes":3355},{"path":"precompiles/src/crowdloan.rs","lines":670,"bytes":25923},{"path":"precompiles/src/ed25519.rs","lines":137,"bytes":5021},{"path":"precompiles/src/extensions.rs","lines":222,"bytes":7556},{"path":"precompiles/src/leasing.rs","lines":462,"bytes":17972},{"path":"precompiles/src/lib.rs","lines":319,"bytes":12515},{"path":"precompiles/src/metagraph.rs","lines":415,"bytes":15378},{"path":"precompiles/src/neuron.rs","lines":878,"bytes":35517},{"path":"precompiles/src/proxy.rs","lines":294,"bytes":10808},{"path":"precompiles/src/sr25519.rs","lines":136,"bytes":4788},{"path":"precompiles/src/staking.rs","lines":2031,"bytes":78830},{"path":"precompiles/src/storage_query.rs","lines":124,"bytes":4119},{"path":"precompiles/src/subnet.rs","lines":1390,"bytes":48081},{"path":"precompiles/src/uid_lookup.rs","lines":107,"bytes":3868},{"path":"precompiles/src/voting_power.rs","lines":276,"bytes":9323},{"path":"primitives/safe-math/src/lib.rs","lines":384,"bytes":12104},{"path":"primitives/share-pool/src/lib.rs","lines":1646,"bytes":58358},{"path":"primitives/swap-interface/src/lib.rs","lines":237,"bytes":9878},{"path":"primitives/swap-interface/src/order.rs","lines":87,"bytes":2365},{"path":"runtime/build.rs","lines":19,"bytes":547},{"path":"runtime/src/check_mortality.rs","lines":225,"bytes":8004},{"path":"runtime/src/check_nonce.rs","lines":199,"bytes":7036},{"path":"runtime/src/fee_filters.rs","lines":41,"bytes":2122},{"path":"runtime/src/lib.rs","lines":2604,"bytes":102146},{"path":"runtime/src/proxy_filters/call_groups.rs","lines":784,"bytes":32119},{"path":"runtime/src/proxy_filters/mod.rs","lines":659,"bytes":24907},{"path":"runtime/src/sudo_wrapper.rs","lines":84,"bytes":3129},{"path":"runtime/src/transaction_payment_wrapper.rs","lines":957,"bytes":36315}]}