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

Add staking and unstaking extrinsics #2456

Merged
merged 31 commits into from
Nov 22, 2024

Conversation

roman-opentensor
Copy link
Contributor

@roman-opentensor roman-opentensor commented Nov 21, 2024

Added extrinsic methods:

  • Subtensor.add_stake
  • Subtensor.add_stake_multiple
  • Subtensor.unstake
  • Subtensor.unstake_multiple

Added Subtensor methods:

  • Subtensor.get_stake_for_coldkey_and_hotkey
  • Subtensor.does_hotkey_exist
  • Subtensor.get_hotkey_owner
  • Subtensor.tx_rate_limit
  • Subtensor.get_delegates
  • Subtensor.is_hotkey_delegate

Added extrinsics:

  • bittensor/core/extrinsics/staking.py
  • bittensor/core/extrinsics/unstaking.py

@roman-opentensor roman-opentensor self-assigned this Nov 21, 2024
@roman-opentensor roman-opentensor added enhancement New feature or request bittensor labels Nov 21, 2024
bittensor/core/async_subtensor.py Outdated Show resolved Hide resolved
bittensor/core/extrinsics/staking.py Outdated Show resolved Hide resolved
bittensor/core/extrinsics/staking.py Outdated Show resolved Hide resolved
bittensor/core/extrinsics/unstaking.py Outdated Show resolved Hide resolved
bittensor/core/extrinsics/unstaking.py Outdated Show resolved Hide resolved
@thewhaleking thewhaleking linked an issue Nov 22, 2024 that may be closed by this pull request
@roman-opentensor roman-opentensor merged commit d460670 into staging Nov 22, 2024
28 checks passed
@roman-opentensor roman-opentensor deleted the feat/roman/add_unstake_extrinsic branch November 22, 2024 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bittensor enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[SDK] Add delegate-stake and undelegate-stake into the SDK
2 participants