-
Notifications
You must be signed in to change notification settings - Fork 212
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
SPIKE: rotate EC membership #10105
SPIKE: rotate EC membership #10105
Conversation
Deploying agoric-sdk with Cloudflare Pages
|
6557368
to
2dbffcf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can make these changes less invasive...
e5f772b
to
dd85537
Compare
For the title, consider "SPIKE: rotate EC membership" This exploratory work is great, but I expect we'll want to break it into a number of PRs when we add tests and such. |
packages/governance/src/committee.js
Outdated
shutdown() { | ||
zcf.shutdown('EC Charter Shutdown'); | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's not add this now. The Committee is the sole holder of the set of questions that have been voted on, and I'd prefer we find a way to write this to vstorage before killing the vats.
The reason to do something like this is to prevent ex-members from voting, so let's do that directly. Try adding a method like stopAddingVotes()
that sets a flag that blocks use of addQuestion()
or getPoserInvitation()
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
noted as a design choice in
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we're going to add this method, it should be tested in unit tests and some test that does an upgrade. Either a bootstrap test or a3p-integration would do.
consume: { economicCommitteeCreatorFacet, econCharterKit }, | ||
}) => { | ||
console.log('Shutting down old EC Committee'); | ||
await E(economicCommitteeCreatorFacet).shutdown(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This method is available on the new committee, but not the old one, unless the old one gets upgraded.
@@ -179,6 +180,9 @@ export const start = async (zcf, privateArgs, baggage) => { | |||
}, | |||
makeCharterMemberInvitation: () => | |||
zcf.makeInvitation(charterMemberHandler, INVITATION_MAKERS_DESC), | |||
shutdown: () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we're going to add this method, it should be tested in unit tests and some test that does an upgrade. Either a bootstrap test or a3p-integration would do.
packages/governance/src/committee.js
Outdated
shutdown() { | ||
zcf.shutdown('EC Charter Shutdown'); | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we're going to add this method, it should be tested in unit tests and some test that does an upgrade. Either a bootstrap test or a3p-integration would do.
|
||
console.log('Shutting down old EC Charter'); | ||
const { creatorFacet } = E.get(econCharterKit); | ||
await E(creatorFacet).shutdown(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This method is available on the new committee, but not the old one, unless the old one got upgraded.
dd85537
to
6d31293
Compare
6d31293
to
5dfbe1b
Compare
@@ -179,6 +179,9 @@ export const start = async (zcf, privateArgs, baggage) => { | |||
}, | |||
makeCharterMemberInvitation: () => | |||
zcf.makeInvitation(charterMemberHandler, INVITATION_MAKERS_DESC), | |||
shutdown: () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
adding shutdown methods to both contracts in 1 commit is awkward - I expect them to land in separate PRs, since the testing considerations are different.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
5dfbe1b
to
866baae
Compare
866baae
to
cfe20f4
Compare
This SPIKE served the purpose of exploring feasibility. Nice work! Product development proceeds in other PRs. |
closes: #XXXX
refs: #XXXX
Description
Security Considerations
Scaling Considerations
Documentation Considerations
Testing Considerations
Upgrade Considerations