Tags: opentensor/subtensor
Tags
mainnet deploy 2/24/2025 (#1340) * fix migration test * cargo fmt * fix root * cargo fmt * add moving price to metagraph * use correct min burn init (#1265) * use correct min brun init * fmt * no into * no into 2 * bump spec * cargo update to fix cargo audit vulnerabilities * bump spec version * moving price init from emission * cargo fmt * bump spec version * commit Cargo.lock * cargo clippy * cargo fmt * DefaultMinimumPoolLiquidity and tempos in rao migration * update readme of support of M series macs * bump runtime version * add tao_emission to stakeinfo runtime * Refactor staking and neuron precompile with precompile-utils * remove call from coinbase. already in block_step * add negation for pow-reg-allowed * only root can set min pow diff * oops * dont let ck-in-swap-sched move any stake/register * add tests for validation filter * add transfer stake to call nontransfer proxy filter * also add proxy filters for new calls * update staking priority * bump spec * use get_priority_staking for all stake operations * bump spec * clippy * Remove ownership check from transition stake validation * Fix number conversion issues in staking precompile * max the price for EMA calc at 1.0 * uncommitted lockfile change * bump spec version * fix merge conflicts * add CI action that requires clean merges between all named branches * Refactor neuron precompil - introduce PrecompileHandle and Precompile trait extensions * fix * fixes * try again * fix again * fix * fix * stop needless wasting of CI hours with on push triggers we don't need * Refactor metagraph precompile * fix try runtime endpoints * fix * provide an identity for github action to prevent failure * bump CI * only run non-devnet try runtime if we are targeting devnet/testnet/main * tweak * Add serve_axon extrinsic validation * Bump spec version * Check IP validity in serve_axon validation first * make set diff only root * add test for set diff no owner * add migration for min diff * bump spec * only allow top-stake SN owner hk to stay immune * add tests * only allow replace non-top-stake owner hk * bump spec * add tests using SubnetOwnerHotkey * add impl for replace neuron * add swap test * add neuron prune impl * add swap hotkey impl * clippy * clippy * mistake in test * add some tests * add stake ext test * add move_stake tests * cargo lock * bump spec * clpy * use bool return type * clpy * add higher liquidity on mvoe stake tests * Refactor subnet precompile * Reformat * Update spec version * Fix commit_hash type in Neuron::commit_weights precompile * Prevent precision errors in share pool * Fix unstaking 99.999% and add tests * Fix event and logging in unstake_from_subnet * only update tx rate limit *after* ensure * add test and sn-owner-chk impl * Fix build * use is ok and * Bump spec version * Update primitives/share-pool/src/lib.rs Co-authored-by: Cameron Fairchild <cameron@opentensor.ai> * Update pallets/subtensor/src/tests/staking.rs Co-authored-by: Cameron Fairchild <cameron@opentensor.ai> * Remove unused variable * Add test_get_shares_per_update * try it again * use latest rust-cache version * improve spec version check cache performance * try busting cache * it worked 🔥 * use better rust cache throughout CI + clean up CI * install rust nightly for cargo fmt * whoops * fix * try re-enabling finney try truntime * Update pallets/subtensor/src/tests/staking.rs Co-authored-by: Cameron Fairchild <cameron@opentensor.ai> * fix * add get value using current_shares arg * make delegate info useful again * return different format for get delegated * remove CODEOWNERS file so we can do green merges * bump CI * Set initial tempo to 360 * set equal in mock * add test for weights rate limit v tempo * make fields pub for testing * sub out root divs to get alpha divs * bump spec version to 241 * const fixes * cargo clippy * Add dest hotkey check and test * Remove the commented test * Bump spec version * use rust 1.85.0 * upgrade to Rust 2024 Edition 🎉 * whitelist clippy useless conversion warning * cargo fmt * passes clippy * Remove in/out peers args from docker compose * fix test * Update chainspecs * Remove Stake map - in progress (tests broken) * become delegate on every add_stake op * bump spec * Fix tests * Fix clippy * add root set sn moving alpha * fmt * fix test * fixes GH #1330 * bump spec * add a rate limit-set on decrease take (avoids close increase) * add test * add call to associate hk * update comment from PR1335 * bump spec version --------- Co-authored-by: unconst <jake@bittensor.com> Co-authored-by: Unconst <32490803+unconst@users.noreply.github.com> Co-authored-by: Cameron Fairchild <cameron@opentensor.ai> Co-authored-by: Greg Zaitsev <gregz@opentensor.dev> Co-authored-by: Prakash <qxprakash@gmail.com> Co-authored-by: open-junius <zhou@opentensor.dev> Co-authored-by: ibraheem-opentensor <ibraheem@opentensor.dev> Co-authored-by: Aliaksandr Tsurko <ales@opentensor.dev> Co-authored-by: John Reed <87283488+JohnReedV@users.noreply.github.com> Co-authored-by: camfairchild <cameron@opentensor.dev> Co-authored-by: gztensor <166415444+gztensor@users.noreply.github.com> Co-authored-by: camfairchild <24501463+camfairchild@users.noreply.github.com>
mainnet deploy 2/16/2025 (#1310) * upgrade openssl * fix clippy * address freeze_struct * rename commit_reveal_period * apply criticial openssl update to fix RUSTSEC-2025-0004 (openssl) * remove subnet_info_v3 * address lint * update register_network with identity precompile * fix merge commit * bump spec * remove SubnetInfov3 struct * rename emission_values => emission_value * bump spec * safe math * remove duplicated function * use saturating math * add cleaned coinbase * noclaim * remove complexity * non scaled tao emission * bump * fix test * clean coinbase * pre merge * no tao in for non registration * move to moving prices rather than tao reserves * price * moving alpha * bump spec * Fix tests * add moving price tests * add alpha in tests * Fix all tests * Format * Fix unsafe math * alpha tests * set tao weight * reset default staking fee * fix names * add mainnet names * cargo clippy * cargo fmt * add a global min burn and migration * add more tests for root pending etc * alpha divs * fix test for root * new test root tao * fix wrong parse function * fix test * add toggle off for transfers * delete unused workflow file * Fix validation for transfer toggle * remove duplicate tests * fix subnet creation logic * cargo fmt * add new test * bump spec version to 228 * Add test test_drain_alpha_childkey_parentkey * spec bump * fix audit * fix audit * fix contract * commit Cargo.lock * cargo clippy * cargo fmt * fix min lock * fmt * fix migration test * cargo fmt * fix root * cargo fmt * add moving price to metagraph * use correct min burn init (#1265) * use correct min brun init * fmt * no into * no into 2 * bump spec * cargo update to fix cargo audit vulnerabilities * bump spec version * moving price init from emission * cargo fmt * bump spec version * commit Cargo.lock * cargo clippy * cargo fmt * DefaultMinimumPoolLiquidity and tempos in rao migration * update readme of support of M series macs * bump runtime version * add tao_emission to stakeinfo runtime * remove call from coinbase. already in block_step * add negation for pow-reg-allowed * only root can set min pow diff * oops * dont let ck-in-swap-sched move any stake/register * add tests for validation filter * add transfer stake to call nontransfer proxy filter * also add proxy filters for new calls * update staking priority * bump spec * use get_priority_staking for all stake operations * bump spec * clippy * Remove ownership check from transition stake validation * max the price for EMA calc at 1.0 * uncommitted lockfile change * bump spec version * fix merge conflicts * add CI action that requires clean merges between all named branches * fix * fixes * try again * fix again * fix * fix * stop needless wasting of CI hours with on push triggers we don't need * provide an identity for github action to prevent failure * Add serve_axon extrinsic validation * Bump spec version * Check IP validity in serve_axon validation first * make set diff only root * add test for set diff no owner * add migration for min diff * bump spec * only allow top-stake SN owner hk to stay immune * add tests * only allow replace non-top-stake owner hk * bump spec * add tests using SubnetOwnerHotkey * add impl for replace neuron * add swap test * add neuron prune impl * add swap hotkey impl * clippy * clippy * mistake in test * add some tests * add stake ext test * add move_stake tests * cargo lock * bump spec * clpy * use bool return type * clpy * add higher liquidity on mvoe stake tests --------- Co-authored-by: open-junius <zhou@opentensor.dev> Co-authored-by: Aliaksandr Tsurko <ales@opentensor.dev> Co-authored-by: JohnReedV <87283488+JohnReedV@users.noreply.github.com> Co-authored-by: Cameron Fairchild <cameron@opentensor.ai> Co-authored-by: unconst <jake@bittensor.com> Co-authored-by: Greg Zaitsev <gregz@opentensor.dev> Co-authored-by: Unconst <32490803+unconst@users.noreply.github.com> Co-authored-by: camfairchild <cameron@opentensor.dev> Co-authored-by: Prakash <qxprakash@gmail.com> Co-authored-by: ibraheem-opentensor <ibraheem@opentensor.dev>
mainnet deploy 2/15/2025 (post dtao + hotfixes) (#1295) * fix compile * Remove pallet-dynamic-fee and associated inherent data * Add tests, fix bugs * Cleanup * Add subnet volume migration to fix try-runtime * Revert endpoint change in try-runtime script * Use resulting average price formula for add-remove limit stake * commit Cargo.lock * cargo clippy * cargo fix * safe math usage * upgrade openssl * fix clippy * address freeze_struct * rename commit_reveal_period * apply criticial openssl update to fix RUSTSEC-2025-0004 (openssl) * remove subnet_info_v3 * address lint * update register_network with identity precompile * fix merge commit * bump spec * remove SubnetInfov3 struct * rename emission_values => emission_value * bump spec * safe math * remove duplicated function * use saturating math * add cleaned coinbase * noclaim * remove complexity * non scaled tao emission * bump * fix test * clean coinbase * pre merge * no tao in for non registration * move to moving prices rather than tao reserves * price * moving alpha * bump spec * Fix tests * add moving price tests * add alpha in tests * Fix all tests * Format * Fix unsafe math * alpha tests * set tao weight * reset default staking fee * fix names * add mainnet names * cargo clippy * cargo fmt * add a global min burn and migration * add more tests for root pending etc * alpha divs * fix test for root * new test root tao * fix wrong parse function * fix test * add toggle off for transfers * delete unused workflow file * Fix validation for transfer toggle * remove duplicate tests * fix subnet creation logic * cargo fmt * add new test * bump spec version to 228 * Add test test_drain_alpha_childkey_parentkey * spec bump * fix audit * fix audit * fix contract * commit Cargo.lock * cargo clippy * cargo fmt * fix min lock * fmt * fix migration test * cargo fmt * fix root * cargo fmt * add moving price to metagraph * use correct min burn init (#1265) * use correct min brun init * fmt * no into * no into 2 * bump spec * cargo update to fix cargo audit vulnerabilities * bump spec version * moving price init from emission * cargo fmt * bump spec version * commit Cargo.lock * cargo clippy * cargo fmt * DefaultMinimumPoolLiquidity and tempos in rao migration * update readme of support of M series macs * bump runtime version * add tao_emission to stakeinfo runtime * remove call from coinbase. already in block_step * add negation for pow-reg-allowed * only root can set min pow diff * oops * dont let ck-in-swap-sched move any stake/register * add tests for validation filter * add transfer stake to call nontransfer proxy filter * also add proxy filters for new calls * update staking priority * bump spec * use get_priority_staking for all stake operations * bump spec * clippy * Remove ownership check from transition stake validation * max the price for EMA calc at 1.0 * uncommitted lockfile change * bump spec version * fix merge conflicts * add CI action that requires clean merges between all named branches * fix * fixes * try again * fix again * fix * fix * stop needless wasting of CI hours with on push triggers we don't need * provide an identity for github action to prevent failure * Add serve_axon extrinsic validation * Bump spec version * Check IP validity in serve_axon validation first * make set diff only root * add test for set diff no owner * add migration for min diff * bump spec * only allow top-stake SN owner hk to stay immune * add tests * only allow replace non-top-stake owner hk * bump spec * add tests using SubnetOwnerHotkey * add impl for replace neuron * add swap test * add neuron prune impl * add swap hotkey impl * clippy * clippy * mistake in test --------- Co-authored-by: open-junius <zhou@opentensor.dev> Co-authored-by: Aliaksandr Tsurko <ales@opentensor.dev> Co-authored-by: Greg Zaitsev <gregz@opentensor.dev> Co-authored-by: Roman <167799377+roman-opentensor@users.noreply.github.com> Co-authored-by: JohnReedV <87283488+JohnReedV@users.noreply.github.com> Co-authored-by: Cameron Fairchild <cameron@opentensor.ai> Co-authored-by: unconst <jake@bittensor.com> Co-authored-by: Unconst <32490803+unconst@users.noreply.github.com> Co-authored-by: camfairchild <cameron@opentensor.dev> Co-authored-by: Prakash <qxprakash@gmail.com> Co-authored-by: ibraheem-opentensor <ibraheem@opentensor.dev>
final deployment of rao to mainnet 2/6/2025 (#1253) * wait rate limit in tests * use rem root alpha * fix test involving alpha out emission * fix alpha out expectation * Ban to_num, organize safe math into a crate * Avoid using from_num * Fix zepter * Fix zepter * Invalidate staking and unstaking transactions if liquidity is inadequate * Fix swap_alpha_for_tao * Set DefaultMinimumPoolLiquidity * add new fields to ChainIdentity and SubnetIdentity * Fix test_do_move_max_values * Add tests * Fix unsafe math * Update pallets/subtensor/src/staking/stake_utils.rs Co-authored-by: Cameron Fairchild <cameron@opentensor.ai> * Update pallets/subtensor/src/staking/stake_utils.rs Co-authored-by: Cameron Fairchild <cameron@opentensor.ai> * add migration and test * make min burn only callable by root * add tests for reg disable -> tao-in == 0 * disable TAO into subnet if reg are disabled * add stake info by hk, ck, netuid * Revert "add stake info by hk, ck, netuid" This reverts commit e0e2b84. * Add stakeinfo by hk, ck, netuid * typo * Replace frontier's RuntimeHelper with manual dispatcher * add subnet volume to runtimeAPIs * Move checked_sqrt to save math and add tests * Change type for pool k to I110F18 * Raise minimum pool liquidity to 1 TAO * Format * Implement remove_stake_limit * Fix clippy * Fix tests * Add an option to run try-runtime script with a snapshot * Update spec version * Add allow_partial parameter for add_stake_limit and remove_stake_limit * Bump spec version to 225 * Update pallets/subtensor/src/tests/staking.rs Co-authored-by: Cameron Fairchild <cameron@opentensor.ai> * Update pallets/subtensor/src/staking/remove_stake.rs Co-authored-by: Cameron Fairchild <cameron@opentensor.ai> * refactor code * fix cargo audit working in CI 🎉 * bump CI * upgrade futures-util * ignore some unmaintained advisories * add another unmaintained * cargo update url * fix more advisories * fix more advisories * add len check * add len check * Fix rao migration did not update TotalIssuance * Refactor TryState * Reformat * fix wrong origin * fix clippy * Implement slippage safe move_stake_limit * Validate slippage-safe staking extrinsics * fix some CI actions not triggering on newly opened pull request * no owner dereg & tests * update existing tests * Double-size SubnetVolume to u128 * Add swap_stake_limit * Add tests, fix corner case bugs * commit Cargo.lock * add comments * fix wrong origin * fix clippy * Remove pallet-dynamic-fee and associated inherent data * Add tests, fix bugs * Cleanup * Add subnet volume migration to fix try-runtime * Revert endpoint change in try-runtime script * Use resulting average price formula for add-remove limit stake * commit Cargo.lock * cargo clippy * cargo fix * safe math usage * upgrade openssl * address freeze_struct * rename commit_reveal_period * apply criticial openssl update to fix RUSTSEC-2025-0004 (openssl) * remove subnet_info_v3 * address lint * update register_network with identity precompile * fix merge commit * bump spec * remove SubnetInfov3 struct * rename emission_values => emission_value * bump spec * use saturating math * add cleaned coinbase * noclaim * remove complexity * non scaled tao emission * bump * fix test * clean coinbase * pre merge * no tao in for non registration * move to moving prices rather than tao reserves * price * moving alpha * bump spec * Fix tests * add moving price tests * add alpha in tests * Fix all tests * Format * Fix unsafe math * alpha tests * set tao weight * reset default staking fee * fix names * add mainnet names * cargo clippy * cargo fmt * add a global min burn and migration * add more tests for root pending etc * alpha divs * fix test for root * new test root tao * fix wrong parse function * fix test * add toggle off for transfers * delete unused workflow file * Fix validation for transfer toggle * remove duplicate tests * fix subnet creation logic * cargo fmt * add new test * bump spec version to 228 * Add test test_drain_alpha_childkey_parentkey * spec bump * commit Cargo.lock * cargo clippy * cargo fmt * fix min lock * fmt * fix migration test * cargo fmt * fix root * cargo fmt * add moving price to metagraph * use correct min burn init (#1265) * use correct min brun init * fmt * no into * no into 2 * bump spec * cargo update to fix cargo audit vulnerabilities * bump spec version * moving price init from emission * cargo fmt * bump spec version * commit Cargo.lock * cargo clippy * cargo fmt * DefaultMinimumPoolLiquidity and tempos in rao migration --------- Co-authored-by: Cameron Fairchild <cameron@opentensor.ai> Co-authored-by: Greg Zaitsev <gregz@opentensor.dev> Co-authored-by: JohnReedV <87283488+JohnReedV@users.noreply.github.com> Co-authored-by: open-junius <zhou@opentensor.dev> Co-authored-by: gztensor <166415444+gztensor@users.noreply.github.com> Co-authored-by: Aliaksandr Tsurko <ales@opentensor.dev> Co-authored-by: Roman <167799377+roman-opentensor@users.noreply.github.com> Co-authored-by: unconst <jake@bittensor.com> Co-authored-by: Unconst <32490803+unconst@users.noreply.github.com> Co-authored-by: camfairchild <cameron@opentensor.dev>
mainnet deploy 1/7/2025 (#1133) * if its the epoch block push to next epoch * fmt * Remove check for minimum stake for revoking childkeys * Apply childkeys even if sn registration is disabled * Fmt * Delete runtime/src/precompiles/subnet.rs * Update pallets/subtensor/src/tests/children.rs Co-authored-by: Cameron Fairchild <cameron@opentensor.ai> * bump spec * Remove nakamoto_gen.json * bump spec * rename EVM_TO_SUBSTRATE_DECIMALS * add logging to checked mul and div * use opentensor repo for fp --------- Co-authored-by: JohnReedV <87283488+JohnReedV@users.noreply.github.com> Co-authored-by: Greg Zaitsev <gregz@opentensor.dev> Co-authored-by: gztensor <166415444+gztensor@users.noreply.github.com> Co-authored-by: Cameron Fairchild <cameron@opentensor.ai> Co-authored-by: Aliaksandr Tsurko <ales@opentensor.dev> Co-authored-by: Unconst <32490803+unconst@users.noreply.github.com>
PreviousNext