Documentation
¶
Index ¶
- type EVMClient
- func (_m *EVMClient) CallContract(_a0 sdk.Runtime, _a1 *evm.CallContractRequest) sdk.Promise[*evm.CallContractReply]
- func (_m *EVMClient) EXPECT() *EVMClient_Expecter
- func (_m *EVMClient) FilterLogs(_a0 sdk.Runtime, _a1 *evm.FilterLogsRequest) sdk.Promise[*evm.FilterLogsReply]
- func (_m *EVMClient) RegisterLogTracking(_a0 sdk.Runtime, _a1 *evm.RegisterLogTrackingRequest) sdk.Promise[*emptypb.Empty]
- func (_m *EVMClient) UnregisterLogTracking(_a0 sdk.Runtime, _a1 *evm.UnregisterLogTrackingRequest) sdk.Promise[*emptypb.Empty]
- func (_m *EVMClient) WriteReport(_a0 sdk.Runtime, _a1 *evm.WriteReportRequest) sdk.Promise[*evm.WriteReportReply]
- type EVMClient_CallContract_Call
- func (_c *EVMClient_CallContract_Call) Return(_a0 sdk.Promise[*evm.CallContractReply]) *EVMClient_CallContract_Call
- func (_c *EVMClient_CallContract_Call) Run(run func(_a0 sdk.Runtime, _a1 *evm.CallContractRequest)) *EVMClient_CallContract_Call
- func (_c *EVMClient_CallContract_Call) RunAndReturn(...) *EVMClient_CallContract_Call
- type EVMClient_Expecter
- func (_e *EVMClient_Expecter) CallContract(_a0 interface{}, _a1 interface{}) *EVMClient_CallContract_Call
- func (_e *EVMClient_Expecter) FilterLogs(_a0 interface{}, _a1 interface{}) *EVMClient_FilterLogs_Call
- func (_e *EVMClient_Expecter) RegisterLogTracking(_a0 interface{}, _a1 interface{}) *EVMClient_RegisterLogTracking_Call
- func (_e *EVMClient_Expecter) UnregisterLogTracking(_a0 interface{}, _a1 interface{}) *EVMClient_UnregisterLogTracking_Call
- func (_e *EVMClient_Expecter) WriteReport(_a0 interface{}, _a1 interface{}) *EVMClient_WriteReport_Call
- type EVMClient_FilterLogs_Call
- func (_c *EVMClient_FilterLogs_Call) Return(_a0 sdk.Promise[*evm.FilterLogsReply]) *EVMClient_FilterLogs_Call
- func (_c *EVMClient_FilterLogs_Call) Run(run func(_a0 sdk.Runtime, _a1 *evm.FilterLogsRequest)) *EVMClient_FilterLogs_Call
- func (_c *EVMClient_FilterLogs_Call) RunAndReturn(...) *EVMClient_FilterLogs_Call
- type EVMClient_RegisterLogTracking_Call
- func (_c *EVMClient_RegisterLogTracking_Call) Return(_a0 sdk.Promise[*emptypb.Empty]) *EVMClient_RegisterLogTracking_Call
- func (_c *EVMClient_RegisterLogTracking_Call) Run(run func(_a0 sdk.Runtime, _a1 *evm.RegisterLogTrackingRequest)) *EVMClient_RegisterLogTracking_Call
- func (_c *EVMClient_RegisterLogTracking_Call) RunAndReturn(...) *EVMClient_RegisterLogTracking_Call
- type EVMClient_UnregisterLogTracking_Call
- func (_c *EVMClient_UnregisterLogTracking_Call) Return(_a0 sdk.Promise[*emptypb.Empty]) *EVMClient_UnregisterLogTracking_Call
- func (_c *EVMClient_UnregisterLogTracking_Call) Run(run func(_a0 sdk.Runtime, _a1 *evm.UnregisterLogTrackingRequest)) *EVMClient_UnregisterLogTracking_Call
- func (_c *EVMClient_UnregisterLogTracking_Call) RunAndReturn(...) *EVMClient_UnregisterLogTracking_Call
- type EVMClient_WriteReport_Call
- func (_c *EVMClient_WriteReport_Call) Return(_a0 sdk.Promise[*evm.WriteReportReply]) *EVMClient_WriteReport_Call
- func (_c *EVMClient_WriteReport_Call) Run(run func(_a0 sdk.Runtime, _a1 *evm.WriteReportRequest)) *EVMClient_WriteReport_Call
- func (_c *EVMClient_WriteReport_Call) RunAndReturn(...) *EVMClient_WriteReport_Call
- type Runtime
- func (_m *Runtime) CallCapability(request *pb.CapabilityRequest) sdk.Promise[*pb.CapabilityResponse]
- func (_m *Runtime) EXPECT() *Runtime_Expecter
- func (_m *Runtime) GenerateReport(_a0 *pb.ReportRequest) sdk.Promise[*pb.ReportResponse]
- func (_m *Runtime) Rand() (*rand.Rand, error)
- func (_m *Runtime) RunInNodeMode(fn func(sdk.NodeRuntime) *pb.SimpleConsensusInputs) sdk.Promise[values.Value]
- type Runtime_CallCapability_Call
- func (_c *Runtime_CallCapability_Call) Return(_a0 sdk.Promise[*pb.CapabilityResponse]) *Runtime_CallCapability_Call
- func (_c *Runtime_CallCapability_Call) Run(run func(request *pb.CapabilityRequest)) *Runtime_CallCapability_Call
- func (_c *Runtime_CallCapability_Call) RunAndReturn(run func(*pb.CapabilityRequest) sdk.Promise[*pb.CapabilityResponse]) *Runtime_CallCapability_Call
- type Runtime_Expecter
- func (_e *Runtime_Expecter) CallCapability(request interface{}) *Runtime_CallCapability_Call
- func (_e *Runtime_Expecter) GenerateReport(_a0 interface{}) *Runtime_GenerateReport_Call
- func (_e *Runtime_Expecter) Rand() *Runtime_Rand_Call
- func (_e *Runtime_Expecter) RunInNodeMode(fn interface{}) *Runtime_RunInNodeMode_Call
- type Runtime_GenerateReport_Call
- func (_c *Runtime_GenerateReport_Call) Return(_a0 sdk.Promise[*pb.ReportResponse]) *Runtime_GenerateReport_Call
- func (_c *Runtime_GenerateReport_Call) Run(run func(_a0 *pb.ReportRequest)) *Runtime_GenerateReport_Call
- func (_c *Runtime_GenerateReport_Call) RunAndReturn(run func(*pb.ReportRequest) sdk.Promise[*pb.ReportResponse]) *Runtime_GenerateReport_Call
- type Runtime_Rand_Call
- type Runtime_RunInNodeMode_Call
- func (_c *Runtime_RunInNodeMode_Call) Return(_a0 sdk.Promise[values.Value]) *Runtime_RunInNodeMode_Call
- func (_c *Runtime_RunInNodeMode_Call) Run(run func(fn func(sdk.NodeRuntime) *pb.SimpleConsensusInputs)) *Runtime_RunInNodeMode_Call
- func (_c *Runtime_RunInNodeMode_Call) RunAndReturn(...) *Runtime_RunInNodeMode_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EVMClient ¶
EVMClient is an autogenerated mock type for the EVMClient type
func NewEVMClient ¶
NewEVMClient creates a new instance of EVMClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*EVMClient) CallContract ¶
func (_m *EVMClient) CallContract(_a0 sdk.Runtime, _a1 *evm.CallContractRequest) sdk.Promise[*evm.CallContractReply]
CallContract provides a mock function with given fields: _a0, _a1
func (*EVMClient) EXPECT ¶
func (_m *EVMClient) EXPECT() *EVMClient_Expecter
func (*EVMClient) FilterLogs ¶
func (_m *EVMClient) FilterLogs(_a0 sdk.Runtime, _a1 *evm.FilterLogsRequest) sdk.Promise[*evm.FilterLogsReply]
FilterLogs provides a mock function with given fields: _a0, _a1
func (*EVMClient) RegisterLogTracking ¶
func (_m *EVMClient) RegisterLogTracking(_a0 sdk.Runtime, _a1 *evm.RegisterLogTrackingRequest) sdk.Promise[*emptypb.Empty]
RegisterLogTracking provides a mock function with given fields: _a0, _a1
func (*EVMClient) UnregisterLogTracking ¶
func (_m *EVMClient) UnregisterLogTracking(_a0 sdk.Runtime, _a1 *evm.UnregisterLogTrackingRequest) sdk.Promise[*emptypb.Empty]
UnregisterLogTracking provides a mock function with given fields: _a0, _a1
func (*EVMClient) WriteReport ¶
func (_m *EVMClient) WriteReport(_a0 sdk.Runtime, _a1 *evm.WriteReportRequest) sdk.Promise[*evm.WriteReportReply]
WriteReport provides a mock function with given fields: _a0, _a1
type EVMClient_CallContract_Call ¶
EVMClient_CallContract_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CallContract'
func (*EVMClient_CallContract_Call) Return ¶
func (_c *EVMClient_CallContract_Call) Return(_a0 sdk.Promise[*evm.CallContractReply]) *EVMClient_CallContract_Call
func (*EVMClient_CallContract_Call) Run ¶
func (_c *EVMClient_CallContract_Call) Run(run func(_a0 sdk.Runtime, _a1 *evm.CallContractRequest)) *EVMClient_CallContract_Call
func (*EVMClient_CallContract_Call) RunAndReturn ¶
func (_c *EVMClient_CallContract_Call) RunAndReturn(run func(sdk.Runtime, *evm.CallContractRequest) sdk.Promise[*evm.CallContractReply]) *EVMClient_CallContract_Call
type EVMClient_Expecter ¶
type EVMClient_Expecter struct {
// contains filtered or unexported fields
}
func (*EVMClient_Expecter) CallContract ¶
func (_e *EVMClient_Expecter) CallContract(_a0 interface{}, _a1 interface{}) *EVMClient_CallContract_Call
CallContract is a helper method to define mock.On call
- _a0 sdk.Runtime
- _a1 *evm.CallContractRequest
func (*EVMClient_Expecter) FilterLogs ¶
func (_e *EVMClient_Expecter) FilterLogs(_a0 interface{}, _a1 interface{}) *EVMClient_FilterLogs_Call
FilterLogs is a helper method to define mock.On call
- _a0 sdk.Runtime
- _a1 *evm.FilterLogsRequest
func (*EVMClient_Expecter) RegisterLogTracking ¶
func (_e *EVMClient_Expecter) RegisterLogTracking(_a0 interface{}, _a1 interface{}) *EVMClient_RegisterLogTracking_Call
RegisterLogTracking is a helper method to define mock.On call
- _a0 sdk.Runtime
- _a1 *evm.RegisterLogTrackingRequest
func (*EVMClient_Expecter) UnregisterLogTracking ¶
func (_e *EVMClient_Expecter) UnregisterLogTracking(_a0 interface{}, _a1 interface{}) *EVMClient_UnregisterLogTracking_Call
UnregisterLogTracking is a helper method to define mock.On call
- _a0 sdk.Runtime
- _a1 *evm.UnregisterLogTrackingRequest
func (*EVMClient_Expecter) WriteReport ¶
func (_e *EVMClient_Expecter) WriteReport(_a0 interface{}, _a1 interface{}) *EVMClient_WriteReport_Call
WriteReport is a helper method to define mock.On call
- _a0 sdk.Runtime
- _a1 *evm.WriteReportRequest
type EVMClient_FilterLogs_Call ¶
EVMClient_FilterLogs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FilterLogs'
func (*EVMClient_FilterLogs_Call) Return ¶
func (_c *EVMClient_FilterLogs_Call) Return(_a0 sdk.Promise[*evm.FilterLogsReply]) *EVMClient_FilterLogs_Call
func (*EVMClient_FilterLogs_Call) Run ¶
func (_c *EVMClient_FilterLogs_Call) Run(run func(_a0 sdk.Runtime, _a1 *evm.FilterLogsRequest)) *EVMClient_FilterLogs_Call
func (*EVMClient_FilterLogs_Call) RunAndReturn ¶
func (_c *EVMClient_FilterLogs_Call) RunAndReturn(run func(sdk.Runtime, *evm.FilterLogsRequest) sdk.Promise[*evm.FilterLogsReply]) *EVMClient_FilterLogs_Call
type EVMClient_RegisterLogTracking_Call ¶
EVMClient_RegisterLogTracking_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RegisterLogTracking'
func (*EVMClient_RegisterLogTracking_Call) Return ¶
func (_c *EVMClient_RegisterLogTracking_Call) Return(_a0 sdk.Promise[*emptypb.Empty]) *EVMClient_RegisterLogTracking_Call
func (*EVMClient_RegisterLogTracking_Call) Run ¶
func (_c *EVMClient_RegisterLogTracking_Call) Run(run func(_a0 sdk.Runtime, _a1 *evm.RegisterLogTrackingRequest)) *EVMClient_RegisterLogTracking_Call
func (*EVMClient_RegisterLogTracking_Call) RunAndReturn ¶
func (_c *EVMClient_RegisterLogTracking_Call) RunAndReturn(run func(sdk.Runtime, *evm.RegisterLogTrackingRequest) sdk.Promise[*emptypb.Empty]) *EVMClient_RegisterLogTracking_Call
type EVMClient_UnregisterLogTracking_Call ¶
EVMClient_UnregisterLogTracking_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UnregisterLogTracking'
func (*EVMClient_UnregisterLogTracking_Call) Return ¶
func (_c *EVMClient_UnregisterLogTracking_Call) Return(_a0 sdk.Promise[*emptypb.Empty]) *EVMClient_UnregisterLogTracking_Call
func (*EVMClient_UnregisterLogTracking_Call) Run ¶
func (_c *EVMClient_UnregisterLogTracking_Call) Run(run func(_a0 sdk.Runtime, _a1 *evm.UnregisterLogTrackingRequest)) *EVMClient_UnregisterLogTracking_Call
func (*EVMClient_UnregisterLogTracking_Call) RunAndReturn ¶
func (_c *EVMClient_UnregisterLogTracking_Call) RunAndReturn(run func(sdk.Runtime, *evm.UnregisterLogTrackingRequest) sdk.Promise[*emptypb.Empty]) *EVMClient_UnregisterLogTracking_Call
type EVMClient_WriteReport_Call ¶
EVMClient_WriteReport_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WriteReport'
func (*EVMClient_WriteReport_Call) Return ¶
func (_c *EVMClient_WriteReport_Call) Return(_a0 sdk.Promise[*evm.WriteReportReply]) *EVMClient_WriteReport_Call
func (*EVMClient_WriteReport_Call) Run ¶
func (_c *EVMClient_WriteReport_Call) Run(run func(_a0 sdk.Runtime, _a1 *evm.WriteReportRequest)) *EVMClient_WriteReport_Call
func (*EVMClient_WriteReport_Call) RunAndReturn ¶
func (_c *EVMClient_WriteReport_Call) RunAndReturn(run func(sdk.Runtime, *evm.WriteReportRequest) sdk.Promise[*evm.WriteReportReply]) *EVMClient_WriteReport_Call
type Runtime ¶
Runtime is an autogenerated mock type for the Runtime type
func NewRuntime ¶
NewRuntime creates a new instance of Runtime. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Runtime) CallCapability ¶
func (_m *Runtime) CallCapability(request *pb.CapabilityRequest) sdk.Promise[*pb.CapabilityResponse]
CallCapability provides a mock function with given fields: request
func (*Runtime) EXPECT ¶
func (_m *Runtime) EXPECT() *Runtime_Expecter
func (*Runtime) GenerateReport ¶
func (_m *Runtime) GenerateReport(_a0 *pb.ReportRequest) sdk.Promise[*pb.ReportResponse]
GenerateReport provides a mock function with given fields: _a0
func (*Runtime) RunInNodeMode ¶
func (_m *Runtime) RunInNodeMode(fn func(sdk.NodeRuntime) *pb.SimpleConsensusInputs) sdk.Promise[values.Value]
RunInNodeMode provides a mock function with given fields: fn
type Runtime_CallCapability_Call ¶
Runtime_CallCapability_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CallCapability'
func (*Runtime_CallCapability_Call) Return ¶
func (_c *Runtime_CallCapability_Call) Return(_a0 sdk.Promise[*pb.CapabilityResponse]) *Runtime_CallCapability_Call
func (*Runtime_CallCapability_Call) Run ¶
func (_c *Runtime_CallCapability_Call) Run(run func(request *pb.CapabilityRequest)) *Runtime_CallCapability_Call
func (*Runtime_CallCapability_Call) RunAndReturn ¶
func (_c *Runtime_CallCapability_Call) RunAndReturn(run func(*pb.CapabilityRequest) sdk.Promise[*pb.CapabilityResponse]) *Runtime_CallCapability_Call
type Runtime_Expecter ¶
type Runtime_Expecter struct {
// contains filtered or unexported fields
}
func (*Runtime_Expecter) CallCapability ¶
func (_e *Runtime_Expecter) CallCapability(request interface{}) *Runtime_CallCapability_Call
CallCapability is a helper method to define mock.On call
- request *pb.CapabilityRequest
func (*Runtime_Expecter) GenerateReport ¶
func (_e *Runtime_Expecter) GenerateReport(_a0 interface{}) *Runtime_GenerateReport_Call
GenerateReport is a helper method to define mock.On call
- _a0 *pb.ReportRequest
func (*Runtime_Expecter) Rand ¶
func (_e *Runtime_Expecter) Rand() *Runtime_Rand_Call
Rand is a helper method to define mock.On call
func (*Runtime_Expecter) RunInNodeMode ¶
func (_e *Runtime_Expecter) RunInNodeMode(fn interface{}) *Runtime_RunInNodeMode_Call
RunInNodeMode is a helper method to define mock.On call
- fn func(sdk.NodeRuntime) *pb.SimpleConsensusInputs
type Runtime_GenerateReport_Call ¶
Runtime_GenerateReport_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GenerateReport'
func (*Runtime_GenerateReport_Call) Return ¶
func (_c *Runtime_GenerateReport_Call) Return(_a0 sdk.Promise[*pb.ReportResponse]) *Runtime_GenerateReport_Call
func (*Runtime_GenerateReport_Call) Run ¶
func (_c *Runtime_GenerateReport_Call) Run(run func(_a0 *pb.ReportRequest)) *Runtime_GenerateReport_Call
func (*Runtime_GenerateReport_Call) RunAndReturn ¶
func (_c *Runtime_GenerateReport_Call) RunAndReturn(run func(*pb.ReportRequest) sdk.Promise[*pb.ReportResponse]) *Runtime_GenerateReport_Call
type Runtime_Rand_Call ¶
Runtime_Rand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Rand'
func (*Runtime_Rand_Call) Return ¶
func (_c *Runtime_Rand_Call) Return(_a0 *rand.Rand, _a1 error) *Runtime_Rand_Call
func (*Runtime_Rand_Call) Run ¶
func (_c *Runtime_Rand_Call) Run(run func()) *Runtime_Rand_Call
func (*Runtime_Rand_Call) RunAndReturn ¶
func (_c *Runtime_Rand_Call) RunAndReturn(run func() (*rand.Rand, error)) *Runtime_Rand_Call
type Runtime_RunInNodeMode_Call ¶
Runtime_RunInNodeMode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RunInNodeMode'
func (*Runtime_RunInNodeMode_Call) Return ¶
func (_c *Runtime_RunInNodeMode_Call) Return(_a0 sdk.Promise[values.Value]) *Runtime_RunInNodeMode_Call
func (*Runtime_RunInNodeMode_Call) Run ¶
func (_c *Runtime_RunInNodeMode_Call) Run(run func(fn func(sdk.NodeRuntime) *pb.SimpleConsensusInputs)) *Runtime_RunInNodeMode_Call
func (*Runtime_RunInNodeMode_Call) RunAndReturn ¶
func (_c *Runtime_RunInNodeMode_Call) RunAndReturn(run func(func(sdk.NodeRuntime) *pb.SimpleConsensusInputs) sdk.Promise[values.Value]) *Runtime_RunInNodeMode_Call