Skip to content

Commit

Permalink
Add pool_votes to specs and other Minor corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
rdlrt committed Jul 31, 2024
1 parent 00ad5da commit 743557f
Show file tree
Hide file tree
Showing 7 changed files with 86 additions and 61 deletions.
2 changes: 1 addition & 1 deletion files/grest/rpc/epoch/epoch_params.sql
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ BEGIN
ep.dvt_p_p_economic_group,
ep.dvt_p_p_technical_group,
ep.dvt_p_p_gov_group,
ep.dvt_treasury_withdrawal::text,
ep.dvt_treasury_withdrawal,
ep.committee_min_size,
ep.committee_max_term_length,
ep.gov_action_lifetime,
Expand Down
29 changes: 17 additions & 12 deletions specs/results/koiosapi-guild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2007,7 +2007,7 @@ components:
description: DRep ID in bech32 format
schema:
type: string
example: "##_drep_id_param"
example: "drep1s9qaseg7qyum807fcv0hdky9gv0c89tn98t4urjn5ewz57dml0r"
in: query
required: true
allowEmptyValue: false
Expand All @@ -2017,7 +2017,7 @@ components:
description: DRep ID in bech32 format
schema:
type: string
example: "##_drep_id_param"
example: "drep1s9qaseg7qyum807fcv0hdky9gv0c89tn98t4urjn5ewz57dml0r"
in: query
required: false
allowEmptyValue: true
Expand All @@ -2027,7 +2027,7 @@ components:
description: Committee hash in hexadecimal format (hex)
schema:
type: string
example: "##_committee_hash_param"
example: "65d497b875c56ab213586a4006d4f6658970573ea8e2398893857472"
in: query
required: false
allowEmptyValue: true
Expand Down Expand Up @@ -3692,13 +3692,13 @@ components:
example: 14
gov_action_deposit:
type:
- number
- string
- 'null'
description: Governance action deposit.
example: 100000000000
drep_deposit:
type:
- number
- string
- 'null'
description: DRep deposit amount.
example: 500000000
Expand Down Expand Up @@ -4976,7 +4976,7 @@ components:
deposit:
type:
- string
- null
- 'null'
description: DRep's registration deposit in lovelace
example: 500000000
active:
Expand All @@ -4986,7 +4986,7 @@ components:
expires_epoch_no:
type:
- number
- null
- 'null'
description: After which epoch DRep is considered inactive.
example: 410
amount:
Expand Down Expand Up @@ -5092,6 +5092,11 @@ components:
enum: ["Yes","No","Abstain"]
description: Actual Vote casted
example: "Yes"
pool_votes:
description: List of all votes casted by requested pool
type: array
items:
$ref: "#/components/schemas/drep_votes/items"
committee_votes:
description: List of all votes casted by requested delegated representative (DRep)
type: array
Expand Down Expand Up @@ -5126,31 +5131,31 @@ components:
ratified_epoch:
type:
- number
- null
- 'null'
description: If not null, then this proposal has been ratified at the specfied epoch.
example: 670
enacted_epoch:
type:
- number
- null
- 'null'
description: If not null, then this proposal has been enacted at the specfied epoch.
example: 675
dropped_epoch:
type:
- number
- null
- 'null'
description: If not null, then this proposal has been dropped (expired/enacted) at the specfied epoch.
example: 680
expired_epoch:
type:
- number
- null
- 'null'
description: If not null, then this proposal has been expired at the specfied epoch.
example: 680
expiration:
type:
- number
- null
- 'null'
description: Shows the epoch at which this governance action is expected to expire.
meta_url:
$ref: "#/components/schemas/drep_metadata/items/properties/url"
Expand Down
29 changes: 17 additions & 12 deletions specs/results/koiosapi-mainnet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2007,7 +2007,7 @@ components:
description: DRep ID in bech32 format
schema:
type: string
example: "##_drep_id_param"
example: "drep17l6sywnwqu9aedd6aumev42w39ln5zfl9nw7j4ak6u8swyrwvz3"
in: query
required: true
allowEmptyValue: false
Expand All @@ -2017,7 +2017,7 @@ components:
description: DRep ID in bech32 format
schema:
type: string
example: "##_drep_id_param"
example: "drep17l6sywnwqu9aedd6aumev42w39ln5zfl9nw7j4ak6u8swyrwvz3"
in: query
required: false
allowEmptyValue: true
Expand All @@ -2027,7 +2027,7 @@ components:
description: Committee hash in hexadecimal format (hex)
schema:
type: string
example: "##_committee_hash_param"
example: "49fa008218cd619afe6aa8a1a93303f242440722b314f36bda2c2e23"
in: query
required: false
allowEmptyValue: true
Expand Down Expand Up @@ -3692,13 +3692,13 @@ components:
example: 14
gov_action_deposit:
type:
- number
- string
- 'null'
description: Governance action deposit.
example: 100000000000
drep_deposit:
type:
- number
- string
- 'null'
description: DRep deposit amount.
example: 500000000
Expand Down Expand Up @@ -4976,7 +4976,7 @@ components:
deposit:
type:
- string
- null
- 'null'
description: DRep's registration deposit in lovelace
example: 500000000
active:
Expand All @@ -4986,7 +4986,7 @@ components:
expires_epoch_no:
type:
- number
- null
- 'null'
description: After which epoch DRep is considered inactive.
example: 410
amount:
Expand Down Expand Up @@ -5092,6 +5092,11 @@ components:
enum: ["Yes","No","Abstain"]
description: Actual Vote casted
example: "Yes"
pool_votes:
description: List of all votes casted by requested pool
type: array
items:
$ref: "#/components/schemas/drep_votes/items"
committee_votes:
description: List of all votes casted by requested delegated representative (DRep)
type: array
Expand Down Expand Up @@ -5126,31 +5131,31 @@ components:
ratified_epoch:
type:
- number
- null
- 'null'
description: If not null, then this proposal has been ratified at the specfied epoch.
example: 670
enacted_epoch:
type:
- number
- null
- 'null'
description: If not null, then this proposal has been enacted at the specfied epoch.
example: 675
dropped_epoch:
type:
- number
- null
- 'null'
description: If not null, then this proposal has been dropped (expired/enacted) at the specfied epoch.
example: 680
expired_epoch:
type:
- number
- null
- 'null'
description: If not null, then this proposal has been expired at the specfied epoch.
example: 680
expiration:
type:
- number
- null
- 'null'
description: Shows the epoch at which this governance action is expected to expire.
meta_url:
$ref: "#/components/schemas/drep_metadata/items/properties/url"
Expand Down
29 changes: 17 additions & 12 deletions specs/results/koiosapi-preprod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2007,7 +2007,7 @@ components:
description: DRep ID in bech32 format
schema:
type: string
example: "##_drep_id_param"
example: "drep1kxtwaqtayj6vklc57u93xayjvkwgvefh8drscqp5a5y6jz7m6rd"
in: query
required: true
allowEmptyValue: false
Expand All @@ -2017,7 +2017,7 @@ components:
description: DRep ID in bech32 format
schema:
type: string
example: "##_drep_id_param"
example: "drep1kxtwaqtayj6vklc57u93xayjvkwgvefh8drscqp5a5y6jz7m6rd"
in: query
required: false
allowEmptyValue: true
Expand All @@ -2027,7 +2027,7 @@ components:
description: Committee hash in hexadecimal format (hex)
schema:
type: string
example: "##_committee_hash_param"
example: "f8f56120e1ec00feb088ece39ef14f07339afeb37b4e949ff12b89ff"
in: query
required: false
allowEmptyValue: true
Expand Down Expand Up @@ -3692,13 +3692,13 @@ components:
example: 14
gov_action_deposit:
type:
- number
- string
- 'null'
description: Governance action deposit.
example: 100000000000
drep_deposit:
type:
- number
- string
- 'null'
description: DRep deposit amount.
example: 500000000
Expand Down Expand Up @@ -4976,7 +4976,7 @@ components:
deposit:
type:
- string
- null
- 'null'
description: DRep's registration deposit in lovelace
example: 500000000
active:
Expand All @@ -4986,7 +4986,7 @@ components:
expires_epoch_no:
type:
- number
- null
- 'null'
description: After which epoch DRep is considered inactive.
example: 410
amount:
Expand Down Expand Up @@ -5092,6 +5092,11 @@ components:
enum: ["Yes","No","Abstain"]
description: Actual Vote casted
example: "Yes"
pool_votes:
description: List of all votes casted by requested pool
type: array
items:
$ref: "#/components/schemas/drep_votes/items"
committee_votes:
description: List of all votes casted by requested delegated representative (DRep)
type: array
Expand Down Expand Up @@ -5126,31 +5131,31 @@ components:
ratified_epoch:
type:
- number
- null
- 'null'
description: If not null, then this proposal has been ratified at the specfied epoch.
example: 670
enacted_epoch:
type:
- number
- null
- 'null'
description: If not null, then this proposal has been enacted at the specfied epoch.
example: 675
dropped_epoch:
type:
- number
- null
- 'null'
description: If not null, then this proposal has been dropped (expired/enacted) at the specfied epoch.
example: 680
expired_epoch:
type:
- number
- null
- 'null'
description: If not null, then this proposal has been expired at the specfied epoch.
example: 680
expiration:
type:
- number
- null
- 'null'
description: Shows the epoch at which this governance action is expected to expire.
meta_url:
$ref: "#/components/schemas/drep_metadata/items/properties/url"
Expand Down
Loading

0 comments on commit 743557f

Please sign in to comment.