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.5 #2624

Merged
merged 18 commits into from
Jan 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
bb57041
feat: add DRep conversion functions to CIP129
kneerose Jan 8, 2025
7f8d60e
feat: update test to check both CIP129 and CIP105 dRep
kneerose Jan 8, 2025
9a2e7fc
fix: search govAction by id instead of title
kneerose Jan 8, 2025
fb3a509
refactor: remove debug console logs from DRepDirectoryPage
kneerose Jan 8, 2025
ef59257
feat: convert dRep according to script base
kneerose Jan 8, 2025
0f647be
fix(#2609): fix wrong SPO vote totals
MSzalowski Jan 9, 2025
a5b5dd9
Merge pull request #2616 from IntersectMBO/fix/2609-spo-vote-total-on…
MSzalowski Jan 9, 2025
355de00
Merge pull request #2611 from IntersectMBO/fix/dRep-sort-and-govActio…
kneerose Jan 9, 2025
5d8fd4e
chore: bump @intersect.mbo/pdf-ui to v0.5.6
MSzalowski Jan 10, 2025
6895ddd
Merge pull request #2620 from IntersectMBO/chore/bump-pdf-ui-to-v0.5.6
MSzalowski Jan 10, 2025
02fdc96
fix: opening relative paths in external links
MSzalowski Jan 9, 2025
a06cbf4
Merge pull request #2617 from IntersectMBO/fix/fix-opening-relative-p…
MSzalowski Jan 10, 2025
b916ee6
fix: passing random sorting to governance actions request
MSzalowski Jan 10, 2025
8e2d9ea
Merge pull request #2619 from IntersectMBO/fix/passing-random-sorting…
MSzalowski Jan 10, 2025
9f630f1
chore: bump GovTool to v2.0.5
MSzalowski Jan 10, 2025
1e78a63
Merge pull request #2621 from IntersectMBO/chore/bump-govtool-to-v2.0.5
MSzalowski Jan 10, 2025
c322e20
Merge pull request #2622 from IntersectMBO/develop
MSzalowski Jan 10, 2025
418aaae
Merge pull request #2623 from IntersectMBO/test
MSzalowski Jan 10, 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
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,26 @@ changes.

-

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

### Added

-

### Fixed

- Fix counting submitted votes [Issue 2609](https://github.com/IntersectMBO/govtool/issues/2609)
- Fix opening relative paths in external links
- Fix passing random sorting to governance actions on disconnected wallet

### Changed

- Bump @intersect.mbo/pdf-ui to v0.5.6

### Removed

-

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

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

# Expose the necessary port
EXPOSE 9876
Expand Down
13 changes: 13 additions & 0 deletions govtool/backend/sql/get-network-metrics.sql
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,16 @@ total_stake_controlled_by_dreps AS (
SUM(dd.amount)::bigint AS total
FROM
drep_distr dd
WHERE
dd.epoch_no = (SELECT no FROM current_epoch)
),
total_stake_controlled_by_spos AS (
SELECT
SUM(ps.stake)::bigint AS total
FROM
pool_stat ps
WHERE
ps.epoch_no = (SELECT no FROM current_epoch)
),
total_registered_direct_voters AS (
SELECT
Expand Down Expand Up @@ -176,6 +186,7 @@ SELECT
total_drep_votes.count as total_drep_votes,
total_registered_dreps.unique_registrations as total_registered_dreps,
COALESCE(total_stake_controlled_by_dreps.total, 0) as total_stake_controlled_by_dreps,
COALESCE(total_stake_controlled_by_spos.total, 0) as total_stake_controlled_by_spos,
total_active_dreps.unique_active_drep_registrations as total_active_dreps,
total_inactive_dreps.total_inactive_dreps as total_inactive_dreps,
total_active_cip119_compliant_dreps.unique_active_cip119_compliant_drep_registrations as total_active_cip119_compliant_dreps,
Expand All @@ -192,6 +203,7 @@ FROM
CROSS JOIN total_drep_votes
CROSS JOIN total_registered_dreps
CROSS JOIN total_stake_controlled_by_dreps
CROSS JOIN total_stake_controlled_by_spos
CROSS JOIN total_active_dreps
CROSS JOIN total_inactive_dreps
CROSS JOIN total_active_cip119_compliant_dreps
Expand All @@ -208,6 +220,7 @@ GROUP BY
total_drep_votes.count,
total_registered_dreps.unique_registrations,
total_stake_controlled_by_dreps.total,
total_stake_controlled_by_spos.total,
total_active_dreps.unique_active_drep_registrations,
total_inactive_dreps.total_inactive_dreps,
total_active_cip119_compliant_dreps.unique_active_cip119_compliant_drep_registrations,
Expand Down
Loading
Loading