// Code generated by mockery. DO NOT EDIT.

package mocks

import (
	agglayertypes "github.com/agglayer/aggkit/agglayer/types"
	aggsendertypes "github.com/agglayer/aggkit/aggsender/types"

	common "github.com/ethereum/go-ethereum/common"

	context "context"

	db "github.com/agglayer/aggkit/aggsender/db"

	mock "github.com/stretchr/testify/mock"

	types "github.com/agglayer/aggkit/db/types"
)

// AggSenderStorage is an autogenerated mock type for the AggSenderStorage type
type AggSenderStorage struct {
	mock.Mock
}

type AggSenderStorage_Expecter struct {
	mock *mock.Mock
}

func (_m *AggSenderStorage) EXPECT() *AggSenderStorage_Expecter {
	return &AggSenderStorage_Expecter{mock: &_m.Mock}
}

// DeleteCertificate provides a mock function with given fields: tx, height, mustDelete
func (_m *AggSenderStorage) DeleteCertificate(tx types.Querier, height uint64, mustDelete db.DeleteFlag) error {
	ret := _m.Called(tx, height, mustDelete)

	if len(ret) == 0 {
		panic("no return value specified for DeleteCertificate")
	}

	var r0 error
	if rf, ok := ret.Get(0).(func(types.Querier, uint64, db.DeleteFlag) error); ok {
		r0 = rf(tx, height, mustDelete)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

// AggSenderStorage_DeleteCertificate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteCertificate'
type AggSenderStorage_DeleteCertificate_Call struct {
	*mock.Call
}

// DeleteCertificate is a helper method to define mock.On call
//   - tx types.Querier
//   - height uint64
//   - mustDelete db.DeleteFlag
func (_e *AggSenderStorage_Expecter) DeleteCertificate(tx interface{}, height interface{}, mustDelete interface{}) *AggSenderStorage_DeleteCertificate_Call {
	return &AggSenderStorage_DeleteCertificate_Call{Call: _e.mock.On("DeleteCertificate", tx, height, mustDelete)}
}

func (_c *AggSenderStorage_DeleteCertificate_Call) Run(run func(tx types.Querier, height uint64, mustDelete db.DeleteFlag)) *AggSenderStorage_DeleteCertificate_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(types.Querier), args[1].(uint64), args[2].(db.DeleteFlag))
	})
	return _c
}

func (_c *AggSenderStorage_DeleteCertificate_Call) Return(_a0 error) *AggSenderStorage_DeleteCertificate_Call {
	_c.Call.Return(_a0)
	return _c
}

func (_c *AggSenderStorage_DeleteCertificate_Call) RunAndReturn(run func(types.Querier, uint64, db.DeleteFlag) error) *AggSenderStorage_DeleteCertificate_Call {
	_c.Call.Return(run)
	return _c
}

// DeleteOldCertificates provides a mock function with given fields: tx, olderThanHeight
func (_m *AggSenderStorage) DeleteOldCertificates(tx types.Querier, olderThanHeight uint64) error {
	ret := _m.Called(tx, olderThanHeight)

	if len(ret) == 0 {
		panic("no return value specified for DeleteOldCertificates")
	}

	var r0 error
	if rf, ok := ret.Get(0).(func(types.Querier, uint64) error); ok {
		r0 = rf(tx, olderThanHeight)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

// AggSenderStorage_DeleteOldCertificates_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteOldCertificates'
type AggSenderStorage_DeleteOldCertificates_Call struct {
	*mock.Call
}

// DeleteOldCertificates is a helper method to define mock.On call
//   - tx types.Querier
//   - olderThanHeight uint64
func (_e *AggSenderStorage_Expecter) DeleteOldCertificates(tx interface{}, olderThanHeight interface{}) *AggSenderStorage_DeleteOldCertificates_Call {
	return &AggSenderStorage_DeleteOldCertificates_Call{Call: _e.mock.On("DeleteOldCertificates", tx, olderThanHeight)}
}

func (_c *AggSenderStorage_DeleteOldCertificates_Call) Run(run func(tx types.Querier, olderThanHeight uint64)) *AggSenderStorage_DeleteOldCertificates_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(types.Querier), args[1].(uint64))
	})
	return _c
}

