Documentation ¶
Index ¶
- type OracleBackendChain
- func (_m *OracleBackendChain) BlockByHash(ctx context.Context, hash common.Hash) (*types.Block, error)
- func (_m *OracleBackendChain) BlockByNumber(ctx context.Context, number *big.Int) (*types.Block, error)
- func (_m *OracleBackendChain) ChainConfig() *params.ChainConfig
- func (_m *OracleBackendChain) HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error)
- func (_m *OracleBackendChain) SuggestGasPrice(ctx context.Context) (*big.Int, error)
- func (_m *OracleBackendChain) SuggestGasTipCap(ctx context.Context) (*big.Int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OracleBackendChain ¶
OracleBackendChain is an autogenerated mock type for the OracleBackendChain type
func NewOracleBackendChain ¶ added in v0.0.14
func NewOracleBackendChain(t mockConstructorTestingTNewOracleBackendChain) *OracleBackendChain
NewOracleBackendChain creates a new instance of OracleBackendChain. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*OracleBackendChain) BlockByHash ¶
func (_m *OracleBackendChain) BlockByHash(ctx context.Context, hash common.Hash) (*types.Block, error)
BlockByHash provides a mock function with given fields: ctx, hash
func (*OracleBackendChain) BlockByNumber ¶
func (_m *OracleBackendChain) BlockByNumber(ctx context.Context, number *big.Int) (*types.Block, error)
BlockByNumber provides a mock function with given fields: ctx, number
func (*OracleBackendChain) ChainConfig ¶
func (_m *OracleBackendChain) ChainConfig() *params.ChainConfig
ChainConfig provides a mock function with given fields:
func (*OracleBackendChain) HeaderByNumber ¶
func (_m *OracleBackendChain) HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error)
HeaderByNumber provides a mock function with given fields: ctx, number
func (*OracleBackendChain) SuggestGasPrice ¶
SuggestGasPrice provides a mock function with given fields: ctx
func (*OracleBackendChain) SuggestGasTipCap ¶
SuggestGasTipCap provides a mock function with given fields: ctx