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

[tgrade-validator-voting] Add MigrateContracts proposal #169

Open
maurolacy opened this issue Jul 28, 2022 · 0 comments
Open

[tgrade-validator-voting] Add MigrateContracts proposal #169

maurolacy opened this issue Jul 28, 2022 · 0 comments

Comments

@maurolacy
Copy link
Contributor

maurolacy commented Jul 28, 2022

Add a MigrateContracts proposal that takes an old_code_id and a new_code_id, and automatically migrates all the contract instances associated to the old_code_id to the new_code_id.

This is useful to migrate a bunch of instances of the contract at once. By example, if there are dozens of tokens (cw20-base contract), trusted tokens (trusted-token contract), and tfi pairs (tfi-pair contract), and one of those contracts has a bug or a new feature that requires a migration, it will be handy to have this proposal type, to migrate all the instances of said contract at once.

This assumes the migrate admin of those tokens is the validator voting contract. Which is the case for tfi-pair already.

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

1 participant