neutron-org / neutron

Smart Contract platform secured by Cosmos Hub
https://neutron.org
Apache License 2.0
111 stars 94 forks source link

Feat: Whitelist tokenfactory hooks #587

Closed jcompagni10 closed 3 months ago

jcompagni10 commented 3 months ago

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: https://github.com/neutron-org/neutron-integration-tests/pull/316 --test fixes for this PR to pass

neutron dao changes: https://github.com/neutron-org/neutron-dao/pull/107 https://github.com/neutron-org/neutron-sdk/pull/150 https://github.com/neutron-org/neutronjsplus/pull/43 https://github.com/neutron-org/neutron-integration-tests/pull/314

jcompagni10 commented 3 months ago

https://github.com/neutron-org/neutron-tests/actions/runs/9576807194

jcompagni10 commented 3 months ago

testrun with all PRs: https://github.com/neutron-org/neutron-tests/actions/runs/9606960942

jcompagni10 commented 3 months ago

Testrun with just neutron changes:https://github.com/neutron-org/neutron-tests/actions/runs/9608462857