-
Notifications
You must be signed in to change notification settings - Fork 30
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
add SC election to proposal monitor #212
Conversation
hrm the GovernorExecuteStage status checker needs to wait for the vetting period to be over before executing for the nominee gov.. |
src-ts/proposalStage.ts
Outdated
@@ -131,6 +133,124 @@ export enum ProposalStageStatus { | |||
TERMINATED = 4, | |||
} | |||
|
|||
export class GovernorExecuteStage implements ProposalStage { |
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.
Is this different from the governor queue stage? Cant we just use that?
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.
The nominee and member election have no timelock, so the execute method is different (and something needs to be done about status w/r/t/ vetting period)
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.
thinking maybe having a single GovernorExecuteStage that determines the governor type (timelock, no timelock + vetting period, no timelock + no vetting period) and handles status/execute accordingly is cleanest?
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.
oh also getExecuteReceipt is different (looks for ProposalExecuted vs. CallScheduled).
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.
so idk
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.
Ok, can we base class this then and override where there are differences?
No description provided.