func (_c *AggSenderStorage_DeleteOldCertificates_Call) Return(_a0 error) *AggSenderStorage_DeleteOldCertificates_Call {
	_c.Call.Return(_a0)
	return _c
}

func (_c *AggSenderStorage_DeleteOldCertificates_Call) RunAndReturn(run func(types.Querier, uint64) error) *AggSenderStorage_DeleteOldCertificates_Call {
	_c.Call.Return(run)
	return _c
}

// GetCertificateByHeight provides a mock function with given fields: height
func (_m *AggSenderStorage) GetCertificateByHeight(height uint64) (*aggsendertypes.Certificate, error) {
	ret := _m.Called(height)

	if len(ret) == 0 {
		panic("no return value specified for GetCertificateByHeight")
	}

	var r0 *aggsendertypes.Certificate
	var r1 error
	if rf, ok := ret.Get(0).(func(uint64) (*aggsendertypes.Certificate, error)); ok {
		return rf(height)
	}
	if rf, ok := ret.Get(0).(func(uint64) *aggsendertypes.Certificate); ok {
		r0 = rf(height)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*aggsendertypes.Certificate)
		}
	}

	if rf, ok := ret.Get(1).(func(uint64) error); ok {
		r1 = rf(height)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// AggSenderStorage_GetCertificateByHeight_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCertificateByHeight'
type AggSenderStorage_GetCertificateByHeight_Call struct {
	*mock.Call
}

// GetCertificateByHeight is a helper method to define mock.On call
//   - height uint64
func (_e *AggSenderStorage_Expecter) GetCertificateByHeight(height interface{}) *AggSenderStorage_GetCertificateByHeight_Call {
	return &AggSenderStorage_GetCertificateByHeight_Call{Call: _e.mock.On("GetCertificateByHeight", height)}
}

func (_c *AggSenderStorage_GetCertificateByHeight_Call) Run(run func(height uint64)) *AggSenderStorage_GetCertificateByHeight_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(uint64))
	})
	return _c
}

func (_c *AggSenderStorage_GetCertificateByHeight_Call) Return(_a0 *aggsendertypes.Certificate, _a1 error) *AggSenderStorage_GetCertificateByHeight_Call {
	_c.Call.Return(_a0, _a1)
	return _c
}

func (_c *AggSenderStorage_GetCertificateByHeight_Call) RunAndReturn(run func(uint64) (*aggsendertypes.Certificate, error)) *AggSenderStorage_GetCertificateByHeight_Call {
	_c.Call.Return(run)
	return _c
}

// GetCertificateHeaderByHeight provides a mock function with given fields: height
func (_m *AggSenderStorage) GetCertificateHeaderByHeight(height uint64) (*aggsendertypes.CertificateHeader, error) {
	ret := _m.Called(height)

	if len(ret) == 0 {
		panic("no return value specified for GetCertificateHeaderByHeight")
	}

	var r0 *aggsendertypes.CertificateHeader
	var r1 error
	if rf, ok := ret.Get(0).(func(uint64) (*aggsendertypes.CertificateHeader, error)); ok {
		return rf(height)
	}
	if rf, ok := ret.Get(0).(func(uint64) *aggsendertypes.CertificateHeader); ok {
		r0 = rf(height)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*aggsendertypes.CertificateHeader)
		}
	}

	if rf, ok := ret.Get(1).(func(uint64) error); ok {
		r1 = rf(height)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// AggSenderStorage_GetCertificateHeaderByHeight_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCertificateHeaderByHeight'
type AggSenderStorage_GetCertificateHeaderByHeight_Call struct {
	*mock.Call
}

// GetCertificateHeaderByHeight is a helper method to define mock.On call
//   - height uint64
func (_e *AggSenderStorage_Expecter) GetCertificateHeaderByHeight(height interface{}) *AggSenderStorage_GetCertificateHeaderByHeight_Call {
	return &AggSenderStorage_GetCertificateHeaderByHeight_Call{Call: _e.mock.On("GetCertificateHeaderByHeight", height)}
}

func (_c *AggSenderStorage_GetCertificateHeaderByHeight_Call) Run(run func(height uint64)) *AggSenderStorage_GetCertificateHeaderByHeight_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(uint64))
	})
	return _c
}

