Skip to content

Controller upgrade path#734

Merged
thomas-waite merged 5 commits intofeat-governance-upgradefrom
upgrade-path
Apr 26, 2022
Merged

Controller upgrade path#734
thomas-waite merged 5 commits intofeat-governance-upgradefrom
upgrade-path

Conversation

@thomas-waite
Copy link
Contributor

@thomas-waite thomas-waite commented Apr 25, 2022

Summary

Adds support for allowing pods to upgrade their own controller versions.

In the Orca protocol, pods are able to upgrade their own controller. Currently we would not fully support this as the factory is based on a hard coded initial pod controller set at deploy time.

This PR updates the factory to instead get the relevant pod's controller at run time, by using the member token as the source of truth (this never changes). It means that we now support pods being able to upgrade to a newer pod version to take account of upgrade features.

We still do not support any new admin features, as the pod admins are set immutably to a PodAdminGateway contract. This is okay for our purposes as we have all admin functionality we require already - add member, remove member, lock and unlock.

@thomas-waite thomas-waite requested a review from a team as a code owner April 25, 2022 20:55
@thomas-waite thomas-waite merged commit 629d077 into feat-governance-upgrade Apr 26, 2022
@thomas-waite thomas-waite deleted the upgrade-path branch April 26, 2022 23:29
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

Successfully merging this pull request may close these issues.

2 participants

Comments