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"
|
2021-05-20 16:25:49 +00:00
|
|
|
reflect "reflect"
|
|
|
|
|
2022-06-14 15:00:51 +00:00
|
|
|
gomock "github.com/golang/mock/gomock"
|
|
|
|
|
2021-02-23 14:50:47 +00:00
|
|
|
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
|
|
|
)
|
|
|
|
|
2021-05-20 16:25:49 +00:00
|
|
|
// MockServicesAPI is a mock of ServicesAPI interface.
|
2021-02-23 14:50:47 +00:00
|
|
|
type MockServicesAPI struct {
|
|
|
|
ctrl *gomock.Controller
|
|
|
|
recorder *MockServicesAPIMockRecorder
|
|
|
|
}
|
|
|
|
|
2021-05-20 16:25:49 +00:00
|
|
|
// MockServicesAPIMockRecorder is the mock recorder for MockServicesAPI.
|
2021-02-23 14:50:47 +00:00
|
|
|
type MockServicesAPIMockRecorder struct {
|
|
|
|
mock *MockServicesAPI
|
|
|
|
}
|
|
|
|
|
2021-05-20 16:25:49 +00:00
|
|
|
// NewMockServicesAPI creates a new mock instance.
|
2021-02-23 14:50:47 +00:00
|
|
|
func NewMockServicesAPI(ctrl *gomock.Controller) *MockServicesAPI {
|
|
|
|
mock := &MockServicesAPI{ctrl: ctrl}
|
|
|
|
mock.recorder = &MockServicesAPIMockRecorder{mock}
|
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2021-05-20 16:25:49 +00:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
2021-02-23 14:50:47 +00:00
|
|
|
func (m *MockServicesAPI) EXPECT() *MockServicesAPIMockRecorder {
|
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
2021-05-20 16:25:49 +00:00
|
|
|
// Close mocks base method.
|
2021-02-23 14:50:47 +00:00
|
|
|
func (m *MockServicesAPI) Close() error {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "Close")
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2021-05-20 16:25:49 +00:00
|
|
|
// Close indicates an expected call of Close.
|
2021-02-23 14:50:47 +00:00
|
|
|
func (mr *MockServicesAPIMockRecorder) Close() *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockServicesAPI)(nil).Close))
|
|
|
|
}
|
|
|
|
|
2021-05-20 16:25:49 +00:00
|
|
|
// DecodeTypedParamsFromJSON mocks base method.
|
2021-02-23 14:50:47 +00:00
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2021-05-20 16:25:49 +00:00
|
|
|
// DecodeTypedParamsFromJSON indicates an expected call of DecodeTypedParamsFromJSON.
|
2021-02-23 14:50:47 +00:00
|
|
|
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-05-20 16:25:49 +00:00
|
|
|
// FullNodeAPI mocks base method.
|
2021-03-27 14:35:46 +00:00
|
|
|
func (m *MockServicesAPI) FullNodeAPI() api.FullNode {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "FullNodeAPI")
|
|
|
|
ret0, _ := ret[0].(api.FullNode)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2021-05-20 16:25:49 +00:00
|
|
|
// FullNodeAPI indicates an expected call of FullNodeAPI.
|
2021-03-27 14:35:46 +00:00
|
|
|
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-05-20 16:25:49 +00:00
|
|
|
// GetBaseFee mocks base method.
|
2021-03-24 14:12:35 +00:00
|
|
|
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-05-20 16:25:49 +00:00
|
|
|
// GetBaseFee indicates an expected call of GetBaseFee.
|
2021-03-24 14:12:35 +00:00
|
|
|
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)
|
|
|
|
}
|
|
|
|
|
2021-05-20 16:25:49 +00:00
|
|
|
// LocalAddresses mocks base method.
|
2021-03-25 14:24:09 +00:00
|
|
|
func (m *MockServicesAPI) LocalAddresses(arg0 context.Context) (go_address.Address, []go_address.Address, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "LocalAddresses", arg0)
|
|
|
|
ret0, _ := ret[0].(go_address.Address)
|
|
|
|
ret1, _ := ret[1].([]go_address.Address)
|
|
|
|
ret2, _ := ret[2].(error)
|
|
|
|
return ret0, ret1, ret2
|
|
|
|
}
|
|
|
|
|
2021-05-20 16:25:49 +00:00
|
|
|
// LocalAddresses indicates an expected call of LocalAddresses.
|
2021-03-25 14:24:09 +00:00
|
|
|
func (mr *MockServicesAPIMockRecorder) LocalAddresses(arg0 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LocalAddresses", reflect.TypeOf((*MockServicesAPI)(nil).LocalAddresses), arg0)
|
|
|
|
}
|
|
|
|
|
2021-05-20 16:25:49 +00:00
|
|
|
// 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
|
|
|
|
}
|
|
|
|
|
2021-05-20 16:25:49 +00:00
|
|
|
// MessageForSend indicates an expected call of MessageForSend.
|
2021-03-24 14:12:35 +00:00
|
|
|
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)
|
|
|
|
}
|
|
|
|
|
2021-05-20 16:25:49 +00:00
|
|
|
// MpoolCheckPendingMessages mocks base method.
|
2021-03-25 14:24:09 +00:00
|
|
|
func (m *MockServicesAPI) MpoolCheckPendingMessages(arg0 context.Context, arg1 go_address.Address) ([][]api.MessageCheckStatus, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "MpoolCheckPendingMessages", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].([][]api.MessageCheckStatus)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2021-05-20 16:25:49 +00:00
|
|
|
// MpoolCheckPendingMessages indicates an expected call of MpoolCheckPendingMessages.
|
2021-03-25 14:24:09 +00:00
|
|
|
func (mr *MockServicesAPIMockRecorder) MpoolCheckPendingMessages(arg0, arg1 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MpoolCheckPendingMessages", reflect.TypeOf((*MockServicesAPI)(nil).MpoolCheckPendingMessages), arg0, arg1)
|
|
|
|
}
|
|
|
|
|
2021-05-20 16:25:49 +00:00
|
|
|
// MpoolPendingFilter mocks base method.
|
2021-03-25 14:24:09 +00:00
|
|
|
func (m *MockServicesAPI) MpoolPendingFilter(arg0 context.Context, arg1 func(*types.SignedMessage) bool, arg2 types.TipSetKey) ([]*types.SignedMessage, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "MpoolPendingFilter", arg0, arg1, arg2)
|
|
|
|
ret0, _ := ret[0].([]*types.SignedMessage)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2021-05-20 16:25:49 +00:00
|
|
|
// MpoolPendingFilter indicates an expected call of MpoolPendingFilter.
|
2021-03-25 14:24:09 +00:00
|
|
|
func (mr *MockServicesAPIMockRecorder) MpoolPendingFilter(arg0, arg1, arg2 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MpoolPendingFilter", reflect.TypeOf((*MockServicesAPI)(nil).MpoolPendingFilter), arg0, arg1, arg2)
|
|
|
|
}
|
|
|
|
|
2021-05-20 16:25:49 +00:00
|
|
|
// 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
|
|
|
|
}
|
|
|
|
|
2021-05-20 16:25:49 +00:00
|
|
|
// PublishMessage indicates an expected call of PublishMessage.
|
2021-03-24 14:12:35 +00:00
|
|
|
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)
|
|
|
|
}
|
|
|
|
|
2021-05-20 16:25:49 +00:00
|
|
|
// 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
|
|
|
|
}
|
|
|
|
|
2021-05-20 16:25:49 +00:00
|
|
|
// RunChecksForPrototype indicates an expected call of RunChecksForPrototype.
|
2021-03-24 14:12:35 +00:00
|
|
|
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
|
|
|
}
|