Skip to content

Commit b201ae7

Browse files
authored
Merge pull request #2624 from IntersectMBO/staging
GovTool - v2.0.5
2 parents e83412d + 418aaae commit b201ae7

File tree

27 files changed

+10450
-234
lines changed

27 files changed

+10450
-234
lines changed

CHANGELOG.md

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

2727
-
2828

29+
## [v2.0.5](https://github.com/IntersectMBO/govtool/releases/tag/v2.0.5) 2025-01-10
30+
31+
### Added
32+
33+
-
34+
35+
### Fixed
36+
37+
- Fix counting submitted votes [Issue 2609](https://github.com/IntersectMBO/govtool/issues/2609)
38+
- Fix opening relative paths in external links
39+
- Fix passing random sorting to governance actions on disconnected wallet
40+
41+
### Changed
42+
43+
- Bump @intersect.mbo/pdf-ui to v0.5.6
44+
45+
### Removed
46+
47+
-
48+
2949
## [v2.0.4](https://github.com/IntersectMBO/govtool/releases/tag/v2.0.4) 2025-01-07
3050

3151
### 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.4/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.5/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.4/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.5/x/vva-be/build/vva-be/vva-be /usr/local/bin
88

99
# Expose the necessary port
1010
EXPOSE 9876

govtool/backend/sql/get-network-metrics.sql

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,16 @@ total_stake_controlled_by_dreps AS (
8383
SUM(dd.amount)::bigint AS total
8484
FROM
8585
drep_distr dd
86+
WHERE
87+
dd.epoch_no = (SELECT no FROM current_epoch)
88+
),
89+
total_stake_controlled_by_spos AS (
90+
SELECT
91+
SUM(ps.stake)::bigint AS total
92+
FROM
93+
pool_stat ps
94+
WHERE
95+
ps.epoch_no = (SELECT no FROM current_epoch)
8696
),
8797
total_registered_direct_voters AS (
8898
SELECT
@@ -176,6 +186,7 @@ SELECT
176186
total_drep_votes.count as total_drep_votes,
177187
total_registered_dreps.unique_registrations as total_registered_dreps,
178188
COALESCE(total_stake_controlled_by_dreps.total, 0) as total_stake_controlled_by_dreps,
189+
COALESCE(total_stake_controlled_by_spos.total, 0) as total_stake_controlled_by_spos,
179190
total_active_dreps.unique_active_drep_registrations as total_active_dreps,
180191
total_inactive_dreps.total_inactive_dreps as total_inactive_dreps,
181192
total_active_cip119_compliant_dreps.unique_active_cip119_compliant_drep_registrations as total_active_cip119_compliant_dreps,
@@ -192,6 +203,7 @@ FROM
192203
CROSS JOIN total_drep_votes
193204
CROSS JOIN total_registered_dreps
194205
CROSS JOIN total_stake_controlled_by_dreps
206+
CROSS JOIN total_stake_controlled_by_spos
195207
CROSS JOIN total_active_dreps
196208
CROSS JOIN total_inactive_dreps
197209
CROSS JOIN total_active_cip119_compliant_dreps
@@ -208,6 +220,7 @@ GROUP BY
208220
total_drep_votes.count,
209221
total_registered_dreps.unique_registrations,
210222
total_stake_controlled_by_dreps.total,
223+
total_stake_controlled_by_spos.total,
211224
total_active_dreps.unique_active_drep_registrations,
212225
total_inactive_dreps.total_inactive_dreps,
213226
total_active_cip119_compliant_dreps.unique_active_cip119_compliant_drep_registrations,

0 commit comments

Comments
 (0)