Skip to content
Merged
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
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ Unreleased changes are in the `master` branch.

## [Unreleased]

## [0.1.93] - 2026-09-01

### Added

- New `counted` field in `/governance/proposals/{tx_hash}/{cert_index}/votes`, indicating whether the vote counts toward the proposal's tally ([#466](https://github.com/blockfrost/openapi/issues/466))

### Changed

- Constitutional committee voters in `/governance/proposals/{tx_hash}/{cert_index}/votes` are now CIP-129 `cc_hot1...` ids instead of raw hex ([#465](https://github.com/blockfrost/openapi/issues/465))
Expand Down
14 changes: 13 additions & 1 deletion blockfrost-openapi.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
openapi: 3.0.0
info:
version: 0.1.92
version: 0.1.93
title: Blockfrost.io ~ API Documentation
x-logo:
url: https://staging.blockfrost.io/images/logo.svg
Expand Down Expand Up @@ -8225,23 +8225,35 @@ components:
- 'no'
- abstain
description: The Vote. Can be one of yes, no, abstain.
counted:
type: boolean
description: Whether the vote counts toward the proposal's tally. Only the voter's latest vote counts, and a DRep vote stops counting if the DRep deregisters while the proposal is still live.
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: cc_hot1q0wzkpcxzzfs4mf4yk6yx7d075vqtyx2tnxsr256he6gnwq6yfy5w
vote: abstain
counted: true
proposal_metadata:
type: object
properties:
Expand Down
17 changes: 16 additions & 1 deletion docs/blockfrost-openapi.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
openapi: 3.0.3
info:
version: 0.1.92
version: 0.1.93
title: Blockfrost.io ~ API Documentation
x-logo:
url: 'https://staging.blockfrost.io/images/logo.svg'
Expand Down Expand Up @@ -8740,23 +8740,38 @@ components:
- 'no'
- abstain
description: 'The Vote. Can be one of yes, no, abstain.'
counted:
type: boolean
description: >-
Whether the vote counts toward the proposal's tally. Only the
voter's latest vote counts, and a DRep vote stops counting if the
DRep deregisters while the proposal is still live.
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: cc_hot1q0wzkpcxzzfs4mf4yk6yx7d075vqtyx2tnxsr256he6gnwq6yfy5w
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.

23 changes: 19 additions & 4 deletions openapi.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"openapi": "3.0.3",
"info": {
"version": "0.1.92",
"version": "0.1.93",
"title": "Blockfrost.io ~ API Documentation",
"x-logo": {
"url": "https://staging.blockfrost.io/images/logo.svg",
Expand Down Expand Up @@ -11167,30 +11167,45 @@
"abstain"
],
"description": "The Vote. Can be one of yes, no, abstain."
},
"counted": {
"type": "boolean",
"description": "Whether the vote counts toward the proposal's tally. Only the voter's latest vote counts, and a DRep vote stops counting if the DRep deregisters while the proposal is still live."
}
},
"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": "cc_hot1q0wzkpcxzzfs4mf4yk6yx7d075vqtyx2tnxsr256he6gnwq6yfy5w",
"vote": "abstain"
"vote": "abstain",
"counted": true
}
]
},
Expand Down
17 changes: 16 additions & 1 deletion openapi.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
openapi: 3.0.3
info:
version: 0.1.92
version: 0.1.93
title: Blockfrost.io ~ API Documentation
x-logo:
url: 'https://staging.blockfrost.io/images/logo.svg'
Expand Down Expand Up @@ -8740,23 +8740,38 @@ components:
- 'no'
- abstain
description: 'The Vote. Can be one of yes, no, abstain.'
counted:
type: boolean
description: >-
Whether the vote counts toward the proposal's tally. Only the
voter's latest vote counts, and a DRep vote stops counting if the
DRep deregisters while the proposal is still live.
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: cc_hot1q0wzkpcxzzfs4mf4yk6yx7d075vqtyx2tnxsr256he6gnwq6yfy5w
vote: abstain
counted: true
proposal_metadata:
type: object
properties:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@blockfrost/openapi",
"version": "0.1.92",
"version": "0.1.93",
"description": "OpenAPI specifications for blockfrost.io",
"repository": "git@github.com:blockfrost/openapi.git",
"author": "admin@blockfrost.io",
Expand Down
2 changes: 1 addition & 1 deletion rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "blockfrost-openapi"
version = "0.1.92"
version = "0.1.93"
authors = ["contact@blockfrost.io"]
description = "Blockfrost OpenAPI types for Cardano"
license = "MIT"
Expand Down
4 changes: 2 additions & 2 deletions rust/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,8 @@ For more information, please visit [https://blockfrost.io](https://blockfrost.io

This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [openapi-spec](https://openapis.org) from a remote server, you can easily generate an API client.

- API version: 0.1.92
- Package version: 0.1.92
- API version: 0.1.93
- Package version: 0.1.93
- Generator version: 7.20.0
- Build package: `org.openapitools.codegen.languages.RustClientCodegen`

Expand Down
8 changes: 6 additions & 2 deletions rust/src/models/proposal_votes_inner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,26 @@ pub struct ProposalVotesInner {
/// The role of the voter. Can be one of constitutional_committee, drep, spo.
#[serde(rename = "voter_role")]
pub voter_role: VoterRole,
/// The actual voter.
/// The actual voter. CIP-129 Bech32 identifier: `drep1...`, `pool1...` or `cc_hot1...`.
#[serde(rename = "voter")]
pub voter: String,
/// The Vote. Can be one of yes, no, abstain.
#[serde(rename = "vote")]
pub vote: Vote,
/// Whether the vote counts toward the proposal's tally. Only the voter's latest vote counts, and a DRep vote stops counting if the DRep deregisters while the proposal is still live.
#[serde(rename = "counted")]
pub counted: bool,
}

impl ProposalVotesInner {
pub fn new(tx_hash: String, cert_index: i32, voter_role: VoterRole, voter: String, vote: Vote) -> ProposalVotesInner {
pub fn new(tx_hash: String, cert_index: i32, voter_role: VoterRole, voter: String, vote: Vote, counted: bool) -> ProposalVotesInner {
ProposalVotesInner {
tx_hash,
cert_index,
voter_role,
voter,
vote,
counted,
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/definitions.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
openapi: 3.0.0
info:
version: 0.1.92
version: 0.1.93
title: Blockfrost.io ~ API Documentation
x-logo:
url: https://staging.blockfrost.io/images/logo.svg
Expand Down
16 changes: 14 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": "cc_hot1q0wzkpcxzzfs4mf4yk6yx7d075vqtyx2tnxsr256he6gnwq6yfy5w",
* "vote": "abstain"
* "vote": "abstain",
* "counted": true
* }
* ] */
proposal_votes: {
Expand All @@ -8329,6 +8339,8 @@ export interface components {
* @enum {string}
*/
vote: "yes" | "no" | "abstain";
/** @description Whether the vote counts toward the proposal's tally. Only the voter's latest vote counts, and a DRep vote stops counting if the DRep deregisters while the proposal is still live. */
counted: boolean;
}[];
/** @example {
* "id": "gov_action1zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zygsq6dmejn",
Expand Down
15 changes: 15 additions & 0 deletions src/schemas/governance/proposal_votes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,36 @@ items:
type: string
enum: [yes, no, abstain]
description: The Vote. Can be one of yes, no, abstain.
counted:
type: boolean
Comment on lines +23 to +24
description: >-
Whether the vote counts toward the proposal's tally. Only the voter's
latest vote counts, and a DRep vote stops counting if the DRep
deregisters while the proposal is still live.
Comment on lines +25 to +28

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: "cc_hot1q0wzkpcxzzfs4mf4yk6yx7d075vqtyx2tnxsr256he6gnwq6yfy5w"
vote: "abstain"
counted: true
Loading
Loading