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

Add account min balance field #1596

Merged
merged 4 commits into from
May 23, 2024
Merged

Add account min balance field #1596

merged 4 commits into from
May 23, 2024

Conversation

jasonpaulos
Copy link
Contributor

@jasonpaulos jasonpaulos commented Feb 13, 2024

Summary

Add the minimum balance field to accounts returned over the REST API.

Fixes #808

Test Plan

Added a minBalance unit test exercising the core minBalance formula (parallels that in go-algorand).

Copy link

codecov bot commented May 22, 2024

Codecov Report

Attention: Patch coverage is 93.05556% with 5 lines in your changes are missing coverage. Please review.

Project coverage is 68.80%. Comparing base (ef8395b) to head (7c1a5a3).
Report is 1 commits behind head on main.

Files Patch % Lines
idb/postgres/postgres.go 58.33% 4 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1596      +/-   ##
==========================================
+ Coverage   68.54%   68.80%   +0.25%     
==========================================
  Files          37       38       +1     
  Lines        7452     7517      +65     
==========================================
+ Hits         5108     5172      +64     
- Misses       1914     1915       +1     
  Partials      430      430              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jasonpaulos jasonpaulos marked this pull request as ready for review May 22, 2024 20:56
Copy link
Contributor Author

@jasonpaulos jasonpaulos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Looks good to me. I cannot officially approve since I opened this PR

@gmalouf gmalouf requested review from cce and algorandskiy May 22, 2024 22:47
types/min_balance.go Show resolved Hide resolved
@gmalouf gmalouf merged commit b019536 into main May 23, 2024
8 checks passed
@gmalouf gmalouf deleted the account-min-balance branch May 23, 2024 15:38
Copy link
Contributor

@cce cce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Expose account info field min-balance
4 participants