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

feat: refactor extrinsics + restrict weight setting #40

Merged
merged 9 commits into from
Jan 3, 2025

Conversation

functor-flow
Copy link
Member

  • no-one except the allocator key can set weights
  • non-whitelisted people can not register & if you get de-whitelisted you also get de-registered
  • if you are delegatng voting power you can not set weights (this is another check below the allocator key check, so this check should never get activated lol)

pallets/emission0/src/weights.rs Outdated Show resolved Hide resolved
pallets/governance/api/src/lib.rs Outdated Show resolved Hide resolved
pallets/governance/api/src/lib.rs Outdated Show resolved Hide resolved
pallets/governance/src/lib.rs Show resolved Hide resolved
@functor-flow functor-flow self-assigned this Jan 2, 2025
pallets/emission0/src/lib.rs Outdated Show resolved Hide resolved
pallets/emission0/tests/weights.rs Outdated Show resolved Hide resolved
pallets/governance/src/roles.rs Outdated Show resolved Hide resolved
@saiintbrisson saiintbrisson merged commit 1860092 into main Jan 3, 2025
3 checks passed
@saiintbrisson saiintbrisson deleted the refac-restrict branch January 8, 2025 19:34
functor-flow added a commit that referenced this pull request Jan 28, 2025
- no-one except the allocator key can set weights
- non-whitelisted people can not register & if you get de-whitelisted
you also get de-registered
- if you are delegatng voting power you can not set weights (this is
another check below the allocator key check, so this check should never
get activated lol)
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 this pull request may close these issues.

2 participants