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 - hyperparameters #1067

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

[EVM] Subnet precompile - hyperparameters #1067

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

Comments

@gztensor
Copy link
Contributor

gztensor commented Dec 5, 2024

Add methods to the subnets precompile that would allow the subnet owner to set subnet parameters (if the owner is H160 address). Check that method caller is subnet owner (ss58 mirror of the caller will be saved as subnet owner)

This task includes implementing:

  • Setter methods
  • Getter methods
  • E2E tests for all methods

Setter Methods (also implement getters)

  • set_serving_rate_limit
  • set_min_difficulty
  • set_max_difficulty
  • set_weights_version_key
  • set_weights_set_rate_limit
  • set_adjustment_alpha
  • set_max_weight_limit
  • set_immunity_period
  • set_min_allowed_weights
  • set_kappa
  • set_rho
  • set_activity_cutoff
  • set_network_registration_allowed
  • set_network_pow_registration_allowed
  • set_min_burn
  • set_max_burn
  • set_difficulty
  • set_bonds_moving_average
  • set_commit_reveal_weights_enabled
  • set_liquid_alpha_enabled
  • set_alpha_values
  • set_commit_reveal_weights_interval

Additional Getter Methods

  • Is subnet registered
@gztensor gztensor changed the title [EVM] Subnets precompile - set hyperparameters [EVM] Subnet precompile - set hyperparameters Dec 5, 2024
@gztensor gztensor changed the title [EVM] Subnet precompile - set hyperparameters [EVM] Subnet precompile - hyperparameters Dec 5, 2024
@gztensor gztensor mentioned this issue 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