Skip to content

Commit a066281

Browse files
authored
Feat/add old classes (#14)
* add subnet state * bump ver * Revert "add subnet state" This reverts commit 8e158cb. * remove new fields; decoding like this not supported * fix pyi
1 parent 2f16f5b commit a066281

File tree

5 files changed

+3
-15
lines changed

5 files changed

+3
-15
lines changed

Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "bt_decode"
3-
version = "0.5.0-a1"
3+
version = "0.5.0-a2"
44
edition = "2021"
55

66
[lib]

bt_decode.pyi

-6
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,6 @@ class NeuronInfo:
6060
stake: List[
6161
Tuple[bytes, int]
6262
] # map of coldkey to stake on this neuron/hotkey (includes delegations)
63-
total_stake: int
64-
alpha_stake: int
65-
tao_stake: int
6663
rank: int
6764
emission: int
6865
incentive: int
@@ -97,9 +94,6 @@ class NeuronInfoLite:
9794
stake: List[
9895
Tuple[bytes, int]
9996
] # map of coldkey to stake on this neuron/hotkey (includes delegations)
100-
total_stake: int
101-
alpha_stake: int
102-
tao_stake: int
10397
rank: int
10498
emission: int
10599
incentive: int

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "bt-decode"
3-
version = "0.5.0-a1"
3+
version = "0.5.0-a2"
44
description = "A wrapper around the scale-codec crate for fast scale-decoding of Bittensor data structures."
55
readme = "README.md"
66
license = {file = "LICENSE"}

src/lib.rs

-6
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,6 @@ mod bt_decode {
9999
axon_info: AxonInfo,
100100
prometheus_info: PrometheusInfo,
101101
stake: Vec<(AccountId, Compact<u64>)>, // map of coldkey to stake on this neuron/hotkey (includes delegations)
102-
total_stake: Compact<u64>,
103-
alpha_stake: Compact<u64>,
104-
tao_stake: Compact<u64>,
105102
rank: Compact<u16>,
106103
emission: Compact<u64>,
107104
incentive: Compact<u16>,
@@ -131,9 +128,6 @@ mod bt_decode {
131128
axon_info: AxonInfo,
132129
prometheus_info: PrometheusInfo,
133130
stake: Vec<(AccountId, Compact<u64>)>, // map of coldkey to stake on this neuron/hotkey (includes delegations)
134-
total_stake: Compact<u64>,
135-
alpha_stake: Compact<u64>,
136-
tao_stake: Compact<u64>,
137131
rank: Compact<u16>,
138132
emission: Compact<u64>,
139133
incentive: Compact<u16>,

0 commit comments

Comments
 (0)