Skip to content

Add staking and unstaking extrinsics#2456

Merged
basfroman merged 31 commits intostagingfrom
feat/roman/add_unstake_extrinsic
Nov 22, 2024
Merged

Add staking and unstaking extrinsics#2456
basfroman merged 31 commits intostagingfrom
feat/roman/add_unstake_extrinsic

Conversation

@basfroman
Copy link
Collaborator

@basfroman basfroman 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

@basfroman basfroman self-assigned this Nov 21, 2024
@basfroman basfroman added enhancement New feature or request bittensor labels Nov 21, 2024
@thewhaleking thewhaleking linked an issue Nov 22, 2024 that may be closed by this pull request
basfroman and others added 7 commits November 22, 2024 08:42
…insic

Tests for subtensor methods related with `stake` and `unstake` extrinsics
Co-authored-by: Benjamin Himes <37844818+thewhaleking@users.noreply.github.com>
Co-authored-by: Benjamin Himes <37844818+thewhaleking@users.noreply.github.com>
Co-authored-by: Benjamin Himes <37844818+thewhaleking@users.noreply.github.com>
Co-authored-by: Benjamin Himes <37844818+thewhaleking@users.noreply.github.com>
Co-authored-by: Benjamin Himes <37844818+thewhaleking@users.noreply.github.com>
@basfroman basfroman merged commit d460670 into staging Nov 22, 2024
@basfroman basfroman deleted the feat/roman/add_unstake_extrinsic branch November 22, 2024 18:31
@ibraheem-abe ibraheem-abe mentioned this pull request Nov 26, 2024
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