IntersectMBO / govtool

🔩 GovTool and utilities monorepo.
https://gov.tools
Apache License 2.0
12 stars 7 forks source link

Rendering Protocol Parameter Change Governance Actions #1601

Closed m-i-k-e closed 2 weeks ago

m-i-k-e commented 1 month ago

What?

Why?

How?


User Story

Title: Render all relevant all on-chain details of protocol parameter changes.

User Story: As a DRep, I want to be able to see all the relevant on-chain information for protocol parameter changes, including what parameters are being changed from what current value to the new proposed value.

Acceptance Criteria:

Ryun1 commented 1 month ago

What is this action all about?

What are the on-chain details?

For example;

Changing the the DRep deposit to 100 ADA

What is other contextual information that might be nice?

m-i-k-e commented 1 month ago

Maybe a history of parameter changes would be nice, well, almost essential in the long run.

m-i-k-e commented 1 month ago

Questions:

Ryun1 commented 1 month ago

Changable protocol params

{ "minfee_a": null, "minfee_b": null, "max_block_body_size": null, "max_tx_size": null, "max_block_header_size": null, "key_deposit": "0", "pool_deposit": null, "max_epoch": null, "n_opt": null, "pool_pledge_influence": null, "expansion_rate": null, "treasury_growth_rate": null, "d": null, "extra_entropy": null, "protocol_version": null, "min_pool_cost": null, "ada_per_utxo_byte": null, "cost_models": null, "execution_costs": null, "max_tx_ex_units": null, "max_block_ex_units": null, "max_value_size": null, "collateral_percentage": null, "max_collateral_inputs": null, "pool_voting_thresholds": null, "drep_voting_thresholds": null, "min_committee_size": null, "committee_term_limit": null, "governance_action_validity_period": null, "governance_action_deposit": null, "drep_deposit": null, "drep_inactivity_period": null, "ref_script_coins_per_byte": null }

Ryun1 commented 1 month ago

Example values:

params.json

Ryun1 commented 1 month ago

Next step;

cc @bosko-m

Ryun1 commented 1 month ago

Example input for protocol parameter changes

https://governance-govtool.cardanoapi.io/

Ryun1 commented 1 month ago

Current values

"maxBlockBodySize": 90112,
"maxBlockExecutionUnits": {
    "memory": 62000000,
    "steps": 20000000000
},

New values

"maxBlockBodySize": 90112,
"maxBlockExecutionUnits": {
    "memory": 500000000,
    "steps": 40000000000
},
m-i-k-e commented 1 month ago

I think this is the best solution. Two tabs to show the code diff.

Will not work very well on mobile, but could be adapted to display vertically. No one uses github diff on a phone, I bet.

parameter change

l-br1 commented 1 month ago

@m-i-k-e how will this work on mobile? Is it worth adding this just to support one type of governance action (and just one type of parameter change?)?

Do we know if users who will want to vote on this type of parameter change will use this?

m-i-k-e commented 1 month ago

@l-br1

Is it worth adding this just to support one type of governance action? Do you mean by 'one type of governance action' parameter actions? We are supporting Info (read/write) Treasury, and parameter actions (read only) in bootstrapping.

(and just one type of parameter change?)? I can't see any subsetting of parameter changes. Maybe I'm wrong here, but they all seem to be a load of JSON. I'll ask @Ryun1

m-i-k-e commented 1 month ago

This has been passed to @kgrzonka to work up in a Figma branch

m-i-k-e commented 3 weeks ago

@MSzalowski This is done in Figma now: https://www.figma.com/design/mJTBiUofLfb74Xc3W2U59o/Voltaire---GOV-TOOL?m=auto&node-id=14774-93035&t=hLlpXMOe0RpGkeDc-1

Note: the side-by-side code concept is a screenshot from GitHub. I realise that you need to use some plug-in or library, so it's OK if it varies. However, what it needs to do is clearly show that there are "Existing" and "Proposed" columns in a classic split view. This does also work on mobile, but it's not as great. Please get in touch with me when you are ready to test the design and I'll work with you to get a good result.

bosko-m commented 2 weeks ago

Verified on Sancho.

bosko-m commented 2 weeks ago

Reopening issue @MSzalowski to clarify after the discussion with @Ryun1 . For this one: https://sanchogov.tools/connected/governance_actions/84fe1da5d14450537db36c28ffe2a1a4878f501fc26c998bba54e396711205bc#0 Quoting @Ryun1 : "the values are wrong, the data on the left has some junk in it"

MSzalowski commented 2 weeks ago

Values are not exactly wrong. This GA updated optimal_pool_count to 1000 which is presented in a diff. However, diff presents also other values like id, nonce and some other that should not be considered as the parameter change proposal.

Is that correct @Ryun1?

Ryun1 commented 2 weeks ago

Values are not exactly wrong.

Agreed

However, diff presents also other values like id, nonce and some other that should not be considered as the parameter change proposal.

Is that correct @Ryun1?

Yup these should not be shown to the user IMO Im not sure where these values came from as they arent protocol parameters