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

Operators are "blind" when voting for governance (contract changes) #210

Open
greenhat opened this issue Dec 23, 2022 · 0 comments
Open

Comments

@greenhat
Copy link
Member

greenhat commented Dec 23, 2022

Although they vote for a particular pool contract hash it's hard to understand how refresh and update contracts are changed. The pool contract contain both refresh and update NFT, but these token can be anywhere.

Operators need a way to verify new refresh and update contracts.

Things to verify:

  • refresh and update tokens are NFT (find mint box?);
  • find the boxes that are guarding refresh and update NFTs;
  • show how new refresh and update contracts are different from the current ones (which parameters are changed, is source changed);

With provided pool_config_updated.yaml (generated by prepare-update-pool command) and an ErgoScript pretty printer (ESPP) the following scenario on vote-update-pool command becomes feasible:

Verification workflow:

  • verify passed pool hash against the pool contract in pool_config_updated.yaml;
  • show new pool contract diff with ESPP;
  • if the refresh token id is changed, find the minting box for the new refresh contract and show the diff with ESPP;
  • if the update token id changed, find the minting box for the new update contract and show the diff with ESPP;
@greenhat greenhat added this to the v2.0-RC mainnet launch milestone Dec 23, 2022
@greenhat greenhat moved this to To do in greenhat WIP Dec 23, 2022
@greenhat greenhat changed the title Operators voting for a black box Operators are voting for a black box (refresh, update contracts) Dec 23, 2022
@greenhat greenhat changed the title Operators are voting for a black box (refresh, update contracts) Operators are blind when voting for refresh, update contracts Dec 23, 2022
@greenhat greenhat changed the title Operators are blind when voting for refresh, update contracts Operators are "blind" when voting for refresh, update contracts Feb 13, 2023
@greenhat greenhat removed this from greenhat WIP Feb 14, 2023
@greenhat greenhat changed the title Operators are "blind" when voting for refresh, update contracts Operators are "blind" when voting for governance (contract changes) Mar 21, 2023
@greenhat greenhat removed this from the v2.0-RC mainnet launch milestone Jun 9, 2023
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

No branches or pull requests

1 participant