Skip to content

Commit c9d05d7

Browse files
authored
Merge pull request #2703 from IntersectMBO/test
GovTool - v2.0.8
2 parents 24f093f + 4f91b0b commit c9d05d7

34 files changed

+353
-288
lines changed

CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,29 @@ changes.
2626

2727
-
2828

29+
## [v2.0.8](https://github.com/IntersectMBO/govtool/releases/tag/v2.0.8) 2025-01-23
30+
31+
### Added
32+
33+
- Add share DRep button to every DRep instead of only our own [Issue 2686](https://github.com/IntersectMBO/govtool/issues/2686)
34+
- Show metadata anchor in Governance Action Details [Issue 2178](https://github.com/IntersectMBO/govtool/issues/2178)
35+
- Handle unexpected drep info query result [Issue 2676](https://github.com/IntersectMBO/govtool/issues/2676)
36+
37+
### Fixed
38+
39+
- Fix usage of trim on missing label
40+
- Fix blank screen when registering as a DRep [Issue 2408](https://github.com/IntersectMBO/govtool/issues/2408)
41+
42+
### Changed
43+
44+
- Bump cardano-node to 10.1.4
45+
- Make CIP-129 governance identifiers the default ones
46+
47+
### Removed
48+
49+
- Remove logging to sentry for DRep registration transaction [Issue 2681](https://github.com/IntersectMBO/govtool/issues/2681)
50+
- Remove logging to sentry when delegation transaction fails [Issue 2682](https://github.com/IntersectMBO/govtool/issues/2682)
51+
2952
## [v2.0.7](https://github.com/IntersectMBO/govtool/releases/tag/v2.0.7) 2025-01-20
3053

3154
### Added

govtool/backend/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ FROM $BASE_IMAGE_REPO:$BASE_IMAGE_TAG
44
WORKDIR /src
55
COPY . .
66
RUN cabal build
7-
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
7+
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

govtool/backend/Dockerfile.qovery

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ FROM $BASE_IMAGE_REPO:$BASE_IMAGE_TAG
44
WORKDIR /src
55
COPY . .
66
RUN cabal build
7-
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
7+
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
88

99
# Expose the necessary port
1010
EXPOSE 9876

govtool/backend/sql/get-drep-info.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,3 +215,4 @@ FROM
215215
CROSS JOIN IsScriptHash
216216
LEFT JOIN off_chain_vote_data ON off_chain_vote_data.voting_anchor_id = LatestRegistrationEntry.voting_anchor_id
217217
LEFT JOIN off_chain_vote_drep_data ON off_chain_vote_drep_data.off_chain_vote_data_id = off_chain_vote_data.id
218+
LIMIT 1
Lines changed: 8 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,13 @@
1-
WITH RewardRest AS (
2-
SELECT
3-
SUM(amount) AS amount,
4-
addr_id
5-
FROM
6-
reward_rest
7-
GROUP BY
8-
addr_id
9-
),
10-
Reward AS (
11-
SELECT
12-
SUM(amount) AS amount,
13-
addr_id
14-
FROM
15-
reward
16-
GROUP BY
17-
addr_id
18-
),
19-
Balance AS (
20-
SELECT
21-
COALESCE(SUM(uv.value), 0) AS amount,
22-
sa.id AS addr_id,
23-
encode(sa.hash_raw, 'hex') AS addr_raw
24-
FROM
25-
stake_address sa
26-
JOIN utxo_view uv ON uv.stake_address_id = sa.id
27-
GROUP BY
28-
addr_id,
29-
addr_raw
30-
)
311
SELECT
32-
(COALESCE(rr.amount, 0) + COALESCE(r.amount, 0) + COALESCE(b.amount, 0)) AS total_balance,
33-
b.addr_raw
2+
COALESCE(SUM(tx_out.value), 0) AS voting_power,
3+
stake_address.id as addr_id
344
FROM
35-
Balance b
5+
stake_address
6+
JOIN
7+
tx_out on tx_out.stake_address_id = stake_address.id
368
LEFT JOIN
37-
RewardRest rr ON rr.addr_id = b.addr_id
38-
LEFT JOIN
39-
Reward r ON r.addr_id = rr.addr_id
9+
tx_in ON tx_in.tx_out_id = tx_out.id AND tx_in.tx_out_index = tx_out.index
4010
WHERE
41-
b.addr_id = (SELECT id FROM stake_address WHERE hash_raw = decode(?, 'hex'))
11+
stake_address.hash_raw = decode(?, 'hex') AND tx_in.id IS NULL
4212
GROUP BY
43-
b.addr_raw,
44-
rr.amount,
45-
r.amount,
46-
b.amount
13+
stake_address.id;

0 commit comments

Comments
 (0)