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

[EVM] Subnet precompile - create subnet #1066

Open
gztensor opened this issue Dec 5, 2024 · 0 comments
Open

[EVM] Subnet precompile - create subnet #1066

gztensor opened this issue Dec 5, 2024 · 0 comments
Assignees

Comments

@gztensor
Copy link
Contributor

gztensor commented Dec 5, 2024

We need to provide the subnet functionality via precompiles. As a first step, we need to create a new precompile that will allow creating subnets and collecting subnet owner cut.

  • Precompile name: subnets
  • Methods:
    • register_network: Creates a subnet (calls register_network internally). Makes the ss58 mirror of the caller of this method a subnet owner so that the caller's H160 address will effectively receive owners cut and will be able to set hyperparameters (when this is implemented)
  • E2E Tests:
    • Subnet is created
    • ss58 mirror is the subnet owner
    • Subnet owner cut is paid to the H160 address (check the amount, which should be 18% of subnet emission)
@gztensor gztensor changed the title Subnet precompile - create subnet [EVM] Subnet precompile - create subnet Dec 5, 2024
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