// Code generated by mockery. DO NOT EDIT.

package mocks

import (
	context "context"

	agglayertypes "github.com/agglayer/aggkit/agglayer/types"

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

	signertypes "github.com/agglayer/go_signer/signer/types"

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

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

type AggsenderBuilderFlow_Expecter struct {
	mock *mock.Mock
}

func (_m *AggsenderBuilderFlow) EXPECT() *AggsenderBuilderFlow_Expecter {
	return &AggsenderBuilderFlow_Expecter{mock: &_m.Mock}
}

// BuildCertificate provides a mock function with given fields: ctx, buildParams
func (_m *AggsenderBuilderFlow) BuildCertificate(ctx context.Context, buildParams *types.CertificateBuildParams) (*agglayertypes.Certificate, error) {
	ret := _m.Called(ctx, buildParams)

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

	var r0 *agglayertypes.Certificate
	var r1 error
	if rf, ok := ret.Get(0).(func(context.Context, *types.CertificateBuildParams) (*agglayertypes.Certificate, error)); ok {
		return rf(ctx, buildParams)
	}
	if rf, ok := ret.Get(0).(func(context.Context, *types.CertificateBuildParams) *agglayertypes.Certificate); ok {
		r0 = rf(ctx, buildParams)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*agglayertypes.Certificate)
		}
	}

	if rf, ok := ret.Get(1).(func(context.Context, *types.CertificateBuildParams) error); ok {
		r1 = rf(ctx, buildParams)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

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

// BuildCertificate is a helper method to define mock.On call
//   - ctx context.Context
//   - buildParams *types.CertificateBuildParams
func (_e *AggsenderBuilderFlow_Expecter) BuildCertificate(ctx interface{}, buildParams interface{}) *AggsenderBuilderFlow_BuildCertificate_Call {
	return &AggsenderBuilderFlow_BuildCertificate_Call{Call: _e.mock.On("BuildCertificate", ctx, buildParams)}
}

func (_c *AggsenderBuilderFlow_BuildCertificate_Call) Run(run func(ctx context.Context, buildParams *types.CertificateBuildParams)) *AggsenderBuilderFlow_BuildCertificate_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(context.Context), args[1].(*types.CertificateBuildParams))
	})
	return _c
}

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

func (_c *AggsenderBuilderFlow_BuildCertificate_Call) RunAndReturn(run func(context.Context, *types.CertificateBuildParams) (*agglayertypes.Certificate, error)) *AggsenderBuilderFlow_BuildCertificate_Call {
	_c.Call.Return(run)
	return _c
}

// CheckInitialStatus provides a mock function with given fields: ctx
func (_m *AggsenderBuilderFlow) CheckInitialStatus(ctx context.Context) error {
	ret := _m.Called(ctx)

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

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

	return r0
}

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

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

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

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

func (_c *AggsenderBuilderFlow_CheckInitialStatus_Call) RunAndReturn(run func(context.Context) error) *AggsenderBuilderFlow_CheckInitialStatus_Call {
	_c.Call.Return(run)
	return _c
}

// GenerateBuildParams provides a mock function with given fields: ctx, preParams
func (_m *AggsenderBuilderFlow) GenerateBuildParams(ctx context.Context, preParams *types.CertificatePreBuildParams) (*types.CertificateBuildParams, error) {
	ret := _m.Called(ctx, preParams)

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

	var r0 *types.CertificateBuildParams
	var r1 error
	if rf, ok := ret.Get(0).(func(context.Context, *types.CertificatePreBuildParams) (*types.CertificateBuildParams, error)); ok {
		return rf(ctx, preParams)
	}
	if rf, ok := ret.Get(0).(func(context.Context, *types.CertificatePreBuildParams) *types.CertificateBuildParams); ok {
		r0 = rf(ctx, preParams)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*types.CertificateBuildParams)
		}
	}

	if rf, ok := ret.Get(1).(func(context.Context, *types.CertificatePreBuildParams) error); ok {
		r1 = rf(ctx, preParams)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

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

// GenerateBuildParams is a helper method to define mock.On call
//   - ctx context.Context
//   - preParams *types.CertificatePreBuildParams
func (_e *AggsenderBuilderFlow_Expecter) GenerateBuildParams(ctx interface{}, preParams interface{}) *AggsenderBuilderFlow_GenerateBuildParams_Call {
	return &AggsenderBuilderFlow_GenerateBuildParams_Call{Call: _e.mock.On("GenerateBuildParams", ctx, preParams)}
}

func (_c *AggsenderBuilderFlow_GenerateBuildParams_Call) Run(run func(ctx context.Context, preParams *types.CertificatePreBuildParams)) *AggsenderBuilderFlow_GenerateBuildParams_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(context.Context), args[1].(*types.CertificatePreBuildParams))
	})
	return _c
}