func (_c *AggSenderStorage_GetCertificateHeaderByHeight_Call) Return(_a0 *aggsendertypes.CertificateHeader, _a1 error) *AggSenderStorage_GetCertificateHeaderByHeight_Call {
	_c.Call.Return(_a0, _a1)
	return _c
}

func (_c *AggSenderStorage_GetCertificateHeaderByHeight_Call) RunAndReturn(run func(uint64) (*aggsendertypes.CertificateHeader, error)) *AggSenderStorage_GetCertificateHeaderByHeight_Call {
	_c.Call.Return(run)
	return _c
}

// GetCertificateHeadersByStatus provides a mock function with given fields: status
func (_m *AggSenderStorage) GetCertificateHeadersByStatus(status []agglayertypes.CertificateStatus) ([]*aggsendertypes.CertificateHeader, error) {
	ret := _m.Called(status)

	if len(ret) == 0 {
		panic("no return value specified for GetCertificateHeadersByStatus")
	}

	var r0 []*aggsendertypes.CertificateHeader
	var r1 error
	if rf, ok := ret.Get(0).(func([]agglayertypes.CertificateStatus) ([]*aggsendertypes.CertificateHeader, error)); ok {
		return rf(status)
	}
	if rf, ok := ret.Get(0).(func([]agglayertypes.CertificateStatus) []*aggsendertypes.CertificateHeader); ok {
		r0 = rf(status)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).([]*aggsendertypes.CertificateHeader)
		}
	}

	if rf, ok := ret.Get(1).(func([]agglayertypes.CertificateStatus) error); ok {
		r1 = rf(status)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// AggSenderStorage_GetCertificateHeadersByStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCertificateHeadersByStatus'
type AggSenderStorage_GetCertificateHeadersByStatus_Call struct {
	*mock.Call
}

// GetCertificateHeadersByStatus is a helper method to define mock.On call
//   - status []agglayertypes.CertificateStatus
func (_e *AggSenderStorage_Expecter) GetCertificateHeadersByStatus(status interface{}) *AggSenderStorage_GetCertificateHeadersByStatus_Call {
	return &AggSenderStorage_GetCertificateHeadersByStatus_Call{Call: _e.mock.On("GetCertificateHeadersByStatus", status)}
}

func (_c *AggSenderStorage_GetCertificateHeadersByStatus_Call) Run(run func(status []agglayertypes.CertificateStatus)) *AggSenderStorage_GetCertificateHeadersByStatus_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].([]agglayertypes.CertificateStatus))
	})
	return _c
}

func (_c *AggSenderStorage_GetCertificateHeadersByStatus_Call) Return(_a0 []*aggsendertypes.CertificateHeader, _a1 error) *AggSenderStorage_GetCertificateHeadersByStatus_Call {
	_c.Call.Return(_a0, _a1)
	return _c
}

func (_c *AggSenderStorage_GetCertificateHeadersByStatus_Call) RunAndReturn(run func([]agglayertypes.CertificateStatus) ([]*aggsendertypes.CertificateHeader, error)) *AggSenderStorage_GetCertificateHeadersByStatus_Call {
	_c.Call.Return(run)
	return _c
}

// GetLastSentCertificate provides a mock function with no fields
func (_m *AggSenderStorage) GetLastSentCertificate() (*aggsendertypes.Certificate, error) {
	ret := _m.Called()

	if len(ret) == 0 {
		panic("no return value specified for GetLastSentCertificate")
	}

	var r0 *aggsendertypes.Certificate
	var r1 error
	if rf, ok := ret.Get(0).(func() (*aggsendertypes.Certificate, error)); ok {
		return rf()
	}
	if rf, ok := ret.Get(0).(func() *aggsendertypes.Certificate); ok {
		r0 = rf()
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*aggsendertypes.Certificate)
		}
	}

	if rf, ok := ret.Get(1).(func() error); ok {
		r1 = rf()
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// AggSenderStorage_GetLastSentCertificate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLastSentCertificate'
type AggSenderStorage_GetLastSentCertificate_Call struct {
	*mock.Call
}

// GetLastSentCertificate is a helper method to define mock.On call
func (_e *AggSenderStorage_Expecter) GetLastSentCertificate() *AggSenderStorage_GetLastSentCertificate_Call {
	return &AggSenderStorage_GetLastSentCertificate_Call{Call: _e.mock.On("GetLastSentCertificate")}
}

func (_c *AggSenderStorage_GetLastSentCertificate_Call) Run(run func()) *AggSenderStorage_GetLastSentCertificate_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run()
	})
	return _c
}

