diff --git a/test/tests/__snapshots__/get-schema-for-endpoint.test.ts.snap b/test/tests/__snapshots__/get-schema-for-endpoint.test.ts.snap index 731a8867..bc3ef60e 100644 --- a/test/tests/__snapshots__/get-schema-for-endpoint.test.ts.snap +++ b/test/tests/__snapshots__/get-schema-for-endpoint.test.ts.snap @@ -8029,6 +8029,10 @@ under which it is valid "example": 155381, "type": "integer", }, + "min_fee_ref_script_cost_per_byte": { + "nullable": true, + "type": "number", + }, "min_pool_cost": { "description": "Minimum stake cost forced on the pool", "example": "340000000", @@ -8097,10 +8101,9 @@ under which it is valid "nullable": true, "type": "number", }, - "registered_tx_id": { - "description": "The Tx table index for the transaction that contains this parameter proposal.", + "pvtpp_security_group": { "nullable": true, - "type": "integer", + "type": "number", }, "rho": { "description": "Monetary expansion", @@ -8166,7 +8169,8 @@ under which it is valid "gov_action_deposit", "drep_deposit", "drep_activity", - "registered_tx_id", + "pvtpp_security_group", + "min_fee_ref_script_cost_per_byte", ], "type": "object", }, @@ -9332,6 +9336,10 @@ under which it is valid "example": 155381, "type": "integer", }, + "min_fee_ref_script_cost_per_byte": { + "nullable": true, + "type": "number", + }, "min_pool_cost": { "description": "Minimum stake cost forced on the pool", "example": "340000000", @@ -9400,10 +9408,9 @@ under which it is valid "nullable": true, "type": "number", }, - "registered_tx_id": { - "description": "The Tx table index for the transaction that contains this parameter proposal.", + "pvtpp_security_group": { "nullable": true, - "type": "integer", + "type": "number", }, "rho": { "description": "Monetary expansion", @@ -9469,7 +9476,8 @@ under which it is valid "gov_action_deposit", "drep_deposit", "drep_activity", - "registered_tx_id", + "pvtpp_security_group", + "min_fee_ref_script_cost_per_byte", ], "type": "object", }, @@ -11864,7 +11872,7 @@ under which it is valid }, }, }, - "/governance/proposals/{tx_hash}/{cert_index}/votes": { + "/governance/proposals/{tx_hash}/{cert_index}/parameters": { "params": { "properties": { "cert_index": { @@ -11876,194 +11884,663 @@ under which it is valid }, "type": "object", }, - "querystring": { - "properties": { - "count": { - "default": 100, - "maximum": 100, - "minimum": 1, - "type": "integer", - }, - "order": { - "default": "asc", - "enum": [ - "asc", - "desc", - ], - "type": "string", - }, - "page": { - "default": 1, - "maximum": 21474836, - "minimum": 1, - "type": "integer", - }, - }, - "type": "object", - }, "response": { "200": { - "example": [ - { - "cert_index": 2, - "tx_hash": "b302de601defdf11a5261ed31a263804dac4a582a888c998ce24dec5", - "vote": "yes", - "voter": "drep1mvdu8slennngja7w4un6knwezufra70887zuxpprd64jxfveahn", - "voter_role": "drep", - }, - { - "cert_index": 3, - "tx_hash": "b302de601defdf11a5261ed31a263804dac4a582a888c998ce24dec5", - "vote": "abstain", - "voter": "53a42debdc7ffd90085ab7fd9800b63e6d1c9ac481ba6eb7b6a844e4", - "voter_role": "constitutional_committee", - }, - ], - "items": { - "properties": { - "cert_index": { - "description": "Index of the certificate within the voting transaction.", - "type": "integer", - }, - "tx_hash": { - "description": "Hash of the voting transaction.", - "type": "string", - }, - "vote": { - "description": "The Vote. Can be one of yes, no, abstain.", - "enum": [ - "yes", - "no", - "abstain", - ], - "type": "string", - }, - "voter": { - "description": "The actual voter.", - "type": "string", - }, - "voter_role": { - "description": "The role of the voter. Can be one of constitutional_committee, drep, spo.", - "enum": [ - "constitutional_committee", - "drep", - "spo", - ], - "type": "string", - }, - }, - "required": [ - "tx_hash", - "cert_index", - "voter_role", - "voter", - "vote", - ], - "type": "object", - }, - "type": "array", - }, - "400": { "properties": { - "error": { - "example": "Bad Request", + "a0": { + "description": "Pool pledge influence", + "example": 0.3, + "type": "number", + }, + "coins_per_utxo_size": { + "description": "Cost per UTxO word for Alonzo. Cost per UTxO byte for Babbage and later.", + "example": "34482", + "nullable": true, "type": "string", }, - "message": { - "example": "Backend did not understand your request.", + "coins_per_utxo_word": { + "deprecated": true, + "description": "Cost per UTxO word for Alonzo. Cost per UTxO byte for Babbage and later.", + "example": "34482", + "nullable": true, "type": "string", }, - "status_code": { - "example": 400, + "collateral_percent": { + "description": "The percentage of the transactions fee which must be provided as collateral when including non-native scripts", + "example": 150, + "nullable": true, "type": "integer", }, - }, - "required": [ - "error", - "message", - "status_code", - ], - "type": "object", - }, - "403": { - "properties": { - "error": { - "example": "Forbidden", + "committee_max_term_length": { + "description": "Constitutional committee term limits. New in 13.2-Conway.", + "format": "word64type", "type": "string", }, - "message": { - "example": "Invalid project token.", + "committee_min_size": { + "description": "Minimal constitutional committee size. New in 13.2-Conway.", + "format": "word64type", "type": "string", }, - "status_code": { - "example": 403, + "cost_model_id": { + "description": "The CostModel table index for the proposal.", + "format": "int64", "type": "integer", }, - }, - "required": [ - "error", - "message", - "status_code", - ], - "type": "object", - }, - "418": { - "properties": { - "error": { - "example": "Requested Banned", + "cost_models": { + "additionalProperties": true, + "description": "Cost models parameters for Plutus Core scripts", + "example": { + "PlutusV1": { + "addInteger-cpu-arguments-intercept": 197209, + "addInteger-cpu-arguments-slope": 0, + }, + "PlutusV2": { + "addInteger-cpu-arguments-intercept": 197209, + "addInteger-cpu-arguments-slope": 0, + }, + }, + "nullable": true, + "type": "object", + }, + "decentralisation_param": { + "description": "Percentage of blocks produced by federated nodes", + "example": 0.5, + "type": "number", + }, + "drep_activity": { + "description": "DRep activity period. New in 13.2-Conway.", + "format": "word64type", "type": "string", }, - "message": { - "example": "IP has been auto-banned for flooding.", + "drep_deposit": { + "description": "DRep deposit amount. New in 13.2-Conway.", + "format": "word64type", "type": "string", }, - "status_code": { - "example": 418, - "type": "integer", + "dvt_committee_no_confidence": { + "description": "DRep Vote threshold for new committee/threshold (state of no-confidence). New in 13.2-Conway.", + "type": "number", }, - }, - "required": [ - "error", - "message", - "status_code", - ], - "type": "object", - }, - "429": { - "properties": { - "error": { - "example": "Project Over Limit", - "type": "string", + "dvt_committee_normal": { + "description": "DRep Vote threshold for new committee/threshold (normal state). New in 13.2-Conway.", + "type": "number", }, - "message": { - "example": "Usage is over limit.", - "type": "string", + "dvt_hard_fork_initiation": { + "description": "DRep Vote threshold for hard-fork initiation. New in 13.2-Conway.", + "type": "number", }, - "status_code": { - "example": 429, + "dvt_motion_no_confidence": { + "description": "DRep Vote threshold for motion of no-confidence. New in 13.2-Conway.", + "type": "number", + }, + "dvt_p_p_economic_group": { + "description": "DRep Vote threshold for protocol parameter changes, economic group. New in 13.2-Conway.", + "type": "number", + }, + "dvt_p_p_gov_group": { + "description": "DRep Vote threshold for protocol parameter changes, governance group. New in 13.2-Conway.", + "type": "number", + }, + "dvt_p_p_network_group": { + "description": "DRep Vote threshold for protocol parameter changes, network group. New in 13.2-Conway.", + "type": "number", + }, + "dvt_p_p_technical_group": { + "description": "DRep Vote threshold for protocol parameter changes, technical group. New in 13.2-Conway.", + "type": "number", + }, + "dvt_treasury_withdrawal": { + "description": "DRep Vote threshold for treasury withdrawal. New in 13.2-Conway.", + "type": "number", + }, + "dvt_update_to_constitution": { + "description": "DRep Vote threshold for update to the Constitution. New in 13.2-Conway.", + "type": "number", + }, + "e_max": { + "description": "Epoch bound on pool retirement", + "example": 18, "type": "integer", }, - }, - "required": [ - "error", - "message", - "status_code", - ], - "type": "object", - }, - "500": { - "properties": { - "error": { - "example": "Internal Server Error", - "type": "string", + "epoch": { + "description": "Epoch number", + "example": 225, + "type": "integer", }, - "message": { - "example": "An unexpected response was received from the backend.", + "extra_entropy": { + "description": "Seed for extra entropy", + "example": null, + "nullable": true, "type": "string", }, - "status_code": { - "example": 500, - "type": "integer", + "gov_action_deposit": { + "description": "Governance action deposit. New in 13.2-Conway.", + "format": "word64type", + "type": "string", + }, + "gov_action_lifetime": { + "description": "Governance action expiration. New in 13.2-Conway.", + "format": "word64type", + "type": "string", + }, + "key_deposit": { + "description": "The amount of a key registration deposit in Lovelaces", + "example": "2000000", + "type": "string", + }, + "max_block_ex_mem": { + "description": "The maximum number of execution memory allowed to be used in a single block", + "example": "50000000", + "nullable": true, + "type": "string", + }, + "max_block_ex_steps": { + "description": "The maximum number of execution steps allowed to be used in a single block", + "example": "40000000000", + "nullable": true, + "type": "string", + }, + "max_block_header_size": { + "description": "Maximum block header size", + "example": 1100, + "type": "integer", + }, + "max_block_size": { + "description": "Maximum block body size in Bytes", + "example": 65536, + "type": "integer", + }, + "max_collateral_inputs": { + "description": "The maximum number of collateral inputs allowed in a transaction", + "example": 3, + "nullable": true, + "type": "integer", + }, + "max_tx_ex_mem": { + "description": "The maximum number of execution memory allowed to be used in a single transaction", + "example": "10000000", + "nullable": true, + "type": "string", + }, + "max_tx_ex_steps": { + "description": "The maximum number of execution steps allowed to be used in a single transaction", + "example": "10000000000", + "nullable": true, + "type": "string", + }, + "max_tx_size": { + "description": "Maximum transaction size", + "example": 16384, + "type": "integer", + }, + "max_val_size": { + "description": "The maximum Val size", + "example": "5000", + "nullable": true, + "type": "string", + }, + "min_fee_a": { + "description": "The linear factor for the minimum fee calculation for given epoch", + "example": 44, + "type": "integer", + }, + "min_fee_b": { + "description": "The constant factor for the minimum fee calculation", + "example": 155381, + "type": "integer", + }, + "min_fee_ref_script_cost_per_byte": { + "nullable": true, + "type": "number", + }, + "min_pool_cost": { + "description": "Minimum stake cost forced on the pool", + "example": "340000000", + "type": "string", + }, + "min_utxo": { + "description": "Minimum UTXO value", + "example": "1000000", + "type": "string", + }, + "n_opt": { + "description": "Desired number of pools", + "example": 150, + "type": "integer", + }, + "nonce": { + "description": "Epoch number only used once", + "example": "1a3be38bcbb7911969283716ad7aa550250226b76a61fc51cc9a9a35d9276d81", + "type": "string", + }, + "pool_deposit": { + "description": "The amount of a pool registration deposit in Lovelaces", + "example": "500000000", + "type": "string", + }, + "price_mem": { + "description": "The per word cost of script memory usage", + "example": 0.0577, + "nullable": true, + "type": "number", + }, + "price_step": { + "description": "The cost of script execution step usage", + "example": 0.0000721, + "nullable": true, + "type": "number", + }, + "protocol_major_ver": { + "description": "Accepted protocol major version", + "example": 2, + "type": "integer", + }, + "protocol_minor_ver": { + "description": "Accepted protocol minor version", + "example": 0, + "type": "integer", + }, + "pvt_committee_no_confidence": { + "description": "Pool Voting threshold for new committee/threshold (state of no-confidence). New in 13.2-Conway.", + "type": "number", + }, + "pvt_committee_normal": { + "description": "Pool Voting threshold for new committee/threshold (normal state). New in 13.2-Conway.", + "type": "number", + }, + "pvt_hard_fork_initiation": { + "description": "Pool Voting threshold for hard-fork initiation. New in 13.2-Conway.", + "type": "number", + }, + "pvt_motion_no_confidence": { + "description": "Pool Voting threshold for motion of no-confidence. New in 13.2-Conway.", + "type": "number", + }, + "pvtpp_security_group": { + "nullable": true, + "type": "number", + }, + "rho": { + "description": "Monetary expansion", + "example": 0.003, + "type": "number", + }, + "tau": { + "description": "Treasury expansion", + "example": 0.2, + "type": "number", + }, + }, + "required": [ + "min_fee_a", + "min_fee_b", + "max_block_size", + "max_tx_size", + "max_block_header_size", + "key_deposit", + "pool_deposit", + "e_max", + "n_opt", + "a0", + "rho", + "tau", + "decentralisation_param", + "extra_entropy", + "protocol_major_ver", + "protocol_minor_ver", + "min_utxo", + "min_pool_cost", + "nonce", + "cost_models", + "price_mem", + "price_step", + "max_tx_ex_mem", + "max_tx_ex_steps", + "max_block_ex_mem", + "max_block_ex_steps", + "max_val_size", + "collateral_percent", + "max_collateral_inputs", + "coins_per_utxo_size", + "coins_per_utxo_word", + "cost_model_id", + "pvt_motion_no_confidence", + "pvt_committee_normal", + "pvt_committee_no_confidence", + "pvt_hard_fork_initiation", + "dvt_motion_no_confidence", + "dvt_committee_normal", + "dvt_committee_no_confidence", + "dvt_update_to_constitution", + "dvt_hard_fork_initiation", + "dvt_p_p_network_group", + "dvt_p_p_economic_group", + "dvt_p_p_technical_group", + "dvt_p_p_gov_group", + "dvt_treasury_withdrawal", + "committee_min_size", + "committee_max_term_length", + "gov_action_lifetime", + "gov_action_deposit", + "drep_deposit", + "drep_activity", + "pvtpp_security_group", + "min_fee_ref_script_cost_per_byte", + ], + "type": "object", + }, + "400": { + "properties": { + "error": { + "example": "Bad Request", + "type": "string", + }, + "message": { + "example": "Backend did not understand your request.", + "type": "string", + }, + "status_code": { + "example": 400, + "type": "integer", + }, + }, + "required": [ + "error", + "message", + "status_code", + ], + "type": "object", + }, + "403": { + "properties": { + "error": { + "example": "Forbidden", + "type": "string", + }, + "message": { + "example": "Invalid project token.", + "type": "string", + }, + "status_code": { + "example": 403, + "type": "integer", + }, + }, + "required": [ + "error", + "message", + "status_code", + ], + "type": "object", + }, + "418": { + "properties": { + "error": { + "example": "Requested Banned", + "type": "string", + }, + "message": { + "example": "IP has been auto-banned for flooding.", + "type": "string", + }, + "status_code": { + "example": 418, + "type": "integer", + }, + }, + "required": [ + "error", + "message", + "status_code", + ], + "type": "object", + }, + "429": { + "properties": { + "error": { + "example": "Project Over Limit", + "type": "string", + }, + "message": { + "example": "Usage is over limit.", + "type": "string", + }, + "status_code": { + "example": 429, + "type": "integer", + }, + }, + "required": [ + "error", + "message", + "status_code", + ], + "type": "object", + }, + "500": { + "properties": { + "error": { + "example": "Internal Server Error", + "type": "string", + }, + "message": { + "example": "An unexpected response was received from the backend.", + "type": "string", + }, + "status_code": { + "example": 500, + "type": "integer", + }, + }, + "required": [ + "error", + "message", + "status_code", + ], + "type": "object", + }, + }, + }, + "/governance/proposals/{tx_hash}/{cert_index}/votes": { + "params": { + "properties": { + "cert_index": { + "type": "integer", + }, + "tx_hash": { + "type": "string", + }, + }, + "type": "object", + }, + "querystring": { + "properties": { + "count": { + "default": 100, + "maximum": 100, + "minimum": 1, + "type": "integer", + }, + "order": { + "default": "asc", + "enum": [ + "asc", + "desc", + ], + "type": "string", + }, + "page": { + "default": 1, + "maximum": 21474836, + "minimum": 1, + "type": "integer", + }, + }, + "type": "object", + }, + "response": { + "200": { + "example": [ + { + "cert_index": 2, + "tx_hash": "b302de601defdf11a5261ed31a263804dac4a582a888c998ce24dec5", + "vote": "yes", + "voter": "drep1mvdu8slennngja7w4un6knwezufra70887zuxpprd64jxfveahn", + "voter_role": "drep", + }, + { + "cert_index": 3, + "tx_hash": "b302de601defdf11a5261ed31a263804dac4a582a888c998ce24dec5", + "vote": "abstain", + "voter": "53a42debdc7ffd90085ab7fd9800b63e6d1c9ac481ba6eb7b6a844e4", + "voter_role": "constitutional_committee", + }, + ], + "items": { + "properties": { + "cert_index": { + "description": "Index of the certificate within the voting transaction.", + "type": "integer", + }, + "tx_hash": { + "description": "Hash of the voting transaction.", + "type": "string", + }, + "vote": { + "description": "The Vote. Can be one of yes, no, abstain.", + "enum": [ + "yes", + "no", + "abstain", + ], + "type": "string", + }, + "voter": { + "description": "The actual voter.", + "type": "string", + }, + "voter_role": { + "description": "The role of the voter. Can be one of constitutional_committee, drep, spo.", + "enum": [ + "constitutional_committee", + "drep", + "spo", + ], + "type": "string", + }, + }, + "required": [ + "tx_hash", + "cert_index", + "voter_role", + "voter", + "vote", + ], + "type": "object", + }, + "type": "array", + }, + "400": { + "properties": { + "error": { + "example": "Bad Request", + "type": "string", + }, + "message": { + "example": "Backend did not understand your request.", + "type": "string", + }, + "status_code": { + "example": 400, + "type": "integer", + }, + }, + "required": [ + "error", + "message", + "status_code", + ], + "type": "object", + }, + "403": { + "properties": { + "error": { + "example": "Forbidden", + "type": "string", + }, + "message": { + "example": "Invalid project token.", + "type": "string", + }, + "status_code": { + "example": 403, + "type": "integer", + }, + }, + "required": [ + "error", + "message", + "status_code", + ], + "type": "object", + }, + "418": { + "properties": { + "error": { + "example": "Requested Banned", + "type": "string", + }, + "message": { + "example": "IP has been auto-banned for flooding.", + "type": "string", + }, + "status_code": { + "example": 418, + "type": "integer", + }, + }, + "required": [ + "error", + "message", + "status_code", + ], + "type": "object", + }, + "429": { + "properties": { + "error": { + "example": "Project Over Limit", + "type": "string", + }, + "message": { + "example": "Usage is over limit.", + "type": "string", + }, + "status_code": { + "example": 429, + "type": "integer", + }, + }, + "required": [ + "error", + "message", + "status_code", + ], + "type": "object", + }, + "500": { + "properties": { + "error": { + "example": "Internal Server Error", + "type": "string", + }, + "message": { + "example": "An unexpected response was received from the backend.", + "type": "string", + }, + "status_code": { + "example": 500, + "type": "integer", }, }, "required": [ @@ -12520,6 +12997,162 @@ under which it is valid }, }, }, + "/governance/proposals/{tx_hash}/{cert_index}/withdrawals": { + "params": { + "properties": { + "cert_index": { + "type": "integer", + }, + "tx_hash": { + "type": "string", + }, + }, + "type": "object", + }, + "response": { + "200": { + "example": [ + { + "amount": "454541212442", + "stake_address": "stake1ux3g2c9dx2nhhehyrezyxpkstartcqmu9hk63qgfkccw5rqttygt7", + }, + { + "amount": "97846969", + "stake_address": "stake1xx2g2c9dx2nhhehyrezyxpkstoppcqmu9hk63qgfkccw5rqttygt2", + }, + ], + "items": { + "properties": { + "amount": { + "description": "Withdrawal amount in Lovelaces", + "type": "string", + }, + "stake_address": { + "description": "Bech32 stake address", + "example": "stake1ux3g2c9dx2nhhehyrezyxpkstartcqmu9hk63qgfkccw5rqttygt7", + "type": "string", + }, + }, + "required": [ + "stake_address", + "amount", + ], + "type": "object", + }, + "type": "array", + }, + "400": { + "properties": { + "error": { + "example": "Bad Request", + "type": "string", + }, + "message": { + "example": "Backend did not understand your request.", + "type": "string", + }, + "status_code": { + "example": 400, + "type": "integer", + }, + }, + "required": [ + "error", + "message", + "status_code", + ], + "type": "object", + }, + "403": { + "properties": { + "error": { + "example": "Forbidden", + "type": "string", + }, + "message": { + "example": "Invalid project token.", + "type": "string", + }, + "status_code": { + "example": 403, + "type": "integer", + }, + }, + "required": [ + "error", + "message", + "status_code", + ], + "type": "object", + }, + "418": { + "properties": { + "error": { + "example": "Requested Banned", + "type": "string", + }, + "message": { + "example": "IP has been auto-banned for flooding.", + "type": "string", + }, + "status_code": { + "example": 418, + "type": "integer", + }, + }, + "required": [ + "error", + "message", + "status_code", + ], + "type": "object", + }, + "429": { + "properties": { + "error": { + "example": "Project Over Limit", + "type": "string", + }, + "message": { + "example": "Usage is over limit.", + "type": "string", + }, + "status_code": { + "example": 429, + "type": "integer", + }, + }, + "required": [ + "error", + "message", + "status_code", + ], + "type": "object", + }, + "500": { + "properties": { + "error": { + "example": "Internal Server Error", + "type": "string", + }, + "message": { + "example": "An unexpected response was received from the backend.", + "type": "string", + }, + "status_code": { + "example": 500, + "type": "integer", + }, + }, + "required": [ + "error", + "message", + "status_code", + ], + "type": "object", + }, + }, + }, "/health": { "response": { "200": {