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 9
9
from .metagraphs import Metagraphs as _Metagraphs
10
10
from .neurons import Neurons as _Neurons
11
11
from .queries import Queries as _Queries
12
- from .stakes import Stakes as _Stakes
12
+ from .staking import Staking as _Staking
13
13
from .subnets import Subnets as _Subnets
14
14
from .utils import add_legacy_methods as _add_classic_fields
15
15
from .wallets import Wallets as _Wallets
@@ -221,9 +221,9 @@ def queries(self):
221
221
return _Queries (self ._subtensor )
222
222
223
223
@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 )
227
227
228
228
@property
229
229
def subnets (self ):
Original file line number Diff line number Diff line change 3
3
from bittensor .core .async_subtensor import AsyncSubtensor as _AsyncSubtensor
4
4
5
5
6
- class Stakes :
7
- """Class for managing stake operations."""
6
+ class Staking :
7
+ """Class for managing staking operations."""
8
8
9
9
def __init__ (self , subtensor : Union ["_Subtensor" , "_AsyncSubtensor" ]):
10
10
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):
29
29
]
30
30
neurons_methods = [m for m in dir (subtensor_api .neurons ) if not m .startswith ("_" )]
31
31
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 ("_" )]
33
33
subnets_methods = [m for m in dir (subtensor_api .subnets ) if not m .startswith ("_" )]
34
34
wallets_methods = [m for m in dir (subtensor_api .wallets ) if not m .startswith ("_" )]
35
35
You can’t perform that action at this time.
0 commit comments