func (_c *AggSenderStorage_GetLastSentCertificate_Call) Return(_a0 *aggsendertypes.Certificate, _a1 error) *AggSenderStorage_GetLastSentCertificate_Call {
	_c.Call.Return(_a0, _a1)
	return _c
}

func (_c *AggSenderStorage_GetLastSentCertificate_Call) RunAndReturn(run func() (*aggsendertypes.Certificate, error)) *AggSenderStorage_GetLastSentCertificate_Call {
	_c.Call.Return(run)
	return _c
}

// GetLastSentCertificateHeader provides a mock function with no fields
func (_m *AggSenderStorage) GetLastSentCertificateHeader() (*aggsendertypes.CertificateHeader, error) {
	ret := _m.Called()

	if len(ret) == 0 {
		panic("no return value specified for GetLastSentCertificateHeader")
	}

	var r0 *aggsendertypes.CertificateHeader
	var r1 error
	if rf, ok := ret.Get(0).(func() (*aggsendertypes.CertificateHeader, error)); ok {
		return rf()
	}
	if rf, ok := ret.Get(0).(func() *aggsendertypes.CertificateHeader); ok {
		r0 = rf()
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*aggsendertypes.CertificateHeader)
		}
	}

	if rf, ok := ret.Get(1).(func() error); ok {
		r1 = rf()
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// AggSenderStorage_GetLastSentCertificateHeader_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLastSentCertificateHeader'
type AggSenderStorage_GetLastSentCertificateHeader_Call struct {
	*mock.Call
}

// GetLastSentCertificateHeader is a helper method to define mock.On call
func (_e *AggSenderStorage_Expecter) GetLastSentCertificateHeader() *AggSenderStorage_GetLastSentCertificateHeader_Call {
	return &AggSenderStorage_GetLastSentCertificateHeader_Call{Call: _e.mock.On("GetLastSentCertificateHeader")}
}

func (_c *AggSenderStorage_GetLastSentCertificateHeader_Call) Run(run func()) *AggSenderStorage_GetLastSentCertificateHeader_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run()
	})
	return _c
}

func (_c *AggSenderStorage_GetLastSentCertificateHeader_Call) Return(_a0 *aggsendertypes.CertificateHeader, _a1 error) *AggSenderStorage_GetLastSentCertificateHeader_Call {
	_c.Call.Return(_a0, _a1)
	return _c
}

func (_c *AggSenderStorage_GetLastSentCertificateHeader_Call) RunAndReturn(run func() (*aggsendertypes.CertificateHeader, error)) *AggSenderStorage_GetLastSentCertificateHeader_Call {
	_c.Call.Return(run)
	return _c
}

// GetLastSentCertificateHeaderWithProofIfInError provides a mock function with given fields: ctx
func (_m *AggSenderStorage) GetLastSentCertificateHeaderWithProofIfInError(ctx context.Context) (*aggsendertypes.CertificateHeader, *aggsendertypes.AggchainProof, error) {
	ret := _m.Called(ctx)

	if len(ret) == 0 {
		panic("no return value specified for GetLastSentCertificateHeaderWithProofIfInError")
	}

	var r0 *aggsendertypes.CertificateHeader
	var r1 *aggsendertypes.AggchainProof
	var r2 error
	if rf, ok := ret.Get(0).(func(context.Context) (*aggsendertypes.CertificateHeader, *aggsendertypes.AggchainProof, error)); ok {
		return rf(ctx)
	}
	if rf, ok := ret.Get(0).(func(context.Context) *aggsendertypes.CertificateHeader); ok {
		r0 = rf(ctx)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*aggsendertypes.CertificateHeader)
		}
	}

	if rf, ok := ret.Get(1).(func(context.Context) *aggsendertypes.AggchainProof); ok {
		r1 = rf(ctx)
	} else {
		if ret.Get(1) != nil {
			r1 = ret.Get(1).(*aggsendertypes.AggchainProof)
		}
	}

	if rf, ok := ret.Get(2).(func(context.Context) error); ok {
		r2 = rf(ctx)
	} else {
		r2 = ret.Error(2)
	}

	return r0, r1, r2
}

