Skip to content

Commit 832ad7b

Browse files
authored
Merge pull request #3146 from IntersectMBO/develop
GovTool - v2.0.14
2 parents 086dc66 + 4284399 commit 832ad7b

File tree

11 files changed

+39
-13
lines changed

11 files changed

+39
-13
lines changed

CHANGELOG.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,22 @@ changes.
1818

1919
### Removed
2020

21-
## [v2.0.13](https://github.com/IntersectMBO/govtool/releases/tag/v2.0.13) 2025-02-27
21+
## [v2.0.14](https://github.com/IntersectMBO/govtool/releases/tag/v2.0.14) 2025-03-05
22+
23+
24+
### Added
25+
26+
### Fixed
27+
28+
- Fix calculating withdrawals when rewards records are empty for a given stake key [Issue 3134](https://github.com/IntersectMBO/govtool/issues/3134)
2229

30+
### Changed
31+
32+
### Removed
33+
34+
- Remove ratification threshold for Info Action for Consitutional Committee [Issue 3108](https://github.com/IntersectMBO/govtool/issues/3108)
35+
36+
## [v2.0.13](https://github.com/IntersectMBO/govtool/releases/tag/v2.0.13) 2025-02-27
2337

2438
### Added
2539

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.13/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.14/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.13/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.14/x/vva-be/build/vva-be/vva-be /usr/local/bin
88

99
# Expose the necessary port
1010
EXPOSE 9876

govtool/backend/sql/get-stake-key-voting-power.sql

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,15 @@ Withdrawal AS (
3838
w.addr_id
3939
)
4040
SELECT
41-
(COALESCE(rr.amount, 0) + COALESCE(r.amount, 0) + COALESCE(b.amount, 0) - COALESCE(w.withdrawal_amount, 0)) AS total_balance,
41+
(COALESCE(rr.amount, 0) + COALESCE(r.amount, 0) + COALESCE(b.amount, 0) -
42+
-- records in rewards tables might be missing for some epochs
43+
-- so we need to check if the sum of rewards is greater than the sum of withdrawals before subtracting
44+
CASE
45+
WHEN COALESCE(rr.amount, 0) + COALESCE(r.amount, 0) > COALESCE(w.withdrawal_amount, 0)
46+
THEN COALESCE(w.withdrawal_amount, 0)
47+
ELSE 0
48+
END
49+
) AS total_balance,
4250
b.addr_raw::text AS stake_address
4351
FROM
4452
Balance b

govtool/backend/vva-be.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cabal-version: 3.6
22
name: vva-be
3-
version: 2.0.13
3+
version: 2.0.14
44

55
-- A short (one-line) description of the package.
66
-- synopsis:

govtool/frontend/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

govtool/frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@govtool/frontend",
33
"private": true,
4-
"version": "2.0.13",
4+
"version": "2.0.14",
55
"type": "module",
66
"scripts": {
77
"build": "vite build",

govtool/frontend/src/components/molecules/VotesSubmitted.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,11 @@ export const VotesSubmitted = ({
207207
noVotesPercentage={ccNoVotesPercentage}
208208
notVotedVotes={ccNotVotedVotes}
209209
notVotedPercentage={ccNotVotedVotesPercentage}
210-
threshold={Number(ccThreshold)}
210+
threshold={
211+
type !== GovernanceActionType.InfoAction
212+
? Number(ccThreshold)
213+
: null
214+
}
211215
/>
212216
)}
213217
</Box>

govtool/metadata-validation/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

govtool/metadata-validation/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@govtool/metadata-validation",
3-
"version": "2.0.13",
3+
"version": "2.0.14",
44
"description": "",
55
"author": "",
66
"private": true,

0 commit comments

Comments
 (0)