Skip to content

Commit 43865ce

Browse files
Merge pull request #419 from blockfrost/fix/drep-votes-proposal
Fix/drep votes proposal
2 parents 693a929 + 7cd24c8 commit 43865ce

File tree

11 files changed

+160
-15
lines changed

11 files changed

+160
-15
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,17 @@ Unreleased changes are in the `master` branch.
99

1010
## [Unreleased]
1111

12+
## [0.1.81] - 2025-10-08
13+
14+
### Added
15+
16+
- Included proposal reference fields in `/governance/drep/:drep_id/votes`
17+
- Each vote now includes `proposal_id`, `proposal_tx_hash` and `proposal_cert_index`
18+
19+
### Fixed
20+
21+
- Description of `tx_hash` and `cert_index` in in `/governance/drep/:drep_id/votes`
22+
1223
## [0.1.80] - 2025-09-18
1324

1425
### Added

blockfrost-openapi.yaml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
openapi: 3.0.0
22
info:
3-
version: 0.1.80
3+
version: 0.1.81
44
title: Blockfrost.io ~ API Documentation
55
x-logo:
66
url: https://staging.blockfrost.io/images/logo.svg
@@ -6872,8 +6872,17 @@ components:
68726872
properties:
68736873
tx_hash:
68746874
type: string
6875-
description: Hash of the proposal transaction.
6875+
description: Hash of the vote transaction.
68766876
cert_index:
6877+
type: integer
6878+
description: Index of the certificate within the vote transaction.
6879+
proposal_id:
6880+
type: string
6881+
description: Governance Action Identifier (CIP-0129) of the proposal being voted on.
6882+
proposal_tx_hash:
6883+
type: string
6884+
description: Hash of the proposal transaction.
6885+
proposal_cert_index:
68776886
type: integer
68786887
description: Index of the certificate within the proposal transaction.
68796888
vote:
@@ -6886,13 +6895,22 @@ components:
68866895
required:
68876896
- tx_hash
68886897
- cert_index
6898+
- proposal_id
6899+
- proposal_tx_hash
6900+
- proposal_cert_index
68896901
- vote
68906902
example:
68916903
- tx_hash: b302de601defdf11a5261ed31a263804dac4a582a888c998ce24dec5
68926904
cert_index: 2
6905+
proposal_id: gov_action1k2jertppnnndejjcglszfqq4yzw8evzrd2nt66rr6rqlz54xp0zsq05ecsn
6906+
proposal_tx_hash: b2a591ac219ce6dcca5847e0248015209c7cb0436aa6bd6863d0c1f152a60bc5
6907+
proposal_cert_index: 0
68936908
vote: 'yes'
68946909
- tx_hash: b302de601defdf11a5261ed31a263804dac4a582a888c998ce24dec5
68956910
cert_index: 3
6911+
proposal_id: gov_action1zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zygsq6dmejn
6912+
proposal_tx_hash: 2dd15e0ef6e6a17841cb9541c27724072ce4d4b79b91e58432fbaa32d9572531
6913+
proposal_cert_index: 1
68966914
vote: abstain
68976915
proposals:
68986916
type: array

docs/blockfrost-openapi.yaml

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
openapi: 3.0.3
22
info:
3-
version: 0.1.80
3+
version: 0.1.81
44
title: Blockfrost.io ~ API Documentation
55
x-logo:
66
url: 'https://staging.blockfrost.io/images/logo.svg'
@@ -7209,8 +7209,19 @@ components:
72097209
properties:
72107210
tx_hash:
72117211
type: string
7212-
description: Hash of the proposal transaction.
7212+
description: Hash of the vote transaction.
72137213
cert_index:
7214+
type: integer
7215+
description: Index of the certificate within the vote transaction.
7216+
proposal_id:
7217+
type: string
7218+
description: >-
7219+
Governance Action Identifier (CIP-0129) of the proposal being
7220+
voted on.
7221+
proposal_tx_hash:
7222+
type: string
7223+
description: Hash of the proposal transaction.
7224+
proposal_cert_index:
72147225
type: integer
72157226
description: Index of the certificate within the proposal transaction.
72167227
vote:
@@ -7223,13 +7234,24 @@ components:
72237234
required:
72247235
- tx_hash
72257236
- cert_index
7237+
- proposal_id
7238+
- proposal_tx_hash
7239+
- proposal_cert_index
72267240
- vote
72277241
example:
72287242
- tx_hash: b302de601defdf11a5261ed31a263804dac4a582a888c998ce24dec5
72297243
cert_index: 2
7244+
proposal_id: >-
7245+
gov_action1k2jertppnnndejjcglszfqq4yzw8evzrd2nt66rr6rqlz54xp0zsq05ecsn
7246+
proposal_tx_hash: b2a591ac219ce6dcca5847e0248015209c7cb0436aa6bd6863d0c1f152a60bc5
7247+
proposal_cert_index: 0
72307248
vote: 'yes'
72317249
- tx_hash: b302de601defdf11a5261ed31a263804dac4a582a888c998ce24dec5
72327250
cert_index: 3
7251+
proposal_id: >-
7252+
gov_action1zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zygsq6dmejn
7253+
proposal_tx_hash: 2dd15e0ef6e6a17841cb9541c27724072ce4d4b79b91e58432fbaa32d9572531
7254+
proposal_cert_index: 1
72337255
vote: abstain
72347256
proposals:
72357257
type: array