// AggSenderStorage_GetLastSentCertificateHeaderWithProofIfInError_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLastSentCertificateHeaderWithProofIfInError'
type AggSenderStorage_GetLastSentCertificateHeaderWithProofIfInError_Call struct {
	*mock.Call
}

// GetLastSentCertificateHeaderWithProofIfInError is a helper method to define mock.On call
//   - ctx context.Context
func (_e *AggSenderStorage_Expecter) GetLastSentCertificateHeaderWithProofIfInError(ctx interface{}) *AggSenderStorage_GetLastSentCertificateHeaderWithProofIfInError_Call {
	return &AggSenderStorage_GetLastSentCertificateHeaderWithProofIfInError_Call{Call: _e.mock.On("GetLastSentCertificateHeaderWithProofIfInError", ctx)}
}

func (_c *AggSenderStorage_GetLastSentCertificateHeaderWithProofIfInError_Call) Run(run func(ctx context.Context)) *AggSenderStorage_GetLastSentCertificateHeaderWithProofIfInError_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(context.Context))
	})
	return _c
}

func (_c *AggSenderStorage_GetLastSentCertificateHeaderWithProofIfInError_Call) Return(_a0 *aggsendertypes.CertificateHeader, _a1 *aggsendertypes.AggchainProof, _a2 error) *AggSenderStorage_GetLastSentCertificateHeaderWithProofIfInError_Call {
	_c.Call.Return(_a0, _a1, _a2)
	return _c
}

func (_c *AggSenderStorage_GetLastSentCertificateHeaderWithProofIfInError_Call) RunAndReturn(run func(context.Context) (*aggsendertypes.CertificateHeader, *aggsendertypes.AggchainProof, error)) *AggSenderStorage_GetLastSentCertificateHeaderWithProofIfInError_Call {
	_c.Call.Return(run)
	return _c
}

// GetLastSettledCertificate provides a mock function with no fields
func (_m *AggSenderStorage) GetLastSettledCertificate() (*aggsendertypes.CertificateHeader, error) {
	ret := _m.Called()

	if len(ret) == 0 {
		panic("no return value specified for GetLastSettledCertificate")
	}

	var r0 *aggsendertypes.CertificateHeader
	var r1 error
	if rf, ok := ret.Get(0).(func() (*aggsendertypes.CertificateHeader, error)); ok {
		return rf()
	}
	if rf, ok := ret.Get(0).(func() *aggsendertypes.CertificateHeader); ok {
		r0 = rf()
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*aggsendertypes.CertificateHeader)
		}
	}

	if rf, ok := ret.Get(1).(func() error); ok {
		r1 = rf()
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// AggSenderStorage_GetLastSettledCertificate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLastSettledCertificate'
type AggSenderStorage_GetLastSettledCertificate_Call struct {
	*mock.Call
}

// GetLastSettledCertificate is a helper method to define mock.On call
func (_e *AggSenderStorage_Expecter) GetLastSettledCertificate() *AggSenderStorage_GetLastSettledCertificate_Call {
	return &AggSenderStorage_GetLastSettledCertificate_Call{Call: _e.mock.On("GetLastSettledCertificate")}
}

func (_c *AggSenderStorage_GetLastSettledCertificate_Call) Run(run func()) *AggSenderStorage_GetLastSettledCertificate_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run()
	})
	return _c
}

func (_c *AggSenderStorage_GetLastSettledCertificate_Call) Return(_a0 *aggsendertypes.CertificateHeader, _a1 error) *AggSenderStorage_GetLastSettledCertificate_Call {
	_c.Call.Return(_a0, _a1)
	return _c
}

func (_c *AggSenderStorage_GetLastSettledCertificate_Call) RunAndReturn(run func() (*aggsendertypes.CertificateHeader, error)) *AggSenderStorage_GetLastSettledCertificate_Call {
	_c.Call.Return(run)
	return _c
}

