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

Feat/rao devnet ready #869

Draft
wants to merge 165 commits into
base: devnet-ready
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
165 commits
Select commit Hold shift + click to select a range
d564e5a
remove spurious comment lines
Jul 15, 2024
2303a8d
clean and add single test
Jul 18, 2024
cffa0e9
clean the block step
Jul 18, 2024
a6b5228
clean the block step
Jul 18, 2024
8197d91
rao
Jul 19, 2024
8c220fd
pre reorg
Jul 19, 2024
7e50083
fix dificulty
Jul 19, 2024
68dba52
fix senate
Jul 19, 2024
cac5739
fix weights test
Jul 19, 2024
0033d45
almost done
Jul 20, 2024
ac59354
swaps are fixed
Jul 20, 2024
2a5a1f9
fix staking tests
Jul 20, 2024
5594e9b
all tests passing
Jul 20, 2024
f48c4a1
remove increase and decrease stake functions
Jul 20, 2024
9526765
remove unneeded
Jul 20, 2024
2f7e334
split up root
Jul 20, 2024
45e377d
mechanism
Jul 22, 2024
37dae45
merge devnet-ready;
Jul 23, 2024
4599f42
merge
Jul 24, 2024
bcd1ec2
rao
Jul 24, 2024
0672c5a
dtao
Jul 30, 2024
4ac3420
remove total coldkey and total hotkey
Jul 30, 2024
b700b41
lock based goverance
Jul 30, 2024
58d7a67
push
Jul 30, 2024
b1f5a33
fix tests
Jul 31, 2024
801b1cd
rao
Jul 31, 2024
3f239f2
merge devnet-ready
Jul 31, 2024
9b1f486
remove test
Jul 31, 2024
69cce3e
remove chain.ipynb
Jul 31, 2024
381f769
remove chain.ipynb
Jul 31, 2024
3606f84
fix clippy
Jul 31, 2024
d304db6
clippy and comments
Jul 31, 2024
80a0a78
add a migration from pervious state to rao
Jul 31, 2024
331679e
add lock dynamics
Aug 1, 2024
b38892a
add lock tests, still not passing
Aug 2, 2024
7def213
pass lock tests
Aug 2, 2024
8a0bd9a
add exhuastive tests for lock
Aug 3, 2024
7483651
add emission tests
Aug 3, 2024
4390608
feat: add set lock interval extrinsic
Aug 3, 2024
31ea6a7
passsing some tests
Aug 3, 2024
40d1d83
Merge branch 'rao' of github.com:opentensor/subtensor into rao
Aug 3, 2024
6cd518f
fix emission tests
Aug 3, 2024
d06f102
add tests around block emission
Aug 3, 2024
f802f82
add comments and doc strings
Aug 3, 2024
451b671
remove set emission values
Aug 3, 2024
ceb1a1f
add coinbase tests
Aug 3, 2024
90d061d
rao
Aug 3, 2024
932ab6c
adding some TODOs
Aug 3, 2024
f62c23d
denominator is correct
Aug 4, 2024
d0bd0dd
fix coinbase
Aug 4, 2024
68cd448
half emission for dynamic
Aug 5, 2024
2e7a420
venv
Aug 8, 2024
8dc5dcf
add ru
Aug 11, 2024
cb90268
add hotkey and coldkey lock swaps
Aug 11, 2024
32ad2a1
att dynamic tempos
Aug 12, 2024
0f15d8f
make owner take 9%
Aug 13, 2024
435bcae
s
Aug 13, 2024
55ca8e4
rao
Aug 14, 2024
a359156
raonet
Aug 14, 2024
e3a54b4
rao
Aug 14, 2024
3bd8f25
cargo +nightly fmt
sam0x17 Aug 14, 2024
0342951
commit
Aug 14, 2024
fc582bc
merge
Aug 14, 2024
4717dbb
pre clippy
Aug 14, 2024
18a6e0c
push;
Aug 14, 2024
c170bd5
my key has 100
Aug 14, 2024
04fb5fa
test
Aug 14, 2024
e9c999d
test
Aug 14, 2024
422096b
isa
Aug 14, 2024
c2945bb
paul and carrot
Aug 14, 2024
4aa421f
decrement the owner cut
Aug 14, 2024
6e81753
Add protection from fast stake-unstake attack
gztensor Aug 15, 2024
9754282
Add tests for fast stake-unstake protection
gztensor Aug 15, 2024
f6f152c
updated SubnetInfo
Aug 15, 2024
e7f9096
rao
Aug 15, 2024
ed95db2
rao
Aug 15, 2024
aaa921e
rao
Aug 16, 2024
313847c
fix lock tests
Aug 16, 2024
9845f8b
Mer rao into feat/protect-from-fast-stake-unstake
gztensor Aug 16, 2024
a0d58db
rao
Aug 16, 2024
48ad114
taking a breal
Aug 16, 2024
1b68404
update
Aug 19, 2024
c7d6958
remove genesis;
Aug 19, 2024
7c7463e
pre merge
Aug 19, 2024
34cbe07
roa
Aug 19, 2024
6a1f768
rao
Aug 20, 2024
7166591
rao
Aug 20, 2024
ec17ae8
rao
Aug 20, 2024
e12793e
remove subnets more to mock epoch
Aug 21, 2024
a4b5f55
fix params
Aug 21, 2024
9449d1f
watchmaker
Aug 21, 2024
e268f37
add nico ryna
Aug 21, 2024
d5c7713
ad
Aug 21, 2024
6071bfb
remove lock
Aug 21, 2024
fc03cfe
rao
Aug 21, 2024
26e3614
stake issue
Aug 21, 2024
b1b2faa
minor initialization updates
Aug 22, 2024
521fd2c
add balances into raonet
Aug 22, 2024
c4026f8
add straglers
Aug 22, 2024
72b087f
add const
Aug 22, 2024
e381969
remove sudo
Aug 22, 2024
117029e
fix stake and global wiehg
Aug 22, 2024
334c312
Merge pull request #737 from opentensor/feat/protect-from-fast-stake-…
unconst Aug 23, 2024
31653dd
fix broken stake weight
Aug 23, 2024
5b0e752
fix: remove staking key if alpha == 0
Aug 23, 2024
46602bb
chore: remove deprecated tests
Aug 23, 2024
e63bfe0
Add rao game coldkeys to raonet genesis (as of 2024-09-19 11AM PDT ke…
gztensor Sep 19, 2024
6134724
Merge new rao game coldkeys (as of 2024-09-19 11AM PDT key collection…
gztensor Sep 19, 2024
54c5193
Format
gztensor Sep 26, 2024
af6a324
Revert "Format"
gztensor Sep 26, 2024
3ec32a1
update staking unstaking events for dtao
axionyu Oct 3, 2024
97509b6
Merge pull request #839 from tensorplex-labs/features/update-dtao-sta…
distributedstatemachine Oct 3, 2024
b4b3067
Merge branch 'devnet-ready' into rao
gztensor Oct 21, 2024
ef3b046
Make tests build
gztensor Oct 21, 2024
39bf365
Cleanup: Comment unused accumulate_hotkey_emission, rename PendingdHo…
gztensor Oct 21, 2024
ef8987e
Re-add chain bloat fix and childkey takes. Return the locks from prio…
gztensor Oct 22, 2024
c122dd3
Remove viable stake from run_coinbase
gztensor Oct 22, 2024
e656a63
Distribute owner cut using coldkey as hotkey, like (cold, cold, amount)
gztensor Oct 22, 2024
0f1cd80
Anneal GlobalWeight from 1.0 to 0.5 within a year for any subnet, new…
gztensor Oct 22, 2024
f505ae1
Set GlobalWeight to 1.0 in migration_rao
gztensor Oct 22, 2024
640e220
Fix test_coinbase_basic
gztensor Oct 22, 2024
6088bb1
Unit tests in progress
gztensor Oct 23, 2024
7f66371
Tempos are 300, Owner cut will be paid properly, No locks on subnet c…
gztensor Oct 23, 2024
854c2b1
Make tests build
gztensor Oct 23, 2024
ceb1dd4
Add basic emission tests
gztensor Oct 23, 2024
7b633c1
Fix test_add_singular_child and test_get_set_alpha tests
gztensor Oct 24, 2024
98363f1
Fix tests broken due to childkey setting rate limits
gztensor Oct 24, 2024
1e87ae8
Fix test_get_network_max_stake
gztensor Oct 24, 2024
792af79
Fix test_get_stake_for_hotkey_on_subnet_single_parent_child
gztensor Oct 24, 2024
f092a31
Fix test_get_stake_for_hotkey_on_subnet_multiple_parents_single_child
gztensor Oct 24, 2024
a37e0ab
Fix test_get_stake_for_hotkey_on_subnet_single_parent_multiple_children
gztensor Oct 24, 2024
6490259
Fix test_get_stake_for_hotkey_on_subnet_edge_cases, add test_get_stak…
gztensor Oct 24, 2024
235b23c
Fix test_get_stake_for_hotkey_on_subnet_complex_hierarchy
gztensor Oct 24, 2024
c1519c8
Fix test_children_stake_values
gztensor Oct 24, 2024
f329468
Fix test_blocks_since_last_step
gztensor Oct 24, 2024
94dbe0d
Fix and deprecate test_replace_neuron_multiple_subnets_unstake_all
gztensor Oct 25, 2024
f44c9ed
Fix test_basic_emission_distribution_scenario
gztensor Oct 25, 2024
59ef552
Fix test_hotkey_take_calculation_scenario
gztensor Oct 25, 2024
d48c714
Fix / add tests for subnet owner cut
gztensor Oct 25, 2024
682d0cb
Fix test_get_stake_for_hotkey_on_subnet
gztensor Oct 25, 2024
b933c6d
Fix test_different_network_ids_scenario_1
gztensor Oct 25, 2024
d82568d
Fix broken emission tests
gztensor Oct 25, 2024
bd537d8
Fix test_get_set_alpha and test_adjust_tempos_with_valid_tao_values
gztensor Oct 25, 2024
5d33b26
Add amount parameter to move_stake, enforce rate limits and fast stak…
gztensor Oct 25, 2024
0988a90
Format
gztensor Oct 25, 2024
a94a1d2
Fix clippy in progress
gztensor Oct 25, 2024
7d28161
Format
gztensor Oct 25, 2024
e215752
Bump spec version
gztensor Oct 25, 2024
9538d65
Make benchmarks build
gztensor Oct 25, 2024
dc9c188
fix first freeze_struct
sam0x17 Oct 25, 2024
2827337
add another missing freeze_struct
sam0x17 Oct 25, 2024
0346820
add another missing freeze_struct
sam0x17 Oct 25, 2024
4148c3a
Remove locks completely, check for future blocks when enforcing staki…
gztensor Oct 28, 2024
188dd5c
Optimize rao hotkey drain
gztensor Oct 28, 2024
b91aaf5
Merge pull request #878 from opentensor/feat/rao-hotkey-drain-optimiz…
gztensor Oct 29, 2024
d4196f8
Fix double emission for childkey take
gztensor Oct 29, 2024
7bceea7
Merge devnet-ready to feat/rao-devnet-ready
gztensor Oct 31, 2024
9183f74
try new bittensor branch for e2e
open-junius Nov 1, 2024
e03684f
merge and fix conflict
open-junius Nov 1, 2024
dd82b73
fix conflict in tests
open-junius Nov 1, 2024
4fc8cd6
try using the same method as epoch for subnetstateinfo
camfairchild Nov 4, 2024
0088415
add dev for pip install bittensor
open-junius Nov 5, 2024
cb735aa
add dev for pip install bittensor
open-junius Nov 5, 2024
a3efc24
fix a minor clippy to trigger e2e
open-junius Nov 5, 2024
0d17d0a
Merge branch 'devnet-ready' into feat/rao-devnet-ready
gztensor Nov 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/e2e-bittensor-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ jobs:
- name: Setup bittensor repo
working-directory: ${{ github.workspace }}/bittensor
run: |
git checkout staging
python3 -m pip install -e .
git checkout junius/arguments-create-network
python3 -m pip install -e ."[dev]"
python3 -m pip install torch
python3 -m pip install pytest

Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
# The cache for docker container dependency
.cargo

# Jupyter Notebook files
*.ipynb

# The cache for chain data in container
.local

Expand Down
2 changes: 1 addition & 1 deletion .rustfmt.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
##
# rustup run nightly -- rustfmt node/src/main.rs

# max_width = 180
# max_width = 360
# hard_tabs = false
# tab_spaces = 4
# newline_style = "Auto"
Expand Down
1 change: 1 addition & 0 deletions node/src/chain_spec/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

pub mod finney;
pub mod localnet;
pub mod raonet;
pub mod testnet;

use node_subtensor_runtime::{AccountId, Block, Signature, WASM_BINARY};
Expand Down
Loading
Loading