Skip to content

feat(governance): proposal votes fixtures for counted flag and CC cc_hot ids - #113

Open
slowbackspace wants to merge 2 commits into
mainfrom
feat/proposal-votes-counted-cc-cip129
Open

feat(governance): proposal votes fixtures for counted flag and CC cc_hot ids#113
slowbackspace wants to merge 2 commits into
mainfrom
feat/proposal-votes-counted-cc-cip129

Conversation

@slowbackspace

Copy link
Copy Markdown
Contributor

Summary

Updates the /governance/proposals/{tx_hash}/{cert_index}/votes fixtures for the changes in blockfrost/blockfrost-backend-ryo#351 (constitutional committee voters returned as CIP-129 cc_hot1... ids instead of ambiguous raw hex — blockfrost/openapi#465) and blockfrost/blockfrost-backend-ryo#352 (new counted boolean per vote — blockfrost/openapi#466).

Changes

  • mainnet: counted added to all 100 entries of the existing fixture (9 uncounted: superseded re-votes or DReps deregistered while the proposal was live); new fixture for the committee-voted proposal b2a591ac...#0 (7 CC votes, all cc_hot1...) as a regression case for the CIP-129 conversion
  • preprod: counted added (the pool1yzwxe... vote in tx 45f18dec is superseded by its later re-vote → false); CC voter converted from raw hex e3a4c41d... to cc_hot1q036f3qavavj5xudslrzuhzaw0m73kurv9ceg4qj6yl5p7qf4a3gz
  • preview: counted added to all 11 entries (6 uncounted)

Verification

Expected values were generated straight from each network's cardano-db-sync using the exact queries shipping in the backend PRs. All pre-existing entry data (order, voters, votes) reproduced identically; the DRep CIP-129 conversions were additionally cross-checked against the values already present in the fixtures.

Merge order

⚠️ Merge only after blockfrost-backend-ryo#351 + #352 are deployed (which in turn need the @blockfrost/openapi release containing blockfrost/openapi#467 + #468) — until then the API neither returns counted nor cc_hot ids and these fixtures will fail.

… CC cc_hot ids

Mainnet: add the new counted field to every vote entry of the existing
proposal votes fixture (9 of 100 votes on page 1 are uncounted -
superseded re-votes or votes of DReps deregistered while the proposal
was live), and add a fixture for a committee-voted proposal
(b2a591ac...#0) covering constitutional committee voters returned as
CIP-129 cc_hot ids instead of raw hex.

Expected values generated from mainnet cardano-db-sync with the queries
shipping in blockfrost-backend-ryo#351 and #352 (needs both deployed,
plus the @blockfrost/openapi release with blockfrost/openapi#468).

Ref blockfrost/openapi#465 blockfrost/openapi#466
…counted and cc_hot

Preprod: add counted to all 6 entries (the pool1yzwxe... vote in tx
45f18dec is superseded by its later re-vote, so counted: false) and
convert the constitutional committee voter from raw hex to its CIP-129
cc_hot id (script credential).

Preview: add counted to all 11 entries; 6 DRep votes are uncounted
(deregistered while the proposal was live, or superseded).

Expected values generated from preprod/preview cardano-db-sync with the
queries shipping in blockfrost-backend-ryo#351 and #352; voter ids
cross-checked against the CIP-129 values already present in the
fixtures.

Ref blockfrost/openapi#465 blockfrost/openapi#466
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.

1 participant