// GetNonAcceptedCertificate provides a mock function with no fields
func (_m *AggSenderStorage) GetNonAcceptedCertificate() (*db.NonAcceptedCertificate, error) {
	ret := _m.Called()

	if len(ret) == 0 {
		panic("no return value specified for GetNonAcceptedCertificate")
	}

	var r0 *db.NonAcceptedCertificate
	var r1 error
	if rf, ok := ret.Get(0).(func() (*db.NonAcceptedCertificate, error)); ok {
		return rf()
	}
	if rf, ok := ret.Get(0).(func() *db.NonAcceptedCertificate); ok {
		r0 = rf()
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*db.NonAcceptedCertificate)
		}
	}

	if rf, ok := ret.Get(1).(func() error); ok {
		r1 = rf()
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// AggSenderStorage_GetNonAcceptedCertificate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetNonAcceptedCertificate'
type AggSenderStorage_GetNonAcceptedCertificate_Call struct {
	*mock.Call
}

// GetNonAcceptedCertificate is a helper method to define mock.On call
func (_e *AggSenderStorage_Expecter) GetNonAcceptedCertificate() *AggSenderStorage_GetNonAcceptedCertificate_Call {
	return &AggSenderStorage_GetNonAcceptedCertificate_Call{Call: _e.mock.On("GetNonAcceptedCertificate")}
}

func (_c *AggSenderStorage_GetNonAcceptedCertificate_Call) Run(run func()) *AggSenderStorage_GetNonAcceptedCertificate_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run()
	})
	return _c
}

func (_c *AggSenderStorage_GetNonAcceptedCertificate_Call) Return(_a0 *db.NonAcceptedCertificate, _a1 error) *AggSenderStorage_GetNonAcceptedCertificate_Call {
	_c.Call.Return(_a0, _a1)
	return _c
}

func (_c *AggSenderStorage_GetNonAcceptedCertificate_Call) RunAndReturn(run func() (*db.NonAcceptedCertificate, error)) *AggSenderStorage_GetNonAcceptedCertificate_Call {
	_c.Call.Return(run)
	return _c
}

// MoveCertificateToHistory provides a mock function with given fields: tx, height
func (_m *AggSenderStorage) MoveCertificateToHistory(tx types.Querier, height uint64) error {
	ret := _m.Called(tx, height)

	if len(ret) == 0 {
		panic("no return value specified for MoveCertificateToHistory")
	}

	var r0 error
	if rf, ok := ret.Get(0).(func(types.Querier, uint64) error); ok {
		r0 = rf(tx, height)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

// AggSenderStorage_MoveCertificateToHistory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MoveCertificateToHistory'
type AggSenderStorage_MoveCertificateToHistory_Call struct {
	*mock.Call
}

// MoveCertificateToHistory is a helper method to define mock.On call
//   - tx types.Querier
//   - height uint64
func (_e *AggSenderStorage_Expecter) MoveCertificateToHistory(tx interface{}, height interface{}) *AggSenderStorage_MoveCertificateToHistory_Call {
	return &AggSenderStorage_MoveCertificateToHistory_Call{Call: _e.mock.On("MoveCertificateToHistory", tx, height)}
}

func (_c *AggSenderStorage_MoveCertificateToHistory_Call) Run(run func(tx types.Querier, height uint64)) *AggSenderStorage_MoveCertificateToHistory_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(types.Querier), args[1].(uint64))
	})
	return _c
}

func (_c *AggSenderStorage_MoveCertificateToHistory_Call) Return(_a0 error) *AggSenderStorage_MoveCertificateToHistory_Call {
	_c.Call.Return(_a0)
	return _c
}

func (_c *AggSenderStorage_MoveCertificateToHistory_Call) RunAndReturn(run func(types.Querier, uint64) error) *AggSenderStorage_MoveCertificateToHistory_Call {
	_c.Call.Return(run)
	return _c
}

