-
Notifications
You must be signed in to change notification settings - Fork 71
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
feat: proposition power proposal validation strategy #496
Conversation
btw we need to track https://github.com/software-mansion/scarb/discussions/568#discussioncomment-6742412 this way we can remove the |
|
||
#[external(v0)] | ||
impl ProposingPowerProposalValidationStrategy of IProposalValidationStrategy<ContractState> { | ||
fn validate( |
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.
probably makes sense to follow the same approach as sx-evm where we have the internal _validate
function defined in utils
then the strategy can call decode and call whichever ones it wants.
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 allowed_strategies = array![vanilla_strategy.clone()]; | ||
let proposal_threshold = 1_u256; | ||
let mut params: Array<felt252> = array![]; |
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.
cant infer the type here?
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.
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.
uTACK
Adds the starknet version of proposition power proposal validation strategy
replaces #476
Closes #494
Closes #473