Skip to content

Commit c1a2488

Browse files
Merge pull request #413 from blockfrost/fix/drep-updated
fix(dreps): add "updated" to DRep updates action enum
2 parents 5ed8c2d + 26a627b commit c1a2488

File tree

12 files changed

+39
-28
lines changed

12 files changed

+39
-28
lines changed

CHANGELOG.md

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

1010
## [Unreleased]
1111

12+
## [0.1.79] - 2025-06-06
13+
14+
### Fixed
15+
16+
- Added action `updated` to DReps updates `/accounts/:drep_id/updates`
17+
1218
## [0.1.78] - 2025-05-23
1319

1420
### Added

blockfrost-openapi.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
openapi: 3.0.0
22
info:
3-
version: 0.1.78
3+
version: 0.1.79
44
title: Blockfrost.io ~ API Documentation
55
x-logo:
66
url: https://staging.blockfrost.io/images/logo.svg
@@ -6510,10 +6510,10 @@ components:
65106510
description: Flag which shows if this DRep credentials are a script hash
65116511
retired:
65126512
type: boolean
6513-
description: Indicates the registration state of the DRep. Set to `true` if the DRep has been deregistered; otherwise, `false`.
6513+
description: Registration state of the DRep. Set to `true` if the DRep has been deregistered; otherwise, `false`.
65146514
expired:
65156515
type: boolean
6516-
description: Indicates whether the DRep has been inactive for a consecutive number of epochs (determined by a epoch parameter `drep_activity`)
6516+
description: Whether the DRep has been inactive for a consecutive number of epochs (determined by a epoch parameter `drep_activity`)
65176517
last_active_epoch:
65186518
type: integer
65196519
nullable: true
@@ -6663,6 +6663,7 @@ components:
66636663
enum:
66646664
- registered
66656665
- deregistered
6666+
- updated
66666667
description: Action in the certificate
66676668
required:
66686669
- tx_hash

docs/blockfrost-openapi.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
openapi: 3.0.3
22
info:
3-
version: 0.1.78
3+
version: 0.1.79
44
title: Blockfrost.io ~ API Documentation
55
x-logo:
66
url: 'https://staging.blockfrost.io/images/logo.svg'
@@ -6828,13 +6828,13 @@ components:
68286828
retired:
68296829
type: boolean
68306830
description: >-
6831-
Indicates the registration state of the DRep. Set to `true` if the
6832-
DRep has been deregistered; otherwise, `false`.
6831+
Registration state of the DRep. Set to `true` if the DRep has been
6832+
deregistered; otherwise, `false`.
68336833
expired:
68346834
type: boolean
68356835
description: >-
6836-
Indicates whether the DRep has been inactive for a consecutive
6837-
number of epochs (determined by a epoch parameter `drep_activity`)
6836+
Whether the DRep has been inactive for a consecutive number of
6837+
epochs (determined by a epoch parameter `drep_activity`)
68386838
last_active_epoch:
68396839
type: integer
68406840
nullable: true
@@ -6993,6 +6993,7 @@ components:
69936993
enum:
69946994
- registered
69956995
- deregistered
6996+
- updated
69966997
description: Action in the certificate
69976998
required:
69986999
- tx_hash

json-schema.json

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

openapi.json

Lines changed: 5 additions & 4 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.78",
4+
"version": "0.1.79",
55
"title": "Blockfrost.io ~ API Documentation",
66
"x-logo": {
77
"url": "https://staging.blockfrost.io/images/logo.svg",
@@ -8912,11 +8912,11 @@
89128912
},
89138913
"retired": {
89148914
"type": "boolean",
8915-
"description": "Indicates the registration state of the DRep. Set to `true` if the DRep has been deregistered; otherwise, `false`."
8915+
"description": "Registration state of the DRep. Set to `true` if the DRep has been deregistered; otherwise, `false`."
89168916
},
89178917
"expired": {
89188918
"type": "boolean",
8919-
"description": "Indicates whether the DRep has been inactive for a consecutive number of epochs (determined by a epoch parameter `drep_activity`)"
8919+
"description": "Whether the DRep has been inactive for a consecutive number of epochs (determined by a epoch parameter `drep_activity`)"
89208920
},
89218921
"last_active_epoch": {
89228922
"type": "integer",
@@ -9126,7 +9126,8 @@
91269126
"type": "string",
91279127
"enum": [
91289128
"registered",
9129-
"deregistered"
9129+
"deregistered",
9130+
"updated"
91309131
],
91319132
"description": "Action in the certificate"
91329133
}