// SaveLastSentCertificate provides a mock function with given fields: ctx, certificate
func (_m *AggSenderStorage) SaveLastSentCertificate(ctx context.Context, certificate aggsendertypes.Certificate) error {
	ret := _m.Called(ctx, certificate)

	if len(ret) == 0 {
		panic("no return value specified for SaveLastSentCertificate")
	}

	var r0 error
	if rf, ok := ret.Get(0).(func(context.Context, aggsendertypes.Certificate) error); ok {
		r0 = rf(ctx, certificate)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

// AggSenderStorage_SaveLastSentCertificate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveLastSentCertificate'
type AggSenderStorage_SaveLastSentCertificate_Call struct {
	*mock.Call
}

// SaveLastSentCertificate is a helper method to define mock.On call
//   - ctx context.Context
//   - certificate aggsendertypes.Certificate
func (_e *AggSenderStorage_Expecter) SaveLastSentCertificate(ctx interface{}, certificate interface{}) *AggSenderStorage_SaveLastSentCertificate_Call {
	return &AggSenderStorage_SaveLastSentCertificate_Call{Call: _e.mock.On("SaveLastSentCertificate", ctx, certificate)}
}

func (_c *AggSenderStorage_SaveLastSentCertificate_Call) Run(run func(ctx context.Context, certificate aggsendertypes.Certificate)) *AggSenderStorage_SaveLastSentCertificate_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(context.Context), args[1].(aggsendertypes.Certificate))
	})
	return _c
}

func (_c *AggSenderStorage_SaveLastSentCertificate_Call) Return(_a0 error) *AggSenderStorage_SaveLastSentCertificate_Call {
	_c.Call.Return(_a0)
	return _c
}

func (_c *AggSenderStorage_SaveLastSentCertificate_Call) RunAndReturn(run func(context.Context, aggsendertypes.Certificate) error) *AggSenderStorage_SaveLastSentCertificate_Call {
	_c.Call.Return(run)
	return _c
}

// SaveNonAcceptedCertificate provides a mock function with given fields: ctx, nonAcceptedCert
func (_m *AggSenderStorage) SaveNonAcceptedCertificate(ctx context.Context, nonAcceptedCert *db.NonAcceptedCertificate) error {
	ret := _m.Called(ctx, nonAcceptedCert)

	if len(ret) == 0 {
		panic("no return value specified for SaveNonAcceptedCertificate")
	}

	var r0 error
	if rf, ok := ret.Get(0).(func(context.Context, *db.NonAcceptedCertificate) error); ok {
		r0 = rf(ctx, nonAcceptedCert)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

// AggSenderStorage_SaveNonAcceptedCertificate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveNonAcceptedCertificate'
type AggSenderStorage_SaveNonAcceptedCertificate_Call struct {
	*mock.Call
}

// SaveNonAcceptedCertificate is a helper method to define mock.On call
//   - ctx context.Context
//   - nonAcceptedCert *db.NonAcceptedCertificate
func (_e *AggSenderStorage_Expecter) SaveNonAcceptedCertificate(ctx interface{}, nonAcceptedCert interface{}) *AggSenderStorage_SaveNonAcceptedCertificate_Call {
	return &AggSenderStorage_SaveNonAcceptedCertificate_Call{Call: _e.mock.On("SaveNonAcceptedCertificate", ctx, nonAcceptedCert)}
}

func (_c *AggSenderStorage_SaveNonAcceptedCertificate_Call) Run(run func(ctx context.Context, nonAcceptedCert *db.NonAcceptedCertificate)) *AggSenderStorage_SaveNonAcceptedCertificate_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(context.Context), args[1].(*db.NonAcceptedCertificate))
	})
	return _c
}

func (_c *AggSenderStorage_SaveNonAcceptedCertificate_Call) Return(_a0 error) *AggSenderStorage_SaveNonAcceptedCertificate_Call {
	_c.Call.Return(_a0)
	return _c
}

func (_c *AggSenderStorage_SaveNonAcceptedCertificate_Call) RunAndReturn(run func(context.Context, *db.NonAcceptedCertificate) error) *AggSenderStorage_SaveNonAcceptedCertificate_Call {
	_c.Call.Return(run)
	return _c
}

