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

[RAO] Update staking precompile #856

Open
1 of 2 tasks
gztensor opened this issue Oct 11, 2024 · 0 comments
Open
1 of 2 tasks

[RAO] Update staking precompile #856

gztensor opened this issue Oct 11, 2024 · 0 comments
Assignees

Comments

@gztensor
Copy link
Contributor

gztensor commented Oct 11, 2024

Staking precompile is implemented here:
https://github.com/opentensor/subtensor/blob/feat/evm-devnet-ready/runtime/src/precompiles/staking.rs
https://github.com/opentensor/subtensor/blob/feat/evm-devnet-ready/runtime/src/precompiles/solidity/staking.sol
https://github.com/opentensor/subtensor/blob/feat/evm-devnet-ready/runtime/src/precompiles/solidity/staking.abi

There are two things that need to happen for compatibility with rao:

  • Right away: Update interface of add_stake and remove_stake methods so that it can accept netuid parameter and only accept root ID for now. Revert if netuid is not root.
  • After rao is out: Respect netuid parameter and stake to the corresponding netuid.

For the second item, please base your changes on feat/rao-devnet-ready-2 and make the PR to it.

@gztensor gztensor self-assigned this Oct 11, 2024
@gztensor gztensor removed their assignment Nov 15, 2024
@gztensor gztensor changed the title Update staking precompile for rao [RAO] Update staking precompile Nov 15, 2024
@open-junius open-junius self-assigned this Nov 18, 2024
@open-junius open-junius mentioned this issue Nov 18, 2024
13 tasks
@gztensor gztensor linked a pull request Dec 5, 2024 that will close this issue
13 tasks
@gztensor gztensor removed a link to a pull request Dec 5, 2024
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

No branches or pull requests

2 participants