-
Notifications
You must be signed in to change notification settings - Fork 94
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: Whitelist tokenfactory hooks #587
Conversation
04fc130
to
e855c8f
Compare
docs/static/swagger.yaml
Outdated
type: string | ||
type: object | ||
title: >- | ||
HookWhitelist is the list of hooks which are allowed to be added |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
might be missing something, but why do we have whitelisted_hooks
as the key here and HookWhitelist
as the value?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah need to regen swagger
testrun with all PRs: https://github.com/neutron-org/neutron-tests/actions/runs/9606960942 |
1. Add missing GetCmdBeforeSendHook query 2. Correctly parse denoms with slashes in subdenom 3. fix typo hiik => hook
Testrun with just neutron changes:https://github.com/neutron-org/neutron-tests/actions/runs/9608462857 |
Add explicit whitelist of codeID & denomCreator pairs to tokenfactory params. Only allow beforeSend hooks to be called for denoms where the denomCreator and codeID of hook are whitelisted.
This also adds a migration for the tokefactory params that includes hooks that we want to whitelist (NFA and astroport)
related PRs:
neutron-org/neutron-integration-tests#316 --test fixes for this PR to pass
neutron dao changes:
neutron-org/neutron-dao#107
neutron-org/neutron-sdk#150
neutron-org/neutronjsplus#43
neutron-org/neutron-integration-tests#314