near-daos / sputnik-dao-contract

Smart contracts for https://app.astrodao.com
https://astrodao.com/
MIT License
107 stars 76 forks source link

feat: upgrade factory from DAO #193

Open agileurbanite opened 1 year ago

agileurbanite commented 1 year ago

feat: upgrade factory from DAO

Allow factory to be upgradeable from a DAO act_proposal outcome.

Allows storing a factory then voting on upgrading it's hash to the new factory version while also storing factory metadata to keep track of factory changes.

agileurbanite commented 1 year ago

Curious to get @ilblackdragon thoughts if we should add the concept of guardians with unique permissions as ref has: https://guide.ref.finance/developers/guardians

agileurbanite commented 1 year ago

@ilblackdragon made a note offline about the lack of migrate function in the factory, will need to update this PR to reflect that. Converting back to draft until ready for review

agileurbanite commented 1 year ago

Removed storing factory metadata and applied migrate method to be invoked during upgrade