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 20, 2025
1 parent a49be24 commit ef719a1
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 26 deletions.
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.1",
"@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
Loading

0 comments on commit ef719a1

Please sign in to comment.