-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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(server/v2): add min gas price and check with tx fee #21173
Merged
Merged
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
39d9a69
feat(server/v2): add min gas price and check with tx fee
akhilkumarpilli a00a866
address comment
akhilkumarpilli 1fe5674
Merge branch 'main' into akhil/min-gas-price-config
akhilkumarpilli 36e4aed
address comment
akhilkumarpilli bc8ad35
WIP: add min-gas-prices in main server component
akhilkumarpilli d943ad8
clean and integrate min gas prices in auth
akhilkumarpilli 68f5d6f
Merge branch 'main' into akhil/min-gas-price-config
akhilkumarpilli b1593b5
revert typo
akhilkumarpilli 650bfef
fix lint
akhilkumarpilli a1d39b7
Merge branch 'main' into akhil/min-gas-price-config
akhilkumarpilli f5c1272
WIP: update DeductFeeDecorator
akhilkumarpilli e68de22
Merge branch 'main' into akhil/min-gas-price-config
akhilkumarpilli 7cad0b8
address comments, fix tests
akhilkumarpilli a6e7be5
Merge branch 'main' into akhil/min-gas-price-config
akhilkumarpilli 25528b0
move min-gas-price check to feegrant TxValidator
akhilkumarpilli 2bdda62
revert change and comment
akhilkumarpilli 84fed9e
WIP: return feeTxValidator from auth/tx and revert feegrant changes
akhilkumarpilli 0499d82
Merge branch 'main' into akhil/min-gas-price-config
akhilkumarpilli dc59cae
update approach
akhilkumarpilli ca0a801
fix lint and small changes
akhilkumarpilli aad3d1d
Merge branch 'main' into akhil/min-gas-price-config
akhilkumarpilli 3157565
add todo
akhilkumarpilli 3680c95
Merge branch 'main' into akhil/min-gas-price-config
akhilkumarpilli 44a7c0f
fix lint
akhilkumarpilli 76cbd83
address comments
akhilkumarpilli 166f17e
Merge branch 'main' into akhil/min-gas-price-config
akhilkumarpilli 98d5914
update approach
akhilkumarpilli 93bebd4
emit v2 event and pass feegrant keeper
akhilkumarpilli 50e95fe
address comments
akhilkumarpilli e8365f5
address comments
akhilkumarpilli 331731c
Merge branch 'main' into akhil/min-gas-price-config
julienrbrt 5071eac
remove state struct
julienrbrt ba0d199
updates
julienrbrt 8d9dc75
correct testnet flag
julienrbrt 8e966e6
consistent config placement
julienrbrt 2c3b9d8
fix
julienrbrt 46cef74
ok
julienrbrt 0c5f774
done
julienrbrt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,11 +39,12 @@ type v2KeyChangesMap map[string][]string | |
|
||
// list all the keys which are need to be modified in v2 | ||
var v2KeyChanges = v2KeyChangesMap{ | ||
"min-retain-blocks": []string{"comet.min-retain-blocks"}, | ||
"index-events": []string{"comet.index-events"}, | ||
"halt-height": []string{"comet.halt-height"}, | ||
"halt-time": []string{"comet.halt-time"}, | ||
"app-db-backend": []string{"store.app-db-backend"}, | ||
"minimum-gas-prices": []string{"server.minimum-gas-prices"}, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👌 |
||
"min-retain-blocks": []string{"comet.min-retain-blocks"}, | ||
"index-events": []string{"comet.index-events"}, | ||
"halt-height": []string{"comet.halt-height"}, | ||
"halt-time": []string{"comet.halt-time"}, | ||
"app-db-backend": []string{"store.app-db-backend"}, | ||
"pruning-keep-recent": []string{ | ||
"store.options.ss-pruning-option.keep-recent", | ||
"store.options.sc-pruning-option.keep-recent", | ||
|
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Addition of
initServerConfig
function enhances configurability.The function allows chain developers to set a default
MinGasPrices
value, enhancing flexibility. However, consider making theMinGasPrices
value configurable to accommodate different chain denominations more effectively.Consider adding a parameter to the
initServerConfig
function to allow passing the defaultMinGasPrices
value, making it more adaptable to different chains.