Skip to content

Commit

Permalink
Add L1 gas cost estimation feature to L1 gas oracle (#11812)
Browse files Browse the repository at this point in the history
* Added L1 gas cost estimation feature to L1 gas oracle for Arbitrum, Optimism, and Scroll

* Updated implementation to use ABIs to pack payloads

* Fixed linting

* Addressed feedback

* Fixed linting

* Fixed linting
  • Loading branch information
amit-momin authored Jan 25, 2024
1 parent e214014 commit e20511d
Show file tree
Hide file tree
Showing 8 changed files with 654 additions and 323 deletions.
2 changes: 1 addition & 1 deletion core/chains/evm/gas/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func NewEstimator(lggr logger.Logger, ethClient evmclient.Client, cfg Config, ge
// create l1Oracle only if it is supported for the chain
var l1Oracle rollups.L1Oracle
if rollups.IsRollupWithL1Support(cfg.ChainType()) {
l1Oracle = rollups.NewL1GasPriceOracle(lggr, ethClient, cfg.ChainType())
l1Oracle = rollups.NewL1GasOracle(lggr, ethClient, cfg.ChainType())
}
var newEstimator func(logger.Logger) EvmEstimator
switch s {
Expand Down
196 changes: 0 additions & 196 deletions core/chains/evm/gas/rollups/l1_gas_price_oracle.go

This file was deleted.

125 changes: 0 additions & 125 deletions core/chains/evm/gas/rollups/l1_gas_price_oracle_test.go

This file was deleted.

Loading

0 comments on commit e20511d

Please sign in to comment.