mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
ethclient/simulated: split gasTipCap and feeHistory interfaces
This commit is contained in:
parent
6b29940218
commit
f016bff493
2 changed files with 8 additions and 3 deletions
|
|
@ -56,7 +56,8 @@ type Client interface {
|
||||||
ethereum.ContractCaller
|
ethereum.ContractCaller
|
||||||
ethereum.GasEstimator
|
ethereum.GasEstimator
|
||||||
ethereum.GasPricer
|
ethereum.GasPricer
|
||||||
ethereum.GasPricer1559
|
ethereum.GasTipCapReader
|
||||||
|
ethereum.FeeHistoryReader
|
||||||
ethereum.LogFilterer
|
ethereum.LogFilterer
|
||||||
ethereum.PendingStateReader
|
ethereum.PendingStateReader
|
||||||
ethereum.PendingContractCaller
|
ethereum.PendingContractCaller
|
||||||
|
|
|
||||||
|
|
@ -199,9 +199,13 @@ type GasPricer interface {
|
||||||
SuggestGasPrice(ctx context.Context) (*big.Int, error)
|
SuggestGasPrice(ctx context.Context) (*big.Int, error)
|
||||||
}
|
}
|
||||||
|
|
||||||
// GasPricer1559 provides access to the EIP-1559 gas price oracle.
|
// GasTipCapReader provides access to the EIP-1559 gas price oracle.
|
||||||
type GasPricer1559 interface {
|
type GasTipCapReader interface {
|
||||||
SuggestGasTipCap(ctx context.Context) (*big.Int, error)
|
SuggestGasTipCap(ctx context.Context) (*big.Int, error)
|
||||||
|
}
|
||||||
|
|
||||||
|
// FeeHistoryReader provides access to the fee history oracle.
|
||||||
|
type FeeHistoryReader interface {
|
||||||
FeeHistory(ctx context.Context, blockCount uint64, lastBlock *big.Int, rewardPercentiles []float64) (*FeeHistory, error)
|
FeeHistory(ctx context.Context, blockCount uint64, lastBlock *big.Int, rewardPercentiles []float64) (*FeeHistory, error)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue