diff --git a/files/grest/rpc/account/account_info_cached.sql b/files/grest/rpc/account/account_info_cached.sql index 9bae0b72..3ed3226a 100644 --- a/files/grest/rpc/account/account_info_cached.sql +++ b/files/grest/rpc/account/account_info_cached.sql @@ -61,7 +61,7 @@ BEGIN ) AS registered, ( SELECT sr.deposit FROM stake_registration AS sr - WHERE sr.addr_id = sa.id + WHERE sr.addr_id = sas.id AND NOT EXISTS ( SELECT TRUE FROM stake_deregistration AS sd diff --git a/specs/results/koiosapi-guild.yaml b/specs/results/koiosapi-guild.yaml index 48a40d7e..22fb030f 100644 --- a/specs/results/koiosapi-guild.yaml +++ b/specs/results/koiosapi-guild.yaml @@ -8,7 +8,7 @@ info: license: name: Creative Commons Attribution 4.0 International url: https://github.com/cardano-community/koios-artifacts/blob/main/LICENSE - version: v1.2.0b + version: v1.2.0 description: | Koios is best described as a Decentralized and Elastic RESTful query layer for exploring data on Cardano blockchain to consume within applications/wallets/explorers/etc. This page not only provides an OpenAPI Spec for live implementation, but also ability to execute live demo from client browser against each endpoint with pre-filled examples. @@ -4739,7 +4739,7 @@ components: voter_role: $ref: "#/components/schemas/proposal_votes/items/properties/voter_role" voter: - $ref: "#/components/schemas/proposal_votes/items/properties/voter" + $ref: "#/components/schemas/proposal_votes/items/properties/voter_id" voter_hex: $ref: "#/components/schemas/proposal_votes/items/properties/voter_hex" vote: @@ -5383,7 +5383,7 @@ components: description: Proposal Action Type example: ParameterChange proposal_description: - type: string + type: object description: Description for Proposal Action example: '{"tag": "InfoAction"}' deposit: diff --git a/specs/results/koiosapi-mainnet.yaml b/specs/results/koiosapi-mainnet.yaml index 72dfef9b..ba0d62e1 100644 --- a/specs/results/koiosapi-mainnet.yaml +++ b/specs/results/koiosapi-mainnet.yaml @@ -8,7 +8,7 @@ info: license: name: Creative Commons Attribution 4.0 International url: https://github.com/cardano-community/koios-artifacts/blob/main/LICENSE - version: v1.2.0b + version: v1.2.0 description: | Koios is best described as a Decentralized and Elastic RESTful query layer for exploring data on Cardano blockchain to consume within applications/wallets/explorers/etc. This page not only provides an OpenAPI Spec for live implementation, but also ability to execute live demo from client browser against each endpoint with pre-filled examples. @@ -4739,7 +4739,7 @@ components: voter_role: $ref: "#/components/schemas/proposal_votes/items/properties/voter_role" voter: - $ref: "#/components/schemas/proposal_votes/items/properties/voter" + $ref: "#/components/schemas/proposal_votes/items/properties/voter_id" voter_hex: $ref: "#/components/schemas/proposal_votes/items/properties/voter_hex" vote: @@ -5383,7 +5383,7 @@ components: description: Proposal Action Type example: ParameterChange proposal_description: - type: string + type: object description: Description for Proposal Action example: '{"tag": "InfoAction"}' deposit: diff --git a/specs/results/koiosapi-preprod.yaml b/specs/results/koiosapi-preprod.yaml index cde1a36f..11d29f49 100644 --- a/specs/results/koiosapi-preprod.yaml +++ b/specs/results/koiosapi-preprod.yaml @@ -8,7 +8,7 @@ info: license: name: Creative Commons Attribution 4.0 International url: https://github.com/cardano-community/koios-artifacts/blob/main/LICENSE - version: v1.2.0b + version: v1.2.0 description: | Koios is best described as a Decentralized and Elastic RESTful query layer for exploring data on Cardano blockchain to consume within applications/wallets/explorers/etc. This page not only provides an OpenAPI Spec for live implementation, but also ability to execute live demo from client browser against each endpoint with pre-filled examples. @@ -4739,7 +4739,7 @@ components: voter_role: $ref: "#/components/schemas/proposal_votes/items/properties/voter_role" voter: - $ref: "#/components/schemas/proposal_votes/items/properties/voter" + $ref: "#/components/schemas/proposal_votes/items/properties/voter_id" voter_hex: $ref: "#/components/schemas/proposal_votes/items/properties/voter_hex" vote: @@ -5383,7 +5383,7 @@ components: description: Proposal Action Type example: ParameterChange proposal_description: - type: string + type: object description: Description for Proposal Action example: '{"tag": "InfoAction"}' deposit: diff --git a/specs/results/koiosapi-preview.yaml b/specs/results/koiosapi-preview.yaml index 643e4fe0..390ba1c9 100644 --- a/specs/results/koiosapi-preview.yaml +++ b/specs/results/koiosapi-preview.yaml @@ -8,7 +8,7 @@ info: license: name: Creative Commons Attribution 4.0 International url: https://github.com/cardano-community/koios-artifacts/blob/main/LICENSE - version: v1.2.0b + version: v1.2.0 description: | Koios is best described as a Decentralized and Elastic RESTful query layer for exploring data on Cardano blockchain to consume within applications/wallets/explorers/etc. This page not only provides an OpenAPI Spec for live implementation, but also ability to execute live demo from client browser against each endpoint with pre-filled examples. @@ -2047,7 +2047,7 @@ components: description: Epoch Number to fetch details for schema: type: string - example: "12" + example: "675" in: query required: false allowEmptyValue: true @@ -2117,7 +2117,7 @@ components: description: Voter ID (Drep, SPO, Committee Member) in Bech32 format (CIP-5 | CIP-129) schema: type: string - example: "drep13a87lnegq9a90dq4z7n864h0fsxuqsvp5ywn29ud65l5cwxlhts" + example: "drep17rksqsgqx8ej3rtc3x4gjm8a44u6w3qcshfm46yc9tq4zeffuzj" in: query required: true allowEmptyValue: false @@ -2127,7 +2127,7 @@ components: description: DRep ID in bech32 format schema: type: string - example: "drep13a87lnegq9a90dq4z7n864h0fsxuqsvp5ywn29ud65l5cwxlhts" + example: "drep17rksqsgqx8ej3rtc3x4gjm8a44u6w3qcshfm46yc9tq4zeffuzj" in: query required: true allowEmptyValue: false @@ -2137,7 +2137,7 @@ components: description: DRep ID in bech32 format schema: type: string - example: "drep13a87lnegq9a90dq4z7n864h0fsxuqsvp5ywn29ud65l5cwxlhts" + example: "drep17rksqsgqx8ej3rtc3x4gjm8a44u6w3qcshfm46yc9tq4zeffuzj" in: query required: false allowEmptyValue: true @@ -2736,7 +2736,7 @@ components: type: string example: _drep_ids: - - drep13a87lnegq9a90dq4z7n864h0fsxuqsvp5ywn29ud65l5cwxlhts + - drep1yt76he02dprm2af6x26vg76mhs2vajlg43cr9jh9dq3f2qs68ts3s - drep1g5vl99xcpv8uce5hhh50xe3fh68tl9f8hcprleekw0c6jhhr45f utxo_refs_with_extended: content: @@ -4739,7 +4739,7 @@ components: voter_role: $ref: "#/components/schemas/proposal_votes/items/properties/voter_role" voter: - $ref: "#/components/schemas/proposal_votes/items/properties/voter" + $ref: "#/components/schemas/proposal_votes/items/properties/voter_id" voter_hex: $ref: "#/components/schemas/proposal_votes/items/properties/voter_hex" vote: @@ -5383,7 +5383,7 @@ components: description: Proposal Action Type example: ParameterChange proposal_description: - type: string + type: object description: Description for Proposal Action example: '{"tag": "InfoAction"}' deposit: diff --git a/specs/templates/1-api-info.yaml b/specs/templates/1-api-info.yaml index 64780cde..6e3bf50f 100644 --- a/specs/templates/1-api-info.yaml +++ b/specs/templates/1-api-info.yaml @@ -7,7 +7,7 @@ info: license: name: Creative Commons Attribution 4.0 International url: https://github.com/cardano-community/koios-artifacts/blob/main/LICENSE - version: v1.2.0b + version: v1.2.0 description: | Koios is best described as a Decentralized and Elastic RESTful query layer for exploring data on Cardano blockchain to consume within applications/wallets/explorers/etc. This page not only provides an OpenAPI Spec for live implementation, but also ability to execute live demo from client browser against each endpoint with pre-filled examples. diff --git a/specs/templates/4-api-schemas.yaml b/specs/templates/4-api-schemas.yaml index 58d0afcd..a338603a 100644 --- a/specs/templates/4-api-schemas.yaml +++ b/specs/templates/4-api-schemas.yaml @@ -1904,7 +1904,7 @@ schemas: voter_role: $ref: "#/components/schemas/proposal_votes/items/properties/voter_role" voter: - $ref: "#/components/schemas/proposal_votes/items/properties/voter" + $ref: "#/components/schemas/proposal_votes/items/properties/voter_id" voter_hex: $ref: "#/components/schemas/proposal_votes/items/properties/voter_hex" vote: @@ -2548,7 +2548,7 @@ schemas: description: Proposal Action Type example: ParameterChange proposal_description: - type: string + type: object description: Description for Proposal Action example: '{"tag": "InfoAction"}' deposit: diff --git a/specs/templates/example-map.json b/specs/templates/example-map.json index 7d218131..0f2291d2 100644 --- a/specs/templates/example-map.json +++ b/specs/templates/example-map.json @@ -9,7 +9,7 @@ "_epoch_no": { "m": "320", "g": "6219", - "pv": "12", + "pv": "675", "pp": "31" }, "_earned_epoch_no": { @@ -75,7 +75,7 @@ "_drep_id": { "m": "drep17l6sywnwqu9aedd6aumev42w39ln5zfl9nw7j4ak6u8swyrwvz3", "g": "drep1s9qaseg7qyum807fcv0hdky9gv0c89tn98t4urjn5ewz57dml0r", - "pv": "drep13a87lnegq9a90dq4z7n864h0fsxuqsvp5ywn29ud65l5cwxlhts", + "pv": "drep17rksqsgqx8ej3rtc3x4gjm8a44u6w3qcshfm46yc9tq4zeffuzj", "pp": "drep1kxtwaqtayj6vklc57u93xayjvkwgvefh8drscqp5a5y6jz7m6rd" }, "_cc_hot_id": { @@ -90,6 +90,12 @@ "pv": "gov_action17m93skslaxyd45gpr6ernkdzs852h564wsterr8l6lheu7hu7kvsqecyqdh", "pp": "gov_action1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqpzklpgpf" }, + "_voter_id": { + "m": "['pool1w83ux7vrwafrsuz044knxl9xxtr38q5jj2l3p28fl3g26faqqwg', 'drep1yt76he02dprm2af6x26vg76mhs2vajlg43cr9jh9dq3f2qs68ts3s']", + "g": "['pool1w83ux7vrwafrsuz044knxl9xxtr38q5jj2l3p28fl3g26faqqwg', 'drep1yt76he02dprm2af6x26vg76mhs2vajlg43cr9jh9dq3f2qs68ts3s']", + "pv": "['pool1w83ux7vrwafrsuz044knxl9xxtr38q5jj2l3p28fl3g26faqqwg', 'drep1yt76he02dprm2af6x26vg76mhs2vajlg43cr9jh9dq3f2qs68ts3s']", + "pp": "['pool1w83ux7vrwafrsuz044knxl9xxtr38q5jj2l3p28fl3g26faqqwg', 'drep1yt76he02dprm2af6x26vg76mhs2vajlg43cr9jh9dq3f2qs68ts3s']" + }, "_pool_bech32": { "m": "pool155efqn9xpcf73pphkk88cmlkdwx4ulkg606tne970qswczg3asc", "g": "pool1xc9eywck4e20tydz4yvh5vfe0ep8whawvwz8wqkc9k046a2ypp4", @@ -197,7 +203,7 @@ "drep_ids1": { "m": "drep17l6sywnwqu9aedd6aumev42w39ln5zfl9nw7j4ak6u8swyrwvz3", "g": "drep1s9qaseg7qyum807fcv0hdky9gv0c89tn98t4urjn5ewz57dml0r", - "pv": "drep13a87lnegq9a90dq4z7n864h0fsxuqsvp5ywn29ud65l5cwxlhts", + "pv": "drep1yt76he02dprm2af6x26vg76mhs2vajlg43cr9jh9dq3f2qs68ts3s", "pp": "drep1kxtwaqtayj6vklc57u93xayjvkwgvefh8drscqp5a5y6jz7m6rd" }, "drep_ids2": {