Skip to content
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

update eosio.msig contract. #80

Merged
merged 1 commit into from
Aug 21, 2019

Conversation

maodaishan
Copy link

add new actions:
oppose //oppose to current proposal
unoppose //undo previous oppose
abstain //abstain to current proposal
unabstain //undo previous abstain
you could only approve or oppose or abstain at a time.
ex. if you approved to a proposal,now you wish to oppose it, you need to unapprove first, then you can oppose.
oppose and abstain only show attitude, won't affect exec/cancel/invalidate.
if you get enough approvals in an proposal, you can exec it, it will ignore the oppose/abstain when doing exec.

update eosio.msig contract.

Change Description

add new actions:
oppose //oppose to current proposal
unoppose //undo previous oppose
abstain //abstain to current proposal
unabstain //undo previous abstain
you could only approve or oppose or abstain at a time.
ex. if you approved to a proposal,now you wish to oppose it, you need to unapprove first, then you can oppose.
oppose and abstain only show attitude, won't affect exec/cancel/invalidate.
if you get enough approvals in an proposal, you can exec it, it will ignore the oppose/abstain when doing exec.

Deployment Changes

  • Deployment Changes

need to redeploy eosio.msig contract.

API Changes

  • API Changes

add new actions:
oppose //oppose to current proposal
unoppose //undo previous oppose
abstain //abstain to current proposal
unabstain //undo previous abstain
add new multi-index:
name: opposes
struct: {
name proposal_name; //primary key
vector<permission_level> opposed_approvals;
vector<permission_level> abstained_approvals;
}

Documentation Additions

  • Documentation Additions

add new actions:
   oppose    //oppose to current proposal
   unoppose  //undo previous oppose
   abstain   //abstain to current proposal
   unabstain //undo previous abstain
you could only approve or oppose or abstain at a time.
ex. if you approved to a proposal,now you wish to oppose it, you need to unapprove first, then you can oppose.
oppose and abstain only show attitude, won't affect exec/cancel/invalidate.
if you get enough approvals in an proposal, you can exec it, it will ignore the oppose/abstain when doing exec.
@Thaipanda Thaipanda merged commit 8842c16 into boscore:develop Aug 21, 2019
vlbos pushed a commit to vlbos/bos.contracts that referenced this pull request Nov 26, 2019
vlbos pushed a commit to vlbos/bos.contracts that referenced this pull request Nov 26, 2019
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.

3 participants