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

global fee refactor #2316

Merged
merged 32 commits into from
Apr 3, 2023
Merged

global fee refactor #2316

merged 32 commits into from
Apr 3, 2023

Conversation

sainoe
Copy link
Contributor

@sainoe sainoe commented Mar 21, 2023

closes: #2321

x/globalfee/ante/antetest/fee_test.go Outdated Show resolved Hide resolved
},
uint64(1000),
expCoins,
},
Copy link
Contributor

Choose a reason for hiding this comment

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

can add test case for:

  • zero coins min gas price, get empty coins
  • zero coins, non-zero coins mix min gas price, get only the non-zero coins

x/globalfee/ante/antetest/fee_test.go Show resolved Hide resolved
x/globalfee/ante/antetest/fee_test.go Show resolved Hide resolved
x/globalfee/ante/antetest/fee_test.go Outdated Show resolved Hide resolved
x/globalfee/ante/antetest/fee_test.go Outdated Show resolved Hide resolved
x/globalfee/ante/antetest/fee_test.go Outdated Show resolved Hide resolved
x/globalfee/ante/antetest/fee_test.go Outdated Show resolved Hide resolved
x/globalfee/ante/fee.go Show resolved Hide resolved
x/globalfee/ante/fee.go Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Mar 21, 2023

Codecov Report

Merging #2316 (c6bde62) into main (715b5f5) will increase coverage by 0.91%.
The diff coverage is 89.01%.

❗ Current head c6bde62 differs from pull request most recent head ebc3824. Consider uploading reports for the commit ebc3824 to get more accurate results

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2316      +/-   ##
==========================================
+ Coverage   83.40%   84.32%   +0.91%     
==========================================
  Files          22       22              
  Lines        1555     1544      -11     
==========================================
+ Hits         1297     1302       +5     
+ Misses        207      194      -13     
+ Partials       51       48       -3     
Impacted Files Coverage Δ
ante/ante.go 46.66% <ø> (-3.34%) ⬇️
x/globalfee/module.go 83.92% <0.00%> (-4.76%) ⬇️
x/globalfee/ante/fee.go 87.09% <88.88%> (-0.79%) ⬇️
x/globalfee/ante/antetest/fee_test_setup.go 87.83% <100.00%> (+2.12%) ⬆️
x/globalfee/ante/fee_utils.go 97.61% <100.00%> (+8.82%) ⬆️
x/globalfee/types/params.go 100.00% <100.00%> (+21.05%) ⬆️

x/globalfee/types/params.go Outdated Show resolved Hide resolved
x/globalfee/types/params.go Outdated Show resolved Hide resolved
Yaru Wang and others added 2 commits March 23, 2023 10:23
Copy link
Contributor

@mpoke mpoke left a comment

Choose a reason for hiding this comment

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

LGTM. Just some nits.

docs/modules/globalfee.md Show resolved Hide resolved
x/globalfee/ante/fee.go Outdated Show resolved Hide resolved
x/globalfee/ante/fee.go Outdated Show resolved Hide resolved
x/globalfee/ante/fee.go Outdated Show resolved Hide resolved
x/globalfee/ante/fee_utils.go Outdated Show resolved Hide resolved
x/globalfee/ante/fee_utils.go Outdated Show resolved Hide resolved
@yaruwangway yaruwangway mentioned this pull request Mar 24, 2023
9 tasks
@sainoe sainoe merged commit 5e389ac into main Apr 3, 2023
@sainoe sainoe deleted the sainoe/global_fee branch April 3, 2023 08:39
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.

improve the code in global fee
4 participants