Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GovTool - v2.0.8 #2701

Merged
merged 29 commits into from
Jan 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
1a7f68f
fix(#2653): stake key voting power calculation
MSzalowski Jan 17, 2025
00cc5d2
chore: bump cardano-node to 10.1.4
MSzalowski Jan 20, 2025
e8fd264
Merge pull request #2664 from IntersectMBO/chore/bump-cardano-node-to…
MSzalowski Jan 20, 2025
38078a5
feat: make CIP-129 identifiers default ones
MSzalowski Jan 21, 2025
5726578
Merge pull request #2667 from IntersectMBO/feat/2658-tweaks-to-drep-i…
MSzalowski Jan 21, 2025
95955bb
Merge pull request #2657 from IntersectMBO/fix/2653-too-much-delegati…
MSzalowski Jan 21, 2025
725c88f
fix: usage of trim on missing label
MSzalowski Jan 21, 2025
85a9403
fix: limit drep-info to one row only
MSzalowski Jan 21, 2025
568d6e5
fix: add missing select on stake key addr id
MSzalowski Jan 21, 2025
4b93df7
Merge pull request #2670 from IntersectMBO/fix/cannot-use-trim-of-und…
MSzalowski Jan 22, 2025
b812a46
Merge pull request #2673 from IntersectMBO/fix/non-exhaustive-pattern…
MSzalowski Jan 22, 2025
8b6579e
Merge pull request #2674 from IntersectMBO/fix/missing-addr-id-in-sta…
MSzalowski Jan 22, 2025
2e9c422
fix(#2671): searching for drep off_chain data
MSzalowski Jan 22, 2025
cb10343
feat(#2686): add share button to every DRep
MSzalowski Jan 22, 2025
5037c54
Merge pull request #2688 from IntersectMBO/fix/2671-usersnap-drep-sea…
MSzalowski Jan 22, 2025
93c34f7
Merge pull request #2689 from IntersectMBO/fix/2686-share-button-is-m…
MSzalowski Jan 22, 2025
bf2fc3d
chore(#2681): remove logging to sentry on failed drep registration tx
MSzalowski Jan 22, 2025
e85d44e
Merge pull request #2696 from IntersectMBO/fix/2681-issue-with-regist…
MSzalowski Jan 23, 2025
6950d27
Merge pull request #2691 from IntersectMBO/test
MSzalowski Jan 23, 2025
2f0bec8
chore(#2682): remove logging to sentry on failed delegation
MSzalowski Jan 22, 2025
906c070
Merge pull request #2693 from IntersectMBO/fix/2682-deviceversionunsu…
MSzalowski Jan 23, 2025
10b3ebb
fix(#2408): fix blank screen on registering as a DRep
MSzalowski Jan 23, 2025
c322fab
Merge pull request #2697 from IntersectMBO/fix/2408-blank-screen-appe…
MSzalowski Jan 23, 2025
2d6c29c
feat(#2178): show metadata anchor in governance action details
MSzalowski Jan 23, 2025
53c151c
Merge pull request #2698 from IntersectMBO/feat/2178-usersnap-show-ur…
MSzalowski Jan 23, 2025
e32cce3
fix(#2676): handle unexpected drep-info query result
MSzalowski Jan 23, 2025
5e2554c
Merge pull request #2699 from IntersectMBO/fix/2676-non-exhaustive-pa…
MSzalowski Jan 23, 2025
20ad405
chore: bump GovTool to v2.0.8
MSzalowski Jan 23, 2025
d4d370b
Merge pull request #2700 from IntersectMBO/chore/bump-govtool-to-v2.0.8
MSzalowski Jan 23, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,29 @@ changes.

-

## [v2.0.8](https://github.com/IntersectMBO/govtool/releases/tag/v2.0.8) 2025-01-23

### Added

- Add share DRep button to every DRep instead of only our own [Issue 2686](https://github.com/IntersectMBO/govtool/issues/2686)
- Show metadata anchor in Governance Action Details [Issue 2178](https://github.com/IntersectMBO/govtool/issues/2178)
- Handle unexpected drep info query result [Issue 2676](https://github.com/IntersectMBO/govtool/issues/2676)

### Fixed

- Fix usage of trim on missing label
- Fix blank screen when registering as a DRep [Issue 2408](https://github.com/IntersectMBO/govtool/issues/2408)

### Changed

- Bump cardano-node to 10.1.4
- Make CIP-129 governance identifiers the default ones

### Removed

- Remove logging to sentry for DRep registration transaction [Issue 2681](https://github.com/IntersectMBO/govtool/issues/2681)
- Remove logging to sentry when delegation transaction fails [Issue 2682](https://github.com/IntersectMBO/govtool/issues/2682)

## [v2.0.7](https://github.com/IntersectMBO/govtool/releases/tag/v2.0.7) 2025-01-20

### Added
Expand Down
2 changes: 1 addition & 1 deletion govtool/backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ FROM $BASE_IMAGE_REPO:$BASE_IMAGE_TAG
WORKDIR /src
COPY . .
RUN cabal build
RUN cp dist-newstyle/build/x86_64-linux/ghc-9.2.7/vva-be-2.0.7/x/vva-be/build/vva-be/vva-be /usr/local/bin
RUN cp dist-newstyle/build/x86_64-linux/ghc-9.2.7/vva-be-2.0.8/x/vva-be/build/vva-be/vva-be /usr/local/bin
2 changes: 1 addition & 1 deletion govtool/backend/Dockerfile.qovery
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FROM $BASE_IMAGE_REPO:$BASE_IMAGE_TAG
WORKDIR /src
COPY . .
RUN cabal build
RUN cp dist-newstyle/build/x86_64-linux/ghc-9.2.7/vva-be-2.0.7/x/vva-be/build/vva-be/vva-be /usr/local/bin
RUN cp dist-newstyle/build/x86_64-linux/ghc-9.2.7/vva-be-2.0.8/x/vva-be/build/vva-be/vva-be /usr/local/bin

# Expose the necessary port
EXPOSE 9876
Expand Down
1 change: 1 addition & 0 deletions govtool/backend/sql/get-drep-info.sql
Original file line number Diff line number Diff line change
Expand Up @@ -215,3 +215,4 @@ FROM
CROSS JOIN IsScriptHash
LEFT JOIN off_chain_vote_data ON off_chain_vote_data.voting_anchor_id = LatestRegistrationEntry.voting_anchor_id
LEFT JOIN off_chain_vote_drep_data ON off_chain_vote_drep_data.off_chain_vote_data_id = off_chain_vote_data.id
LIMIT 1
49 changes: 8 additions & 41 deletions govtool/backend/sql/get-stake-key-voting-power.sql
Original file line number Diff line number Diff line change
@@ -1,46 +1,13 @@
WITH RewardRest AS (
SELECT
SUM(amount) AS amount,
addr_id
FROM
reward_rest
GROUP BY
addr_id
),
Reward AS (
SELECT
SUM(amount) AS amount,
addr_id
FROM
reward
GROUP BY
addr_id
),
Balance AS (
SELECT
COALESCE(SUM(uv.value), 0) AS amount,
sa.id AS addr_id,
encode(sa.hash_raw, 'hex') AS addr_raw
FROM
stake_address sa
JOIN utxo_view uv ON uv.stake_address_id = sa.id
GROUP BY
addr_id,
addr_raw
)
SELECT
(COALESCE(rr.amount, 0) + COALESCE(r.amount, 0) + COALESCE(b.amount, 0)) AS total_balance,
b.addr_raw
COALESCE(SUM(tx_out.value), 0) AS voting_power,
stake_address.id as addr_id
FROM
Balance b
stake_address
JOIN
tx_out on tx_out.stake_address_id = stake_address.id
LEFT JOIN
RewardRest rr ON rr.addr_id = b.addr_id
LEFT JOIN
Reward r ON r.addr_id = rr.addr_id
tx_in ON tx_in.tx_out_id = tx_out.id AND tx_in.tx_out_index = tx_out.index
WHERE
b.addr_id = (SELECT id FROM stake_address WHERE hash_raw = decode(?, 'hex'))
stake_address.hash_raw = decode(?, 'hex') AND tx_in.id IS NULL
GROUP BY
b.addr_raw,
rr.amount,
r.amount,
b.amount
stake_address.id;
Loading
Loading