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

fix(eventindexer): int => string #13828

Merged
merged 5 commits into from
May 28, 2023
Merged

fix(eventindexer): int => string #13828

merged 5 commits into from
May 28, 2023

Conversation

cyberhorsey
Copy link
Contributor

@cyberhorsey cyberhorsey commented May 28, 2023

int is too small to store stats

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Overall, this Pull Request looks good. Here is some feedback:

  • The changes from int to bigint are appropriate.
  • There are some repeating variables that should be renamed for clarity. For example, "proofTime" and "proofReward" could be changed to "proofTimeValue" and "proofRewardValue" respectively.
  • The variable names should also be more descriptive. For example, "t" in the calcNewAverage function could be changed to "total".
  • The code formatting needs to be consistent across the files. For example, the spacing around operators should be consistent.

davidtaikocha
davidtaikocha previously approved these changes May 28, 2023
dantaik
dantaik previously approved these changes May 28, 2023
@cyberhorsey cyberhorsey changed the title fix(eventindexer): int => bigint fix(eventindexer): int => string May 28, 2023
@codecov
Copy link

codecov bot commented May 28, 2023

Codecov Report

Merging #13828 (52ce239) into main (7ed816d) will increase coverage by 0.06%.
The diff coverage is 50.00%.

@@            Coverage Diff             @@
##             main   #13828      +/-   ##
==========================================
+ Coverage   47.39%   47.45%   +0.06%     
==========================================
  Files         133      133              
  Lines        3410     3416       +6     
  Branches      310      310              
==========================================
+ Hits         1616     1621       +5     
  Misses       1685     1685              
- Partials      109      110       +1     
Flag Coverage Δ *Carryforward flag
bridge-ui 96.16% <ø> (ø) Carriedforward from 7ed816d
eventindexer 77.51% <50.00%> (+0.13%) ⬆️
protocol 0.00% <ø> (ø) Carriedforward from 7ed816d
relayer 60.59% <ø> (ø) Carriedforward from 7ed816d
ui 100.00% <ø> (ø) Carriedforward from 7ed816d

*This pull request uses carry forward flags. Click here to find out more.

Impacted Files Coverage Δ
packages/eventindexer/repo/stat.go 56.81% <50.00%> (-1.08%) ⬇️

... and 1 file with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@davidtaikocha davidtaikocha added this pull request to the merge queue May 28, 2023
Merged via the queue into main with commit d72b97f May 28, 2023
@davidtaikocha davidtaikocha deleted the stats_migration_fix branch May 28, 2023 06:27
@github-actions github-actions bot mentioned this pull request May 28, 2023
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.

4 participants