Skip to content

Commit

Permalink
Spec update with voting_power and url/hash to meta_url/meta_hash
Browse files Browse the repository at this point in the history
  • Loading branch information
hodlonaut committed Nov 18, 2024
1 parent 42a1cfe commit 4511dfe
Show file tree
Hide file tree
Showing 5 changed files with 84 additions and 60 deletions.
30 changes: 18 additions & 12 deletions specs/results/koiosapi-guild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down
30 changes: 18 additions & 12 deletions specs/results/koiosapi-mainnet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down
30 changes: 18 additions & 12 deletions specs/results/koiosapi-preprod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down
30 changes: 18 additions & 12 deletions specs/results/koiosapi-preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down
24 changes: 12 additions & 12 deletions specs/templates/4-api-schemas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4511dfe

Please sign in to comment.