// SaveOrUpdateCertificate provides a mock function with given fields: ctx, certificate
func (_m *AggSenderStorage) SaveOrUpdateCertificate(ctx context.Context, certificate aggsendertypes.Certificate) error {
	ret := _m.Called(ctx, certificate)

	if len(ret) == 0 {
		panic("no return value specified for SaveOrUpdateCertificate")
	}

	var r0 error
	if rf, ok := ret.Get(0).(func(context.Context, aggsendertypes.Certificate) error); ok {
		r0 = rf(ctx, certificate)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

// AggSenderStorage_SaveOrUpdateCertificate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveOrUpdateCertificate'
type AggSenderStorage_SaveOrUpdateCertificate_Call struct {
	*mock.Call
}

// SaveOrUpdateCertificate is a helper method to define mock.On call
//   - ctx context.Context
//   - certificate aggsendertypes.Certificate
func (_e *AggSenderStorage_Expecter) SaveOrUpdateCertificate(ctx interface{}, certificate interface{}) *AggSenderStorage_SaveOrUpdateCertificate_Call {
	return &AggSenderStorage_SaveOrUpdateCertificate_Call{Call: _e.mock.On("SaveOrUpdateCertificate", ctx, certificate)}
}

func (_c *AggSenderStorage_SaveOrUpdateCertificate_Call) Run(run func(ctx context.Context, certificate aggsendertypes.Certificate)) *AggSenderStorage_SaveOrUpdateCertificate_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(context.Context), args[1].(aggsendertypes.Certificate))
	})
	return _c
}

func (_c *AggSenderStorage_SaveOrUpdateCertificate_Call) Return(_a0 error) *AggSenderStorage_SaveOrUpdateCertificate_Call {
	_c.Call.Return(_a0)
	return _c
}

func (_c *AggSenderStorage_SaveOrUpdateCertificate_Call) RunAndReturn(run func(context.Context, aggsendertypes.Certificate) error) *AggSenderStorage_SaveOrUpdateCertificate_Call {
	_c.Call.Return(run)
	return _c
}

// UpdateCertificateStatus provides a mock function with given fields: ctx, certificateID, newStatus, updatedAt
func (_m *AggSenderStorage) UpdateCertificateStatus(ctx context.Context, certificateID common.Hash, newStatus agglayertypes.CertificateStatus, updatedAt uint32) error {
	ret := _m.Called(ctx, certificateID, newStatus, updatedAt)

	if len(ret) == 0 {
		panic("no return value specified for UpdateCertificateStatus")
	}

	var r0 error
	if rf, ok := ret.Get(0).(func(context.Context, common.Hash, agglayertypes.CertificateStatus, uint32) error); ok {
		r0 = rf(ctx, certificateID, newStatus, updatedAt)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

// AggSenderStorage_UpdateCertificateStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateCertificateStatus'
type AggSenderStorage_UpdateCertificateStatus_Call struct {
	*mock.Call
}

// UpdateCertificateStatus is a helper method to define mock.On call
//   - ctx context.Context
//   - certificateID common.Hash
//   - newStatus agglayertypes.CertificateStatus
//   - updatedAt uint32
func (_e *AggSenderStorage_Expecter) UpdateCertificateStatus(ctx interface{}, certificateID interface{}, newStatus interface{}, updatedAt interface{}) *AggSenderStorage_UpdateCertificateStatus_Call {
	return &AggSenderStorage_UpdateCertificateStatus_Call{Call: _e.mock.On("UpdateCertificateStatus", ctx, certificateID, newStatus, updatedAt)}
}

func (_c *AggSenderStorage_UpdateCertificateStatus_Call) Run(run func(ctx context.Context, certificateID common.Hash, newStatus agglayertypes.CertificateStatus, updatedAt uint32)) *AggSenderStorage_UpdateCertificateStatus_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(context.Context), args[1].(common.Hash), args[2].(agglayertypes.CertificateStatus), args[3].(uint32))
	})
	return _c
}

func (_c *AggSenderStorage_UpdateCertificateStatus_Call) Return(_a0 error) *AggSenderStorage_UpdateCertificateStatus_Call {
	_c.Call.Return(_a0)
	return _c
}

func (_c *AggSenderStorage_UpdateCertificateStatus_Call) RunAndReturn(run func(context.Context, common.Hash, agglayertypes.CertificateStatus, uint32) error) *AggSenderStorage_UpdateCertificateStatus_Call {
	_c.Call.Return(run)
	return _c
}

// NewAggSenderStorage creates a new instance of AggSenderStorage. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
// The first argument is typically a *testing.T value.
func NewAggSenderStorage(t interface {
	mock.TestingT
	Cleanup(func())
}) *AggSenderStorage {
	mock := &AggSenderStorage{}
	mock.Mock.Test(t)

	t.Cleanup(func() { mock.AssertExpectations(t) })

	return mock
}
