Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
256 changes: 128 additions & 128 deletions bittensor/core/async_subtensor.py

Large diffs are not rendered by default.

366 changes: 183 additions & 183 deletions bittensor/core/extrinsics/asyncex/staking.py

Large diffs are not rendered by default.

50 changes: 25 additions & 25 deletions bittensor/core/extrinsics/pallets/subtensor_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,31 @@ def add_stake(
amount_staked=amount_staked,
)

def add_stake_burn(
self,
netuid: int,
hotkey: str,
amount: int,
limit: Optional[int] = None,
) -> Call:
"""Returns GenericCall instance for Subtensor function SubtensorModule.add_stake_burn.

Parameters:
netuid: The netuid of the subnet to buy back on.
hotkey: The hotkey SS58 address associated with the buyback.
amount: Amount of TAO in RAO to use for the buyback.
limit: Optional limit price expressed in units of RAO per one Alpha.

Returns:
GenericCall instance.
"""
return self.create_composed_call(
netuid=netuid,
hotkey=hotkey,
amount=amount,
limit=limit,
)

def add_stake_limit(
self,
netuid: int,
Expand Down Expand Up @@ -663,31 +688,6 @@ def start_call(self, netuid: int) -> Call:
"""
return self.create_composed_call(netuid=netuid)

def subnet_buyback(
self,
netuid: int,
hotkey: str,
amount: int,
limit: Optional[int] = None,
) -> Call:
"""Returns GenericCall instance for Subtensor function SubtensorModule.subnet_buyback.

Parameters:
netuid: The netuid of the subnet to buy back on.
hotkey: The hotkey SS58 address associated with the buyback.
amount: Amount of TAO in RAO to use for the buyback.
limit: Optional limit price expressed in units of RAO per one Alpha.

Returns:
GenericCall instance.
"""
return self.create_composed_call(
netuid=netuid,
hotkey=hotkey,
amount=amount,
limit=limit,
)

def swap_stake(
self,
hotkey: str,
Expand Down
Loading
Loading