Documentation ¶
Overview ¶
Package ethrpc is a generated GoMock package.
Index ¶
- Constants
- type Client
- func (ec *Client) ExchangeCapabilities(ctx context.Context, caps []string) ([]string, error)
- func (ec *Client) ForkchoiceUpdatedV3(ctx context.Context, update *engine.ForkchoiceStateV1, ...) (engine.ForkChoiceResponse, error)
- func (ec *Client) GetChainConfig(ctx context.Context) (*params.ChainConfig, error)
- func (ec *Client) GetClientVersionV1(ctx context.Context, info engine.ClientVersionV1) ([]engine.ClientVersionV1, error)
- func (ec *Client) GetPayloadV4(ctx context.Context, payloadID engine.PayloadID) (*engine.ExecutionPayloadEnvelope, error)
- func (ec *Client) NewPayloadV4(ctx context.Context, params *engine.ExecutableData, blobHashes []common.Hash, ...) (*engine.PayloadStatusV1, error)
- type EngineClient
- type MockEngineClient
- func (m *MockEngineClient) EXPECT() *MockEngineClientMockRecorder
- func (m *MockEngineClient) ExchangeCapabilities(ctx context.Context, caps []string) ([]string, error)
- func (m *MockEngineClient) ForkchoiceUpdatedV3(ctx context.Context, update *engine.ForkchoiceStateV1, ...) (engine.ForkChoiceResponse, error)
- func (m *MockEngineClient) GetChainConfig(ctx context.Context) (*params.ChainConfig, error)
- func (m *MockEngineClient) GetClientVersionV1(ctx context.Context, info engine.ClientVersionV1) ([]engine.ClientVersionV1, error)
- func (m *MockEngineClient) GetPayloadV4(ctx context.Context, payloadID engine.PayloadID) (*engine.ExecutionPayloadEnvelope, error)
- func (m *MockEngineClient) NewPayloadV4(ctx context.Context, params *engine.ExecutableData, ...) (*engine.PayloadStatusV1, error)
- type MockEngineClientMockRecorder
- func (mr *MockEngineClientMockRecorder) ExchangeCapabilities(ctx, caps interface{}) *gomock.Call
- func (mr *MockEngineClientMockRecorder) ForkchoiceUpdatedV3(ctx, update, params interface{}) *gomock.Call
- func (mr *MockEngineClientMockRecorder) GetChainConfig(ctx interface{}) *gomock.Call
- func (mr *MockEngineClientMockRecorder) GetClientVersionV1(ctx, info interface{}) *gomock.Call
- func (mr *MockEngineClientMockRecorder) GetPayloadV4(ctx, payloadID interface{}) *gomock.Call
- func (mr *MockEngineClientMockRecorder) NewPayloadV4(ctx, params, versionedHashes, beaconRoot, requests interface{}) *gomock.Call
Constants ¶
const ( ForkchoiceUpdatedMethodV3 = "engine_forkchoiceUpdatedV3" GetPayloadMethodV4 = "engine_getPayloadV4" NewPayloadMethodV4 = "engine_newPayloadV4" ExchangeCapabilities = "engine_exchangeCapabilities" GetClientVersionV1 = "engine_getClientVersionV1" GetChainConfig = "engine_getChainConfig" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client defines typed wrappers for the Ethereum RPC API.
func DialContext ¶
DialContext connects a client to the given URL with context.
func (*Client) ExchangeCapabilities ¶
func (*Client) ForkchoiceUpdatedV3 ¶
func (ec *Client) ForkchoiceUpdatedV3(ctx context.Context, update *engine.ForkchoiceStateV1, params *engine.PayloadAttributes) (engine.ForkChoiceResponse, error)
func (*Client) GetChainConfig ¶
func (*Client) GetClientVersionV1 ¶
func (ec *Client) GetClientVersionV1(ctx context.Context, info engine.ClientVersionV1) ([]engine.ClientVersionV1, error)
func (*Client) GetPayloadV4 ¶
func (*Client) NewPayloadV4 ¶
type EngineClient ¶
type EngineClient interface { ForkchoiceUpdatedV3(ctx context.Context, update *engine.ForkchoiceStateV1, params *engine.PayloadAttributes) (engine.ForkChoiceResponse, error) GetPayloadV4(ctx context.Context, payloadID engine.PayloadID) (*engine.ExecutionPayloadEnvelope, error) NewPayloadV4(ctx context.Context, params *engine.ExecutableData, versionedHashes []common.Hash, beaconRoot common.Hash, requests [][]byte) (*engine.PayloadStatusV1, error) ExchangeCapabilities(ctx context.Context, caps []string) ([]string, error) GetClientVersionV1(ctx context.Context, info engine.ClientVersionV1) ([]engine.ClientVersionV1, error) GetChainConfig(ctx context.Context) (*params.ChainConfig, error) }
type MockEngineClient ¶
type MockEngineClient struct {
// contains filtered or unexported fields
}
MockEngineClient is a mock of EngineClient interface.
func NewMockEngineClient ¶
func NewMockEngineClient(ctrl *gomock.Controller) *MockEngineClient
NewMockEngineClient creates a new mock instance.
func (*MockEngineClient) EXPECT ¶
func (m *MockEngineClient) EXPECT() *MockEngineClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockEngineClient) ExchangeCapabilities ¶
func (m *MockEngineClient) ExchangeCapabilities(ctx context.Context, caps []string) ([]string, error)
ExchangeCapabilities mocks base method.
func (*MockEngineClient) ForkchoiceUpdatedV3 ¶
func (m *MockEngineClient) ForkchoiceUpdatedV3(ctx context.Context, update *engine.ForkchoiceStateV1, params *engine.PayloadAttributes) (engine.ForkChoiceResponse, error)
ForkchoiceUpdatedV3 mocks base method.
func (*MockEngineClient) GetChainConfig ¶
func (m *MockEngineClient) GetChainConfig(ctx context.Context) (*params.ChainConfig, error)
GetChainConfig mocks base method.
func (*MockEngineClient) GetClientVersionV1 ¶
func (m *MockEngineClient) GetClientVersionV1(ctx context.Context, info engine.ClientVersionV1) ([]engine.ClientVersionV1, error)
GetClientVersionV1 mocks base method.
func (*MockEngineClient) GetPayloadV4 ¶
func (m *MockEngineClient) GetPayloadV4(ctx context.Context, payloadID engine.PayloadID) (*engine.ExecutionPayloadEnvelope, error)
GetPayloadV4 mocks base method.
func (*MockEngineClient) NewPayloadV4 ¶
func (m *MockEngineClient) NewPayloadV4(ctx context.Context, params *engine.ExecutableData, versionedHashes []common.Hash, beaconRoot common.Hash, requests [][]byte) (*engine.PayloadStatusV1, error)
NewPayloadV4 mocks base method.
type MockEngineClientMockRecorder ¶
type MockEngineClientMockRecorder struct {
// contains filtered or unexported fields
}
MockEngineClientMockRecorder is the mock recorder for MockEngineClient.
func (*MockEngineClientMockRecorder) ExchangeCapabilities ¶
func (mr *MockEngineClientMockRecorder) ExchangeCapabilities(ctx, caps interface{}) *gomock.Call
ExchangeCapabilities indicates an expected call of ExchangeCapabilities.
func (*MockEngineClientMockRecorder) ForkchoiceUpdatedV3 ¶
func (mr *MockEngineClientMockRecorder) ForkchoiceUpdatedV3(ctx, update, params interface{}) *gomock.Call
ForkchoiceUpdatedV3 indicates an expected call of ForkchoiceUpdatedV3.
func (*MockEngineClientMockRecorder) GetChainConfig ¶
func (mr *MockEngineClientMockRecorder) GetChainConfig(ctx interface{}) *gomock.Call
GetChainConfig indicates an expected call of GetChainConfig.
func (*MockEngineClientMockRecorder) GetClientVersionV1 ¶
func (mr *MockEngineClientMockRecorder) GetClientVersionV1(ctx, info interface{}) *gomock.Call
GetClientVersionV1 indicates an expected call of GetClientVersionV1.
func (*MockEngineClientMockRecorder) GetPayloadV4 ¶
func (mr *MockEngineClientMockRecorder) GetPayloadV4(ctx, payloadID interface{}) *gomock.Call
GetPayloadV4 indicates an expected call of GetPayloadV4.
func (*MockEngineClientMockRecorder) NewPayloadV4 ¶
func (mr *MockEngineClientMockRecorder) NewPayloadV4(ctx, params, versionedHashes, beaconRoot, requests interface{}) *gomock.Call
NewPayloadV4 indicates an expected call of NewPayloadV4.