2021-08-18 10:43:44 +00:00
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
2022-06-14 18:08:10 +00:00
|
|
|
// Source: github.com/filecoin-project/lotus/storage/pipeline (interfaces: SealingAPI)
|
2021-08-18 10:43:44 +00:00
|
|
|
|
|
|
|
// Package mocks is a generated GoMock package.
|
|
|
|
package mocks
|
|
|
|
|
|
|
|
import (
|
|
|
|
context "context"
|
|
|
|
reflect "reflect"
|
|
|
|
|
|
|
|
address "github.com/filecoin-project/go-address"
|
2022-08-22 18:41:56 +00:00
|
|
|
bitfield "github.com/filecoin-project/go-bitfield"
|
2021-08-18 10:43:44 +00:00
|
|
|
abi "github.com/filecoin-project/go-state-types/abi"
|
|
|
|
big "github.com/filecoin-project/go-state-types/big"
|
2022-09-06 15:49:29 +00:00
|
|
|
miner "github.com/filecoin-project/go-state-types/builtin/v9/miner"
|
2021-08-18 10:43:44 +00:00
|
|
|
crypto "github.com/filecoin-project/go-state-types/crypto"
|
|
|
|
dline "github.com/filecoin-project/go-state-types/dline"
|
|
|
|
network "github.com/filecoin-project/go-state-types/network"
|
|
|
|
api "github.com/filecoin-project/lotus/api"
|
2022-06-16 12:00:37 +00:00
|
|
|
miner0 "github.com/filecoin-project/lotus/chain/actors/builtin/miner"
|
2021-08-18 10:43:44 +00:00
|
|
|
types "github.com/filecoin-project/lotus/chain/types"
|
2022-09-06 15:49:29 +00:00
|
|
|
gomock "github.com/golang/mock/gomock"
|
|
|
|
cid "github.com/ipfs/go-cid"
|
2021-08-18 10:43:44 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// MockSealingAPI is a mock of SealingAPI interface.
|
|
|
|
type MockSealingAPI struct {
|
|
|
|
ctrl *gomock.Controller
|
|
|
|
recorder *MockSealingAPIMockRecorder
|
|
|
|
}
|
|
|
|
|
|
|
|
// MockSealingAPIMockRecorder is the mock recorder for MockSealingAPI.
|
|
|
|
type MockSealingAPIMockRecorder struct {
|
|
|
|
mock *MockSealingAPI
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewMockSealingAPI creates a new mock instance.
|
|
|
|
func NewMockSealingAPI(ctrl *gomock.Controller) *MockSealingAPI {
|
|
|
|
mock := &MockSealingAPI{ctrl: ctrl}
|
|
|
|
mock.recorder = &MockSealingAPIMockRecorder{mock}
|
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
|
|
func (m *MockSealingAPI) EXPECT() *MockSealingAPIMockRecorder {
|
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
|
|
|
// ChainGetMessage mocks base method.
|
|
|
|
func (m *MockSealingAPI) ChainGetMessage(arg0 context.Context, arg1 cid.Cid) (*types.Message, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "ChainGetMessage", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].(*types.Message)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// ChainGetMessage indicates an expected call of ChainGetMessage.
|
|
|
|
func (mr *MockSealingAPIMockRecorder) ChainGetMessage(arg0, arg1 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChainGetMessage", reflect.TypeOf((*MockSealingAPI)(nil).ChainGetMessage), arg0, arg1)
|
|
|
|
}
|
|
|
|
|
|
|
|
// ChainHead mocks base method.
|
2022-06-16 11:15:49 +00:00
|
|
|
func (m *MockSealingAPI) ChainHead(arg0 context.Context) (*types.TipSet, error) {
|
2021-08-18 10:43:44 +00:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "ChainHead", arg0)
|
2022-06-16 11:15:49 +00:00
|
|
|
ret0, _ := ret[0].(*types.TipSet)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
2021-08-18 10:43:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// ChainHead indicates an expected call of ChainHead.
|
|
|
|
func (mr *MockSealingAPIMockRecorder) ChainHead(arg0 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChainHead", reflect.TypeOf((*MockSealingAPI)(nil).ChainHead), arg0)
|
|
|
|
}
|
|
|
|
|
|
|
|
// ChainReadObj mocks base method.
|
|
|
|
func (m *MockSealingAPI) ChainReadObj(arg0 context.Context, arg1 cid.Cid) ([]byte, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "ChainReadObj", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].([]byte)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// ChainReadObj indicates an expected call of ChainReadObj.
|
|
|
|
func (mr *MockSealingAPIMockRecorder) ChainReadObj(arg0, arg1 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChainReadObj", reflect.TypeOf((*MockSealingAPI)(nil).ChainReadObj), arg0, arg1)
|
|
|
|
}
|
|
|
|
|
2022-06-16 13:50:41 +00:00
|
|
|
// MpoolPushMessage mocks base method.
|
|
|
|
func (m *MockSealingAPI) MpoolPushMessage(arg0 context.Context, arg1 *types.Message, arg2 *api.MessageSendSpec) (*types.SignedMessage, error) {
|
2021-08-18 10:43:44 +00:00
|
|
|
m.ctrl.T.Helper()
|
2022-06-16 13:50:41 +00:00
|
|
|
ret := m.ctrl.Call(m, "MpoolPushMessage", arg0, arg1, arg2)
|
|
|
|
ret0, _ := ret[0].(*types.SignedMessage)
|
2021-08-18 10:43:44 +00:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2022-06-16 13:50:41 +00:00
|
|
|
// MpoolPushMessage indicates an expected call of MpoolPushMessage.
|
|
|
|
func (mr *MockSealingAPIMockRecorder) MpoolPushMessage(arg0, arg1, arg2 interface{}) *gomock.Call {
|
2021-08-18 10:43:44 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2022-06-16 13:50:41 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MpoolPushMessage", reflect.TypeOf((*MockSealingAPI)(nil).MpoolPushMessage), arg0, arg1, arg2)
|
2021-08-18 10:43:44 +00:00
|
|
|
}
|
|
|
|
|
2022-08-09 10:57:20 +00:00
|
|
|
// StateAccountKey mocks base method.
|
|
|
|
func (m *MockSealingAPI) StateAccountKey(arg0 context.Context, arg1 address.Address, arg2 types.TipSetKey) (address.Address, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "StateAccountKey", arg0, arg1, arg2)
|
|
|
|
ret0, _ := ret[0].(address.Address)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// StateAccountKey indicates an expected call of StateAccountKey.
|
|
|
|
func (mr *MockSealingAPIMockRecorder) StateAccountKey(arg0, arg1, arg2 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StateAccountKey", reflect.TypeOf((*MockSealingAPI)(nil).StateAccountKey), arg0, arg1, arg2)
|
|
|
|
}
|
|
|
|
|
2022-06-16 14:05:56 +00:00
|
|
|
// StateComputeDataCID mocks base method.
|
|
|
|
func (m *MockSealingAPI) StateComputeDataCID(arg0 context.Context, arg1 address.Address, arg2 abi.RegisteredSealProof, arg3 []abi.DealID, arg4 types.TipSetKey) (cid.Cid, error) {
|
2021-08-18 10:43:44 +00:00
|
|
|
m.ctrl.T.Helper()
|
2022-06-16 14:05:56 +00:00
|
|
|
ret := m.ctrl.Call(m, "StateComputeDataCID", arg0, arg1, arg2, arg3, arg4)
|
2021-08-18 10:43:44 +00:00
|
|
|
ret0, _ := ret[0].(cid.Cid)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2022-06-16 14:05:56 +00:00
|
|
|
// StateComputeDataCID indicates an expected call of StateComputeDataCID.
|
|
|
|
func (mr *MockSealingAPIMockRecorder) StateComputeDataCID(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call {
|
2021-08-18 10:43:44 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2022-06-16 14:05:56 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StateComputeDataCID", reflect.TypeOf((*MockSealingAPI)(nil).StateComputeDataCID), arg0, arg1, arg2, arg3, arg4)
|
2021-08-18 10:43:44 +00:00
|
|
|
}
|
|
|
|
|
2021-09-12 02:24:53 +00:00
|
|
|
// StateGetRandomnessFromBeacon mocks base method.
|
2022-06-16 09:12:33 +00:00
|
|
|
func (m *MockSealingAPI) StateGetRandomnessFromBeacon(arg0 context.Context, arg1 crypto.DomainSeparationTag, arg2 abi.ChainEpoch, arg3 []byte, arg4 types.TipSetKey) (abi.Randomness, error) {
|
2021-09-12 02:24:53 +00:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "StateGetRandomnessFromBeacon", arg0, arg1, arg2, arg3, arg4)
|
|
|
|
ret0, _ := ret[0].(abi.Randomness)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// StateGetRandomnessFromBeacon indicates an expected call of StateGetRandomnessFromBeacon.
|
|
|
|
func (mr *MockSealingAPIMockRecorder) StateGetRandomnessFromBeacon(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StateGetRandomnessFromBeacon", reflect.TypeOf((*MockSealingAPI)(nil).StateGetRandomnessFromBeacon), arg0, arg1, arg2, arg3, arg4)
|
|
|
|
}
|
|
|
|
|
|
|
|
// StateGetRandomnessFromTickets mocks base method.
|
2022-06-16 09:12:33 +00:00
|
|
|
func (m *MockSealingAPI) StateGetRandomnessFromTickets(arg0 context.Context, arg1 crypto.DomainSeparationTag, arg2 abi.ChainEpoch, arg3 []byte, arg4 types.TipSetKey) (abi.Randomness, error) {
|
2021-09-12 02:24:53 +00:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "StateGetRandomnessFromTickets", arg0, arg1, arg2, arg3, arg4)
|
|
|
|
ret0, _ := ret[0].(abi.Randomness)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// StateGetRandomnessFromTickets indicates an expected call of StateGetRandomnessFromTickets.
|
|
|
|
func (mr *MockSealingAPIMockRecorder) StateGetRandomnessFromTickets(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StateGetRandomnessFromTickets", reflect.TypeOf((*MockSealingAPI)(nil).StateGetRandomnessFromTickets), arg0, arg1, arg2, arg3, arg4)
|
|
|
|
}
|
|
|
|
|
2021-08-18 10:43:44 +00:00
|
|
|
// StateLookupID mocks base method.
|
2022-06-16 09:12:33 +00:00
|
|
|
func (m *MockSealingAPI) StateLookupID(arg0 context.Context, arg1 address.Address, arg2 types.TipSetKey) (address.Address, error) {
|
2021-08-18 10:43:44 +00:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "StateLookupID", arg0, arg1, arg2)
|
|
|
|
ret0, _ := ret[0].(address.Address)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// StateLookupID indicates an expected call of StateLookupID.
|
|
|
|
func (mr *MockSealingAPIMockRecorder) StateLookupID(arg0, arg1, arg2 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StateLookupID", reflect.TypeOf((*MockSealingAPI)(nil).StateLookupID), arg0, arg1, arg2)
|
|
|
|
}
|
|
|
|
|
|
|
|
// StateMarketStorageDeal mocks base method.
|
2022-06-16 09:12:33 +00:00
|
|
|
func (m *MockSealingAPI) StateMarketStorageDeal(arg0 context.Context, arg1 abi.DealID, arg2 types.TipSetKey) (*api.MarketDeal, error) {
|
2021-08-18 10:43:44 +00:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "StateMarketStorageDeal", arg0, arg1, arg2)
|
|
|
|
ret0, _ := ret[0].(*api.MarketDeal)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// StateMarketStorageDeal indicates an expected call of StateMarketStorageDeal.
|
|
|
|
func (mr *MockSealingAPIMockRecorder) StateMarketStorageDeal(arg0, arg1, arg2 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StateMarketStorageDeal", reflect.TypeOf((*MockSealingAPI)(nil).StateMarketStorageDeal), arg0, arg1, arg2)
|
|
|
|
}
|
|
|
|
|
2022-08-22 18:41:56 +00:00
|
|
|
// StateMinerAllocated mocks base method.
|
|
|
|
func (m *MockSealingAPI) StateMinerAllocated(arg0 context.Context, arg1 address.Address, arg2 types.TipSetKey) (*bitfield.BitField, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "StateMinerAllocated", arg0, arg1, arg2)
|
|
|
|
ret0, _ := ret[0].(*bitfield.BitField)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// StateMinerAllocated indicates an expected call of StateMinerAllocated.
|
|
|
|
func (mr *MockSealingAPIMockRecorder) StateMinerAllocated(arg0, arg1, arg2 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StateMinerAllocated", reflect.TypeOf((*MockSealingAPI)(nil).StateMinerAllocated), arg0, arg1, arg2)
|
|
|
|
}
|
|
|
|
|
2022-06-16 10:34:29 +00:00
|
|
|
// StateMinerAvailableBalance mocks base method.
|
|
|
|
func (m *MockSealingAPI) StateMinerAvailableBalance(arg0 context.Context, arg1 address.Address, arg2 types.TipSetKey) (big.Int, error) {
|
2021-12-08 17:11:19 +00:00
|
|
|
m.ctrl.T.Helper()
|
2022-06-16 10:34:29 +00:00
|
|
|
ret := m.ctrl.Call(m, "StateMinerAvailableBalance", arg0, arg1, arg2)
|
|
|
|
ret0, _ := ret[0].(big.Int)
|
2021-12-08 17:11:19 +00:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2022-06-16 10:34:29 +00:00
|
|
|
// StateMinerAvailableBalance indicates an expected call of StateMinerAvailableBalance.
|
|
|
|
func (mr *MockSealingAPIMockRecorder) StateMinerAvailableBalance(arg0, arg1, arg2 interface{}) *gomock.Call {
|
2021-12-08 17:11:19 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2022-06-16 10:34:29 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StateMinerAvailableBalance", reflect.TypeOf((*MockSealingAPI)(nil).StateMinerAvailableBalance), arg0, arg1, arg2)
|
2021-12-08 17:11:19 +00:00
|
|
|
}
|
|
|
|
|
2022-06-16 10:34:29 +00:00
|
|
|
// StateMinerDeadlines mocks base method.
|
|
|
|
func (m *MockSealingAPI) StateMinerDeadlines(arg0 context.Context, arg1 address.Address, arg2 types.TipSetKey) ([]api.Deadline, error) {
|
2021-08-18 10:43:44 +00:00
|
|
|
m.ctrl.T.Helper()
|
2022-06-16 10:34:29 +00:00
|
|
|
ret := m.ctrl.Call(m, "StateMinerDeadlines", arg0, arg1, arg2)
|
|
|
|
ret0, _ := ret[0].([]api.Deadline)
|
2021-08-18 10:43:44 +00:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2022-06-16 10:34:29 +00:00
|
|
|
// StateMinerDeadlines indicates an expected call of StateMinerDeadlines.
|
|
|
|
func (mr *MockSealingAPIMockRecorder) StateMinerDeadlines(arg0, arg1, arg2 interface{}) *gomock.Call {
|
2021-08-18 10:43:44 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2022-06-16 10:34:29 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StateMinerDeadlines", reflect.TypeOf((*MockSealingAPI)(nil).StateMinerDeadlines), arg0, arg1, arg2)
|
2021-08-18 10:43:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// StateMinerInfo mocks base method.
|
2022-06-16 09:12:33 +00:00
|
|
|
func (m *MockSealingAPI) StateMinerInfo(arg0 context.Context, arg1 address.Address, arg2 types.TipSetKey) (api.MinerInfo, error) {
|
2021-08-18 10:43:44 +00:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "StateMinerInfo", arg0, arg1, arg2)
|
2022-04-20 21:34:28 +00:00
|
|
|
ret0, _ := ret[0].(api.MinerInfo)
|
2021-08-18 10:43:44 +00:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// StateMinerInfo indicates an expected call of StateMinerInfo.
|
|
|
|
func (mr *MockSealingAPIMockRecorder) StateMinerInfo(arg0, arg1, arg2 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StateMinerInfo", reflect.TypeOf((*MockSealingAPI)(nil).StateMinerInfo), arg0, arg1, arg2)
|
|
|
|
}
|
|
|
|
|
|
|
|
// StateMinerInitialPledgeCollateral mocks base method.
|
2022-06-16 09:12:33 +00:00
|
|
|
func (m *MockSealingAPI) StateMinerInitialPledgeCollateral(arg0 context.Context, arg1 address.Address, arg2 miner.SectorPreCommitInfo, arg3 types.TipSetKey) (big.Int, error) {
|
2021-08-18 10:43:44 +00:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "StateMinerInitialPledgeCollateral", arg0, arg1, arg2, arg3)
|
|
|
|
ret0, _ := ret[0].(big.Int)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// StateMinerInitialPledgeCollateral indicates an expected call of StateMinerInitialPledgeCollateral.
|
|
|
|
func (mr *MockSealingAPIMockRecorder) StateMinerInitialPledgeCollateral(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StateMinerInitialPledgeCollateral", reflect.TypeOf((*MockSealingAPI)(nil).StateMinerInitialPledgeCollateral), arg0, arg1, arg2, arg3)
|
|
|
|
}
|
|
|
|
|
|
|
|
// StateMinerPartitions mocks base method.
|
2022-06-16 09:12:33 +00:00
|
|
|
func (m *MockSealingAPI) StateMinerPartitions(arg0 context.Context, arg1 address.Address, arg2 uint64, arg3 types.TipSetKey) ([]api.Partition, error) {
|
2021-08-18 10:43:44 +00:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "StateMinerPartitions", arg0, arg1, arg2, arg3)
|
|
|
|
ret0, _ := ret[0].([]api.Partition)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// StateMinerPartitions indicates an expected call of StateMinerPartitions.
|
|
|
|
func (mr *MockSealingAPIMockRecorder) StateMinerPartitions(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StateMinerPartitions", reflect.TypeOf((*MockSealingAPI)(nil).StateMinerPartitions), arg0, arg1, arg2, arg3)
|
|
|
|
}
|
|
|
|
|
|
|
|
// StateMinerPreCommitDepositForPower mocks base method.
|
2022-06-16 09:12:33 +00:00
|
|
|
func (m *MockSealingAPI) StateMinerPreCommitDepositForPower(arg0 context.Context, arg1 address.Address, arg2 miner.SectorPreCommitInfo, arg3 types.TipSetKey) (big.Int, error) {
|
2021-08-18 10:43:44 +00:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "StateMinerPreCommitDepositForPower", arg0, arg1, arg2, arg3)
|
|
|
|
ret0, _ := ret[0].(big.Int)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// StateMinerPreCommitDepositForPower indicates an expected call of StateMinerPreCommitDepositForPower.
|
|
|
|
func (mr *MockSealingAPIMockRecorder) StateMinerPreCommitDepositForPower(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StateMinerPreCommitDepositForPower", reflect.TypeOf((*MockSealingAPI)(nil).StateMinerPreCommitDepositForPower), arg0, arg1, arg2, arg3)
|
|
|
|
}
|
|
|
|
|
|
|
|
// StateMinerProvingDeadline mocks base method.
|
2022-06-16 09:12:33 +00:00
|
|
|
func (m *MockSealingAPI) StateMinerProvingDeadline(arg0 context.Context, arg1 address.Address, arg2 types.TipSetKey) (*dline.Info, error) {
|
2021-08-18 10:43:44 +00:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "StateMinerProvingDeadline", arg0, arg1, arg2)
|
|
|
|
ret0, _ := ret[0].(*dline.Info)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// StateMinerProvingDeadline indicates an expected call of StateMinerProvingDeadline.
|
|
|
|
func (mr *MockSealingAPIMockRecorder) StateMinerProvingDeadline(arg0, arg1, arg2 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StateMinerProvingDeadline", reflect.TypeOf((*MockSealingAPI)(nil).StateMinerProvingDeadline), arg0, arg1, arg2)
|
|
|
|
}
|
|
|
|
|
|
|
|
// StateMinerSectorAllocated mocks base method.
|
2022-06-16 09:12:33 +00:00
|
|
|
func (m *MockSealingAPI) StateMinerSectorAllocated(arg0 context.Context, arg1 address.Address, arg2 abi.SectorNumber, arg3 types.TipSetKey) (bool, error) {
|
2021-08-18 10:43:44 +00:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "StateMinerSectorAllocated", arg0, arg1, arg2, arg3)
|
|
|
|
ret0, _ := ret[0].(bool)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// StateMinerSectorAllocated indicates an expected call of StateMinerSectorAllocated.
|
|
|
|
func (mr *MockSealingAPIMockRecorder) StateMinerSectorAllocated(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StateMinerSectorAllocated", reflect.TypeOf((*MockSealingAPI)(nil).StateMinerSectorAllocated), arg0, arg1, arg2, arg3)
|
|
|
|
}
|
|
|
|
|
|
|
|
// StateNetworkVersion mocks base method.
|
2022-06-16 09:12:33 +00:00
|
|
|
func (m *MockSealingAPI) StateNetworkVersion(arg0 context.Context, arg1 types.TipSetKey) (network.Version, error) {
|
2021-08-18 10:43:44 +00:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "StateNetworkVersion", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].(network.Version)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// StateNetworkVersion indicates an expected call of StateNetworkVersion.
|
|
|
|
func (mr *MockSealingAPIMockRecorder) StateNetworkVersion(arg0, arg1 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StateNetworkVersion", reflect.TypeOf((*MockSealingAPI)(nil).StateNetworkVersion), arg0, arg1)
|
|
|
|
}
|
|
|
|
|
|
|
|
// StateSearchMsg mocks base method.
|
2022-06-16 10:47:19 +00:00
|
|
|
func (m *MockSealingAPI) StateSearchMsg(arg0 context.Context, arg1 types.TipSetKey, arg2 cid.Cid, arg3 abi.ChainEpoch, arg4 bool) (*api.MsgLookup, error) {
|
2021-08-18 10:43:44 +00:00
|
|
|
m.ctrl.T.Helper()
|
2022-06-16 10:47:19 +00:00
|
|
|
ret := m.ctrl.Call(m, "StateSearchMsg", arg0, arg1, arg2, arg3, arg4)
|
|
|
|
ret0, _ := ret[0].(*api.MsgLookup)
|
2021-08-18 10:43:44 +00:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// StateSearchMsg indicates an expected call of StateSearchMsg.
|
2022-06-16 10:47:19 +00:00
|
|
|
func (mr *MockSealingAPIMockRecorder) StateSearchMsg(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call {
|
2021-08-18 10:43:44 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2022-06-16 10:47:19 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StateSearchMsg", reflect.TypeOf((*MockSealingAPI)(nil).StateSearchMsg), arg0, arg1, arg2, arg3, arg4)
|
2021-08-18 10:43:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// StateSectorGetInfo mocks base method.
|
2022-06-16 09:12:33 +00:00
|
|
|
func (m *MockSealingAPI) StateSectorGetInfo(arg0 context.Context, arg1 address.Address, arg2 abi.SectorNumber, arg3 types.TipSetKey) (*miner.SectorOnChainInfo, error) {
|
2021-08-18 10:43:44 +00:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "StateSectorGetInfo", arg0, arg1, arg2, arg3)
|
|
|
|
ret0, _ := ret[0].(*miner.SectorOnChainInfo)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// StateSectorGetInfo indicates an expected call of StateSectorGetInfo.
|
|
|
|
func (mr *MockSealingAPIMockRecorder) StateSectorGetInfo(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StateSectorGetInfo", reflect.TypeOf((*MockSealingAPI)(nil).StateSectorGetInfo), arg0, arg1, arg2, arg3)
|
|
|
|
}
|
|
|
|
|
|
|
|
// StateSectorPartition mocks base method.
|
2022-06-16 12:00:37 +00:00
|
|
|
func (m *MockSealingAPI) StateSectorPartition(arg0 context.Context, arg1 address.Address, arg2 abi.SectorNumber, arg3 types.TipSetKey) (*miner0.SectorLocation, error) {
|
2021-08-18 10:43:44 +00:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "StateSectorPartition", arg0, arg1, arg2, arg3)
|
2022-06-16 12:00:37 +00:00
|
|
|
ret0, _ := ret[0].(*miner0.SectorLocation)
|
2021-08-18 10:43:44 +00:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// StateSectorPartition indicates an expected call of StateSectorPartition.
|
|
|
|
func (mr *MockSealingAPIMockRecorder) StateSectorPartition(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StateSectorPartition", reflect.TypeOf((*MockSealingAPI)(nil).StateSectorPartition), arg0, arg1, arg2, arg3)
|
|
|
|
}
|
|
|
|
|
|
|
|
// StateSectorPreCommitInfo mocks base method.
|
2022-06-16 09:12:33 +00:00
|
|
|
func (m *MockSealingAPI) StateSectorPreCommitInfo(arg0 context.Context, arg1 address.Address, arg2 abi.SectorNumber, arg3 types.TipSetKey) (*miner.SectorPreCommitOnChainInfo, error) {
|
2021-08-18 10:43:44 +00:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "StateSectorPreCommitInfo", arg0, arg1, arg2, arg3)
|
|
|
|
ret0, _ := ret[0].(*miner.SectorPreCommitOnChainInfo)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// StateSectorPreCommitInfo indicates an expected call of StateSectorPreCommitInfo.
|
|
|
|
func (mr *MockSealingAPIMockRecorder) StateSectorPreCommitInfo(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StateSectorPreCommitInfo", reflect.TypeOf((*MockSealingAPI)(nil).StateSectorPreCommitInfo), arg0, arg1, arg2, arg3)
|
|
|
|
}
|
|
|
|
|
|
|
|
// StateWaitMsg mocks base method.
|
2022-06-16 10:47:19 +00:00
|
|
|
func (m *MockSealingAPI) StateWaitMsg(arg0 context.Context, arg1 cid.Cid, arg2 uint64, arg3 abi.ChainEpoch, arg4 bool) (*api.MsgLookup, error) {
|
2021-08-18 10:43:44 +00:00
|
|
|
m.ctrl.T.Helper()
|
2022-06-16 10:47:19 +00:00
|
|
|
ret := m.ctrl.Call(m, "StateWaitMsg", arg0, arg1, arg2, arg3, arg4)
|
|
|
|
ret0, _ := ret[0].(*api.MsgLookup)
|
2021-08-18 10:43:44 +00:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// StateWaitMsg indicates an expected call of StateWaitMsg.
|
2022-06-16 10:47:19 +00:00
|
|
|
func (mr *MockSealingAPIMockRecorder) StateWaitMsg(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call {
|
2021-08-18 10:43:44 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2022-06-16 10:47:19 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StateWaitMsg", reflect.TypeOf((*MockSealingAPI)(nil).StateWaitMsg), arg0, arg1, arg2, arg3, arg4)
|
2021-08-18 10:43:44 +00:00
|
|
|
}
|
2022-08-09 10:57:20 +00:00
|
|
|
|
|
|
|
// WalletBalance mocks base method.
|
|
|
|
func (m *MockSealingAPI) WalletBalance(arg0 context.Context, arg1 address.Address) (big.Int, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "WalletBalance", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].(big.Int)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// WalletBalance indicates an expected call of WalletBalance.
|
|
|
|
func (mr *MockSealingAPIMockRecorder) WalletBalance(arg0, arg1 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WalletBalance", reflect.TypeOf((*MockSealingAPI)(nil).WalletBalance), arg0, arg1)
|
|
|
|
}
|
|
|
|
|
|
|
|
// WalletHas mocks base method.
|
|
|
|
func (m *MockSealingAPI) WalletHas(arg0 context.Context, arg1 address.Address) (bool, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "WalletHas", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].(bool)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// WalletHas indicates an expected call of WalletHas.
|
|
|
|
func (mr *MockSealingAPIMockRecorder) WalletHas(arg0, arg1 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WalletHas", reflect.TypeOf((*MockSealingAPI)(nil).WalletHas), arg0, arg1)
|
|
|
|
}
|