Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean hot swap #658

Closed
wants to merge 72 commits into from
Closed

Clean hot swap #658

wants to merge 72 commits into from

Commits on Jun 13, 2024

  1. Configuration menu
    Copy the full SHA
    3c17efb View commit details
    Browse the repository at this point in the history

Commits on Jun 19, 2024

  1. Merge pull request #529 from opentensor/ban-unsafe-arithmetic-devnet

    (Devnet Ready) Ban unsafe arithmetic operations
    sam0x17 authored Jun 19, 2024
    Configuration menu
    Copy the full SHA
    1a0d09f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5e9955a View commit details
    Browse the repository at this point in the history
  3. appease clippy

    sam0x17 committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    68ab335 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #550 from opentensor/sam-add-freeze-layout-devnet

    [devnet companion] prevent accidental changes to storage structs
    sam0x17 authored Jun 19, 2024
    Configuration menu
    Copy the full SHA
    6000266 View commit details
    Browse the repository at this point in the history

Commits on Jun 21, 2024

  1. Configuration menu
    Copy the full SHA
    705bfe7 View commit details
    Browse the repository at this point in the history
  2. bump CI

    sam0x17 committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    925b06c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b5bc72d View commit details
    Browse the repository at this point in the history
  4. Merge pull request #555 from opentensor/fix-chainspecs-devnet-companion

    [devnet-companion] fix chainspecs
    sam0x17 authored Jun 21, 2024
    Configuration menu
    Copy the full SHA
    61fa5bd View commit details
    Browse the repository at this point in the history
  5. Merge pull request #554 from opentensor/sam-add-freeze-layout-devnet-2

    [devnet-companion] prevent accidental changes to storage structs (2)
    sam0x17 authored Jun 21, 2024
    Configuration menu
    Copy the full SHA
    fce53c0 View commit details
    Browse the repository at this point in the history
  6. bump CI

    sam0x17 committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    f339e8e View commit details
    Browse the repository at this point in the history
  7. Merge branch 'devnet-ready' into fix-add-adjust-senate-call-vune-devn…

    …et-companion
    Samuel Dare committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    fae9db0 View commit details
    Browse the repository at this point in the history
  8. chore: clippy

    Samuel Dare committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    9f09d94 View commit details
    Browse the repository at this point in the history
  9. Merge pull request #557 from opentensor/fix-add-adjust-senate-call-vu…

    …ne-devnet-companion
    
    [devnet-companion] Fix Senate membership changes
    distributedstatemachine authored Jun 21, 2024
    Configuration menu
    Copy the full SHA
    f34be4c View commit details
    Browse the repository at this point in the history
  10. Merge remote-tracking branch 'origin/devnet-ready' into keith-safe-mo…

    …de-devnet-companion-2
    sam0x17 committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    2b07824 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    a4f9ad7 View commit details
    Browse the repository at this point in the history
  12. fix

    sam0x17 committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    74e1beb View commit details
    Browse the repository at this point in the history
  13. Merge pull request #559 from opentensor/keith-safe-mode-devnet-compan…

    …ion-2
    
    [devnet-companion] safe mode
    distributedstatemachine authored Jun 21, 2024
    Configuration menu
    Copy the full SHA
    1692d24 View commit details
    Browse the repository at this point in the history

Commits on Jun 23, 2024

  1. override default pages to 60k

    orriin committed Jun 23, 2024
    Configuration menu
    Copy the full SHA
    ced39fd View commit details
    Browse the repository at this point in the history

