Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ Unreleased changes are in the `master` branch.

## [Unreleased]

### Added

- New `counted` field in `/governance/proposals/{tx_hash}/{cert_index}/votes` response items — whether the vote is still counted in the ledger's current vote tally for the proposal (false for votes superseded by a later vote of the same voter and for votes of DReps that deregistered after voting) ([#466](https://github.com/blockfrost/openapi/issues/466))

## [0.1.92] - 2026-08-20

### Added
Expand Down
20 changes: 20 additions & 0 deletions blockfrost-openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8225,23 +8225,43 @@ components:
- 'no'
- abstain
description: The Vote. Can be one of yes, no, abstain.
counted:
type: boolean
description: |
Whether the vote is still counted in the ledger's current vote tally
for this proposal, reconstructed at the current chain tip. A vote stops
being counted when the voter later casts another vote on the same
proposal (only the latest vote counts), or — for DRep voters — when the
DRep deregisters after casting it (re-registering does not restore
previously dropped votes). Constitutional committee hot credential
re-authorizations or resignations and SPO retirements are not
reflected in this flag.
required:
- tx_hash
- cert_index
- voter_role
- voter
- vote
- counted
example:
- tx_hash: 144a086c58a7b7324fba98be44a9c1560f78970ec777ede701d097936591aa4b
cert_index: 0
voter_role: drep
voter: drep1mvdu8slennngja7w4un6knwezufra70887zuxpprd64jxfveahn
vote: 'no'
counted: false
- tx_hash: b302de601defdf11a5261ed31a263804dac4a582a888c998ce24dec5
cert_index: 2
voter_role: drep
voter: drep1mvdu8slennngja7w4un6knwezufra70887zuxpprd64jxfveahn
vote: 'yes'
counted: true
- tx_hash: b302de601defdf11a5261ed31a263804dac4a582a888c998ce24dec5
cert_index: 3
voter_role: constitutional_committee
voter: 53a42debdc7ffd90085ab7fd9800b63e6d1c9ac481ba6eb7b6a844e4
vote: abstain
counted: true
proposal_metadata:
type: object
properties:
Expand Down
30 changes: 30 additions & 0 deletions docs/blockfrost-openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8738,23 +8738,53 @@ components:
- 'no'
- abstain
description: 'The Vote. Can be one of yes, no, abstain.'
counted:
type: boolean
description: >
Whether the vote is still counted in the ledger's current vote
tally

for this proposal, reconstructed at the current chain tip. A vote
stops

being counted when the voter later casts another vote on the same

proposal (only the latest vote counts), or — for DRep voters —
when the

DRep deregisters after casting it (re-registering does not restore

previously dropped votes). Constitutional committee hot credential

re-authorizations or resignations and SPO retirements are not

reflected in this flag.
required:
- tx_hash
- cert_index
- voter_role
- voter
- vote
- counted
example:
- tx_hash: 144a086c58a7b7324fba98be44a9c1560f78970ec777ede701d097936591aa4b
cert_index: 0
voter_role: drep
voter: drep1mvdu8slennngja7w4un6knwezufra70887zuxpprd64jxfveahn
vote: 'no'
counted: false
- tx_hash: b302de601defdf11a5261ed31a263804dac4a582a888c998ce24dec5
cert_index: 2
voter_role: drep
voter: drep1mvdu8slennngja7w4un6knwezufra70887zuxpprd64jxfveahn
vote: 'yes'
counted: true
- tx_hash: b302de601defdf11a5261ed31a263804dac4a582a888c998ce24dec5
cert_index: 3
voter_role: constitutional_committee
voter: 53a42debdc7ffd90085ab7fd9800b63e6d1c9ac481ba6eb7b6a844e4
vote: abstain
counted: true
proposal_metadata:
type: object
properties:
Expand Down
2 changes: 1 addition & 1 deletion json-schema.json

Large diffs are not rendered by default.

21 changes: 18 additions & 3 deletions openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -11167,30 +11167,45 @@
"abstain"
],
"description": "The Vote. Can be one of yes, no, abstain."
},
"counted": {
"type": "boolean",
"description": "Whether the vote is still counted in the ledger's current vote tally\nfor this proposal, reconstructed at the current chain tip. A vote stops\nbeing counted when the voter later casts another vote on the same\nproposal (only the latest vote counts), or — for DRep voters — when the\nDRep deregisters after casting it (re-registering does not restore\npreviously dropped votes). Constitutional committee hot credential\nre-authorizations or resignations and SPO retirements are not\nreflected in this flag.\n"
}
},
"required": [
"tx_hash",
"cert_index",
"voter_role",
"voter",
"vote"
"vote",
"counted"
]
},
"example": [
{
"tx_hash": "144a086c58a7b7324fba98be44a9c1560f78970ec777ede701d097936591aa4b",
"cert_index": 0,
"voter_role": "drep",
"voter": "drep1mvdu8slennngja7w4un6knwezufra70887zuxpprd64jxfveahn",
"vote": "no",
"counted": false
},
{
"tx_hash": "b302de601defdf11a5261ed31a263804dac4a582a888c998ce24dec5",
"cert_index": 2,
"voter_role": "drep",
"voter": "drep1mvdu8slennngja7w4un6knwezufra70887zuxpprd64jxfveahn",
"vote": "yes"
"vote": "yes",
"counted": true
},
{
"tx_hash": "b302de601defdf11a5261ed31a263804dac4a582a888c998ce24dec5",
"cert_index": 3,
"voter_role": "constitutional_committee",
"voter": "53a42debdc7ffd90085ab7fd9800b63e6d1c9ac481ba6eb7b6a844e4",
"vote": "abstain"
"vote": "abstain",
"counted": true
}
]
},
Expand Down
30 changes: 30 additions & 0 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8738,23 +8738,53 @@ components:
- 'no'
- abstain
description: 'The Vote. Can be one of yes, no, abstain.'
counted:
type: boolean
description: >
Whether the vote is still counted in the ledger's current vote
tally

