ethereum: rename to GasPricer1559

It's not a 'reader' since the result is computed by the oracle.
This commit is contained in:
Felix Lange 2024-01-10 12:39:56 +01:00
parent f016bff493
commit f895169007
2 changed files with 3 additions and 3 deletions

View file

@ -56,7 +56,7 @@ type Client interface {
ethereum.ContractCaller ethereum.ContractCaller
ethereum.GasEstimator ethereum.GasEstimator
ethereum.GasPricer ethereum.GasPricer
ethereum.GasTipCapReader ethereum.GasPricer1559
ethereum.FeeHistoryReader ethereum.FeeHistoryReader
ethereum.LogFilterer ethereum.LogFilterer
ethereum.PendingStateReader ethereum.PendingStateReader

View file

@ -199,8 +199,8 @@ type GasPricer interface {
SuggestGasPrice(ctx context.Context) (*big.Int, error) SuggestGasPrice(ctx context.Context) (*big.Int, error)
} }
// GasTipCapReader provides access to the EIP-1559 gas price oracle. // GasPricer1559 provides access to the EIP-1559 gas price oracle.
type GasTipCapReader interface { type GasPricer1559 interface {
SuggestGasTipCap(ctx context.Context) (*big.Int, error) SuggestGasTipCap(ctx context.Context) (*big.Int, error)
} }