Skip to content

Commit

Permalink
fix: slot_length as number
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimirvolek committed Nov 28, 2024
1 parent 011f6e4 commit 847e4ff
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 15 deletions.
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]

### Changed

Updated the schema to allow `slot_length` to accept floating-point values

## [0.1.70] - 2024-11-26

### Added
Expand Down
6 changes: 3 additions & 3 deletions blockfrost-openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6278,13 +6278,13 @@ components:
example: 129600
description: Number of slots in an KES period
slot_length:
type: integer
example: 1
type: number
example: 0.2
description: Duration of one slot in seconds
max_kes_evolutions:
type: integer
example: 62
description: The maximum number of time a KES key can be evolved before a pool operator must create a new operational certificate
description: The maximum number of times a KES key can be evolved before a pool operator must create a new operational certificate
security_param:
type: integer
example: 2160
Expand Down
6 changes: 3 additions & 3 deletions docs/blockfrost-openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6570,14 +6570,14 @@ components:
example: 129600
description: Number of slots in an KES period
slot_length:
type: integer
example: 1
type: number
example: 0.2
description: Duration of one slot in seconds
max_kes_evolutions:
type: integer
example: 62
description: >-
The maximum number of time a KES key can be evolved before a pool
The maximum number of times a KES key can be evolved before a pool
operator must create a new operational certificate
security_param:
type: integer
Expand Down
2 changes: 1 addition & 1 deletion json-schema.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6570,14 +6570,14 @@ components:
example: 129600
description: Number of slots in an KES period
slot_length:
type: integer
example: 1
type: number
example: 0.2
description: Duration of one slot in seconds
max_kes_evolutions:
type: integer
example: 62
description: >-
The maximum number of time a KES key can be evolved before a pool
The maximum number of times a KES key can be evolved before a pool
operator must create a new operational certificate
security_param:
type: integer
Expand Down
4 changes: 2 additions & 2 deletions src/generated-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6688,11 +6688,11 @@ export interface components {
slots_per_kes_period: number;
/**
* @description Duration of one slot in seconds
* @example 1
* @example 0.2
*/
slot_length: number;
/**
* @description The maximum number of time a KES key can be evolved before a pool operator must create a new operational certificate
* @description The maximum number of times a KES key can be evolved before a pool operator must create a new operational certificate
* @example 62
*/
max_kes_evolutions: number;
Expand Down
6 changes: 3 additions & 3 deletions src/schemas/genesis_content.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ properties:
example: 129600
description: Number of slots in an KES period
slot_length:
type: integer
example: 1
type: number
example: 0.2
description: Duration of one slot in seconds
max_kes_evolutions:
type: integer
example: 62
description: The maximum number of time a KES key can be evolved before a pool operator must create a new operational certificate
description: The maximum number of times a KES key can be evolved before a pool operator must create a new operational certificate
security_param:
type: integer
example: 2160
Expand Down

0 comments on commit 847e4ff

Please sign in to comment.