From 4511dfe4a1684e5e75e9c2b15c8fce1638ff940a Mon Sep 17 00:00:00 2001 From: hodlonaut Date: Mon, 18 Nov 2024 13:43:20 +1100 Subject: [PATCH] Spec update with voting_power and url/hash to meta_url/meta_hash --- specs/results/koiosapi-guild.yaml | 30 +++++++++++++++++------------ specs/results/koiosapi-mainnet.yaml | 30 +++++++++++++++++------------ specs/results/koiosapi-preprod.yaml | 30 +++++++++++++++++------------ specs/results/koiosapi-preview.yaml | 30 +++++++++++++++++------------ specs/templates/4-api-schemas.yaml | 24 +++++++++++------------ 5 files changed, 84 insertions(+), 60 deletions(-) diff --git a/specs/results/koiosapi-guild.yaml b/specs/results/koiosapi-guild.yaml index 6619799..075252b 100644 --- a/specs/results/koiosapi-guild.yaml +++ b/specs/results/koiosapi-guild.yaml @@ -3302,6 +3302,12 @@ components: - 'null' description: Pool live saturation (decimal format) example: 94.52 + voting_power: + type: + - string + - 'null' + description: Current voting power (lovelaces) of this stake pool + example: "123456789" pool_snapshot: type: array items: @@ -4772,9 +4778,9 @@ components: expiration: $ref: "#/components/schemas/proposal_list/items/properties/expiration" meta_url: - $ref: "#/components/schemas/drep_metadata/items/properties/url" + $ref: "#/components/schemas/drep_metadata/items/properties/meta_url" meta_hash: - $ref: "#/components/schemas/drep_metadata/items/properties/hash" + $ref: "#/components/schemas/drep_metadata/items/properties/meta_hash" withdrawal: $ref: "#/components/schemas/proposal_list/items/properties/withdrawal" param_proposal: @@ -5341,11 +5347,11 @@ components: deposit: $ref: "#/components/schemas/drep_info/items/properties/deposit" meta_url: - $ref: "#/components/schemas/drep_metadata/items/properties/url" + $ref: "#/components/schemas/drep_metadata/items/properties/meta_url" meta_hash: - $ref: "#/components/schemas/drep_metadata/items/properties/hash" + $ref: "#/components/schemas/drep_metadata/items/properties/meta_hash" meta_json: - $ref: "#/components/schemas/drep_metadata/items/properties/json" + $ref: "#/components/schemas/drep_metadata/items/properties/meta_json" drep_votes: description: List of all votes casted by requested delegated representative (DRep) type: array @@ -5367,9 +5373,9 @@ components: description: Actual Vote casted example: "Yes" meta_url: - $ref: "#/components/schemas/drep_metadata/items/properties/url" + $ref: "#/components/schemas/drep_metadata/items/properties/meta_url" meta_hash: - $ref: "#/components/schemas/drep_metadata/items/properties/hash" + $ref: "#/components/schemas/drep_metadata/items/properties/meta_hash" pool_votes: description: List of all votes casted by requested pool type: array @@ -5446,11 +5452,11 @@ components: - 'null' description: Shows the epoch at which this governance action is expected to expire. meta_url: - $ref: "#/components/schemas/drep_metadata/items/properties/url" + $ref: "#/components/schemas/drep_metadata/items/properties/meta_url" meta_hash: - $ref: "#/components/schemas/drep_metadata/items/properties/hash" + $ref: "#/components/schemas/drep_metadata/items/properties/meta_hash" meta_json: - $ref: "#/components/schemas/drep_metadata/items/properties/json" + $ref: "#/components/schemas/drep_metadata/items/properties/meta_json" meta_comment: $ref: "#/components/schemas/drep_metadata/items/properties/comment" meta_language: @@ -5610,9 +5616,9 @@ components: vote: $ref: "#/components/schemas/drep_votes/items/properties/vote" meta_url: - $ref: "#/components/schemas/drep_metadata/items/properties/url" + $ref: "#/components/schemas/drep_metadata/items/properties/meta_url" meta_hash: - $ref: "#/components/schemas/drep_metadata/items/properties/hash" + $ref: "#/components/schemas/drep_metadata/items/properties/meta_hash" committee_info: description: Current governance committee type: object diff --git a/specs/results/koiosapi-mainnet.yaml b/specs/results/koiosapi-mainnet.yaml index 89ea632..bc318a6 100644 --- a/specs/results/koiosapi-mainnet.yaml +++ b/specs/results/koiosapi-mainnet.yaml @@ -3302,6 +3302,12 @@ components: - 'null' description: Pool live saturation (decimal format) example: 94.52 + voting_power: + type: + - string + - 'null' + description: Current voting power (lovelaces) of this stake pool + example: "123456789" pool_snapshot: type: array items: @@ -4772,9 +4778,9 @@ components: expiration: $ref: "#/components/schemas/proposal_list/items/properties/expiration" meta_url: - $ref: "#/components/schemas/drep_metadata/items/properties/url" + $ref: "#/components/schemas/drep_metadata/items/properties/meta_url" meta_hash: - $ref: "#/components/schemas/drep_metadata/items/properties/hash" + $ref: "#/components/schemas/drep_metadata/items/properties/meta_hash" withdrawal: $ref: "#/components/schemas/proposal_list/items/properties/withdrawal" param_proposal: @@ -5341,11 +5347,11 @@ components: deposit: $ref: "#/components/schemas/drep_info/items/properties/deposit" meta_url: - $ref: "#/components/schemas/drep_metadata/items/properties/url" + $ref: "#/components/schemas/drep_metadata/items/properties/meta_url" meta_hash: - $ref: "#/components/schemas/drep_metadata/items/properties/hash" + $ref: "#/components/schemas/drep_metadata/items/properties/meta_hash" meta_json: - $ref: "#/components/schemas/drep_metadata/items/properties/json" + $ref: "#/components/schemas/drep_metadata/items/properties/meta_json" drep_votes: description: List of all votes casted by requested delegated representative (DRep) type: array @@ -5367,9 +5373,9 @@ components: description: Actual Vote casted example: "Yes" meta_url: - $ref: "#/components/schemas/drep_metadata/items/properties/url" + $ref: "#/components/schemas/drep_metadata/items/properties/meta_url" meta_hash: - $ref: "#/components/schemas/drep_metadata/items/properties/hash" + $ref: "#/components/schemas/drep_metadata/items/properties/meta_hash" pool_votes: description: List of all votes casted by requested pool type: array @@ -5446,11 +5452,11 @@ components: - 'null' description: Shows the epoch at which this governance action is expected to expire. meta_url: - $ref: "#/components/schemas/drep_metadata/items/properties/url" + $ref: "#/components/schemas/drep_metadata/items/properties/meta_url" meta_hash: - $ref: "#/components/schemas/drep_metadata/items/properties/hash" + $ref: "#/components/schemas/drep_metadata/items/properties/meta_hash" meta_json: - $ref: "#/components/schemas/drep_metadata/items/properties/json" + $ref: "#/components/schemas/drep_metadata/items/properties/meta_json" meta_comment: $ref: "#/components/schemas/drep_metadata/items/properties/comment" meta_language: @@ -5610,9 +5616,9 @@ components: vote: $ref: "#/components/schemas/drep_votes/items/properties/vote" meta_url: - $ref: "#/components/schemas/drep_metadata/items/properties/url" + $ref: "#/components/schemas/drep_metadata/items/properties/meta_url" meta_hash: - $ref: "#/components/schemas/drep_metadata/items/properties/hash" + $ref: "#/components/schemas/drep_metadata/items/properties/meta_hash" committee_info: description: Current governance committee type: object diff --git a/specs/results/koiosapi-preprod.yaml b/specs/results/koiosapi-preprod.yaml index faa2ffc..c54efb0 100644 --- a/specs/results/koiosapi-preprod.yaml +++ b/specs/results/koiosapi-preprod.yaml @@ -3302,6 +3302,12 @@ components: - 'null' description: Pool live saturation (decimal format) example: 94.52 + voting_power: + type: + - string + - 'null' + description: Current voting power (lovelaces) of this stake pool + example: "123456789" pool_snapshot: type: array items: @@ -4772,9 +4778,9 @@ components: expiration: $ref: "#/components/schemas/proposal_list/items/properties/expiration" meta_url: - $ref: "#/components/schemas/drep_metadata/items/properties/url" + $ref: "#/components/schemas/drep_metadata/items/properties/meta_url" meta_hash: - $ref: "#/components/schemas/drep_metadata/items/properties/hash" + $ref: "#/components/schemas/drep_metadata/items/properties/meta_hash" withdrawal: $ref: "#/components/schemas/proposal_list/items/properties/withdrawal" param_proposal: @@ -5341,11 +5347,11 @@ components: deposit: $ref: "#/components/schemas/drep_info/items/properties/deposit" meta_url: - $ref: "#/components/schemas/drep_metadata/items/properties/url" + $ref: "#/components/schemas/drep_metadata/items/properties/meta_url" meta_hash: - $ref: "#/components/schemas/drep_metadata/items/properties/hash" + $ref: "#/components/schemas/drep_metadata/items/properties/meta_hash" meta_json: - $ref: "#/components/schemas/drep_metadata/items/properties/json" + $ref: "#/components/schemas/drep_metadata/items/properties/meta_json" drep_votes: description: List of all votes casted by requested delegated representative (DRep) type: array @@ -5367,9 +5373,9 @@ components: description: Actual Vote casted example: "Yes" meta_url: - $ref: "#/components/schemas/drep_metadata/items/properties/url" + $ref: "#/components/schemas/drep_metadata/items/properties/meta_url" meta_hash: - $ref: "#/components/schemas/drep_metadata/items/properties/hash" + $ref: "#/components/schemas/drep_metadata/items/properties/meta_hash" pool_votes: description: List of all votes casted by requested pool type: array @@ -5446,11 +5452,11 @@ components: - 'null' description: Shows the epoch at which this governance action is expected to expire. meta_url: - $ref: "#/components/schemas/drep_metadata/items/properties/url" + $ref: "#/components/schemas/drep_metadata/items/properties/meta_url" meta_hash: - $ref: "#/components/schemas/drep_metadata/items/properties/hash" + $ref: "#/components/schemas/drep_metadata/items/properties/meta_hash" meta_json: - $ref: "#/components/schemas/drep_metadata/items/properties/json" + $ref: "#/components/schemas/drep_metadata/items/properties/meta_json" meta_comment: $ref: "#/components/schemas/drep_metadata/items/properties/comment" meta_language: @@ -5610,9 +5616,9 @@ components: vote: $ref: "#/components/schemas/drep_votes/items/properties/vote" meta_url: - $ref: "#/components/schemas/drep_metadata/items/properties/url" + $ref: "#/components/schemas/drep_metadata/items/properties/meta_url" meta_hash: - $ref: "#/components/schemas/drep_metadata/items/properties/hash" + $ref: "#/components/schemas/drep_metadata/items/properties/meta_hash" committee_info: description: Current governance committee type: object diff --git a/specs/results/koiosapi-preview.yaml b/specs/results/koiosapi-preview.yaml index a660b6d..3f9dcd1 100644 --- a/specs/results/koiosapi-preview.yaml +++ b/specs/results/koiosapi-preview.yaml @@ -3302,6 +3302,12 @@ components: - 'null' description: Pool live saturation (decimal format) example: 94.52 + voting_power: + type: + - string + - 'null' + description: Current voting power (lovelaces) of this stake pool + example: "123456789" pool_snapshot: type: array items: @@ -4772,9 +4778,9 @@ components: expiration: $ref: "#/components/schemas/proposal_list/items/properties/expiration" meta_url: - $ref: "#/components/schemas/drep_metadata/items/properties/url" + $ref: "#/components/schemas/drep_metadata/items/properties/meta_url" meta_hash: - $ref: "#/components/schemas/drep_metadata/items/properties/hash" + $ref: "#/components/schemas/drep_metadata/items/properties/meta_hash" withdrawal: $ref: "#/components/schemas/proposal_list/items/properties/withdrawal" param_proposal: @@ -5341,11 +5347,11 @@ components: deposit: $ref: "#/components/schemas/drep_info/items/properties/deposit" meta_url: - $ref: "#/components/schemas/drep_metadata/items/properties/url" + $ref: "#/components/schemas/drep_metadata/items/properties/meta_url" meta_hash: - $ref: "#/components/schemas/drep_metadata/items/properties/hash" + $ref: "#/components/schemas/drep_metadata/items/properties/meta_hash" meta_json: - $ref: "#/components/schemas/drep_metadata/items/properties/json" + $ref: "#/components/schemas/drep_metadata/items/properties/meta_json" drep_votes: description: List of all votes casted by requested delegated representative (DRep) type: array @@ -5367,9 +5373,9 @@ components: description: Actual Vote casted example: "Yes" meta_url: - $ref: "#/components/schemas/drep_metadata/items/properties/url" + $ref: "#/components/schemas/drep_metadata/items/properties/meta_url" meta_hash: - $ref: "#/components/schemas/drep_metadata/items/properties/hash" + $ref: "#/components/schemas/drep_metadata/items/properties/meta_hash" pool_votes: description: List of all votes casted by requested pool type: array @@ -5446,11 +5452,11 @@ components: - 'null' description: Shows the epoch at which this governance action is expected to expire. meta_url: - $ref: "#/components/schemas/drep_metadata/items/properties/url" + $ref: "#/components/schemas/drep_metadata/items/properties/meta_url" meta_hash: - $ref: "#/components/schemas/drep_metadata/items/properties/hash" + $ref: "#/components/schemas/drep_metadata/items/properties/meta_hash" meta_json: - $ref: "#/components/schemas/drep_metadata/items/properties/json" + $ref: "#/components/schemas/drep_metadata/items/properties/meta_json" meta_comment: $ref: "#/components/schemas/drep_metadata/items/properties/comment" meta_language: @@ -5610,9 +5616,9 @@ components: vote: $ref: "#/components/schemas/drep_votes/items/properties/vote" meta_url: - $ref: "#/components/schemas/drep_metadata/items/properties/url" + $ref: "#/components/schemas/drep_metadata/items/properties/meta_url" meta_hash: - $ref: "#/components/schemas/drep_metadata/items/properties/hash" + $ref: "#/components/schemas/drep_metadata/items/properties/meta_hash" committee_info: description: Current governance committee type: object diff --git a/specs/templates/4-api-schemas.yaml b/specs/templates/4-api-schemas.yaml index 6a1cea8..d2f6fa9 100644 --- a/specs/templates/4-api-schemas.yaml +++ b/specs/templates/4-api-schemas.yaml @@ -1943,9 +1943,9 @@ schemas: expiration: $ref: "#/components/schemas/proposal_list/items/properties/expiration" meta_url: - $ref: "#/components/schemas/drep_metadata/items/properties/url" + $ref: "#/components/schemas/drep_metadata/items/properties/meta_url" meta_hash: - $ref: "#/components/schemas/drep_metadata/items/properties/hash" + $ref: "#/components/schemas/drep_metadata/items/properties/meta_hash" withdrawal: $ref: "#/components/schemas/proposal_list/items/properties/withdrawal" param_proposal: @@ -2512,11 +2512,11 @@ schemas: deposit: $ref: "#/components/schemas/drep_info/items/properties/deposit" meta_url: - $ref: "#/components/schemas/drep_metadata/items/properties/url" + $ref: "#/components/schemas/drep_metadata/items/properties/meta_url" meta_hash: - $ref: "#/components/schemas/drep_metadata/items/properties/hash" + $ref: "#/components/schemas/drep_metadata/items/properties/meta_hash" meta_json: - $ref: "#/components/schemas/drep_metadata/items/properties/json" + $ref: "#/components/schemas/drep_metadata/items/properties/meta_json" drep_votes: description: List of all votes casted by requested delegated representative (DRep) type: array @@ -2538,9 +2538,9 @@ schemas: description: Actual Vote casted example: "Yes" meta_url: - $ref: "#/components/schemas/drep_metadata/items/properties/url" + $ref: "#/components/schemas/drep_metadata/items/properties/meta_url" meta_hash: - $ref: "#/components/schemas/drep_metadata/items/properties/hash" + $ref: "#/components/schemas/drep_metadata/items/properties/meta_hash" pool_votes: description: List of all votes casted by requested pool type: array @@ -2617,11 +2617,11 @@ schemas: - 'null' description: Shows the epoch at which this governance action is expected to expire. meta_url: - $ref: "#/components/schemas/drep_metadata/items/properties/url" + $ref: "#/components/schemas/drep_metadata/items/properties/meta_url" meta_hash: - $ref: "#/components/schemas/drep_metadata/items/properties/hash" + $ref: "#/components/schemas/drep_metadata/items/properties/meta_hash" meta_json: - $ref: "#/components/schemas/drep_metadata/items/properties/json" + $ref: "#/components/schemas/drep_metadata/items/properties/meta_json" meta_comment: $ref: "#/components/schemas/drep_metadata/items/properties/comment" meta_language: @@ -2781,9 +2781,9 @@ schemas: vote: $ref: "#/components/schemas/drep_votes/items/properties/vote" meta_url: - $ref: "#/components/schemas/drep_metadata/items/properties/url" + $ref: "#/components/schemas/drep_metadata/items/properties/meta_url" meta_hash: - $ref: "#/components/schemas/drep_metadata/items/properties/hash" + $ref: "#/components/schemas/drep_metadata/items/properties/meta_hash" committee_info: description: Current governance committee type: object