openapi.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
openapi: 3.0.3
22
info:
3-
version: 0.1.78
3+
version: 0.1.79
44
title: Blockfrost.io ~ API Documentation
55
x-logo:
66
url: 'https://staging.blockfrost.io/images/logo.svg'
@@ -6828,13 +6828,13 @@ components:
68286828
retired:
68296829
type: boolean
68306830
description: >-
6831-
Indicates the registration state of the DRep. Set to `true` if the
6832-
DRep has been deregistered; otherwise, `false`.
6831+
Registration state of the DRep. Set to `true` if the DRep has been
6832+
deregistered; otherwise, `false`.
68336833
expired:
68346834
type: boolean
68356835
description: >-
6836-
Indicates whether the DRep has been inactive for a consecutive
6837-
number of epochs (determined by a epoch parameter `drep_activity`)
6836+
Whether the DRep has been inactive for a consecutive number of
6837+
epochs (determined by a epoch parameter `drep_activity`)
68386838
last_active_epoch:
68396839
type: integer
68406840
nullable: true
@@ -6993,6 +6993,7 @@ components:
69936993
enum:
69946994
- registered
69956995
- deregistered
6996+
- updated
69966997
description: Action in the certificate
69976998
required:
69986999
- tx_hash

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.78",
3+
"version": "0.1.79",
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.78
3+
version: 0.1.79
44
title: Blockfrost.io ~ API Documentation
55
x-logo:
66
url: https://staging.blockfrost.io/images/logo.svg

src/generated-types.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6895,9 +6895,9 @@ export interface components {
68956895
active_epoch: number | null;
68966896
/** @description Flag which shows if this DRep credentials are a script hash */
68976897
has_script: boolean;
6898-
/** @description Indicates the registration state of the DRep. Set to `true` if the DRep has been deregistered; otherwise, `false`. */
6898+
/** @description Registration state of the DRep. Set to `true` if the DRep has been deregistered; otherwise, `false`. */
68996899
retired: boolean;
6900-
/** @description Indicates whether the DRep has been inactive for a consecutive number of epochs (determined by a epoch parameter `drep_activity`) */
6900+
/** @description Whether the DRep has been inactive for a consecutive number of epochs (determined by a epoch parameter `drep_activity`) */
69016901
expired: boolean;
69026902
/** @description Epoch of the most recent action - registration, update, deregistration or voting */
69036903
last_active_epoch: number | null;
@@ -7030,7 +7030,7 @@ export interface components {
70307030
* @description Action in the certificate
70317031
* @enum {string}
70327032
*/
7033-
action: "registered" | "deregistered";
7033+
action: "registered" | "deregistered" | "updated";
70347034
}[];
70357035
/** @example [
70367036
* {

src/schemas/governance/drep.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ properties:
2323
description: Flag which shows if this DRep credentials are a script hash
2424
retired:
2525
type: boolean
26-
description: Indicates the registration state of the DRep. Set to `true` if the DRep has been deregistered; otherwise, `false`.
26+
description: Registration state of the DRep. Set to `true` if the DRep has been deregistered; otherwise, `false`.
2727
expired:
2828
type: boolean
29-
description: Indicates whether the DRep has been inactive for a consecutive number of epochs (determined by a epoch parameter `drep_activity`)
29+
description: Whether the DRep has been inactive for a consecutive number of epochs (determined by a epoch parameter `drep_activity`)
3030
last_active_epoch:
3131
type: integer
3232
nullable: true

0 commit comments

Comments
 (0)