for this proposal, reconstructed at the current chain tip. A vote
stops

being counted when the voter later casts another vote on the same

proposal (only the latest vote counts), or — for DRep voters —
when the

DRep deregisters after casting it (re-registering does not restore

previously dropped votes). Constitutional committee hot credential

re-authorizations or resignations and SPO retirements are not

reflected in this flag.
required:
- tx_hash
- cert_index
- voter_role
- voter
- vote
- counted
example:
- tx_hash: 144a086c58a7b7324fba98be44a9c1560f78970ec777ede701d097936591aa4b
cert_index: 0
voter_role: drep
voter: drep1mvdu8slennngja7w4un6knwezufra70887zuxpprd64jxfveahn
vote: 'no'
counted: false
- tx_hash: b302de601defdf11a5261ed31a263804dac4a582a888c998ce24dec5
cert_index: 2
voter_role: drep
voter: drep1mvdu8slennngja7w4un6knwezufra70887zuxpprd64jxfveahn
vote: 'yes'
counted: true
- tx_hash: b302de601defdf11a5261ed31a263804dac4a582a888c998ce24dec5
cert_index: 3
voter_role: constitutional_committee
voter: 53a42debdc7ffd90085ab7fd9800b63e6d1c9ac481ba6eb7b6a844e4
vote: abstain
counted: true
proposal_metadata:
type: object
properties:
Expand Down
24 changes: 22 additions & 2 deletions src/generated-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8297,19 +8297,29 @@ export interface components {
amount: string;
}[];
/** @example [
* {
* "tx_hash": "144a086c58a7b7324fba98be44a9c1560f78970ec777ede701d097936591aa4b",
* "cert_index": 0,
* "voter_role": "drep",
* "voter": "drep1mvdu8slennngja7w4un6knwezufra70887zuxpprd64jxfveahn",
* "vote": "no",
* "counted": false
* },
* {
* "tx_hash": "b302de601defdf11a5261ed31a263804dac4a582a888c998ce24dec5",
* "cert_index": 2,
* "voter_role": "drep",
* "voter": "drep1mvdu8slennngja7w4un6knwezufra70887zuxpprd64jxfveahn",
* "vote": "yes"
* "vote": "yes",
* "counted": true
* },
* {
* "tx_hash": "b302de601defdf11a5261ed31a263804dac4a582a888c998ce24dec5",
* "cert_index": 3,
* "voter_role": "constitutional_committee",
* "voter": "53a42debdc7ffd90085ab7fd9800b63e6d1c9ac481ba6eb7b6a844e4",
* "vote": "abstain"
* "vote": "abstain",
* "counted": true
* }
* ] */
proposal_votes: {
Expand All @@ -8329,6 +8339,16 @@ export interface components {
* @enum {string}
*/
vote: "yes" | "no" | "abstain";
/** @description Whether the vote is still counted in the ledger's current vote tally
* for this proposal, reconstructed at the current chain tip. A vote stops
* being counted when the voter later casts another vote on the same
* proposal (only the latest vote counts), or — for DRep voters — when the
* DRep deregisters after casting it (re-registering does not restore
* previously dropped votes). Constitutional committee hot credential
* re-authorizations or resignations and SPO retirements are not
* reflected in this flag.
* */
counted: boolean;
}[];
/** @example {
* "id": "gov_action1zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zygsq6dmejn",
Expand Down
20 changes: 20 additions & 0 deletions src/schemas/governance/proposal_votes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,41 @@ items:
type: string
enum: [yes, no, abstain]
description: The Vote. Can be one of yes, no, abstain.
counted:
type: boolean
description: |
Whether the vote is still counted in the ledger's current vote tally
for this proposal, reconstructed at the current chain tip. A vote stops
being counted when the voter later casts another vote on the same
proposal (only the latest vote counts), or — for DRep voters — when the
DRep deregisters after casting it (re-registering does not restore
previously dropped votes). Constitutional committee hot credential
re-authorizations or resignations and SPO retirements are not
reflected in this flag.

required:
- tx_hash
- cert_index
- voter_role
- voter
- vote
- counted
example:
- tx_hash: "144a086c58a7b7324fba98be44a9c1560f78970ec777ede701d097936591aa4b"
cert_index: 0
voter_role: "drep"
voter: drep1mvdu8slennngja7w4un6knwezufra70887zuxpprd64jxfveahn
vote: "no"
counted: false
- tx_hash: "b302de601defdf11a5261ed31a263804dac4a582a888c998ce24dec5"
cert_index: 2
voter_role: "drep"
voter: drep1mvdu8slennngja7w4un6knwezufra70887zuxpprd64jxfveahn
vote: "yes"
counted: true
- tx_hash: "b302de601defdf11a5261ed31a263804dac4a582a888c998ce24dec5"
cert_index: 3
voter_role: "constitutional_committee"
voter: "53a42debdc7ffd90085ab7fd9800b63e6d1c9ac481ba6eb7b6a844e4"
vote: "abstain"
counted: true
Loading
Loading