Commits on Jun 24, 2024

  1. update doc

    orriin committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    f5dff31 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    abe2f3e View commit details
    Browse the repository at this point in the history
  3. clippy

    Samuel Dare committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    abc7798 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #562 from opentensor/override-default-pages-devnet…

    …-ready
    
    Override default pages to fix archive sync [devnet-ready]
    sam0x17 authored Jun 24, 2024
    Configuration menu
    Copy the full SHA
    ab6212a View commit details
    Browse the repository at this point in the history
  5. feat: clippy

    Samuel Dare committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    b1c26b3 View commit details
    Browse the repository at this point in the history
  6. Merge pull request #568 from opentensor/devnet_companion_feat/liquid_…

    …alpha_2
    
    Devnet companion feat/liquid alpha 2
    sam0x17 authored Jun 24, 2024
    Configuration menu
    Copy the full SHA
    5c66560 View commit details
    Browse the repository at this point in the history
  7. refactor: hotkey swap + tests

    Samuel Dare committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    2b10e12 View commit details
    Browse the repository at this point in the history
  8. chore: lints

    Samuel Dare committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    7eb29f9 View commit details
    Browse the repository at this point in the history
  9. chore: clippy

    Samuel Dare committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    6ddcfe2 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    45e828d View commit details
    Browse the repository at this point in the history
  11. Correct the expected weights on the register extrinsic

    keithtensor authored and Samuel Dare committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    c12ec37 View commit details
    Browse the repository at this point in the history
  12. Update pallets/subtensor/src/swap.rs

    Co-authored-by: Keith <[email protected]>
    2 people authored and Samuel Dare committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    5eaa088 View commit details
    Browse the repository at this point in the history
  13. chore: updates from using real weights in tests

    Samuel Dare committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    969a4f8 View commit details
    Browse the repository at this point in the history
  14. chore: review comments , make swap cost a constant

    Samuel Dare committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    6b68263 View commit details
    Browse the repository at this point in the history
  15. chore: runtime consts

    Samuel Dare committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    ec27e77 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    fc82551 View commit details
    Browse the repository at this point in the history
  17. chore: pr comments assert keys

    Samuel Dare committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    5057472 View commit details
    Browse the repository at this point in the history
  18. chore: pr comments: remove last tx block

    Samuel Dare committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    dd9672b View commit details
    Browse the repository at this point in the history
  19. chore: fmt

    Samuel Dare committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    60019a9 View commit details
    Browse the repository at this point in the history
  20. Use concrete numbers for weight expectations

    keithtensor authored and Samuel Dare committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    2cd90dd View commit details
    Browse the repository at this point in the history
  21. Update pallets/subtensor/src/swap.rs

    Co-authored-by: orriin <[email protected]>
    2 people authored and Samuel Dare committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    5743ae7 View commit details
    Browse the repository at this point in the history
  22. chore: add test_swap_hotkey_tx_rate_limit_exceeded

    Samuel Dare committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    f358847 View commit details
    Browse the repository at this point in the history
  23. chore: fmt

    Samuel Dare committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    768e8e4 View commit details
    Browse the repository at this point in the history
  24. chore: review comments

    Samuel Dare committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    cb078a2 View commit details
    Browse the repository at this point in the history
  25. fix: pr comments

    Samuel Dare committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    814447f View commit details
    Browse the repository at this point in the history
  26. chore: lint

    Samuel Dare committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    680e4ad View commit details
    Browse the repository at this point in the history
  27. fix: remove unused function

    Samuel Dare committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    f7b567a View commit details
    Browse the repository at this point in the history
  28. add requirement for devnet-companion label for devnet-ready PRs

    sam0x17 authored and Samuel Dare committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    78663d8 View commit details
    Browse the repository at this point in the history
  29. add testnet-ready labels check

    sam0x17 authored and Samuel Dare committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    76d9439 View commit details
    Browse the repository at this point in the history
  30. update CONTRIBUTING.md with additional info

    sam0x17 authored and Samuel Dare committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    6bd2e42 View commit details
    Browse the repository at this point in the history
  31. update docs

    sam0x17 authored and Samuel Dare committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    ad85c27 View commit details
    Browse the repository at this point in the history
  32. clippy fix

    sam0x17 authored and Samuel Dare committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    66c87af View commit details
    Browse the repository at this point in the history
  33. make clippy happy

    Samuel Dare committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    01dca6a View commit details
    Browse the repository at this point in the history
  34. Merge pull request #567 from opentensor/devnet_companion_refactor/hot…

    …key_swap
    
    [devnet companion]refactor/hotkey swap
    sam0x17 authored Jun 24, 2024
    Configuration menu
    Copy the full SHA
    5c46be0 View commit details
    Browse the repository at this point in the history

Commits on Jun 25, 2024

  1. update spec file usage

    orriin committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    ecb6221 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #571 from opentensor/chainspec-file-update

    Update spec file usage
    orriin authored Jun 25, 2024
    Configuration menu
    Copy the full SHA
    efb18f3 View commit details
    Browse the repository at this point in the history
  3. feat: bump spec

    Samuel Dare committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    81ed321 View commit details
    Browse the repository at this point in the history
  4. feat: benchmark adjust senate

    Samuel Dare committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    2ea077b View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    2b6d54f View commit details
    Browse the repository at this point in the history

Commits on Jul 12, 2024

  1. Configuration menu
    Copy the full SHA
    dc3f178 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bba97c8 View commit details
    Browse the repository at this point in the history
  3. fix merge conflict

    sam0x17 committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    177c47a View commit details
    Browse the repository at this point in the history

Commits on Jul 15, 2024

  1. Merge pull request #629 from opentensor/merge-main-into-devnet-ready-…

    …7-12-2024
    
    merge main into devnet-ready 7-12-2024
    sam0x17 authored Jul 15, 2024
    Configuration menu
    Copy the full SHA
    98a1ed2 View commit details
    Browse the repository at this point in the history

