Documentation
¶
Index ¶
- type ChainService
- type ChainService_Expecter
- type ChainService_LatestHead_Call
- func (_c *ChainService_LatestHead_Call) Return(_a0 types.Head, _a1 error) *ChainService_LatestHead_Call
- func (_c *ChainService_LatestHead_Call) Run(run func(ctx context.Context)) *ChainService_LatestHead_Call
- func (_c *ChainService_LatestHead_Call) RunAndReturn(run func(context.Context) (types.Head, error)) *ChainService_LatestHead_Call
- type TargetStrategy
- func (_m *TargetStrategy) EXPECT() *TargetStrategy_Expecter
- func (_m *TargetStrategy) GetEstimateFee(ctx context.Context, report []byte, reportContext []byte, signatures [][]byte, ...) (types.EstimateFee, error)
- func (_m *TargetStrategy) GetTransactionFee(ctx context.Context, transactionID string) (decimal.Decimal, error)
- func (_m *TargetStrategy) GetTransactionStatus(ctx context.Context, transactionID string) (types.TransactionStatus, error)
- func (_m *TargetStrategy) QueryTransmissionState(ctx context.Context, reportID uint16, request capabilities.CapabilityRequest) (*writetarget.TransmissionState, error)
- func (_m *TargetStrategy) TransmitReport(ctx context.Context, report []byte, reportContext []byte, signatures [][]byte, ...) (string, error)
- type TargetStrategy_Expecter
- func (_e *TargetStrategy_Expecter) GetEstimateFee(ctx interface{}, report interface{}, reportContext interface{}, ...) *TargetStrategy_GetEstimateFee_Call
- func (_e *TargetStrategy_Expecter) GetTransactionFee(ctx interface{}, transactionID interface{}) *TargetStrategy_GetTransactionFee_Call
- func (_e *TargetStrategy_Expecter) GetTransactionStatus(ctx interface{}, transactionID interface{}) *TargetStrategy_GetTransactionStatus_Call
- func (_e *TargetStrategy_Expecter) QueryTransmissionState(ctx interface{}, reportID interface{}, request interface{}) *TargetStrategy_QueryTransmissionState_Call
- func (_e *TargetStrategy_Expecter) TransmitReport(ctx interface{}, report interface{}, reportContext interface{}, ...) *TargetStrategy_TransmitReport_Call
- type TargetStrategy_GetEstimateFee_Call
- func (_c *TargetStrategy_GetEstimateFee_Call) Return(_a0 types.EstimateFee, _a1 error) *TargetStrategy_GetEstimateFee_Call
- func (_c *TargetStrategy_GetEstimateFee_Call) Run(...) *TargetStrategy_GetEstimateFee_Call
- func (_c *TargetStrategy_GetEstimateFee_Call) RunAndReturn(...) *TargetStrategy_GetEstimateFee_Call
- type TargetStrategy_GetTransactionFee_Call
- func (_c *TargetStrategy_GetTransactionFee_Call) Return(_a0 decimal.Decimal, _a1 error) *TargetStrategy_GetTransactionFee_Call
- func (_c *TargetStrategy_GetTransactionFee_Call) Run(run func(ctx context.Context, transactionID string)) *TargetStrategy_GetTransactionFee_Call
- func (_c *TargetStrategy_GetTransactionFee_Call) RunAndReturn(run func(context.Context, string) (decimal.Decimal, error)) *TargetStrategy_GetTransactionFee_Call
- type TargetStrategy_GetTransactionStatus_Call
- func (_c *TargetStrategy_GetTransactionStatus_Call) Return(_a0 types.TransactionStatus, _a1 error) *TargetStrategy_GetTransactionStatus_Call
- func (_c *TargetStrategy_GetTransactionStatus_Call) Run(run func(ctx context.Context, transactionID string)) *TargetStrategy_GetTransactionStatus_Call
- func (_c *TargetStrategy_GetTransactionStatus_Call) RunAndReturn(run func(context.Context, string) (types.TransactionStatus, error)) *TargetStrategy_GetTransactionStatus_Call
- type TargetStrategy_QueryTransmissionState_Call
- func (_c *TargetStrategy_QueryTransmissionState_Call) Return(_a0 *writetarget.TransmissionState, _a1 error) *TargetStrategy_QueryTransmissionState_Call
- func (_c *TargetStrategy_QueryTransmissionState_Call) Run(...) *TargetStrategy_QueryTransmissionState_Call
- func (_c *TargetStrategy_QueryTransmissionState_Call) RunAndReturn(...) *TargetStrategy_QueryTransmissionState_Call
- type TargetStrategy_TransmitReport_Call
- func (_c *TargetStrategy_TransmitReport_Call) Return(_a0 string, _a1 error) *TargetStrategy_TransmitReport_Call
- func (_c *TargetStrategy_TransmitReport_Call) Run(...) *TargetStrategy_TransmitReport_Call
- func (_c *TargetStrategy_TransmitReport_Call) RunAndReturn(...) *TargetStrategy_TransmitReport_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChainService ¶
ChainService is an autogenerated mock type for the chainService type
func NewChainService ¶
func NewChainService(t interface {
mock.TestingT
Cleanup(func())
}) *ChainService
NewChainService creates a new instance of ChainService. 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 (*ChainService) EXPECT ¶
func (_m *ChainService) EXPECT() *ChainService_Expecter
func (*ChainService) LatestHead ¶
LatestHead provides a mock function with given fields: ctx
type ChainService_Expecter ¶
type ChainService_Expecter struct {
// contains filtered or unexported fields
}
func (*ChainService_Expecter) LatestHead ¶
func (_e *ChainService_Expecter) LatestHead(ctx interface{}) *ChainService_LatestHead_Call
LatestHead is a helper method to define mock.On call
- ctx context.Context
type ChainService_LatestHead_Call ¶
ChainService_LatestHead_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LatestHead'
func (*ChainService_LatestHead_Call) Return ¶
func (_c *ChainService_LatestHead_Call) Return(_a0 types.Head, _a1 error) *ChainService_LatestHead_Call
func (*ChainService_LatestHead_Call) Run ¶
func (_c *ChainService_LatestHead_Call) Run(run func(ctx context.Context)) *ChainService_LatestHead_Call
func (*ChainService_LatestHead_Call) RunAndReturn ¶
func (_c *ChainService_LatestHead_Call) RunAndReturn(run func(context.Context) (types.Head, error)) *ChainService_LatestHead_Call
type TargetStrategy ¶
TargetStrategy is an autogenerated mock type for the TargetStrategy type
func NewTargetStrategy ¶
func NewTargetStrategy(t interface {
mock.TestingT
Cleanup(func())
}) *TargetStrategy
NewTargetStrategy creates a new instance of TargetStrategy. 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 (*TargetStrategy) EXPECT ¶
func (_m *TargetStrategy) EXPECT() *TargetStrategy_Expecter
func (*TargetStrategy) GetEstimateFee ¶
func (_m *TargetStrategy) GetEstimateFee(ctx context.Context, report []byte, reportContext []byte, signatures [][]byte, request capabilities.CapabilityRequest) (types.EstimateFee, error)
GetEstimateFee provides a mock function with given fields: ctx, report, reportContext, signatures, request
func (*TargetStrategy) GetTransactionFee ¶
func (_m *TargetStrategy) GetTransactionFee(ctx context.Context, transactionID string) (decimal.Decimal, error)
GetTransactionFee provides a mock function with given fields: ctx, transactionID
func (*TargetStrategy) GetTransactionStatus ¶
func (_m *TargetStrategy) GetTransactionStatus(ctx context.Context, transactionID string) (types.TransactionStatus, error)
GetTransactionStatus provides a mock function with given fields: ctx, transactionID
func (*TargetStrategy) QueryTransmissionState ¶
func (_m *TargetStrategy) QueryTransmissionState(ctx context.Context, reportID uint16, request capabilities.CapabilityRequest) (*writetarget.TransmissionState, error)
QueryTransmissionState provides a mock function with given fields: ctx, reportID, request
func (*TargetStrategy) TransmitReport ¶
func (_m *TargetStrategy) TransmitReport(ctx context.Context, report []byte, reportContext []byte, signatures [][]byte, request capabilities.CapabilityRequest) (string, error)
TransmitReport provides a mock function with given fields: ctx, report, reportContext, signatures, request
type TargetStrategy_Expecter ¶
type TargetStrategy_Expecter struct {
// contains filtered or unexported fields
}
func (*TargetStrategy_Expecter) GetEstimateFee ¶
func (_e *TargetStrategy_Expecter) GetEstimateFee(ctx interface{}, report interface{}, reportContext interface{}, signatures interface{}, request interface{}) *TargetStrategy_GetEstimateFee_Call
GetEstimateFee is a helper method to define mock.On call
- ctx context.Context
- report []byte
- reportContext []byte
- signatures [][]byte
- request capabilities.CapabilityRequest
func (*TargetStrategy_Expecter) GetTransactionFee ¶
func (_e *TargetStrategy_Expecter) GetTransactionFee(ctx interface{}, transactionID interface{}) *TargetStrategy_GetTransactionFee_Call
GetTransactionFee is a helper method to define mock.On call
- ctx context.Context
- transactionID string
func (*TargetStrategy_Expecter) GetTransactionStatus ¶
func (_e *TargetStrategy_Expecter) GetTransactionStatus(ctx interface{}, transactionID interface{}) *TargetStrategy_GetTransactionStatus_Call
GetTransactionStatus is a helper method to define mock.On call
- ctx context.Context
- transactionID string
func (*TargetStrategy_Expecter) QueryTransmissionState ¶
func (_e *TargetStrategy_Expecter) QueryTransmissionState(ctx interface{}, reportID interface{}, request interface{}) *TargetStrategy_QueryTransmissionState_Call
QueryTransmissionState is a helper method to define mock.On call
- ctx context.Context
- reportID uint16
- request capabilities.CapabilityRequest
func (*TargetStrategy_Expecter) TransmitReport ¶
func (_e *TargetStrategy_Expecter) TransmitReport(ctx interface{}, report interface{}, reportContext interface{}, signatures interface{}, request interface{}) *TargetStrategy_TransmitReport_Call
TransmitReport is a helper method to define mock.On call
- ctx context.Context
- report []byte
- reportContext []byte
- signatures [][]byte
- request capabilities.CapabilityRequest
type TargetStrategy_GetEstimateFee_Call ¶
TargetStrategy_GetEstimateFee_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetEstimateFee'
func (*TargetStrategy_GetEstimateFee_Call) Return ¶
func (_c *TargetStrategy_GetEstimateFee_Call) Return(_a0 types.EstimateFee, _a1 error) *TargetStrategy_GetEstimateFee_Call
func (*TargetStrategy_GetEstimateFee_Call) Run ¶
func (_c *TargetStrategy_GetEstimateFee_Call) Run(run func(ctx context.Context, report []byte, reportContext []byte, signatures [][]byte, request capabilities.CapabilityRequest)) *TargetStrategy_GetEstimateFee_Call
func (*TargetStrategy_GetEstimateFee_Call) RunAndReturn ¶
func (_c *TargetStrategy_GetEstimateFee_Call) RunAndReturn(run func(context.Context, []byte, []byte, [][]byte, capabilities.CapabilityRequest) (types.EstimateFee, error)) *TargetStrategy_GetEstimateFee_Call
type TargetStrategy_GetTransactionFee_Call ¶
TargetStrategy_GetTransactionFee_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTransactionFee'
func (*TargetStrategy_GetTransactionFee_Call) Return ¶
func (_c *TargetStrategy_GetTransactionFee_Call) Return(_a0 decimal.Decimal, _a1 error) *TargetStrategy_GetTransactionFee_Call
func (*TargetStrategy_GetTransactionFee_Call) Run ¶
func (_c *TargetStrategy_GetTransactionFee_Call) Run(run func(ctx context.Context, transactionID string)) *TargetStrategy_GetTransactionFee_Call
func (*TargetStrategy_GetTransactionFee_Call) RunAndReturn ¶
func (_c *TargetStrategy_GetTransactionFee_Call) RunAndReturn(run func(context.Context, string) (decimal.Decimal, error)) *TargetStrategy_GetTransactionFee_Call
type TargetStrategy_GetTransactionStatus_Call ¶
TargetStrategy_GetTransactionStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTransactionStatus'
func (*TargetStrategy_GetTransactionStatus_Call) Return ¶
func (_c *TargetStrategy_GetTransactionStatus_Call) Return(_a0 types.TransactionStatus, _a1 error) *TargetStrategy_GetTransactionStatus_Call
func (*TargetStrategy_GetTransactionStatus_Call) Run ¶
func (_c *TargetStrategy_GetTransactionStatus_Call) Run(run func(ctx context.Context, transactionID string)) *TargetStrategy_GetTransactionStatus_Call
func (*TargetStrategy_GetTransactionStatus_Call) RunAndReturn ¶
func (_c *TargetStrategy_GetTransactionStatus_Call) RunAndReturn(run func(context.Context, string) (types.TransactionStatus, error)) *TargetStrategy_GetTransactionStatus_Call
type TargetStrategy_QueryTransmissionState_Call ¶
TargetStrategy_QueryTransmissionState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'QueryTransmissionState'
func (*TargetStrategy_QueryTransmissionState_Call) Return ¶
func (_c *TargetStrategy_QueryTransmissionState_Call) Return(_a0 *writetarget.TransmissionState, _a1 error) *TargetStrategy_QueryTransmissionState_Call
func (*TargetStrategy_QueryTransmissionState_Call) Run ¶
func (_c *TargetStrategy_QueryTransmissionState_Call) Run(run func(ctx context.Context, reportID uint16, request capabilities.CapabilityRequest)) *TargetStrategy_QueryTransmissionState_Call
func (*TargetStrategy_QueryTransmissionState_Call) RunAndReturn ¶
func (_c *TargetStrategy_QueryTransmissionState_Call) RunAndReturn(run func(context.Context, uint16, capabilities.CapabilityRequest) (*writetarget.TransmissionState, error)) *TargetStrategy_QueryTransmissionState_Call
type TargetStrategy_TransmitReport_Call ¶
TargetStrategy_TransmitReport_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TransmitReport'
func (*TargetStrategy_TransmitReport_Call) Return ¶
func (_c *TargetStrategy_TransmitReport_Call) Return(_a0 string, _a1 error) *TargetStrategy_TransmitReport_Call
func (*TargetStrategy_TransmitReport_Call) Run ¶
func (_c *TargetStrategy_TransmitReport_Call) Run(run func(ctx context.Context, report []byte, reportContext []byte, signatures [][]byte, request capabilities.CapabilityRequest)) *TargetStrategy_TransmitReport_Call
func (*TargetStrategy_TransmitReport_Call) RunAndReturn ¶
func (_c *TargetStrategy_TransmitReport_Call) RunAndReturn(run func(context.Context, []byte, []byte, [][]byte, capabilities.CapabilityRequest) (string, error)) *TargetStrategy_TransmitReport_Call