File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
bittensor/core/subtensor_api Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 99from .metagraphs import Metagraphs as _Metagraphs
1010from .neurons import Neurons as _Neurons
1111from .queries import Queries as _Queries
12- from .stakes import Stakes as _Stakes
12+ from .staking import Staking as _Staking
1313from .subnets import Subnets as _Subnets
1414from .utils import add_legacy_methods as _add_classic_fields
1515from .wallets import Wallets as _Wallets
@@ -221,9 +221,9 @@ def queries(self):
221221 return _Queries (self ._subtensor )
222222
223223 @property
224- def stakes (self ):
225- """Property to access stakes methods."""
226- return _Stakes (self ._subtensor )
224+ def staking (self ):
225+ """Property to access staking methods."""
226+ return _Staking (self ._subtensor )
227227
228228 @property
229229 def subnets (self ):
Original file line number Diff line number Diff line change 33from bittensor .core .async_subtensor import AsyncSubtensor as _AsyncSubtensor
44
55
6- class Stakes :
7- """Class for managing stake operations."""
6+ class Staking :
7+ """Class for managing staking operations."""
88
99 def __init__ (self , subtensor : Union ["_Subtensor" , "_AsyncSubtensor" ]):
1010 self .add_stake = subtensor .add_stake
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ def test_properties_methods_comparable(other_class: "Subtensor" = None):
2929 ]
3030 neurons_methods = [m for m in dir (subtensor_api .neurons ) if not m .startswith ("_" )]
3131 queries_methods = [m for m in dir (subtensor_api .queries ) if not m .startswith ("_" )]
32- stakes_methods = [m for m in dir (subtensor_api .stakes ) if not m .startswith ("_" )]
32+ stakes_methods = [m for m in dir (subtensor_api .staking ) if not m .startswith ("_" )]
3333 subnets_methods = [m for m in dir (subtensor_api .subnets ) if not m .startswith ("_" )]
3434 wallets_methods = [m for m in dir (subtensor_api .wallets ) if not m .startswith ("_" )]
3535
You can’t perform that action at this time.
0 commit comments