Crates.io | dao-migrator |
lib.rs | dao-migrator |
version | 2.6.0 |
source | src |
created_at | 2023-07-06 12:31:26.027739 |
updated_at | 2024-11-08 00:40:55.362554 |
description | A DAO DAO migrator module for modules. |
homepage | |
repository | https://github.com/DA0-DA0/dao-contracts |
max_upload_size | |
id | 909812 |
size | 140,919 |
Here is the discussion.
A migrator module for a DAO DAO DAO which handles migration for DAO modules and test it went successfully.
DAO core migration is handled by a proposal, which adds this module and do init callback to do migration on all regsitered modules. If custom module is found, this TX fails and migration is cancelled, custom module requires a custom migration to be done by the DAO.
custom modules cannot reliably be migrated by this contract, because of that we fail the process to avoid any unwanted results.
If any module migration fails we fail the whole thing, this is to make sure that we either have a fully working V2, or we do nothing and make sure the DAO is operational at any time.