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

Release/9.0.0rc3 #2643

Closed
wants to merge 12 commits into from
Closed
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog

## 9.0.0rc3 /2025-02-06

## What's Changed
* Adds methods to better accommodate the new websocket implementation (long-lived) by @thewhaleking in https://github.com/opentensor/bittensor/commit/3c44be177edef8a799c2c9dc5e49916723cab5c2
* Adds latent-lite network by @ibraheem-opentensor in https://github.com/opentensor/bittensor/pull/2641
* Updates async-substrate-interface to 1.0.0rc12 by @ibraheem-opentensor in https://github.com/opentensor/bittensor/commit/9d0b008e6163c84ed9267423324f30c3ec8af289
* Bringing meta fields to a common form with float values float(TAO) instead of Balance and Tensor by @roman-opentensor in https://github.com/opentensor/bittensor/pull/2642

**Full Changelog**: https://github.com/opentensor/bittensor/compare/v9.0.0rc2...v9.0.0rc3

## 9.0.0rc2 /2025-02-05

## What's Changed
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
9.0.0rc2
9.0.0rc3
37 changes: 23 additions & 14 deletions bittensor/core/chain_data/metagraph_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,12 @@ def process_nested(data: Union[tuple, dict], chr_transform):
"""Processes nested data structures by applying a transformation function to their elements."""
if isinstance(data, (list, tuple)):
if len(data) > 0 and isinstance(data[0], dict):
return {k: chr_transform(v) for k, v in data[0].items()}
return [
{k: chr_transform(v) for k, v in item.items()}
if item is not None
else None
for item in data
]
return {}
elif isinstance(data, dict):
return {k: chr_transform(v) for k, v in data.items()}
Expand Down Expand Up @@ -220,20 +225,24 @@ def _from_dict(cls, decoded: dict) -> "MetagraphInfo":

@dataclass
class MetagraphInfoEmissions:
subnet_emission: Balance
alpha_in_emission: Balance
alpha_out_emission: Balance
tao_in_emission: Balance
pending_alpha_emission: Balance
pending_root_emission: Balance
"""Emissions presented in tao values."""

subnet_emission: float
alpha_in_emission: float
alpha_out_emission: float
tao_in_emission: float
pending_alpha_emission: float
pending_root_emission: float


@dataclass
class MetagraphInfoPool:
alpha_out: Balance
alpha_in: Balance
tao_in: Balance
subnet_volume: Balance
"""Pool presented in tao values."""

alpha_out: float
alpha_in: float
tao_in: float
subnet_volume: float


@dataclass
Expand All @@ -244,20 +253,20 @@ class MetagraphInfoParams:
alpha_high: float
alpha_low: float
bonds_moving_avg: float
burn: Balance
burn: float
commit_reveal_period: int
commit_reveal_weights_enabled: bool
difficulty: float
immunity_period: int
kappa: float
liquid_alpha_enabled: bool
max_burn: Balance
max_burn: float
max_difficulty: float
max_regs_per_block: int
max_validators: int
max_weights_limit: float
min_allowed_weights: float
min_burn: Balance
min_burn: float
min_difficulty: float
pow_registration_allowed: bool
registration_allowed: bool
Expand Down
Loading
Loading