json-schema.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

openapi.json

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"openapi": "3.0.3",
33
"info": {
4-
"version": "0.1.80",
4+
"version": "0.1.81",
55
"title": "Blockfrost.io ~ API Documentation",
66
"x-logo": {
77
"url": "https://staging.blockfrost.io/images/logo.svg",
@@ -9442,9 +9442,21 @@
94429442
"properties": {
94439443
"tx_hash": {
94449444
"type": "string",
9445-
"description": "Hash of the proposal transaction."
9445+
"description": "Hash of the vote transaction."
94469446
},
94479447
"cert_index": {
9448+
"type": "integer",
9449+
"description": "Index of the certificate within the vote transaction."
9450+
},
9451+
"proposal_id": {
9452+
"type": "string",
9453+
"description": "Governance Action Identifier (CIP-0129) of the proposal being voted on."
9454+
},
9455+
"proposal_tx_hash": {
9456+
"type": "string",
9457+
"description": "Hash of the proposal transaction."
9458+
},
9459+
"proposal_cert_index": {
94489460
"type": "integer",
94499461
"description": "Index of the certificate within the proposal transaction."
94509462
},
@@ -9461,18 +9473,27 @@
94619473
"required": [
94629474
"tx_hash",
94639475
"cert_index",
9476+
"proposal_id",
9477+
"proposal_tx_hash",
9478+
"proposal_cert_index",
94649479
"vote"
94659480
]
94669481
},
94679482
"example": [
94689483
{
94699484
"tx_hash": "b302de601defdf11a5261ed31a263804dac4a582a888c998ce24dec5",
94709485
"cert_index": 2,
9486+
"proposal_id": "gov_action1k2jertppnnndejjcglszfqq4yzw8evzrd2nt66rr6rqlz54xp0zsq05ecsn",
9487+
"proposal_tx_hash": "b2a591ac219ce6dcca5847e0248015209c7cb0436aa6bd6863d0c1f152a60bc5",
9488+
"proposal_cert_index": 0,
94719489
"vote": "yes"
94729490
},
94739491
{
94749492
"tx_hash": "b302de601defdf11a5261ed31a263804dac4a582a888c998ce24dec5",
94759493
"cert_index": 3,
9494+
"proposal_id": "gov_action1zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zygsq6dmejn",
9495+
"proposal_tx_hash": "2dd15e0ef6e6a17841cb9541c27724072ce4d4b79b91e58432fbaa32d9572531",
9496+
"proposal_cert_index": 1,
94769497
"vote": "abstain"
94779498
}
94789499
]

openapi.yaml

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
openapi: 3.0.3
22
info:
3-
version: 0.1.80
3+
version: 0.1.81
44
title: Blockfrost.io ~ API Documentation
55
x-logo:
66
url: 'https://staging.blockfrost.io/images/logo.svg'
@@ -7209,8 +7209,19 @@ components:
72097209
properties:
72107210
tx_hash:
72117211
type: string
7212-
description: Hash of the proposal transaction.
7212+
description: Hash of the vote transaction.
72137213
cert_index:
7214+
type: integer
7215+
description: Index of the certificate within the vote transaction.
7216+
proposal_id:
7217+
type: string
7218+
description: >-
7219+
Governance Action Identifier (CIP-0129) of the proposal being
7220+
voted on.
7221+
proposal_tx_hash:
7222+
type: string
7223+
description: Hash of the proposal transaction.
7224+
proposal_cert_index:
72147225
type: integer
72157226
description: Index of the certificate within the proposal transaction.
72167227
vote:
@@ -7223,13 +7234,24 @@ components:
72237234
required:
72247235
- tx_hash
72257236
- cert_index
7237+
- proposal_id
7238+
- proposal_tx_hash
7239+
- proposal_cert_index
72267240
- vote
72277241
example:
72287242
- tx_hash: b302de601defdf11a5261ed31a263804dac4a582a888c998ce24dec5
72297243
cert_index: 2
7244+
proposal_id: >-
7245+
gov_action1k2jertppnnndejjcglszfqq4yzw8evzrd2nt66rr6rqlz54xp0zsq05ecsn
7246+
proposal_tx_hash: b2a591ac219ce6dcca5847e0248015209c7cb0436aa6bd6863d0c1f152a60bc5
7247+
proposal_cert_index: 0
72307248
vote: 'yes'
72317249
- tx_hash: b302de601defdf11a5261ed31a263804dac4a582a888c998ce24dec5
72327250
cert_index: 3
7251+
proposal_id: >-
7252+
gov_action1zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zygsq6dmejn
7253+
proposal_tx_hash: 2dd15e0ef6e6a17841cb9541c27724072ce4d4b79b91e58432fbaa32d9572531
7254+
proposal_cert_index: 1
72337255
vote: abstain
72347256
proposals:
72357257
type: array

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@blockfrost/openapi",
3-
"version": "0.1.80",
3+
"version": "0.1.81",
44
"description": "OpenAPI specifications for blockfrost.io",
55
"repository": "git@github.com:blockfrost/openapi.git",
66
"author": "admin@blockfrost.io",

src/definitions.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
openapi: 3.0.0
22
info:
3-
version: 0.1.80
3+
version: 0.1.81
44
title: Blockfrost.io ~ API Documentation
55
x-logo:
66
url: https://staging.blockfrost.io/images/logo.svg

src/generated-types.ts

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7297,19 +7297,31 @@ export interface components {
72977297
* {
72987298
* "tx_hash": "b302de601defdf11a5261ed31a263804dac4a582a888c998ce24dec5",
72997299
* "cert_index": 2,
7300+
* "proposal_id": "gov_action1k2jertppnnndejjcglszfqq4yzw8evzrd2nt66rr6rqlz54xp0zsq05ecsn",
7301+
* "proposal_tx_hash": "b2a591ac219ce6dcca5847e0248015209c7cb0436aa6bd6863d0c1f152a60bc5",
7302+
* "proposal_cert_index": 0,
73007303
* "vote": "yes"
73017304
* },
73027305
* {
73037306
* "tx_hash": "b302de601defdf11a5261ed31a263804dac4a582a888c998ce24dec5",
73047307
* "cert_index": 3,
7308+
* "proposal_id": "gov_action1zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zygsq6dmejn",
7309+
* "proposal_tx_hash": "2dd15e0ef6e6a17841cb9541c27724072ce4d4b79b91e58432fbaa32d9572531",
7310+
* "proposal_cert_index": 1,
73057311
* "vote": "abstain"
73067312
* }
73077313
* ] */
73087314
drep_votes: {
7309-
/** @description Hash of the proposal transaction. */
7315+
/** @description Hash of the vote transaction. */
73107316
tx_hash: string;
7311-
/** @description Index of the certificate within the proposal transaction. */
7317+
/** @description Index of the certificate within the vote transaction. */
73127318
cert_index: number;
7319+
/** @description Governance Action Identifier (CIP-0129) of the proposal being voted on. */
7320+
proposal_id: string;
7321+
/** @description Hash of the proposal transaction. */
7322+
proposal_tx_hash: string;
7323+
/** @description Index of the certificate within the proposal transaction. */
7324+
proposal_cert_index: number;
73137325
/**
73147326
* @description The Vote. Can be one of yes, no, abstain.
73157327
* @enum {string}

src/schemas/governance/drep_votes.yaml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,17 @@ items:
44
properties:
55
tx_hash:
66
type: string
7-
description: Hash of the proposal transaction.
7+
description: Hash of the vote transaction.
88
cert_index:
9+
type: integer
10+
description: Index of the certificate within the vote transaction.
11+
proposal_id:
12+
type: string
13+
description: Governance Action Identifier (CIP-0129) of the proposal being voted on.
14+
proposal_tx_hash:
15+
type: string
16+
description: Hash of the proposal transaction.
17+
proposal_cert_index:
918
type: integer
1019
description: Index of the certificate within the proposal transaction.
1120
vote:
@@ -16,11 +25,20 @@ items:
1625
required:
1726
- tx_hash
1827
- cert_index
28+
- proposal_id
29+
- proposal_tx_hash
30+
- proposal_cert_index
1931
- vote
2032
example:
2133
- tx_hash: "b302de601defdf11a5261ed31a263804dac4a582a888c998ce24dec5"
2234
cert_index: 2
35+
proposal_id: "gov_action1k2jertppnnndejjcglszfqq4yzw8evzrd2nt66rr6rqlz54xp0zsq05ecsn"
36+
proposal_tx_hash: "b2a591ac219ce6dcca5847e0248015209c7cb0436aa6bd6863d0c1f152a60bc5"
37+
proposal_cert_index: 0
2338
vote: "yes"
2439
- tx_hash: "b302de601defdf11a5261ed31a263804dac4a582a888c998ce24dec5"
2540
cert_index: 3
41+
proposal_id: "gov_action1zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zygsq6dmejn"
42+
proposal_tx_hash: "2dd15e0ef6e6a17841cb9541c27724072ce4d4b79b91e58432fbaa32d9572531"
43+
proposal_cert_index: 1
2644
vote: "abstain"

0 commit comments

Comments
 (0)