Skip to content

Commit

Permalink
fix: proposal parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
slowbackspace committed Jan 21, 2025
1 parent a49be24 commit 21eee0a
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 26 deletions.
Binary file not shown.
Binary file not shown.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed

- Incorrect proposal parameters

## [3.1.0] - 2025-01-20

### Changed
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"dependencies": {
"@blockfrost/blockfrost-js": "5.5.0",
"@blockfrost/blockfrost-utils": "2.8.1",
"@blockfrost/openapi": "0.1.72",
"@blockfrost/openapi": "0.1.73-beta.3",
"@fastify/cors": "^9.0.1",
"@fastify/http-proxy": "^9.5.0",
"@fastify/postgres": "^5.2.2",
Expand Down
10 changes: 4 additions & 6 deletions src/sql/governance/proposals_proposal_parameters.sql
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ SELECT encode(tx.hash, 'hex') AS "tx_hash",
'decentralisation_param',
decentralisation,
'extra_entropy',
extra_entropy,
entropy,
'protocol_major_ver',
protocol_major,
'protocol_minor_ver',
Expand All @@ -40,8 +40,6 @@ SELECT encode(tx.hash, 'hex') AS "tx_hash",
COALESCE(coins_per_utxo_size, min_utxo_value)::TEXT,
'min_pool_cost',
min_pool_cost::TEXT,
'nonce',
encode(nonce, 'hex'),
'cost_models',
cm.costs,
'price_mem',
Expand Down Expand Up @@ -116,8 +114,8 @@ SELECT encode(tx.hash, 'hex') AS "tx_hash",
)::JSONB
) AS "parameters"
FROM gov_action_proposal gap
JOIN tx ON (gap.tx_id = tx.id)
JOIN epoch_param ep ON (gap.param_proposal = ep.id)
LEFT JOIN cost_model cm ON (ep.cost_model_id = cm.id)
JOIN tx ON (gap.tx_id = tx.id)
JOIN param_proposal pp ON (gap.param_proposal = pp.id)
LEFT JOIN cost_model cm ON (pp.cost_model_id = cm.id)
WHERE encode(tx.hash, 'hex') = $1
AND gap.index = $2
28 changes: 14 additions & 14 deletions yarn-project.nix

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -131,15 +131,15 @@ __metadata:
languageName: node
linkType: hard

"@blockfrost/openapi@npm:0.1.72":
version: 0.1.72
resolution: "@blockfrost/openapi@npm:0.1.72"
"@blockfrost/openapi@npm:0.1.73-beta.3":
version: 0.1.73-beta.3
resolution: "@blockfrost/openapi@npm:0.1.73-beta.3"
dependencies:
ajv: ^8.17.1
cbor: ^9.0.2
rimraf: 6.0.1
yaml: ^2.6.1
checksum: 7cc2e86b215caf670a5e0989fcf353e8cd5dabcad88e28ad6d3d244f9737dc71a84c8d62123efd5adde9cfdeb902bfc93146a6dc291ec57d3e4d090e7748ccbd
checksum: 488bc93feac1b318b37cd2853f1b38c7df30c06b848916dea14f060efae4a64d50526cb74e2f9a5c3222aecdd8afd7aeab35ae2cae077ecd0bf4315c446e4166
languageName: node
linkType: hard

Expand Down Expand Up @@ -2144,7 +2144,7 @@ __metadata:
dependencies:
"@blockfrost/blockfrost-js": 5.5.0
"@blockfrost/blockfrost-utils": 2.8.1
"@blockfrost/openapi": 0.1.72
"@blockfrost/openapi": 0.1.73-beta.3
"@fastify/cors": ^9.0.1
"@fastify/http-proxy": ^9.5.0
"@fastify/postgres": ^5.2.2
Expand Down

0 comments on commit 21eee0a

Please sign in to comment.