func (_c *AggsenderBuilderFlow_GenerateBuildParams_Call) Return(_a0 *types.CertificateBuildParams, _a1 error) *AggsenderBuilderFlow_GenerateBuildParams_Call {
	_c.Call.Return(_a0, _a1)
	return _c
}

func (_c *AggsenderBuilderFlow_GenerateBuildParams_Call) RunAndReturn(run func(context.Context, *types.CertificatePreBuildParams) (*types.CertificateBuildParams, error)) *AggsenderBuilderFlow_GenerateBuildParams_Call {
	_c.Call.Return(run)
	return _c
}

// GetCertificateBuildParams provides a mock function with given fields: ctx
func (_m *AggsenderBuilderFlow) GetCertificateBuildParams(ctx context.Context) (*types.CertificateBuildParams, error) {
	ret := _m.Called(ctx)

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

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

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

	return r0, r1
}

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

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

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

func (_c *AggsenderBuilderFlow_GetCertificateBuildParams_Call) Return(_a0 *types.CertificateBuildParams, _a1 error) *AggsenderBuilderFlow_GetCertificateBuildParams_Call {
	_c.Call.Return(_a0, _a1)
	return _c
}

func (_c *AggsenderBuilderFlow_GetCertificateBuildParams_Call) RunAndReturn(run func(context.Context) (*types.CertificateBuildParams, error)) *AggsenderBuilderFlow_GetCertificateBuildParams_Call {
	_c.Call.Return(run)
	return _c
}

// Signer provides a mock function with no fields
func (_m *AggsenderBuilderFlow) Signer() signertypes.Signer {
	ret := _m.Called()

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

	var r0 signertypes.Signer
	if rf, ok := ret.Get(0).(func() signertypes.Signer); ok {
		r0 = rf()
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(signertypes.Signer)
		}
	}

	return r0
}

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

// Signer is a helper method to define mock.On call
func (_e *AggsenderBuilderFlow_Expecter) Signer() *AggsenderBuilderFlow_Signer_Call {
	return &AggsenderBuilderFlow_Signer_Call{Call: _e.mock.On("Signer")}
}

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

func (_c *AggsenderBuilderFlow_Signer_Call) Return(_a0 signertypes.Signer) *AggsenderBuilderFlow_Signer_Call {
	_c.Call.Return(_a0)
	return _c
}

func (_c *AggsenderBuilderFlow_Signer_Call) RunAndReturn(run func() signertypes.Signer) *AggsenderBuilderFlow_Signer_Call {
	_c.Call.Return(run)
	return _c
}

// UpdateAggchainData provides a mock function with given fields: cert, multisig
func (_m *AggsenderBuilderFlow) UpdateAggchainData(cert *agglayertypes.Certificate, multisig *agglayertypes.Multisig) error {
	ret := _m.Called(cert, multisig)

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

	var r0 error
	if rf, ok := ret.Get(0).(func(*agglayertypes.Certificate, *agglayertypes.Multisig) error); ok {
		r0 = rf(cert, multisig)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

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

// UpdateAggchainData is a helper method to define mock.On call
//   - cert *agglayertypes.Certificate
//   - multisig *agglayertypes.Multisig
func (_e *AggsenderBuilderFlow_Expecter) UpdateAggchainData(cert interface{}, multisig interface{}) *AggsenderBuilderFlow_UpdateAggchainData_Call {
	return &AggsenderBuilderFlow_UpdateAggchainData_Call{Call: _e.mock.On("UpdateAggchainData", cert, multisig)}
}

func (_c *AggsenderBuilderFlow_UpdateAggchainData_Call) Run(run func(cert *agglayertypes.Certificate, multisig *agglayertypes.Multisig)) *AggsenderBuilderFlow_UpdateAggchainData_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(*agglayertypes.Certificate), args[1].(*agglayertypes.Multisig))
	})
	return _c
}

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

func (_c *AggsenderBuilderFlow_UpdateAggchainData_Call) RunAndReturn(run func(*agglayertypes.Certificate, *agglayertypes.Multisig) error) *AggsenderBuilderFlow_UpdateAggchainData_Call {
	_c.Call.Return(run)
	return _c
}

// NewAggsenderBuilderFlow creates a new instance of AggsenderBuilderFlow. 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 NewAggsenderBuilderFlow(t interface {
	mock.TestingT
	Cleanup(func())
}) *AggsenderBuilderFlow {
	mock := &AggsenderBuilderFlow{}
	mock.Mock.Test(t)

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

	return mock
}
