-
Notifications
You must be signed in to change notification settings - Fork 62
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
feat: Implement resetLimit
#2966
Conversation
Signed-off-by: Victor Yanev <victor.yanev@limechain.tech>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work.
Signed-off-by: Eric Badiere <ebadiere@gmail.com>
Signed-off-by: Victor Yanev <victor.yanev@limechain.tech>
Signed-off-by: Victor Yanev <victor.yanev@limechain.tech>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LG
Signed-off-by: Victor Yanev <victor.yanev@limechain.tech> # Conflicts: # packages/relay/tests/lib/repositories/hbarLimiter/hbarSpendingPlanRepository.spec.ts
Signed-off-by: Victor Yanev <victor.yanev@limechain.tech> # Conflicts: # packages/relay/tests/lib/repositories/hbarLimiter/hbarSpendingPlanRepository.spec.ts
Signed-off-by: Victor Yanev <victor.yanev@limechain.tech>
Quality Gate passedIssues Measures |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2966 +/- ##
==========================================
+ Coverage 89.18% 89.52% +0.33%
==========================================
Files 54 56 +2
Lines 3783 3846 +63
Branches 774 781 +7
==========================================
+ Hits 3374 3443 +69
+ Misses 362 356 -6
Partials 47 47
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Description:
Changes:
HbarSpendingPlanRepository
resetAllSpentTodayEntries
method.HbarLimitService
resetLimiter
methodspentToday
entry for all spending plansremainingBudget
remainingBudgetGauge
metricsdailyUniqueSpendingPlansCounter
andaverageDailySpendingPlanUsagesGauge
metricsRelated issue(s):
Fixes #2868
Notes for reviewer:
Checklist