// Code generated by MockGen. DO NOT EDIT.
// Source: store/bsdb/database.go
//
// Generated by this command:
//
//	mockgen -source=store/bsdb/database.go -destination=store/bsdb/database_mock.go -package=bsdb
//

// Package bsdb is a generated GoMock package.
package bsdb

import (
	reflect "reflect"

	types "github.com/bnb-chain/greenfield/x/permission/types"
	common "github.com/forbole/juno/v4/common"
	decimal "github.com/shopspring/decimal"
	gomock "go.uber.org/mock/gomock"
	gorm "gorm.io/gorm"
)

// MockMetadata is a mock of Metadata interface.
type MockMetadata struct {
	ctrl     *gomock.Controller
	recorder *MockMetadataMockRecorder
}

// MockMetadataMockRecorder is the mock recorder for MockMetadata.
type MockMetadataMockRecorder struct {
	mock *MockMetadata
}

// NewMockMetadata creates a new mock instance.
func NewMockMetadata(ctrl *gomock.Controller) *MockMetadata {
	mock := &MockMetadata{ctrl: ctrl}
	mock.recorder = &MockMetadataMockRecorder{mock}
	return mock
}

// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockMetadata) EXPECT() *MockMetadataMockRecorder {
	return m.recorder
}

// GetBsDBDataStatistics mocks base method.
func (m *MockMetadata) GetBsDBDataStatistics(blockHeight uint64) (*DataStat, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetBsDBDataStatistics", blockHeight)
	ret0, _ := ret[0].(*DataStat)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetBsDBDataStatistics indicates an expected call of GetBsDBDataStatistics.
func (mr *MockMetadataMockRecorder) GetBsDBDataStatistics(blockHeight any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBsDBDataStatistics", reflect.TypeOf((*MockMetadata)(nil).GetBsDBDataStatistics), blockHeight)
}

// GetBucketByID mocks base method.
func (m *MockMetadata) GetBucketByID(bucketID int64, includePrivate bool) (*Bucket, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetBucketByID", bucketID, includePrivate)
	ret0, _ := ret[0].(*Bucket)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetBucketByID indicates an expected call of GetBucketByID.
func (mr *MockMetadataMockRecorder) GetBucketByID(bucketID, includePrivate any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBucketByID", reflect.TypeOf((*MockMetadata)(nil).GetBucketByID), bucketID, includePrivate)
}

// GetBucketByName mocks base method.
func (m *MockMetadata) GetBucketByName(bucketName string, includePrivate bool) (*Bucket, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetBucketByName", bucketName, includePrivate)
	ret0, _ := ret[0].(*Bucket)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetBucketByName indicates an expected call of GetBucketByName.
func (mr *MockMetadataMockRecorder) GetBucketByName(bucketName, includePrivate any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBucketByName", reflect.TypeOf((*MockMetadata)(nil).GetBucketByName), bucketName, includePrivate)
}

// GetBucketInfoByBucketName mocks base method.
func (m *MockMetadata) GetBucketInfoByBucketName(bucketName string) (*Bucket, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetBucketInfoByBucketName", bucketName)
	ret0, _ := ret[0].(*Bucket)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetBucketInfoByBucketName indicates an expected call of GetBucketInfoByBucketName.
func (mr *MockMetadataMockRecorder) GetBucketInfoByBucketName(bucketName any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBucketInfoByBucketName", reflect.TypeOf((*MockMetadata)(nil).GetBucketInfoByBucketName), bucketName)
}

// GetBucketMetaByName mocks base method.
func (m *MockMetadata) GetBucketMetaByName(bucketName string, includePrivate bool) (*BucketFullMeta, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetBucketMetaByName", bucketName, includePrivate)
	ret0, _ := ret[0].(*BucketFullMeta)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetBucketMetaByName indicates an expected call of GetBucketMetaByName.
func (mr *MockMetadataMockRecorder) GetBucketMetaByName(bucketName, includePrivate any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBucketMetaByName", reflect.TypeOf((*MockMetadata)(nil).GetBucketMetaByName), bucketName, includePrivate)
}

// GetBucketSizeByID mocks base method.
func (m *MockMetadata) GetBucketSizeByID(bucketID uint64) (decimal.Decimal, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetBucketSizeByID", bucketID)
	ret0, _ := ret[0].(decimal.Decimal)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetBucketSizeByID indicates an expected call of GetBucketSizeByID.
func (mr *MockMetadataMockRecorder) GetBucketSizeByID(bucketID any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBucketSizeByID", reflect.TypeOf((*MockMetadata)(nil).GetBucketSizeByID), bucketID)
}

// GetDataMigrationRecordByProcessKey mocks base method.
func (m *MockMetadata) GetDataMigrationRecordByProcessKey(processKey string) (*DataMigrationRecord, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetDataMigrationRecordByProcessKey", processKey)
	ret0, _ := ret[0].(*DataMigrationRecord)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetDataMigrationRecordByProcessKey indicates an expected call of GetDataMigrationRecordByProcessKey.
func (mr *MockMetadataMockRecorder) GetDataMigrationRecordByProcessKey(processKey any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDataMigrationRecordByProcessKey", reflect.TypeOf((*MockMetadata)(nil).GetDataMigrationRecordByProcessKey), processKey)
}

// GetDefaultCharacterSet mocks base method.
func (m *MockMetadata) GetDefaultCharacterSet() (string, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetDefaultCharacterSet")
	ret0, _ := ret[0].(string)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetDefaultCharacterSet indicates an expected call of GetDefaultCharacterSet.
func (mr *MockMetadataMockRecorder) GetDefaultCharacterSet() *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDefaultCharacterSet", reflect.TypeOf((*MockMetadata)(nil).GetDefaultCharacterSet))
}

// GetDefaultCollationName mocks base method.
func (m *MockMetadata) GetDefaultCollationName() (string, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetDefaultCollationName")
	ret0, _ := ret[0].(string)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetDefaultCollationName indicates an expected call of GetDefaultCollationName.
func (mr *MockMetadataMockRecorder) GetDefaultCollationName() *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDefaultCollationName", reflect.TypeOf((*MockMetadata)(nil).GetDefaultCollationName))
}

// GetEpoch mocks base method.
func (m *MockMetadata) GetEpoch() (*Epoch, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetEpoch")
	ret0, _ := ret[0].(*Epoch)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetEpoch indicates an expected call of GetEpoch.
func (mr *MockMetadataMockRecorder) GetEpoch() *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetEpoch", reflect.TypeOf((*MockMetadata)(nil).GetEpoch))
}

// GetEventMigrationBucketByBucketID mocks base method.
func (m *MockMetadata) GetEventMigrationBucketByBucketID(bucketID common.Hash) (*EventMigrationBucket, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetEventMigrationBucketByBucketID", bucketID)
	ret0, _ := ret[0].(*EventMigrationBucket)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetEventMigrationBucketByBucketID indicates an expected call of GetEventMigrationBucketByBucketID.
func (mr *MockMetadataMockRecorder) GetEventMigrationBucketByBucketID(bucketID any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetEventMigrationBucketByBucketID", reflect.TypeOf((*MockMetadata)(nil).GetEventMigrationBucketByBucketID), bucketID)
}

// GetEventSwapOutByGvgID mocks base method.
func (m *MockMetadata) GetEventSwapOutByGvgID(gvgID uint32) (*EventSwapOut, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetEventSwapOutByGvgID", gvgID)
	ret0, _ := ret[0].(*EventSwapOut)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetEventSwapOutByGvgID indicates an expected call of GetEventSwapOutByGvgID.
func (mr *MockMetadataMockRecorder) GetEventSwapOutByGvgID(gvgID any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetEventSwapOutByGvgID", reflect.TypeOf((*MockMetadata)(nil).GetEventSwapOutByGvgID), gvgID)
}

// GetGlobalVirtualGroupByGvgID mocks base method.
func (m *MockMetadata) GetGlobalVirtualGroupByGvgID(gvgID uint32) (*GlobalVirtualGroup, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetGlobalVirtualGroupByGvgID", gvgID)
	ret0, _ := ret[0].(*GlobalVirtualGroup)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetGlobalVirtualGroupByGvgID indicates an expected call of GetGlobalVirtualGroupByGvgID.
func (mr *MockMetadataMockRecorder) GetGlobalVirtualGroupByGvgID(gvgID any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGlobalVirtualGroupByGvgID", reflect.TypeOf((*MockMetadata)(nil).GetGlobalVirtualGroupByGvgID), gvgID)
}

// GetGroupByID mocks base method.
func (m *MockMetadata) GetGroupByID(groupID int64, includeRemoved bool) (*Group, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetGroupByID", groupID, includeRemoved)
	ret0, _ := ret[0].(*Group)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetGroupByID indicates an expected call of GetGroupByID.
func (mr *MockMetadataMockRecorder) GetGroupByID(groupID, includeRemoved any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGroupByID", reflect.TypeOf((*MockMetadata)(nil).GetGroupByID), groupID, includeRemoved)
}

// GetGroupMembers mocks base method.
func (m *MockMetadata) GetGroupMembers(groupID common.Hash, startAfter common.Address, limit int) ([]*GroupMemberMeta, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetGroupMembers", groupID, startAfter, limit)
	ret0, _ := ret[0].([]*GroupMemberMeta)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetGroupMembers indicates an expected call of GetGroupMembers.
func (mr *MockMetadataMockRecorder) GetGroupMembers(groupID, startAfter, limit any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGroupMembers", reflect.TypeOf((*MockMetadata)(nil).GetGroupMembers), groupID, startAfter, limit)
}

// GetGroupMembersCount mocks base method.
func (m *MockMetadata) GetGroupMembersCount(groupIDs []common.Hash) ([]*GroupCount, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetGroupMembersCount", groupIDs)
	ret0, _ := ret[0].([]*GroupCount)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetGroupMembersCount indicates an expected call of GetGroupMembersCount.
func (mr *MockMetadataMockRecorder) GetGroupMembersCount(groupIDs any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGroupMembersCount", reflect.TypeOf((*MockMetadata)(nil).GetGroupMembersCount), groupIDs)
}

// GetGroupsByGroupIDAndAccount mocks base method.
func (m *MockMetadata) GetGroupsByGroupIDAndAccount(groupIDList []common.Hash, account common.Address, includeRemoved bool) ([]*Group, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetGroupsByGroupIDAndAccount", groupIDList, account, includeRemoved)
	ret0, _ := ret[0].([]*Group)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetGroupsByGroupIDAndAccount indicates an expected call of GetGroupsByGroupIDAndAccount.
func (mr *MockMetadataMockRecorder) GetGroupsByGroupIDAndAccount(groupIDList, account, includeRemoved any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGroupsByGroupIDAndAccount", reflect.TypeOf((*MockMetadata)(nil).GetGroupsByGroupIDAndAccount), groupIDList, account, includeRemoved)
}

// GetGvgByBucketAndLvgID mocks base method.
func (m *MockMetadata) GetGvgByBucketAndLvgID(bucketID common.Hash, lvgID uint32) (*GlobalVirtualGroup, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetGvgByBucketAndLvgID", bucketID, lvgID)
	ret0, _ := ret[0].(*GlobalVirtualGroup)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetGvgByBucketAndLvgID indicates an expected call of GetGvgByBucketAndLvgID.
func (mr *MockMetadataMockRecorder) GetGvgByBucketAndLvgID(bucketID, lvgID any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGvgByBucketAndLvgID", reflect.TypeOf((*MockMetadata)(nil).GetGvgByBucketAndLvgID), bucketID, lvgID)
}

// GetLatestBlockNumber mocks base method.
func (m *MockMetadata) GetLatestBlockNumber() (uint64, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetLatestBlockNumber")
	ret0, _ := ret[0].(uint64)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetLatestBlockNumber indicates an expected call of GetLatestBlockNumber.
func (mr *MockMetadataMockRecorder) GetLatestBlockNumber() *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLatestBlockNumber", reflect.TypeOf((*MockMetadata)(nil).GetLatestBlockNumber))
}

// GetLatestObjectID mocks base method.
func (m *MockMetadata) GetLatestObjectID() (uint64, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetLatestObjectID")
	ret0, _ := ret[0].(uint64)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetLatestObjectID indicates an expected call of GetLatestObjectID.
func (mr *MockMetadataMockRecorder) GetLatestObjectID() *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLatestObjectID", reflect.TypeOf((*MockMetadata)(nil).GetLatestObjectID))
}

// GetLvgByBucketAndLvgID mocks base method.
func (m *MockMetadata) GetLvgByBucketAndLvgID(bucketID common.Hash, lvgID uint32) (*LocalVirtualGroup, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetLvgByBucketAndLvgID", bucketID, lvgID)
	ret0, _ := ret[0].(*LocalVirtualGroup)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetLvgByBucketAndLvgID indicates an expected call of GetLvgByBucketAndLvgID.
func (mr *MockMetadataMockRecorder) GetLvgByBucketAndLvgID(bucketID, lvgID any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLvgByBucketAndLvgID", reflect.TypeOf((*MockMetadata)(nil).GetLvgByBucketAndLvgID), bucketID, lvgID)
}

// GetMigrateBucketEventByBucketID mocks base method.
func (m *MockMetadata) GetMigrateBucketEventByBucketID(bucketID common.Hash) (*EventCompleteMigrationBucket, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetMigrateBucketEventByBucketID", bucketID)
	ret0, _ := ret[0].(*EventCompleteMigrationBucket)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetMigrateBucketEventByBucketID indicates an expected call of GetMigrateBucketEventByBucketID.
func (mr *MockMetadataMockRecorder) GetMigrateBucketEventByBucketID(bucketID any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMigrateBucketEventByBucketID", reflect.TypeOf((*MockMetadata)(nil).GetMigrateBucketEventByBucketID), bucketID)
}

// GetMysqlVersion mocks base method.
func (m *MockMetadata) GetMysqlVersion() (string, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetMysqlVersion")
	ret0, _ := ret[0].(string)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetMysqlVersion indicates an expected call of GetMysqlVersion.
func (mr *MockMetadataMockRecorder) GetMysqlVersion() *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMysqlVersion", reflect.TypeOf((*MockMetadata)(nil).GetMysqlVersion))
}

// GetObjectByID mocks base method.
func (m *MockMetadata) GetObjectByID(objectID int64, includeRemoved bool) (*Object, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetObjectByID", objectID, includeRemoved)
	ret0, _ := ret[0].(*Object)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetObjectByID indicates an expected call of GetObjectByID.
func (mr *MockMetadataMockRecorder) GetObjectByID(objectID, includeRemoved any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetObjectByID", reflect.TypeOf((*MockMetadata)(nil).GetObjectByID), objectID, includeRemoved)
}

// GetObjectByName mocks base method.
func (m *MockMetadata) GetObjectByName(objectName, bucketName string, includePrivate bool) (*Object, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetObjectByName", objectName, bucketName, includePrivate)
	ret0, _ := ret[0].(*Object)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetObjectByName indicates an expected call of GetObjectByName.
func (mr *MockMetadataMockRecorder) GetObjectByName(objectName, bucketName, includePrivate any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetObjectByName", reflect.TypeOf((*MockMetadata)(nil).GetObjectByName), objectName, bucketName, includePrivate)
}

// GetObjectCount mocks base method.
func (m *MockMetadata) GetObjectCount(blockHeight int64, objectStatus string) ([]int64, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetObjectCount", blockHeight, objectStatus)
	ret0, _ := ret[0].([]int64)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetObjectCount indicates an expected call of GetObjectCount.
func (mr *MockMetadataMockRecorder) GetObjectCount(blockHeight, objectStatus any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetObjectCount", reflect.TypeOf((*MockMetadata)(nil).GetObjectCount), blockHeight, objectStatus)
}

// GetPaymentByBucketID mocks base method.
func (m *MockMetadata) GetPaymentByBucketID(bucketID int64, includePrivate bool) (*StreamRecord, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetPaymentByBucketID", bucketID, includePrivate)
	ret0, _ := ret[0].(*StreamRecord)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetPaymentByBucketID indicates an expected call of GetPaymentByBucketID.
func (mr *MockMetadataMockRecorder) GetPaymentByBucketID(bucketID, includePrivate any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPaymentByBucketID", reflect.TypeOf((*MockMetadata)(nil).GetPaymentByBucketID), bucketID, includePrivate)
}

// GetPaymentByBucketName mocks base method.
func (m *MockMetadata) GetPaymentByBucketName(bucketName string, includePrivate bool) (*StreamRecord, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetPaymentByBucketName", bucketName, includePrivate)
	ret0, _ := ret[0].(*StreamRecord)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetPaymentByBucketName indicates an expected call of GetPaymentByBucketName.
func (mr *MockMetadataMockRecorder) GetPaymentByBucketName(bucketName, includePrivate any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPaymentByBucketName", reflect.TypeOf((*MockMetadata)(nil).GetPaymentByBucketName), bucketName, includePrivate)
}

// GetPaymentByPaymentAddress mocks base method.
func (m *MockMetadata) GetPaymentByPaymentAddress(address common.Address) (*StreamRecord, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetPaymentByPaymentAddress", address)
	ret0, _ := ret[0].(*StreamRecord)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetPaymentByPaymentAddress indicates an expected call of GetPaymentByPaymentAddress.
func (mr *MockMetadataMockRecorder) GetPaymentByPaymentAddress(address any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPaymentByPaymentAddress", reflect.TypeOf((*MockMetadata)(nil).GetPaymentByPaymentAddress), address)
}

// GetPermissionByResourceAndPrincipal mocks base method.
func (m *MockMetadata) GetPermissionByResourceAndPrincipal(resourceType, principalType, principalValue string, resourceID common.Hash) (*Permission, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetPermissionByResourceAndPrincipal", resourceType, principalType, principalValue, resourceID)
	ret0, _ := ret[0].(*Permission)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetPermissionByResourceAndPrincipal indicates an expected call of GetPermissionByResourceAndPrincipal.
func (mr *MockMetadataMockRecorder) GetPermissionByResourceAndPrincipal(resourceType, principalType, principalValue, resourceID any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPermissionByResourceAndPrincipal", reflect.TypeOf((*MockMetadata)(nil).GetPermissionByResourceAndPrincipal), resourceType, principalType, principalValue, resourceID)
}

// GetPermissionsByResourceAndPrincipleType mocks base method.
func (m *MockMetadata) GetPermissionsByResourceAndPrincipleType(resourceType, principalType string, resourceID common.Hash, includeRemoved bool) ([]*Permission, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetPermissionsByResourceAndPrincipleType", resourceType, principalType, resourceID, includeRemoved)
	ret0, _ := ret[0].([]*Permission)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetPermissionsByResourceAndPrincipleType indicates an expected call of GetPermissionsByResourceAndPrincipleType.
func (mr *MockMetadataMockRecorder) GetPermissionsByResourceAndPrincipleType(resourceType, principalType, resourceID, includeRemoved any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPermissionsByResourceAndPrincipleType", reflect.TypeOf((*MockMetadata)(nil).GetPermissionsByResourceAndPrincipleType), resourceType, principalType, resourceID, includeRemoved)
}

// GetPrimarySPStreamRecordBySpID mocks base method.
func (m *MockMetadata) GetPrimarySPStreamRecordBySpID(spID uint32) ([]*PrimarySpIncomeMeta, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetPrimarySPStreamRecordBySpID", spID)
	ret0, _ := ret[0].([]*PrimarySpIncomeMeta)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetPrimarySPStreamRecordBySpID indicates an expected call of GetPrimarySPStreamRecordBySpID.
func (mr *MockMetadataMockRecorder) GetPrimarySPStreamRecordBySpID(spID any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPrimarySPStreamRecordBySpID", reflect.TypeOf((*MockMetadata)(nil).GetPrimarySPStreamRecordBySpID), spID)
}

// GetSPByAddress mocks base method.
func (m *MockMetadata) GetSPByAddress(operatorAddress common.Address) (*StorageProvider, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetSPByAddress", operatorAddress)
	ret0, _ := ret[0].(*StorageProvider)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetSPByAddress indicates an expected call of GetSPByAddress.
func (mr *MockMetadataMockRecorder) GetSPByAddress(operatorAddress any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSPByAddress", reflect.TypeOf((*MockMetadata)(nil).GetSPByAddress), operatorAddress)
}

// GetSecondarySPStreamRecordBySpID mocks base method.
func (m *MockMetadata) GetSecondarySPStreamRecordBySpID(spID uint32) ([]*SecondarySpIncomeMeta, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetSecondarySPStreamRecordBySpID", spID)
	ret0, _ := ret[0].([]*SecondarySpIncomeMeta)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetSecondarySPStreamRecordBySpID indicates an expected call of GetSecondarySPStreamRecordBySpID.
func (mr *MockMetadataMockRecorder) GetSecondarySPStreamRecordBySpID(spID any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSecondarySPStreamRecordBySpID", reflect.TypeOf((*MockMetadata)(nil).GetSecondarySPStreamRecordBySpID), spID)
}

// GetSpVersion mocks base method.
func (m *MockMetadata) GetSpVersion() *SpVersion {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetSpVersion")
	ret0, _ := ret[0].(*SpVersion)
	return ret0
}

// GetSpVersion indicates an expected call of GetSpVersion.
func (mr *MockMetadataMockRecorder) GetSpVersion() *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSpVersion", reflect.TypeOf((*MockMetadata)(nil).GetSpVersion))
}

// GetStatementsByPolicyID mocks base method.
func (m *MockMetadata) GetStatementsByPolicyID(policyIDList []common.Hash, includeRemoved bool) ([]*Statement, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetStatementsByPolicyID", policyIDList, includeRemoved)
	ret0, _ := ret[0].([]*Statement)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetStatementsByPolicyID indicates an expected call of GetStatementsByPolicyID.
func (mr *MockMetadataMockRecorder) GetStatementsByPolicyID(policyIDList, includeRemoved any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetStatementsByPolicyID", reflect.TypeOf((*MockMetadata)(nil).GetStatementsByPolicyID), policyIDList, includeRemoved)
}

// GetSwitchDBSignal mocks base method.
func (m *MockMetadata) GetSwitchDBSignal() (*MasterDB, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetSwitchDBSignal")
	ret0, _ := ret[0].(*MasterDB)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetSwitchDBSignal indicates an expected call of GetSwitchDBSignal.
func (mr *MockMetadataMockRecorder) GetSwitchDBSignal() *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSwitchDBSignal", reflect.TypeOf((*MockMetadata)(nil).GetSwitchDBSignal))
}

// GetUserBuckets mocks base method.
func (m *MockMetadata) GetUserBuckets(accountID common.Address, includeRemoved bool) ([]*Bucket, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetUserBuckets", accountID, includeRemoved)
	ret0, _ := ret[0].([]*Bucket)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetUserBuckets indicates an expected call of GetUserBuckets.
func (mr *MockMetadataMockRecorder) GetUserBuckets(accountID, includeRemoved any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUserBuckets", reflect.TypeOf((*MockMetadata)(nil).GetUserBuckets), accountID, includeRemoved)
}

// GetUserBucketsCount mocks base method.
func (m *MockMetadata) GetUserBucketsCount(accountID common.Address, includeRemoved bool) (int64, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetUserBucketsCount", accountID, includeRemoved)
	ret0, _ := ret[0].(int64)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetUserBucketsCount indicates an expected call of GetUserBucketsCount.
func (mr *MockMetadataMockRecorder) GetUserBucketsCount(accountID, includeRemoved any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUserBucketsCount", reflect.TypeOf((*MockMetadata)(nil).GetUserBucketsCount), accountID, includeRemoved)
}

// GetUserGroups mocks base method.
func (m *MockMetadata) GetUserGroups(accountID common.Address, startAfter common.Hash, limit int) ([]*GroupMemberMeta, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetUserGroups", accountID, startAfter, limit)
	ret0, _ := ret[0].([]*GroupMemberMeta)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetUserGroups indicates an expected call of GetUserGroups.
func (mr *MockMetadataMockRecorder) GetUserGroups(accountID, startAfter, limit any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUserGroups", reflect.TypeOf((*MockMetadata)(nil).GetUserGroups), accountID, startAfter, limit)
}

// GetUserOwnedGroups mocks base method.
func (m *MockMetadata) GetUserOwnedGroups(accountID common.Address, startAfter common.Hash, limit int) ([]*Group, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetUserOwnedGroups", accountID, startAfter, limit)
	ret0, _ := ret[0].([]*Group)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetUserOwnedGroups indicates an expected call of GetUserOwnedGroups.
func (mr *MockMetadataMockRecorder) GetUserOwnedGroups(accountID, startAfter, limit any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUserOwnedGroups", reflect.TypeOf((*MockMetadata)(nil).GetUserOwnedGroups), accountID, startAfter, limit)
}

// GetVirtualGroupFamiliesByVgfID mocks base method.
func (m *MockMetadata) GetVirtualGroupFamiliesByVgfID(vgfID uint32) (*GlobalVirtualGroupFamily, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetVirtualGroupFamiliesByVgfID", vgfID)
	ret0, _ := ret[0].(*GlobalVirtualGroupFamily)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetVirtualGroupFamiliesByVgfID indicates an expected call of GetVirtualGroupFamiliesByVgfID.
func (mr *MockMetadataMockRecorder) GetVirtualGroupFamiliesByVgfID(vgfID any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetVirtualGroupFamiliesByVgfID", reflect.TypeOf((*MockMetadata)(nil).GetVirtualGroupFamiliesByVgfID), vgfID)
}

// ListBucketsByIDs mocks base method.
func (m *MockMetadata) ListBucketsByIDs(ids []common.Hash, includeRemoved bool) ([]*Bucket, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "ListBucketsByIDs", ids, includeRemoved)
	ret0, _ := ret[0].([]*Bucket)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// ListBucketsByIDs indicates an expected call of ListBucketsByIDs.
func (mr *MockMetadataMockRecorder) ListBucketsByIDs(ids, includeRemoved any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListBucketsByIDs", reflect.TypeOf((*MockMetadata)(nil).ListBucketsByIDs), ids, includeRemoved)
}

// ListBucketsByVgfID mocks base method.
func (m *MockMetadata) ListBucketsByVgfID(vgfIDs []uint32, startAfter common.Hash, limit int) ([]*Bucket, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "ListBucketsByVgfID", vgfIDs, startAfter, limit)
	ret0, _ := ret[0].([]*Bucket)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// ListBucketsByVgfID indicates an expected call of ListBucketsByVgfID.
func (mr *MockMetadataMockRecorder) ListBucketsByVgfID(vgfIDs, startAfter, limit any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListBucketsByVgfID", reflect.TypeOf((*MockMetadata)(nil).ListBucketsByVgfID), vgfIDs, startAfter, limit)
}

// ListCompleteMigrationBucket mocks base method.
func (m *MockMetadata) ListCompleteMigrationBucket(srcSpID uint32, filters ...func(*gorm.DB) *gorm.DB) ([]*EventCompleteMigrationBucket, error) {
	m.ctrl.T.Helper()
	varargs := []any{srcSpID}
	for _, a := range filters {
		varargs = append(varargs, a)
	}
	ret := m.ctrl.Call(m, "ListCompleteMigrationBucket", varargs...)
	ret0, _ := ret[0].([]*EventCompleteMigrationBucket)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// ListCompleteMigrationBucket indicates an expected call of ListCompleteMigrationBucket.
func (mr *MockMetadataMockRecorder) ListCompleteMigrationBucket(srcSpID any, filters ...any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	varargs := append([]any{srcSpID}, filters...)
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListCompleteMigrationBucket", reflect.TypeOf((*MockMetadata)(nil).ListCompleteMigrationBucket), varargs...)
}

// ListDeletedObjectsByBlockNumberRange mocks base method.
func (m *MockMetadata) ListDeletedObjectsByBlockNumberRange(startBlockNumber, endBlockNumber uint64, includePrivate bool) ([]*Object, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "ListDeletedObjectsByBlockNumberRange", startBlockNumber, endBlockNumber, includePrivate)
	ret0, _ := ret[0].([]*Object)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// ListDeletedObjectsByBlockNumberRange indicates an expected call of ListDeletedObjectsByBlockNumberRange.
func (mr *MockMetadataMockRecorder) ListDeletedObjectsByBlockNumberRange(startBlockNumber, endBlockNumber, includePrivate any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDeletedObjectsByBlockNumberRange", reflect.TypeOf((*MockMetadata)(nil).ListDeletedObjectsByBlockNumberRange), startBlockNumber, endBlockNumber, includePrivate)
}

// ListExpiredBucketsBySp mocks base method.
func (m *MockMetadata) ListExpiredBucketsBySp(createAt int64, primarySpID uint32, limit int64) ([]*Bucket, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "ListExpiredBucketsBySp", createAt, primarySpID, limit)
	ret0, _ := ret[0].([]*Bucket)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// ListExpiredBucketsBySp indicates an expected call of ListExpiredBucketsBySp.
func (mr *MockMetadataMockRecorder) ListExpiredBucketsBySp(createAt, primarySpID, limit any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListExpiredBucketsBySp", reflect.TypeOf((*MockMetadata)(nil).ListExpiredBucketsBySp), createAt, primarySpID, limit)
}

// ListGroupsByIDs mocks base method.
func (m *MockMetadata) ListGroupsByIDs(ids []common.Hash) ([]*Group, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "ListGroupsByIDs", ids)
	ret0, _ := ret[0].([]*Group)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// ListGroupsByIDs indicates an expected call of ListGroupsByIDs.
func (mr *MockMetadataMockRecorder) ListGroupsByIDs(ids any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGroupsByIDs", reflect.TypeOf((*MockMetadata)(nil).ListGroupsByIDs), ids)
}

// ListGroupsByNameAndSourceType mocks base method.
func (m *MockMetadata) ListGroupsByNameAndSourceType(name, prefix, sourceType string, limit, offset int, includeRemoved bool) ([]*Group, int64, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "ListGroupsByNameAndSourceType", name, prefix, sourceType, limit, offset, includeRemoved)
	ret0, _ := ret[0].([]*Group)
	ret1, _ := ret[1].(int64)
	ret2, _ := ret[2].(error)
	return ret0, ret1, ret2
}

// ListGroupsByNameAndSourceType indicates an expected call of ListGroupsByNameAndSourceType.
func (mr *MockMetadataMockRecorder) ListGroupsByNameAndSourceType(name, prefix, sourceType, limit, offset, includeRemoved any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGroupsByNameAndSourceType", reflect.TypeOf((*MockMetadata)(nil).ListGroupsByNameAndSourceType), name, prefix, sourceType, limit, offset, includeRemoved)
}

// ListGvgByBucketID mocks base method.
func (m *MockMetadata) ListGvgByBucketID(bucketID common.Hash) ([]*GlobalVirtualGroup, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "ListGvgByBucketID", bucketID)
	ret0, _ := ret[0].([]*GlobalVirtualGroup)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// ListGvgByBucketID indicates an expected call of ListGvgByBucketID.
func (mr *MockMetadataMockRecorder) ListGvgByBucketID(bucketID any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGvgByBucketID", reflect.TypeOf((*MockMetadata)(nil).ListGvgByBucketID), bucketID)
}

// ListGvgByPrimarySpID mocks base method.
func (m *MockMetadata) ListGvgByPrimarySpID(spID uint32) ([]*GlobalVirtualGroup, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "ListGvgByPrimarySpID", spID)
	ret0, _ := ret[0].([]*GlobalVirtualGroup)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// ListGvgByPrimarySpID indicates an expected call of ListGvgByPrimarySpID.
func (mr *MockMetadataMockRecorder) ListGvgByPrimarySpID(spID any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGvgByPrimarySpID", reflect.TypeOf((*MockMetadata)(nil).ListGvgByPrimarySpID), spID)
}

// ListGvgBySecondarySpID mocks base method.
func (m *MockMetadata) ListGvgBySecondarySpID(spID uint32) ([]*GlobalVirtualGroup, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "ListGvgBySecondarySpID", spID)
	ret0, _ := ret[0].([]*GlobalVirtualGroup)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// ListGvgBySecondarySpID indicates an expected call of ListGvgBySecondarySpID.
func (mr *MockMetadataMockRecorder) ListGvgBySecondarySpID(spID any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGvgBySecondarySpID", reflect.TypeOf((*MockMetadata)(nil).ListGvgBySecondarySpID), spID)
}

// ListLvgByGvgAndBucketID mocks base method.
func (m *MockMetadata) ListLvgByGvgAndBucketID(bucketID common.Hash, gvgIDs []uint32) ([]*LocalVirtualGroup, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "ListLvgByGvgAndBucketID", bucketID, gvgIDs)
	ret0, _ := ret[0].([]*LocalVirtualGroup)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// ListLvgByGvgAndBucketID indicates an expected call of ListLvgByGvgAndBucketID.
func (mr *MockMetadataMockRecorder) ListLvgByGvgAndBucketID(bucketID, gvgIDs any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListLvgByGvgAndBucketID", reflect.TypeOf((*MockMetadata)(nil).ListLvgByGvgAndBucketID), bucketID, gvgIDs)
}

// ListLvgByGvgID mocks base method.
func (m *MockMetadata) ListLvgByGvgID(gvgIDs []uint32) ([]*LocalVirtualGroup, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "ListLvgByGvgID", gvgIDs)
	ret0, _ := ret[0].([]*LocalVirtualGroup)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// ListLvgByGvgID indicates an expected call of ListLvgByGvgID.
func (mr *MockMetadataMockRecorder) ListLvgByGvgID(gvgIDs any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListLvgByGvgID", reflect.TypeOf((*MockMetadata)(nil).ListLvgByGvgID), gvgIDs)
}

// ListMigrateBucketEvents mocks base method.
func (m *MockMetadata) ListMigrateBucketEvents(spID uint32, filters ...func(*gorm.DB) *gorm.DB) ([]*EventMigrationBucket, []*EventCompleteMigrationBucket, []*EventCancelMigrationBucket, []*EventRejectMigrateBucket, error) {
	m.ctrl.T.Helper()
	varargs := []any{spID}
	for _, a := range filters {
		varargs = append(varargs, a)
	}
	ret := m.ctrl.Call(m, "ListMigrateBucketEvents", varargs...)
	ret0, _ := ret[0].([]*EventMigrationBucket)
	ret1, _ := ret[1].([]*EventCompleteMigrationBucket)
	ret2, _ := ret[2].([]*EventCancelMigrationBucket)
	ret3, _ := ret[3].([]*EventRejectMigrateBucket)
	ret4, _ := ret[4].(error)
	return ret0, ret1, ret2, ret3, ret4
}

// ListMigrateBucketEvents indicates an expected call of ListMigrateBucketEvents.
func (mr *MockMetadataMockRecorder) ListMigrateBucketEvents(spID any, filters ...any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	varargs := append([]any{spID}, filters...)
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListMigrateBucketEvents", reflect.TypeOf((*MockMetadata)(nil).ListMigrateBucketEvents), varargs...)
}

// ListObjectPolicies mocks base method.
func (m *MockMetadata) ListObjectPolicies(objectID common.Hash, actionType types.ActionType, startAfter common.Hash, limit int) ([]*PermissionWithStatement, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "ListObjectPolicies", objectID, actionType, startAfter, limit)
	ret0, _ := ret[0].([]*PermissionWithStatement)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// ListObjectPolicies indicates an expected call of ListObjectPolicies.
func (mr *MockMetadataMockRecorder) ListObjectPolicies(objectID, actionType, startAfter, limit any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListObjectPolicies", reflect.TypeOf((*MockMetadata)(nil).ListObjectPolicies), objectID, actionType, startAfter, limit)
}

// ListObjectsByBucketName mocks base method.
func (m *MockMetadata) ListObjectsByBucketName(bucketName, continuationToken, prefix, delimiter string, maxKeys int, includeRemoved bool) ([]*ListObjectsResult, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "ListObjectsByBucketName", bucketName, continuationToken, prefix, delimiter, maxKeys, includeRemoved)
	ret0, _ := ret[0].([]*ListObjectsResult)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// ListObjectsByBucketName indicates an expected call of ListObjectsByBucketName.
func (mr *MockMetadataMockRecorder) ListObjectsByBucketName(bucketName, continuationToken, prefix, delimiter, maxKeys, includeRemoved any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListObjectsByBucketName", reflect.TypeOf((*MockMetadata)(nil).ListObjectsByBucketName), bucketName, continuationToken, prefix, delimiter, maxKeys, includeRemoved)
}

// ListObjectsByGVGAndBucketForGC mocks base method.
func (m *MockMetadata) ListObjectsByGVGAndBucketForGC(bucketID common.Hash, gvgID uint32, startAfter common.Hash, limit int) ([]*Object, *Bucket, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "ListObjectsByGVGAndBucketForGC", bucketID, gvgID, startAfter, limit)
	ret0, _ := ret[0].([]*Object)
	ret1, _ := ret[1].(*Bucket)
	ret2, _ := ret[2].(error)
	return ret0, ret1, ret2
}

// ListObjectsByGVGAndBucketForGC indicates an expected call of ListObjectsByGVGAndBucketForGC.
func (mr *MockMetadataMockRecorder) ListObjectsByGVGAndBucketForGC(bucketID, gvgID, startAfter, limit any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListObjectsByGVGAndBucketForGC", reflect.TypeOf((*MockMetadata)(nil).ListObjectsByGVGAndBucketForGC), bucketID, gvgID, startAfter, limit)
}

// ListObjectsByIDs mocks base method.
func (m *MockMetadata) ListObjectsByIDs(ids []common.Hash, includeRemoved bool) ([]*Object, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "ListObjectsByIDs", ids, includeRemoved)
	ret0, _ := ret[0].([]*Object)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// ListObjectsByIDs indicates an expected call of ListObjectsByIDs.
func (mr *MockMetadataMockRecorder) ListObjectsByIDs(ids, includeRemoved any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListObjectsByIDs", reflect.TypeOf((*MockMetadata)(nil).ListObjectsByIDs), ids, includeRemoved)
}

// ListObjectsByLVGID mocks base method.
func (m *MockMetadata) ListObjectsByLVGID(lvgIDs []uint32, bucketID, startAfter common.Hash, limit int, filters ...func(*gorm.DB) *gorm.DB) ([]*Object, *Bucket, error) {
	m.ctrl.T.Helper()
	varargs := []any{lvgIDs, bucketID, startAfter, limit}
	for _, a := range filters {
		varargs = append(varargs, a)
	}
	ret := m.ctrl.Call(m, "ListObjectsByLVGID", varargs...)
	ret0, _ := ret[0].([]*Object)
	ret1, _ := ret[1].(*Bucket)
	ret2, _ := ret[2].(error)
	return ret0, ret1, ret2
}

// ListObjectsByLVGID indicates an expected call of ListObjectsByLVGID.
func (mr *MockMetadataMockRecorder) ListObjectsByLVGID(lvgIDs, bucketID, startAfter, limit any, filters ...any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	varargs := append([]any{lvgIDs, bucketID, startAfter, limit}, filters...)
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListObjectsByLVGID", reflect.TypeOf((*MockMetadata)(nil).ListObjectsByLVGID), varargs...)
}

// ListObjectsInGVG mocks base method.
func (m *MockMetadata) ListObjectsInGVG(gvgID uint32, startAfter common.Hash, limit int) ([]*Object, []*Bucket, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "ListObjectsInGVG", gvgID, startAfter, limit)
	ret0, _ := ret[0].([]*Object)
	ret1, _ := ret[1].([]*Bucket)
	ret2, _ := ret[2].(error)
	return ret0, ret1, ret2
}

// ListObjectsInGVG indicates an expected call of ListObjectsInGVG.
func (mr *MockMetadataMockRecorder) ListObjectsInGVG(gvgID, startAfter, limit any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListObjectsInGVG", reflect.TypeOf((*MockMetadata)(nil).ListObjectsInGVG), gvgID, startAfter, limit)
}

// ListObjectsInGVGAndBucket mocks base method.
func (m *MockMetadata) ListObjectsInGVGAndBucket(bucketID common.Hash, gvgID uint32, startAfter common.Hash, limit int) ([]*Object, *Bucket, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "ListObjectsInGVGAndBucket", bucketID, gvgID, startAfter, limit)
	ret0, _ := ret[0].([]*Object)
	ret1, _ := ret[1].(*Bucket)
	ret2, _ := ret[2].(error)
	return ret0, ret1, ret2
}

// ListObjectsInGVGAndBucket indicates an expected call of ListObjectsInGVGAndBucket.
func (mr *MockMetadataMockRecorder) ListObjectsInGVGAndBucket(bucketID, gvgID, startAfter, limit any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListObjectsInGVGAndBucket", reflect.TypeOf((*MockMetadata)(nil).ListObjectsInGVGAndBucket), bucketID, gvgID, startAfter, limit)
}

// ListPaymentAccountStreams mocks base method.
func (m *MockMetadata) ListPaymentAccountStreams(paymentAccount common.Address) ([]*Bucket, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "ListPaymentAccountStreams", paymentAccount)
	ret0, _ := ret[0].([]*Bucket)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// ListPaymentAccountStreams indicates an expected call of ListPaymentAccountStreams.
func (mr *MockMetadataMockRecorder) ListPaymentAccountStreams(paymentAccount any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListPaymentAccountStreams", reflect.TypeOf((*MockMetadata)(nil).ListPaymentAccountStreams), paymentAccount)
}

// ListSpExitEvents mocks base method.
func (m *MockMetadata) ListSpExitEvents(blockID uint64, spID uint32) (*EventStorageProviderExit, *EventCompleteStorageProviderExit, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "ListSpExitEvents", blockID, spID)
	ret0, _ := ret[0].(*EventStorageProviderExit)
	ret1, _ := ret[1].(*EventCompleteStorageProviderExit)
	ret2, _ := ret[2].(error)
	return ret0, ret1, ret2
}

// ListSpExitEvents indicates an expected call of ListSpExitEvents.
func (mr *MockMetadataMockRecorder) ListSpExitEvents(blockID, spID any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSpExitEvents", reflect.TypeOf((*MockMetadata)(nil).ListSpExitEvents), blockID, spID)
}

// ListSwapOutEvents mocks base method.
func (m *MockMetadata) ListSwapOutEvents(blockID uint64, spID uint32) ([]*EventSwapOut, []*EventCompleteSwapOut, []*EventCancelSwapOut, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "ListSwapOutEvents", blockID, spID)
	ret0, _ := ret[0].([]*EventSwapOut)
	ret1, _ := ret[1].([]*EventCompleteSwapOut)
	ret2, _ := ret[2].([]*EventCancelSwapOut)
	ret3, _ := ret[3].(error)
	return ret0, ret1, ret2, ret3
}

// ListSwapOutEvents indicates an expected call of ListSwapOutEvents.
func (mr *MockMetadataMockRecorder) ListSwapOutEvents(blockID, spID any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSwapOutEvents", reflect.TypeOf((*MockMetadata)(nil).ListSwapOutEvents), blockID, spID)
}

// ListUserPaymentAccounts mocks base method.
func (m *MockMetadata) ListUserPaymentAccounts(accountID common.Address) ([]*StreamRecordPaymentAccount, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "ListUserPaymentAccounts", accountID)
	ret0, _ := ret[0].([]*StreamRecordPaymentAccount)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// ListUserPaymentAccounts indicates an expected call of ListUserPaymentAccounts.
func (mr *MockMetadataMockRecorder) ListUserPaymentAccounts(accountID any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListUserPaymentAccounts", reflect.TypeOf((*MockMetadata)(nil).ListUserPaymentAccounts), accountID)
}

// ListVgfByGvgID mocks base method.
func (m *MockMetadata) ListVgfByGvgID(gvgIDs []uint32) ([]*GlobalVirtualGroupFamily, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "ListVgfByGvgID", gvgIDs)
	ret0, _ := ret[0].([]*GlobalVirtualGroupFamily)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// ListVgfByGvgID indicates an expected call of ListVgfByGvgID.
func (mr *MockMetadataMockRecorder) ListVgfByGvgID(gvgIDs any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListVgfByGvgID", reflect.TypeOf((*MockMetadata)(nil).ListVgfByGvgID), gvgIDs)
}

// ListVirtualGroupFamiliesBySpID mocks base method.
func (m *MockMetadata) ListVirtualGroupFamiliesBySpID(spID uint32) ([]*GlobalVirtualGroupFamily, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "ListVirtualGroupFamiliesBySpID", spID)
	ret0, _ := ret[0].([]*GlobalVirtualGroupFamily)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// ListVirtualGroupFamiliesBySpID indicates an expected call of ListVirtualGroupFamiliesBySpID.
func (mr *MockMetadataMockRecorder) ListVirtualGroupFamiliesBySpID(spID any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListVirtualGroupFamiliesBySpID", reflect.TypeOf((*MockMetadata)(nil).ListVirtualGroupFamiliesBySpID), spID)
}

// ListVirtualGroupFamiliesByVgfIDs mocks base method.
func (m *MockMetadata) ListVirtualGroupFamiliesByVgfIDs(vgfIDs []uint32) ([]*GlobalVirtualGroupFamily, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "ListVirtualGroupFamiliesByVgfIDs", vgfIDs)
	ret0, _ := ret[0].([]*GlobalVirtualGroupFamily)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// ListVirtualGroupFamiliesByVgfIDs indicates an expected call of ListVirtualGroupFamiliesByVgfIDs.
func (mr *MockMetadataMockRecorder) ListVirtualGroupFamiliesByVgfIDs(vgfIDs any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListVirtualGroupFamiliesByVgfIDs", reflect.TypeOf((*MockMetadata)(nil).ListVirtualGroupFamiliesByVgfIDs), vgfIDs)
}

// MockBSDB is a mock of BSDB interface.
type MockBSDB struct {
	ctrl     *gomock.Controller
	recorder *MockBSDBMockRecorder
}

// MockBSDBMockRecorder is the mock recorder for MockBSDB.
type MockBSDBMockRecorder struct {
	mock *MockBSDB
}

// NewMockBSDB creates a new mock instance.
func NewMockBSDB(ctrl *gomock.Controller) *MockBSDB {
	mock := &MockBSDB{ctrl: ctrl}
	mock.recorder = &MockBSDBMockRecorder{mock}
	return mock
}

// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockBSDB) EXPECT() *MockBSDBMockRecorder {
	return m.recorder
}

// GetBsDBDataStatistics mocks base method.
func (m *MockBSDB) GetBsDBDataStatistics(blockHeight uint64) (*DataStat, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetBsDBDataStatistics", blockHeight)
	ret0, _ := ret[0].(*DataStat)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetBsDBDataStatistics indicates an expected call of GetBsDBDataStatistics.
func (mr *MockBSDBMockRecorder) GetBsDBDataStatistics(blockHeight any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBsDBDataStatistics", reflect.TypeOf((*MockBSDB)(nil).GetBsDBDataStatistics), blockHeight)
}

// GetBucketByID mocks base method.
func (m *MockBSDB) GetBucketByID(bucketID int64, includePrivate bool) (*Bucket, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetBucketByID", bucketID, includePrivate)
	ret0, _ := ret[0].(*Bucket)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetBucketByID indicates an expected call of GetBucketByID.
func (mr *MockBSDBMockRecorder) GetBucketByID(bucketID, includePrivate any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBucketByID", reflect.TypeOf((*MockBSDB)(nil).GetBucketByID), bucketID, includePrivate)
}

// GetBucketByName mocks base method.
func (m *MockBSDB) GetBucketByName(bucketName string, includePrivate bool) (*Bucket, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetBucketByName", bucketName, includePrivate)
	ret0, _ := ret[0].(*Bucket)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetBucketByName indicates an expected call of GetBucketByName.
func (mr *MockBSDBMockRecorder) GetBucketByName(bucketName, includePrivate any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBucketByName", reflect.TypeOf((*MockBSDB)(nil).GetBucketByName), bucketName, includePrivate)
}

// GetBucketInfoByBucketName mocks base method.
func (m *MockBSDB) GetBucketInfoByBucketName(bucketName string) (*Bucket, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetBucketInfoByBucketName", bucketName)
	ret0, _ := ret[0].(*Bucket)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetBucketInfoByBucketName indicates an expected call of GetBucketInfoByBucketName.
func (mr *MockBSDBMockRecorder) GetBucketInfoByBucketName(bucketName any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBucketInfoByBucketName", reflect.TypeOf((*MockBSDB)(nil).GetBucketInfoByBucketName), bucketName)
}

// GetBucketMetaByName mocks base method.
func (m *MockBSDB) GetBucketMetaByName(bucketName string, includePrivate bool) (*BucketFullMeta, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetBucketMetaByName", bucketName, includePrivate)
	ret0, _ := ret[0].(*BucketFullMeta)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetBucketMetaByName indicates an expected call of GetBucketMetaByName.
func (mr *MockBSDBMockRecorder) GetBucketMetaByName(bucketName, includePrivate any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBucketMetaByName", reflect.TypeOf((*MockBSDB)(nil).GetBucketMetaByName), bucketName, includePrivate)
}

// GetBucketSizeByID mocks base method.
func (m *MockBSDB) GetBucketSizeByID(bucketID uint64) (decimal.Decimal, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetBucketSizeByID", bucketID)
	ret0, _ := ret[0].(decimal.Decimal)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetBucketSizeByID indicates an expected call of GetBucketSizeByID.
func (mr *MockBSDBMockRecorder) GetBucketSizeByID(bucketID any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBucketSizeByID", reflect.TypeOf((*MockBSDB)(nil).GetBucketSizeByID), bucketID)
}

// GetDataMigrationRecordByProcessKey mocks base method.
func (m *MockBSDB) GetDataMigrationRecordByProcessKey(processKey string) (*DataMigrationRecord, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetDataMigrationRecordByProcessKey", processKey)
	ret0, _ := ret[0].(*DataMigrationRecord)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetDataMigrationRecordByProcessKey indicates an expected call of GetDataMigrationRecordByProcessKey.
func (mr *MockBSDBMockRecorder) GetDataMigrationRecordByProcessKey(processKey any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDataMigrationRecordByProcessKey", reflect.TypeOf((*MockBSDB)(nil).GetDataMigrationRecordByProcessKey), processKey)
}

// GetDefaultCharacterSet mocks base method.
func (m *MockBSDB) GetDefaultCharacterSet() (string, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetDefaultCharacterSet")
	ret0, _ := ret[0].(string)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetDefaultCharacterSet indicates an expected call of GetDefaultCharacterSet.
func (mr *MockBSDBMockRecorder) GetDefaultCharacterSet() *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDefaultCharacterSet", reflect.TypeOf((*MockBSDB)(nil).GetDefaultCharacterSet))
}

// GetDefaultCollationName mocks base method.
func (m *MockBSDB) GetDefaultCollationName() (string, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetDefaultCollationName")
	ret0, _ := ret[0].(string)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetDefaultCollationName indicates an expected call of GetDefaultCollationName.
func (mr *MockBSDBMockRecorder) GetDefaultCollationName() *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDefaultCollationName", reflect.TypeOf((*MockBSDB)(nil).GetDefaultCollationName))
}

// GetEpoch mocks base method.
func (m *MockBSDB) GetEpoch() (*Epoch, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetEpoch")
	ret0, _ := ret[0].(*Epoch)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetEpoch indicates an expected call of GetEpoch.
func (mr *MockBSDBMockRecorder) GetEpoch() *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetEpoch", reflect.TypeOf((*MockBSDB)(nil).GetEpoch))
}

// GetEventMigrationBucketByBucketID mocks base method.
func (m *MockBSDB) GetEventMigrationBucketByBucketID(bucketID common.Hash) (*EventMigrationBucket, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetEventMigrationBucketByBucketID", bucketID)
	ret0, _ := ret[0].(*EventMigrationBucket)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetEventMigrationBucketByBucketID indicates an expected call of GetEventMigrationBucketByBucketID.
func (mr *MockBSDBMockRecorder) GetEventMigrationBucketByBucketID(bucketID any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetEventMigrationBucketByBucketID", reflect.TypeOf((*MockBSDB)(nil).GetEventMigrationBucketByBucketID), bucketID)
}

// GetEventSwapOutByGvgID mocks base method.
func (m *MockBSDB) GetEventSwapOutByGvgID(gvgID uint32) (*EventSwapOut, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetEventSwapOutByGvgID", gvgID)
	ret0, _ := ret[0].(*EventSwapOut)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetEventSwapOutByGvgID indicates an expected call of GetEventSwapOutByGvgID.
func (mr *MockBSDBMockRecorder) GetEventSwapOutByGvgID(gvgID any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetEventSwapOutByGvgID", reflect.TypeOf((*MockBSDB)(nil).GetEventSwapOutByGvgID), gvgID)
}

// GetGlobalVirtualGroupByGvgID mocks base method.
func (m *MockBSDB) GetGlobalVirtualGroupByGvgID(gvgID uint32) (*GlobalVirtualGroup, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetGlobalVirtualGroupByGvgID", gvgID)
	ret0, _ := ret[0].(*GlobalVirtualGroup)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetGlobalVirtualGroupByGvgID indicates an expected call of GetGlobalVirtualGroupByGvgID.
func (mr *MockBSDBMockRecorder) GetGlobalVirtualGroupByGvgID(gvgID any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGlobalVirtualGroupByGvgID", reflect.TypeOf((*MockBSDB)(nil).GetGlobalVirtualGroupByGvgID), gvgID)
}

// GetGroupByID mocks base method.
func (m *MockBSDB) GetGroupByID(groupID int64, includeRemoved bool) (*Group, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetGroupByID", groupID, includeRemoved)
	ret0, _ := ret[0].(*Group)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetGroupByID indicates an expected call of GetGroupByID.
func (mr *MockBSDBMockRecorder) GetGroupByID(groupID, includeRemoved any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGroupByID", reflect.TypeOf((*MockBSDB)(nil).GetGroupByID), groupID, includeRemoved)
}

// GetGroupMembers mocks base method.
func (m *MockBSDB) GetGroupMembers(groupID common.Hash, startAfter common.Address, limit int) ([]*GroupMemberMeta, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetGroupMembers", groupID, startAfter, limit)
	ret0, _ := ret[0].([]*GroupMemberMeta)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetGroupMembers indicates an expected call of GetGroupMembers.
func (mr *MockBSDBMockRecorder) GetGroupMembers(groupID, startAfter, limit any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGroupMembers", reflect.TypeOf((*MockBSDB)(nil).GetGroupMembers), groupID, startAfter, limit)
}

// GetGroupMembersCount mocks base method.
func (m *MockBSDB) GetGroupMembersCount(groupIDs []common.Hash) ([]*GroupCount, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetGroupMembersCount", groupIDs)
	ret0, _ := ret[0].([]*GroupCount)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetGroupMembersCount indicates an expected call of GetGroupMembersCount.
func (mr *MockBSDBMockRecorder) GetGroupMembersCount(groupIDs any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGroupMembersCount", reflect.TypeOf((*MockBSDB)(nil).GetGroupMembersCount), groupIDs)
}

// GetGroupsByGroupIDAndAccount mocks base method.
func (m *MockBSDB) GetGroupsByGroupIDAndAccount(groupIDList []common.Hash, account common.Address, includeRemoved bool) ([]*Group, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetGroupsByGroupIDAndAccount", groupIDList, account, includeRemoved)
	ret0, _ := ret[0].([]*Group)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetGroupsByGroupIDAndAccount indicates an expected call of GetGroupsByGroupIDAndAccount.
func (mr *MockBSDBMockRecorder) GetGroupsByGroupIDAndAccount(groupIDList, account, includeRemoved any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGroupsByGroupIDAndAccount", reflect.TypeOf((*MockBSDB)(nil).GetGroupsByGroupIDAndAccount), groupIDList, account, includeRemoved)
}

// GetGvgByBucketAndLvgID mocks base method.
func (m *MockBSDB) GetGvgByBucketAndLvgID(bucketID common.Hash, lvgID uint32) (*GlobalVirtualGroup, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetGvgByBucketAndLvgID", bucketID, lvgID)
	ret0, _ := ret[0].(*GlobalVirtualGroup)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetGvgByBucketAndLvgID indicates an expected call of GetGvgByBucketAndLvgID.
func (mr *MockBSDBMockRecorder) GetGvgByBucketAndLvgID(bucketID, lvgID any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGvgByBucketAndLvgID", reflect.TypeOf((*MockBSDB)(nil).GetGvgByBucketAndLvgID), bucketID, lvgID)
}

// GetLatestBlockNumber mocks base method.
func (m *MockBSDB) GetLatestBlockNumber() (uint64, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetLatestBlockNumber")
	ret0, _ := ret[0].(uint64)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetLatestBlockNumber indicates an expected call of GetLatestBlockNumber.
func (mr *MockBSDBMockRecorder) GetLatestBlockNumber() *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLatestBlockNumber", reflect.TypeOf((*MockBSDB)(nil).GetLatestBlockNumber))
}

// GetLatestObjectID mocks base method.
func (m *MockBSDB) GetLatestObjectID() (uint64, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetLatestObjectID")
	ret0, _ := ret[0].(uint64)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetLatestObjectID indicates an expected call of GetLatestObjectID.
func (mr *MockBSDBMockRecorder) GetLatestObjectID() *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLatestObjectID", reflect.TypeOf((*MockBSDB)(nil).GetLatestObjectID))
}

// GetLvgByBucketAndLvgID mocks base method.
func (m *MockBSDB) GetLvgByBucketAndLvgID(bucketID common.Hash, lvgID uint32) (*LocalVirtualGroup, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetLvgByBucketAndLvgID", bucketID, lvgID)
	ret0, _ := ret[0].(*LocalVirtualGroup)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetLvgByBucketAndLvgID indicates an expected call of GetLvgByBucketAndLvgID.
func (mr *MockBSDBMockRecorder) GetLvgByBucketAndLvgID(bucketID, lvgID any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLvgByBucketAndLvgID", reflect.TypeOf((*MockBSDB)(nil).GetLvgByBucketAndLvgID), bucketID, lvgID)
}

// GetMigrateBucketEventByBucketID mocks base method.
func (m *MockBSDB) GetMigrateBucketEventByBucketID(bucketID common.Hash) (*EventCompleteMigrationBucket, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetMigrateBucketEventByBucketID", bucketID)
	ret0, _ := ret[0].(*EventCompleteMigrationBucket)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetMigrateBucketEventByBucketID indicates an expected call of GetMigrateBucketEventByBucketID.
func (mr *MockBSDBMockRecorder) GetMigrateBucketEventByBucketID(bucketID any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMigrateBucketEventByBucketID", reflect.TypeOf((*MockBSDB)(nil).GetMigrateBucketEventByBucketID), bucketID)
}

// GetMysqlVersion mocks base method.
func (m *MockBSDB) GetMysqlVersion() (string, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetMysqlVersion")
	ret0, _ := ret[0].(string)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetMysqlVersion indicates an expected call of GetMysqlVersion.
func (mr *MockBSDBMockRecorder) GetMysqlVersion() *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMysqlVersion", reflect.TypeOf((*MockBSDB)(nil).GetMysqlVersion))
}

// GetObjectByID mocks base method.
func (m *MockBSDB) GetObjectByID(objectID int64, includeRemoved bool) (*Object, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetObjectByID", objectID, includeRemoved)
	ret0, _ := ret[0].(*Object)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetObjectByID indicates an expected call of GetObjectByID.
func (mr *MockBSDBMockRecorder) GetObjectByID(objectID, includeRemoved any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetObjectByID", reflect.TypeOf((*MockBSDB)(nil).GetObjectByID), objectID, includeRemoved)
}

// GetObjectByName mocks base method.
func (m *MockBSDB) GetObjectByName(objectName, bucketName string, includePrivate bool) (*Object, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetObjectByName", objectName, bucketName, includePrivate)
	ret0, _ := ret[0].(*Object)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetObjectByName indicates an expected call of GetObjectByName.
func (mr *MockBSDBMockRecorder) GetObjectByName(objectName, bucketName, includePrivate any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetObjectByName", reflect.TypeOf((*MockBSDB)(nil).GetObjectByName), objectName, bucketName, includePrivate)
}

// GetObjectCount mocks base method.
func (m *MockBSDB) GetObjectCount(blockHeight int64, objectStatus string) ([]int64, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetObjectCount", blockHeight, objectStatus)
	ret0, _ := ret[0].([]int64)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetObjectCount indicates an expected call of GetObjectCount.
func (mr *MockBSDBMockRecorder) GetObjectCount(blockHeight, objectStatus any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetObjectCount", reflect.TypeOf((*MockBSDB)(nil).GetObjectCount), blockHeight, objectStatus)
}

// GetPaymentByBucketID mocks base method.
func (m *MockBSDB) GetPaymentByBucketID(bucketID int64, includePrivate bool) (*StreamRecord, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetPaymentByBucketID", bucketID, includePrivate)
	ret0, _ := ret[0].(*StreamRecord)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetPaymentByBucketID indicates an expected call of GetPaymentByBucketID.
func (mr *MockBSDBMockRecorder) GetPaymentByBucketID(bucketID, includePrivate any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPaymentByBucketID", reflect.TypeOf((*MockBSDB)(nil).GetPaymentByBucketID), bucketID, includePrivate)
}

// GetPaymentByBucketName mocks base method.
func (m *MockBSDB) GetPaymentByBucketName(bucketName string, includePrivate bool) (*StreamRecord, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetPaymentByBucketName", bucketName, includePrivate)
	ret0, _ := ret[0].(*StreamRecord)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetPaymentByBucketName indicates an expected call of GetPaymentByBucketName.
func (mr *MockBSDBMockRecorder) GetPaymentByBucketName(bucketName, includePrivate any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPaymentByBucketName", reflect.TypeOf((*MockBSDB)(nil).GetPaymentByBucketName), bucketName, includePrivate)
}

// GetPaymentByPaymentAddress mocks base method.
func (m *MockBSDB) GetPaymentByPaymentAddress(address common.Address) (*StreamRecord, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetPaymentByPaymentAddress", address)
	ret0, _ := ret[0].(*StreamRecord)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetPaymentByPaymentAddress indicates an expected call of GetPaymentByPaymentAddress.
func (mr *MockBSDBMockRecorder) GetPaymentByPaymentAddress(address any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPaymentByPaymentAddress", reflect.TypeOf((*MockBSDB)(nil).GetPaymentByPaymentAddress), address)
}

// GetPermissionByResourceAndPrincipal mocks base method.
func (m *MockBSDB) GetPermissionByResourceAndPrincipal(resourceType, principalType, principalValue string, resourceID common.Hash) (*Permission, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetPermissionByResourceAndPrincipal", resourceType, principalType, principalValue, resourceID)
	ret0, _ := ret[0].(*Permission)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetPermissionByResourceAndPrincipal indicates an expected call of GetPermissionByResourceAndPrincipal.
func (mr *MockBSDBMockRecorder) GetPermissionByResourceAndPrincipal(resourceType, principalType, principalValue, resourceID any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPermissionByResourceAndPrincipal", reflect.TypeOf((*MockBSDB)(nil).GetPermissionByResourceAndPrincipal), resourceType, principalType, principalValue, resourceID)
}

// GetPermissionsByResourceAndPrincipleType mocks base method.
func (m *MockBSDB) GetPermissionsByResourceAndPrincipleType(resourceType, principalType string, resourceID common.Hash, includeRemoved bool) ([]*Permission, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetPermissionsByResourceAndPrincipleType", resourceType, principalType, resourceID, includeRemoved)
	ret0, _ := ret[0].([]*Permission)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetPermissionsByResourceAndPrincipleType indicates an expected call of GetPermissionsByResourceAndPrincipleType.
func (mr *MockBSDBMockRecorder) GetPermissionsByResourceAndPrincipleType(resourceType, principalType, resourceID, includeRemoved any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPermissionsByResourceAndPrincipleType", reflect.TypeOf((*MockBSDB)(nil).GetPermissionsByResourceAndPrincipleType), resourceType, principalType, resourceID, includeRemoved)
}

// GetPrimarySPStreamRecordBySpID mocks base method.
func (m *MockBSDB) GetPrimarySPStreamRecordBySpID(spID uint32) ([]*PrimarySpIncomeMeta, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetPrimarySPStreamRecordBySpID", spID)
	ret0, _ := ret[0].([]*PrimarySpIncomeMeta)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetPrimarySPStreamRecordBySpID indicates an expected call of GetPrimarySPStreamRecordBySpID.
func (mr *MockBSDBMockRecorder) GetPrimarySPStreamRecordBySpID(spID any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPrimarySPStreamRecordBySpID", reflect.TypeOf((*MockBSDB)(nil).GetPrimarySPStreamRecordBySpID), spID)
}

// GetSPByAddress mocks base method.
func (m *MockBSDB) GetSPByAddress(operatorAddress common.Address) (*StorageProvider, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetSPByAddress", operatorAddress)
	ret0, _ := ret[0].(*StorageProvider)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetSPByAddress indicates an expected call of GetSPByAddress.
func (mr *MockBSDBMockRecorder) GetSPByAddress(operatorAddress any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSPByAddress", reflect.TypeOf((*MockBSDB)(nil).GetSPByAddress), operatorAddress)
}

// GetSecondarySPStreamRecordBySpID mocks base method.
func (m *MockBSDB) GetSecondarySPStreamRecordBySpID(spID uint32) ([]*SecondarySpIncomeMeta, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetSecondarySPStreamRecordBySpID", spID)
	ret0, _ := ret[0].([]*SecondarySpIncomeMeta)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetSecondarySPStreamRecordBySpID indicates an expected call of GetSecondarySPStreamRecordBySpID.
func (mr *MockBSDBMockRecorder) GetSecondarySPStreamRecordBySpID(spID any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSecondarySPStreamRecordBySpID", reflect.TypeOf((*MockBSDB)(nil).GetSecondarySPStreamRecordBySpID), spID)
}

// GetSpVersion mocks base method.
func (m *MockBSDB) GetSpVersion() *SpVersion {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetSpVersion")
	ret0, _ := ret[0].(*SpVersion)
	return ret0
}

// GetSpVersion indicates an expected call of GetSpVersion.
func (mr *MockBSDBMockRecorder) GetSpVersion() *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSpVersion", reflect.TypeOf((*MockBSDB)(nil).GetSpVersion))
}

// GetStatementsByPolicyID mocks base method.
func (m *MockBSDB) GetStatementsByPolicyID(policyIDList []common.Hash, includeRemoved bool) ([]*Statement, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetStatementsByPolicyID", policyIDList, includeRemoved)
	ret0, _ := ret[0].([]*Statement)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetStatementsByPolicyID indicates an expected call of GetStatementsByPolicyID.
func (mr *MockBSDBMockRecorder) GetStatementsByPolicyID(policyIDList, includeRemoved any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetStatementsByPolicyID", reflect.TypeOf((*MockBSDB)(nil).GetStatementsByPolicyID), policyIDList, includeRemoved)
}

// GetSwitchDBSignal mocks base method.
func (m *MockBSDB) GetSwitchDBSignal() (*MasterDB, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetSwitchDBSignal")
	ret0, _ := ret[0].(*MasterDB)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetSwitchDBSignal indicates an expected call of GetSwitchDBSignal.
func (mr *MockBSDBMockRecorder) GetSwitchDBSignal() *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSwitchDBSignal", reflect.TypeOf((*MockBSDB)(nil).GetSwitchDBSignal))
}

// GetUserBuckets mocks base method.
func (m *MockBSDB) GetUserBuckets(accountID common.Address, includeRemoved bool) ([]*Bucket, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetUserBuckets", accountID, includeRemoved)
	ret0, _ := ret[0].([]*Bucket)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetUserBuckets indicates an expected call of GetUserBuckets.
func (mr *MockBSDBMockRecorder) GetUserBuckets(accountID, includeRemoved any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUserBuckets", reflect.TypeOf((*MockBSDB)(nil).GetUserBuckets), accountID, includeRemoved)
}

// GetUserBucketsCount mocks base method.
func (m *MockBSDB) GetUserBucketsCount(accountID common.Address, includeRemoved bool) (int64, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetUserBucketsCount", accountID, includeRemoved)
	ret0, _ := ret[0].(int64)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetUserBucketsCount indicates an expected call of GetUserBucketsCount.
func (mr *MockBSDBMockRecorder) GetUserBucketsCount(accountID, includeRemoved any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUserBucketsCount", reflect.TypeOf((*MockBSDB)(nil).GetUserBucketsCount), accountID, includeRemoved)
}

// GetUserGroups mocks base method.
func (m *MockBSDB) GetUserGroups(accountID common.Address, startAfter common.Hash, limit int) ([]*GroupMemberMeta, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetUserGroups", accountID, startAfter, limit)
	ret0, _ := ret[0].([]*GroupMemberMeta)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetUserGroups indicates an expected call of GetUserGroups.
func (mr *MockBSDBMockRecorder) GetUserGroups(accountID, startAfter, limit any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUserGroups", reflect.TypeOf((*MockBSDB)(nil).GetUserGroups), accountID, startAfter, limit)
}

// GetUserOwnedGroups mocks base method.
func (m *MockBSDB) GetUserOwnedGroups(accountID common.Address, startAfter common.Hash, limit int) ([]*Group, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetUserOwnedGroups", accountID, startAfter, limit)
	ret0, _ := ret[0].([]*Group)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetUserOwnedGroups indicates an expected call of GetUserOwnedGroups.
func (mr *MockBSDBMockRecorder) GetUserOwnedGroups(accountID, startAfter, limit any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUserOwnedGroups", reflect.TypeOf((*MockBSDB)(nil).GetUserOwnedGroups), accountID, startAfter, limit)
}

// GetVirtualGroupFamiliesByVgfID mocks base method.
func (m *MockBSDB) GetVirtualGroupFamiliesByVgfID(vgfID uint32) (*GlobalVirtualGroupFamily, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetVirtualGroupFamiliesByVgfID", vgfID)
	ret0, _ := ret[0].(*GlobalVirtualGroupFamily)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetVirtualGroupFamiliesByVgfID indicates an expected call of GetVirtualGroupFamiliesByVgfID.
func (mr *MockBSDBMockRecorder) GetVirtualGroupFamiliesByVgfID(vgfID any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetVirtualGroupFamiliesByVgfID", reflect.TypeOf((*MockBSDB)(nil).GetVirtualGroupFamiliesByVgfID), vgfID)
}

// ListBucketsByIDs mocks base method.
func (m *MockBSDB) ListBucketsByIDs(ids []common.Hash, includeRemoved bool) ([]*Bucket, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "ListBucketsByIDs", ids, includeRemoved)
	ret0, _ := ret[0].([]*Bucket)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// ListBucketsByIDs indicates an expected call of ListBucketsByIDs.
func (mr *MockBSDBMockRecorder) ListBucketsByIDs(ids, includeRemoved any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListBucketsByIDs", reflect.TypeOf((*MockBSDB)(nil).ListBucketsByIDs), ids, includeRemoved)
}

// ListBucketsByVgfID mocks base method.
func (m *MockBSDB) ListBucketsByVgfID(vgfIDs []uint32, startAfter common.Hash, limit int) ([]*Bucket, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "ListBucketsByVgfID", vgfIDs, startAfter, limit)
	ret0, _ := ret[0].([]*Bucket)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// ListBucketsByVgfID indicates an expected call of ListBucketsByVgfID.
func (mr *MockBSDBMockRecorder) ListBucketsByVgfID(vgfIDs, startAfter, limit any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListBucketsByVgfID", reflect.TypeOf((*MockBSDB)(nil).ListBucketsByVgfID), vgfIDs, startAfter, limit)
}

// ListCompleteMigrationBucket mocks base method.
func (m *MockBSDB) ListCompleteMigrationBucket(srcSpID uint32, filters ...func(*gorm.DB) *gorm.DB) ([]*EventCompleteMigrationBucket, error) {
	m.ctrl.T.Helper()
	varargs := []any{srcSpID}
	for _, a := range filters {
		varargs = append(varargs, a)
	}
	ret := m.ctrl.Call(m, "ListCompleteMigrationBucket", varargs...)
	ret0, _ := ret[0].([]*EventCompleteMigrationBucket)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// ListCompleteMigrationBucket indicates an expected call of ListCompleteMigrationBucket.
func (mr *MockBSDBMockRecorder) ListCompleteMigrationBucket(srcSpID any, filters ...any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	varargs := append([]any{srcSpID}, filters...)
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListCompleteMigrationBucket", reflect.TypeOf((*MockBSDB)(nil).ListCompleteMigrationBucket), varargs...)
}

// ListDeletedObjectsByBlockNumberRange mocks base method.
func (m *MockBSDB) ListDeletedObjectsByBlockNumberRange(startBlockNumber, endBlockNumber uint64, includePrivate bool) ([]*Object, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "ListDeletedObjectsByBlockNumberRange", startBlockNumber, endBlockNumber, includePrivate)
	ret0, _ := ret[0].([]*Object)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// ListDeletedObjectsByBlockNumberRange indicates an expected call of ListDeletedObjectsByBlockNumberRange.
func (mr *MockBSDBMockRecorder) ListDeletedObjectsByBlockNumberRange(startBlockNumber, endBlockNumber, includePrivate any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDeletedObjectsByBlockNumberRange", reflect.TypeOf((*MockBSDB)(nil).ListDeletedObjectsByBlockNumberRange), startBlockNumber, endBlockNumber, includePrivate)
}

// ListExpiredBucketsBySp mocks base method.
func (m *MockBSDB) ListExpiredBucketsBySp(createAt int64, primarySpID uint32, limit int64) ([]*Bucket, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "ListExpiredBucketsBySp", createAt, primarySpID, limit)
	ret0, _ := ret[0].([]*Bucket)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// ListExpiredBucketsBySp indicates an expected call of ListExpiredBucketsBySp.
func (mr *MockBSDBMockRecorder) ListExpiredBucketsBySp(createAt, primarySpID, limit any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListExpiredBucketsBySp", reflect.TypeOf((*MockBSDB)(nil).ListExpiredBucketsBySp), createAt, primarySpID, limit)
}

// ListGroupsByIDs mocks base method.
func (m *MockBSDB) ListGroupsByIDs(ids []common.Hash) ([]*Group, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "ListGroupsByIDs", ids)
	ret0, _ := ret[0].([]*Group)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// ListGroupsByIDs indicates an expected call of ListGroupsByIDs.
func (mr *MockBSDBMockRecorder) ListGroupsByIDs(ids any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGroupsByIDs", reflect.TypeOf((*MockBSDB)(nil).ListGroupsByIDs), ids)
}

// ListGroupsByNameAndSourceType mocks base method.
func (m *MockBSDB) ListGroupsByNameAndSourceType(name, prefix, sourceType string, limit, offset int, includeRemoved bool) ([]*Group, int64, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "ListGroupsByNameAndSourceType", name, prefix, sourceType, limit, offset, includeRemoved)
	ret0, _ := ret[0].([]*Group)
	ret1, _ := ret[1].(int64)
	ret2, _ := ret[2].(error)
	return ret0, ret1, ret2
}

// ListGroupsByNameAndSourceType indicates an expected call of ListGroupsByNameAndSourceType.
func (mr *MockBSDBMockRecorder) ListGroupsByNameAndSourceType(name, prefix, sourceType, limit, offset, includeRemoved any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGroupsByNameAndSourceType", reflect.TypeOf((*MockBSDB)(nil).ListGroupsByNameAndSourceType), name, prefix, sourceType, limit, offset, includeRemoved)
}

// ListGvgByBucketID mocks base method.
func (m *MockBSDB) ListGvgByBucketID(bucketID common.Hash) ([]*GlobalVirtualGroup, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "ListGvgByBucketID", bucketID)
	ret0, _ := ret[0].([]*GlobalVirtualGroup)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// ListGvgByBucketID indicates an expected call of ListGvgByBucketID.
func (mr *MockBSDBMockRecorder) ListGvgByBucketID(bucketID any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGvgByBucketID", reflect.TypeOf((*MockBSDB)(nil).ListGvgByBucketID), bucketID)
}

// ListGvgByPrimarySpID mocks base method.
func (m *MockBSDB) ListGvgByPrimarySpID(spID uint32) ([]*GlobalVirtualGroup, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "ListGvgByPrimarySpID", spID)
	ret0, _ := ret[0].([]*GlobalVirtualGroup)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// ListGvgByPrimarySpID indicates an expected call of ListGvgByPrimarySpID.
func (mr *MockBSDBMockRecorder) ListGvgByPrimarySpID(spID any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGvgByPrimarySpID", reflect.TypeOf((*MockBSDB)(nil).ListGvgByPrimarySpID), spID)
}

// ListGvgBySecondarySpID mocks base method.
func (m *MockBSDB) ListGvgBySecondarySpID(spID uint32) ([]*GlobalVirtualGroup, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "ListGvgBySecondarySpID", spID)
	ret0, _ := ret[0].([]*GlobalVirtualGroup)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// ListGvgBySecondarySpID indicates an expected call of ListGvgBySecondarySpID.
func (mr *MockBSDBMockRecorder) ListGvgBySecondarySpID(spID any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGvgBySecondarySpID", reflect.TypeOf((*MockBSDB)(nil).ListGvgBySecondarySpID), spID)
}

// ListLvgByGvgAndBucketID mocks base method.
func (m *MockBSDB) ListLvgByGvgAndBucketID(bucketID common.Hash, gvgIDs []uint32) ([]*LocalVirtualGroup, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "ListLvgByGvgAndBucketID", bucketID, gvgIDs)
	ret0, _ := ret[0].([]*LocalVirtualGroup)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// ListLvgByGvgAndBucketID indicates an expected call of ListLvgByGvgAndBucketID.
func (mr *MockBSDBMockRecorder) ListLvgByGvgAndBucketID(bucketID, gvgIDs any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListLvgByGvgAndBucketID", reflect.TypeOf((*MockBSDB)(nil).ListLvgByGvgAndBucketID), bucketID, gvgIDs)
}

// ListLvgByGvgID mocks base method.
func (m *MockBSDB) ListLvgByGvgID(gvgIDs []uint32) ([]*LocalVirtualGroup, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "ListLvgByGvgID", gvgIDs)
	ret0, _ := ret[0].([]*LocalVirtualGroup)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// ListLvgByGvgID indicates an expected call of ListLvgByGvgID.
func (mr *MockBSDBMockRecorder) ListLvgByGvgID(gvgIDs any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListLvgByGvgID", reflect.TypeOf((*MockBSDB)(nil).ListLvgByGvgID), gvgIDs)
}

// ListMigrateBucketEvents mocks base method.
func (m *MockBSDB) ListMigrateBucketEvents(spID uint32, filters ...func(*gorm.DB) *gorm.DB) ([]*EventMigrationBucket, []*EventCompleteMigrationBucket, []*EventCancelMigrationBucket, []*EventRejectMigrateBucket, error) {
	m.ctrl.T.Helper()
	varargs := []any{spID}
	for _, a := range filters {
		varargs = append(varargs, a)
	}
	ret := m.ctrl.Call(m, "ListMigrateBucketEvents", varargs...)
	ret0, _ := ret[0].([]*EventMigrationBucket)
	ret1, _ := ret[1].([]*EventCompleteMigrationBucket)
	ret2, _ := ret[2].([]*EventCancelMigrationBucket)
	ret3, _ := ret[3].([]*EventRejectMigrateBucket)
	ret4, _ := ret[4].(error)
	return ret0, ret1, ret2, ret3, ret4
}

// ListMigrateBucketEvents indicates an expected call of ListMigrateBucketEvents.
func (mr *MockBSDBMockRecorder) ListMigrateBucketEvents(spID any, filters ...any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	varargs := append([]any{spID}, filters...)
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListMigrateBucketEvents", reflect.TypeOf((*MockBSDB)(nil).ListMigrateBucketEvents), varargs...)
}

// ListObjectPolicies mocks base method.
func (m *MockBSDB) ListObjectPolicies(objectID common.Hash, actionType types.ActionType, startAfter common.Hash, limit int) ([]*PermissionWithStatement, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "ListObjectPolicies", objectID, actionType, startAfter, limit)
	ret0, _ := ret[0].([]*PermissionWithStatement)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// ListObjectPolicies indicates an expected call of ListObjectPolicies.
func (mr *MockBSDBMockRecorder) ListObjectPolicies(objectID, actionType, startAfter, limit any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListObjectPolicies", reflect.TypeOf((*MockBSDB)(nil).ListObjectPolicies), objectID, actionType, startAfter, limit)
}

// ListObjectsByBucketName mocks base method.
func (m *MockBSDB) ListObjectsByBucketName(bucketName, continuationToken, prefix, delimiter string, maxKeys int, includeRemoved bool) ([]*ListObjectsResult, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "ListObjectsByBucketName", bucketName, continuationToken, prefix, delimiter, maxKeys, includeRemoved)
	ret0, _ := ret[0].([]*ListObjectsResult)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// ListObjectsByBucketName indicates an expected call of ListObjectsByBucketName.
func (mr *MockBSDBMockRecorder) ListObjectsByBucketName(bucketName, continuationToken, prefix, delimiter, maxKeys, includeRemoved any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListObjectsByBucketName", reflect.TypeOf((*MockBSDB)(nil).ListObjectsByBucketName), bucketName, continuationToken, prefix, delimiter, maxKeys, includeRemoved)
}

// ListObjectsByGVGAndBucketForGC mocks base method.
func (m *MockBSDB) ListObjectsByGVGAndBucketForGC(bucketID common.Hash, gvgID uint32, startAfter common.Hash, limit int) ([]*Object, *Bucket, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "ListObjectsByGVGAndBucketForGC", bucketID, gvgID, startAfter, limit)
	ret0, _ := ret[0].([]*Object)
	ret1, _ := ret[1].(*Bucket)
	ret2, _ := ret[2].(error)
	return ret0, ret1, ret2
}

// ListObjectsByGVGAndBucketForGC indicates an expected call of ListObjectsByGVGAndBucketForGC.
func (mr *MockBSDBMockRecorder) ListObjectsByGVGAndBucketForGC(bucketID, gvgID, startAfter, limit any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListObjectsByGVGAndBucketForGC", reflect.TypeOf((*MockBSDB)(nil).ListObjectsByGVGAndBucketForGC), bucketID, gvgID, startAfter, limit)
}

// ListObjectsByIDs mocks base method.
func (m *MockBSDB) ListObjectsByIDs(ids []common.Hash, includeRemoved bool) ([]*Object, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "ListObjectsByIDs", ids, includeRemoved)
	ret0, _ := ret[0].([]*Object)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// ListObjectsByIDs indicates an expected call of ListObjectsByIDs.
func (mr *MockBSDBMockRecorder) ListObjectsByIDs(ids, includeRemoved any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListObjectsByIDs", reflect.TypeOf((*MockBSDB)(nil).ListObjectsByIDs), ids, includeRemoved)
}

// ListObjectsByLVGID mocks base method.
func (m *MockBSDB) ListObjectsByLVGID(lvgIDs []uint32, bucketID, startAfter common.Hash, limit int, filters ...func(*gorm.DB) *gorm.DB) ([]*Object, *Bucket, error) {
	m.ctrl.T.Helper()
	varargs := []any{lvgIDs, bucketID, startAfter, limit}
	for _, a := range filters {
		varargs = append(varargs, a)
	}
	ret := m.ctrl.Call(m, "ListObjectsByLVGID", varargs...)
	ret0, _ := ret[0].([]*Object)
	ret1, _ := ret[1].(*Bucket)
	ret2, _ := ret[2].(error)
	return ret0, ret1, ret2
}

// ListObjectsByLVGID indicates an expected call of ListObjectsByLVGID.
func (mr *MockBSDBMockRecorder) ListObjectsByLVGID(lvgIDs, bucketID, startAfter, limit any, filters ...any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	varargs := append([]any{lvgIDs, bucketID, startAfter, limit}, filters...)
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListObjectsByLVGID", reflect.TypeOf((*MockBSDB)(nil).ListObjectsByLVGID), varargs...)
}

// ListObjectsInGVG mocks base method.
func (m *MockBSDB) ListObjectsInGVG(gvgID uint32, startAfter common.Hash, limit int) ([]*Object, []*Bucket, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "ListObjectsInGVG", gvgID, startAfter, limit)
	ret0, _ := ret[0].([]*Object)
	ret1, _ := ret[1].([]*Bucket)
	ret2, _ := ret[2].(error)
	return ret0, ret1, ret2
}

// ListObjectsInGVG indicates an expected call of ListObjectsInGVG.
func (mr *MockBSDBMockRecorder) ListObjectsInGVG(gvgID, startAfter, limit any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListObjectsInGVG", reflect.TypeOf((*MockBSDB)(nil).ListObjectsInGVG), gvgID, startAfter, limit)
}

// ListObjectsInGVGAndBucket mocks base method.
func (m *MockBSDB) ListObjectsInGVGAndBucket(bucketID common.Hash, gvgID uint32, startAfter common.Hash, limit int) ([]*Object, *Bucket, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "ListObjectsInGVGAndBucket", bucketID, gvgID, startAfter, limit)
	ret0, _ := ret[0].([]*Object)
	ret1, _ := ret[1].(*Bucket)
	ret2, _ := ret[2].(error)
	return ret0, ret1, ret2
}

// ListObjectsInGVGAndBucket indicates an expected call of ListObjectsInGVGAndBucket.
func (mr *MockBSDBMockRecorder) ListObjectsInGVGAndBucket(bucketID, gvgID, startAfter, limit any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListObjectsInGVGAndBucket", reflect.TypeOf((*MockBSDB)(nil).ListObjectsInGVGAndBucket), bucketID, gvgID, startAfter, limit)
}

// ListPaymentAccountStreams mocks base method.
func (m *MockBSDB) ListPaymentAccountStreams(paymentAccount common.Address) ([]*Bucket, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "ListPaymentAccountStreams", paymentAccount)
	ret0, _ := ret[0].([]*Bucket)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// ListPaymentAccountStreams indicates an expected call of ListPaymentAccountStreams.
func (mr *MockBSDBMockRecorder) ListPaymentAccountStreams(paymentAccount any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListPaymentAccountStreams", reflect.TypeOf((*MockBSDB)(nil).ListPaymentAccountStreams), paymentAccount)
}

// ListSpExitEvents mocks base method.
func (m *MockBSDB) ListSpExitEvents(blockID uint64, spID uint32) (*EventStorageProviderExit, *EventCompleteStorageProviderExit, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "ListSpExitEvents", blockID, spID)
	ret0, _ := ret[0].(*EventStorageProviderExit)
	ret1, _ := ret[1].(*EventCompleteStorageProviderExit)
	ret2, _ := ret[2].(error)
	return ret0, ret1, ret2
}

// ListSpExitEvents indicates an expected call of ListSpExitEvents.
func (mr *MockBSDBMockRecorder) ListSpExitEvents(blockID, spID any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSpExitEvents", reflect.TypeOf((*MockBSDB)(nil).ListSpExitEvents), blockID, spID)
}

// ListSwapOutEvents mocks base method.
func (m *MockBSDB) ListSwapOutEvents(blockID uint64, spID uint32) ([]*EventSwapOut, []*EventCompleteSwapOut, []*EventCancelSwapOut, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "ListSwapOutEvents", blockID, spID)
	ret0, _ := ret[0].([]*EventSwapOut)
	ret1, _ := ret[1].([]*EventCompleteSwapOut)
	ret2, _ := ret[2].([]*EventCancelSwapOut)
	ret3, _ := ret[3].(error)
	return ret0, ret1, ret2, ret3
}

// ListSwapOutEvents indicates an expected call of ListSwapOutEvents.
func (mr *MockBSDBMockRecorder) ListSwapOutEvents(blockID, spID any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSwapOutEvents", reflect.TypeOf((*MockBSDB)(nil).ListSwapOutEvents), blockID, spID)
}

// ListUserPaymentAccounts mocks base method.
func (m *MockBSDB) ListUserPaymentAccounts(accountID common.Address) ([]*StreamRecordPaymentAccount, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "ListUserPaymentAccounts", accountID)
	ret0, _ := ret[0].([]*StreamRecordPaymentAccount)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// ListUserPaymentAccounts indicates an expected call of ListUserPaymentAccounts.
func (mr *MockBSDBMockRecorder) ListUserPaymentAccounts(accountID any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListUserPaymentAccounts", reflect.TypeOf((*MockBSDB)(nil).ListUserPaymentAccounts), accountID)
}

// ListVgfByGvgID mocks base method.
func (m *MockBSDB) ListVgfByGvgID(gvgIDs []uint32) ([]*GlobalVirtualGroupFamily, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "ListVgfByGvgID", gvgIDs)
	ret0, _ := ret[0].([]*GlobalVirtualGroupFamily)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// ListVgfByGvgID indicates an expected call of ListVgfByGvgID.
func (mr *MockBSDBMockRecorder) ListVgfByGvgID(gvgIDs any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListVgfByGvgID", reflect.TypeOf((*MockBSDB)(nil).ListVgfByGvgID), gvgIDs)
}

// ListVirtualGroupFamiliesBySpID mocks base method.
func (m *MockBSDB) ListVirtualGroupFamiliesBySpID(spID uint32) ([]*GlobalVirtualGroupFamily, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "ListVirtualGroupFamiliesBySpID", spID)
	ret0, _ := ret[0].([]*GlobalVirtualGroupFamily)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// ListVirtualGroupFamiliesBySpID indicates an expected call of ListVirtualGroupFamiliesBySpID.
func (mr *MockBSDBMockRecorder) ListVirtualGroupFamiliesBySpID(spID any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListVirtualGroupFamiliesBySpID", reflect.TypeOf((*MockBSDB)(nil).ListVirtualGroupFamiliesBySpID), spID)
}

// ListVirtualGroupFamiliesByVgfIDs mocks base method.
func (m *MockBSDB) ListVirtualGroupFamiliesByVgfIDs(vgfIDs []uint32) ([]*GlobalVirtualGroupFamily, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "ListVirtualGroupFamiliesByVgfIDs", vgfIDs)
	ret0, _ := ret[0].([]*GlobalVirtualGroupFamily)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// ListVirtualGroupFamiliesByVgfIDs indicates an expected call of ListVirtualGroupFamiliesByVgfIDs.
func (mr *MockBSDBMockRecorder) ListVirtualGroupFamiliesByVgfIDs(vgfIDs any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListVirtualGroupFamiliesByVgfIDs", reflect.TypeOf((*MockBSDB)(nil).ListVirtualGroupFamiliesByVgfIDs), vgfIDs)
}
