Skip to content

Commit

Permalink
Added L1 gas cost estimation feature to L1 gas oracle for Arbitrum, O…
Browse files Browse the repository at this point in the history
…ptimism, and Scroll
  • Loading branch information
amit-momin committed Jan 18, 2024
1 parent 39847bb commit 3c38d6f
Show file tree
Hide file tree
Showing 7 changed files with 578 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 3c38d6f

Please sign in to comment.