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 view method to staking precompile to access stake map #857

Open
4 of 5 tasks
gztensor opened this issue Oct 11, 2024 · 1 comment · May be fixed by #955
Open
4 of 5 tasks

Add view method to staking precompile to access stake map #857

gztensor opened this issue Oct 11, 2024 · 1 comment · May be fixed by #955
Assignees

Comments

@gztensor
Copy link
Contributor

gztensor commented Oct 11, 2024

We need a view method in staking precompile that allows to get stake by hotkey, coldkey, and netuid (only accept root ID for netuid for now, but it will need to change when we release rao).

In Solidity/EVM Substrate keys are represented as bytes32 public keys.

Comment: If a H160 address stakes, there's still a 32 byte public key that represents it in stake map in subtensor pallet, so there is no need to allow accessing stake map by H160 address in addition to 32 byte substrate public key.

Acceptance Criteria:

@gztensor gztensor self-assigned this Oct 11, 2024
@gztensor gztensor removed their assignment Nov 6, 2024
@open-junius open-junius self-assigned this Nov 12, 2024
@open-junius open-junius linked a pull request Nov 13, 2024 that will close this issue
13 tasks
@gztensor
Copy link
Contributor Author

gztensor commented Dec 5, 2024

PR: #955

@gztensor gztensor linked a pull request Dec 5, 2024 that will close this issue
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants