2021-02-23 14:50:47 +00:00
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
|
|
|
// Source: github.com/filecoin-project/lotus/cli (interfaces: ServicesAPI)
|
|
|
|
|
|
|
|
// Package cli is a generated GoMock package.
|
|
|
|
package cli
|
|
|
|
|
|
|
|
import (
|
|
|
|
context "context"
|
|
|
|
go_address "github.com/filecoin-project/go-address"
|
|
|
|
abi "github.com/filecoin-project/go-state-types/abi"
|
2021-03-24 14:12:35 +00:00
|
|
|
big "github.com/filecoin-project/go-state-types/big"
|
|
|
|
api "github.com/filecoin-project/lotus/api"
|
|
|
|
types "github.com/filecoin-project/lotus/chain/types"
|
2021-02-23 14:50:47 +00:00
|
|
|
gomock "github.com/golang/mock/gomock"
|
|
|
|
reflect "reflect"
|
|
|
|
)
|
|
|
|
|
|
|
|
// MockServicesAPI is a mock of ServicesAPI interface
|
|
|
|
type MockServicesAPI struct {
|
|
|
|
ctrl *gomock.Controller
|
|
|
|
recorder *MockServicesAPIMockRecorder
|
|
|
|
}
|
|
|
|
|
|
|
|
// MockServicesAPIMockRecorder is the mock recorder for MockServicesAPI
|
|
|
|
type MockServicesAPIMockRecorder struct {
|
|
|
|
mock *MockServicesAPI
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewMockServicesAPI creates a new mock instance
|
|
|
|
func NewMockServicesAPI(ctrl *gomock.Controller) *MockServicesAPI {
|
|
|
|
mock := &MockServicesAPI{ctrl: ctrl}
|
|
|
|
mock.recorder = &MockServicesAPIMockRecorder{mock}
|
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
|
|
func (m *MockServicesAPI) EXPECT() *MockServicesAPIMockRecorder {
|
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
|
|
|
// Close mocks base method
|
|
|
|
func (m *MockServicesAPI) Close() error {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "Close")
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// Close indicates an expected call of Close
|
|
|
|
func (mr *MockServicesAPIMockRecorder) Close() *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockServicesAPI)(nil).Close))
|
|
|
|
}
|
|
|
|
|
|
|
|
// DecodeTypedParamsFromJSON mocks base method
|
|
|
|
func (m *MockServicesAPI) DecodeTypedParamsFromJSON(arg0 context.Context, arg1 go_address.Address, arg2 abi.MethodNum, arg3 string) ([]byte, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "DecodeTypedParamsFromJSON", arg0, arg1, arg2, arg3)
|
|
|
|
ret0, _ := ret[0].([]byte)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// DecodeTypedParamsFromJSON indicates an expected call of DecodeTypedParamsFromJSON
|
|
|
|
func (mr *MockServicesAPIMockRecorder) DecodeTypedParamsFromJSON(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DecodeTypedParamsFromJSON", reflect.TypeOf((*MockServicesAPI)(nil).DecodeTypedParamsFromJSON), arg0, arg1, arg2, arg3)
|
|
|
|
}
|
|
|
|
|
2021-03-27 14:35:46 +00:00
|
|
|
// FullNodeAPI mocks base method
|
|
|
|
func (m *MockServicesAPI) FullNodeAPI() api.FullNode {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "FullNodeAPI")
|
|
|
|
ret0, _ := ret[0].(api.FullNode)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// FullNodeAPI indicates an expected call of FullNodeAPI
|
|
|
|
func (mr *MockServicesAPIMockRecorder) FullNodeAPI() *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FullNodeAPI", reflect.TypeOf((*MockServicesAPI)(nil).FullNodeAPI))
|
|
|
|
}
|
|
|
|
|
2021-03-24 14:12:35 +00:00
|
|
|
// GetBaseFee mocks base method
|
|
|
|
func (m *MockServicesAPI) GetBaseFee(arg0 context.Context) (big.Int, error) {
|
2021-02-23 14:50:47 +00:00
|
|
|
m.ctrl.T.Helper()
|
2021-03-24 14:12:35 +00:00
|
|
|
ret := m.ctrl.Call(m, "GetBaseFee", arg0)
|
|
|
|
ret0, _ := ret[0].(big.Int)
|
2021-02-23 14:50:47 +00:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2021-03-24 14:12:35 +00:00
|
|
|
// GetBaseFee indicates an expected call of GetBaseFee
|
|
|
|
func (mr *MockServicesAPIMockRecorder) GetBaseFee(arg0 interface{}) *gomock.Call {
|
2021-02-23 14:50:47 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-03-24 14:12:35 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBaseFee", reflect.TypeOf((*MockServicesAPI)(nil).GetBaseFee), arg0)
|
|
|
|
}
|
|
|
|
|
|
|
|
// MessageForSend mocks base method
|
2021-03-27 14:35:46 +00:00
|
|
|
func (m *MockServicesAPI) MessageForSend(arg0 context.Context, arg1 SendParams) (*api.MessagePrototype, error) {
|
2021-03-24 14:12:35 +00:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "MessageForSend", arg0, arg1)
|
2021-03-27 14:35:46 +00:00
|
|
|
ret0, _ := ret[0].(*api.MessagePrototype)
|
2021-03-24 14:12:35 +00:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// MessageForSend indicates an expected call of MessageForSend
|
|
|
|
func (mr *MockServicesAPIMockRecorder) MessageForSend(arg0, arg1 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MessageForSend", reflect.TypeOf((*MockServicesAPI)(nil).MessageForSend), arg0, arg1)
|
|
|
|
}
|
|
|
|
|
|
|
|
// PublishMessage mocks base method
|
2021-03-27 14:35:46 +00:00
|
|
|
func (m *MockServicesAPI) PublishMessage(arg0 context.Context, arg1 *api.MessagePrototype, arg2 bool) (*types.SignedMessage, [][]api.MessageCheckStatus, error) {
|
2021-03-24 14:12:35 +00:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "PublishMessage", arg0, arg1, arg2)
|
|
|
|
ret0, _ := ret[0].(*types.SignedMessage)
|
|
|
|
ret1, _ := ret[1].([][]api.MessageCheckStatus)
|
|
|
|
ret2, _ := ret[2].(error)
|
|
|
|
return ret0, ret1, ret2
|
|
|
|
}
|
|
|
|
|
|
|
|
// PublishMessage indicates an expected call of PublishMessage
|
|
|
|
func (mr *MockServicesAPIMockRecorder) PublishMessage(arg0, arg1, arg2 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PublishMessage", reflect.TypeOf((*MockServicesAPI)(nil).PublishMessage), arg0, arg1, arg2)
|
|
|
|
}
|
|
|
|
|
|
|
|
// RunChecksForPrototype mocks base method
|
2021-03-27 14:35:46 +00:00
|
|
|
func (m *MockServicesAPI) RunChecksForPrototype(arg0 context.Context, arg1 *api.MessagePrototype) ([][]api.MessageCheckStatus, error) {
|
2021-03-24 14:12:35 +00:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "RunChecksForPrototype", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].([][]api.MessageCheckStatus)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// RunChecksForPrototype indicates an expected call of RunChecksForPrototype
|
|
|
|
func (mr *MockServicesAPIMockRecorder) RunChecksForPrototype(arg0, arg1 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RunChecksForPrototype", reflect.TypeOf((*MockServicesAPI)(nil).RunChecksForPrototype), arg0, arg1)
|
2021-02-23 14:50:47 +00:00
|
|
|
}
|