-
Notifications
You must be signed in to change notification settings - Fork 1.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
[SHIP-1523] Add X Layer #12747
[SHIP-1523] Add X Layer #12747
Conversation
…1523-xlayer # Conflicts: # integration-tests/go.mod # integration-tests/go.sum # integration-tests/load/go.mod # integration-tests/load/go.sum
I see you added a changeset file but it does not contain a tag. Please edit the text include at least one of the following tags:
|
@@ -9,9 +9,9 @@ import ( | |||
// chainSpecificIsUsable allows for additional logic specific to a particular | |||
// Config that determines whether a transaction should be used for gas estimation | |||
func chainSpecificIsUsable(tx evmtypes.Transaction, baseFee *assets.Wei, chainType config.ChainType, minGasPriceWei *assets.Wei) bool { | |||
if chainType == config.ChainGnosis || chainType == config.ChainXDai { | |||
if chainType == config.ChainGnosis || chainType == config.ChainXDai || chainType == config.ChainXLayer { | |||
// GasPrice 0 on most chains is great since it indicates cheap/free transactions. |
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.
cc @samsondav as you seem to have implemented this back then?
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.
I couldn't find any resources on this for Gnosis, and there don't seem to be any gasless transactions anymore happening on Gnosis. Do you remember what info you based this on?
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.
Looks good.
6cf1052
Quality Gate passedIssues Measures |
* Add X Layer * go mod tidy * Add ChainType for XLayer to ignore transactions with 0 gasPrice * revert switch stmt * update changeset * fix test * add BlockHistoryEstimator test for XLayer
This adds default configs for X Layer, based on the current Polygon zkEVM configs.
Also, add a new
ChainType
parameter that is used to ignore gasless transactions, similar to what's already being implemented for Gnosis.