Commits on Jul 19, 2024

  1. Merge main into devnet ready 7 18 2024 (#650)

    * draft: hotkey swap for senate
    
    * feat: remove schedule coldkey swap
    
    * chore: fix tests
    
    * fixes for network resumption
    
    * chore: bump spec
    
    * fix: add back arbitration check
    
    * fix: hotkey
    
    * fix: coldkey arb swap hotkey
    
    * swap delegate stake also
    
    * add test for this
    
    * swap over stakinghotkeys map
    
    * check map first
    
    * add staking hotkeys test
    
    * no take
    
    * keep old stake
    
    * add check to test
    
    * fix some tests
    
    * fix delegate test
    
    * update staking hotekys maps
    
    * init
    
    * comment out
    
    * add admin swap
    
    * fix swap
    
    * ..
    
    * hotkey staking maps fix
    
    * remove staking hotkeys
    
    * remove commented code
    
    * cargo fmt
    
    * cargo fix --workspace
    
    * bump spec_version to 165
    
    * swap hotkey benchmark removed
    
    * add migration and tests for total coldkey hotfix
    
    * adds new test for missing hotkey value
    
    * bump migration values
    
    * fmt
    
    * feat: try runtime passing
    
    * chore: remove commented code
    
    * chore: make logs human readable
    
    * chore: remove comments
    
    * Update pallets/subtensor/src/lib.rs
    
    Co-authored-by: Sam Johnson <[email protected]>
    
    * add test first
    
    * clear map before rest of migration
    
    * track weight for clear/removal
    
    * add comment
    
    * rename test
    
    * add test for emission appends staking hotkeys map
    
    * Update runtime/src/lib.rs
    
    ---------
    
    Co-authored-by: Samuel Dare <[email protected]>
    Co-authored-by: distributedstatemachine <[email protected]>
    Co-authored-by: const <[email protected]>
    Co-authored-by: Sam Johnson <[email protected]>
    Co-authored-by: Unconst <[email protected]>
    6 people authored Jul 19, 2024
    Configuration menu
    Copy the full SHA
    aa5e890 View commit details
    Browse the repository at this point in the history

Commits on Jul 22, 2024

  1. Merge pull request #628 from opentensor/end-recursion-devnet

    [devnet-companion] Make weighted_median iterative
    keithtensor authored Jul 22, 2024
    Configuration menu
    Copy the full SHA
    ce3e87e View commit details
    Browse the repository at this point in the history
  2. Feat/devnet companion/check metadata hash extension (#649)

    * draft: hotkey swap for senate
    
    * feature-gate hash
    
    * use 1.10.0-rc2
    
    * add feature
    
    * feat: remove schedule coldkey swap
    
    * chore: fix tests
    
    * fixes for network resumption
    
    * chore: bump spec
    
    * fix: add back arbitration check
    
    * fix: hotkey
    
    * fix: coldkey arb swap hotkey
    
    * swap delegate stake also
    
    * add test for this
    
    * swap over stakinghotkeys map
    
    * check map first
    
    * add staking hotkeys test
    
    * no take
    
    * keep old stake
    
    * add check to test
    
    * fix some tests
    
    * fix delegate test
    
    * update staking hotekys maps
    
    * init
    
    * comment out
    
    * add admin swap
    
    * fix swap
    
    * ..
    
    * hotkey staking maps fix
    
    * remove staking hotkeys
    
    * remove commented code
    
    * cargo fmt
    
    * cargo fix --workspace
    
    * bump spec_version to 165
    
    * swap hotkey benchmark removed
    
    * add migration and tests for total coldkey hotfix
    
    * adds new test for missing hotkey value
    
    * bump migration values
    
    * fmt
    
    * lock file update
    
    * add production just target
    
    * fmt
    
    * clippy
    
    * benchmarking fix
    
    * feat: try runtime passing
    
    * chore: remove commented code
    
    * chore: make logs human readable
    
    * chore: remove comments
    
    * Update pallets/subtensor/src/lib.rs
    
    Co-authored-by: Sam Johnson <[email protected]>
    
    * fmt
    
    * use rc3 with new fix polkadot-sdk/pull/4117
    
    * incl lock
    
    * bump CI
    
    ---------
    
    Co-authored-by: Samuel Dare <[email protected]>
    Co-authored-by: distributedstatemachine <[email protected]>
    Co-authored-by: const <[email protected]>
    Co-authored-by: Sam Johnson <[email protected]>
    Co-authored-by: Unconst <[email protected]>
    6 people authored Jul 22, 2024
    Configuration menu
    Copy the full SHA
    1c50295 View commit details
    Browse the repository at this point in the history
  3. initial

    const authored and const committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    07e46e3 View commit details
    Browse the repository at this point in the history
  4. add tests

    const authored and const committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    0432b53 View commit details
    Browse the repository at this point in the history
  5. tests pass

    const authored and const committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    7f938f7 View commit details
    Browse the repository at this point in the history
  6. clean the code

    const authored and const committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    659b53c View commit details
    Browse the repository at this point in the history
  7. fix tests

    const authored and const committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    b8cfd6c View commit details
    Browse the repository at this point in the history
  8. clippy and fmt

    const authored and const committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    6b6460d View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    d66cb46 View commit details
    Browse the repository at this point in the history