// Code generated by mockery. DO NOT EDIT.

package mocks

import (
	context "context"
	big "math/big"

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

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

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

type MultisigQuerier_Expecter struct {
	mock *mock.Mock
}

func (_m *MultisigQuerier) EXPECT() *MultisigQuerier_Expecter {
	return &MultisigQuerier_Expecter{mock: &_m.Mock}
}

// ContractMode provides a mock function with no fields
func (_m *MultisigQuerier) ContractMode() (types.AggsenderMode, error) {
	ret := _m.Called()

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

	var r0 types.AggsenderMode
	var r1 error
	if rf, ok := ret.Get(0).(func() (types.AggsenderMode, error)); ok {
		return rf()
	}
	if rf, ok := ret.Get(0).(func() types.AggsenderMode); ok {
		r0 = rf()
	} else {
		r0 = ret.Get(0).(types.AggsenderMode)
	}

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

	return r0, r1
}

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

// ContractMode is a helper method to define mock.On call
func (_e *MultisigQuerier_Expecter) ContractMode() *MultisigQuerier_ContractMode_Call {
	return &MultisigQuerier_ContractMode_Call{Call: _e.mock.On("ContractMode")}
}

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

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

func (_c *MultisigQuerier_ContractMode_Call) RunAndReturn(run func() (types.AggsenderMode, error)) *MultisigQuerier_ContractMode_Call {
	_c.Call.Return(run)
	return _c
}

// GetMultisigCommittee provides a mock function with given fields: ctx, blockNum
func (_m *MultisigQuerier) GetMultisigCommittee(ctx context.Context, blockNum *big.Int) (*types.MultisigCommittee, error) {
	ret := _m.Called(ctx, blockNum)

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

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

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

	return r0, r1
}

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

// GetMultisigCommittee is a helper method to define mock.On call
//   - ctx context.Context
//   - blockNum *big.Int
func (_e *MultisigQuerier_Expecter) GetMultisigCommittee(ctx interface{}, blockNum interface{}) *MultisigQuerier_GetMultisigCommittee_Call {
	return &MultisigQuerier_GetMultisigCommittee_Call{Call: _e.mock.On("GetMultisigCommittee", ctx, blockNum)}
}

func (_c *MultisigQuerier_GetMultisigCommittee_Call) Run(run func(ctx context.Context, blockNum *big.Int)) *MultisigQuerier_GetMultisigCommittee_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(context.Context), args[1].(*big.Int))
	})
	return _c
}

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

func (_c *MultisigQuerier_GetMultisigCommittee_Call) RunAndReturn(run func(context.Context, *big.Int) (*types.MultisigCommittee, error)) *MultisigQuerier_GetMultisigCommittee_Call {
	_c.Call.Return(run)
	return _c
}

// ResolveAutoMode provides a mock function with given fields: cfgMode
func (_m *MultisigQuerier) ResolveAutoMode(cfgMode types.AggsenderMode) (types.AggsenderMode, error) {
	ret := _m.Called(cfgMode)

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

	var r0 types.AggsenderMode
	var r1 error
	if rf, ok := ret.Get(0).(func(types.AggsenderMode) (types.AggsenderMode, error)); ok {
		return rf(cfgMode)
	}
	if rf, ok := ret.Get(0).(func(types.AggsenderMode) types.AggsenderMode); ok {
		r0 = rf(cfgMode)
	} else {
		r0 = ret.Get(0).(types.AggsenderMode)
	}

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

	return r0, r1
}

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

// ResolveAutoMode is a helper method to define mock.On call
//   - cfgMode types.AggsenderMode
func (_e *MultisigQuerier_Expecter) ResolveAutoMode(cfgMode interface{}) *MultisigQuerier_ResolveAutoMode_Call {
	return &MultisigQuerier_ResolveAutoMode_Call{Call: _e.mock.On("ResolveAutoMode", cfgMode)}
}

func (_c *MultisigQuerier_ResolveAutoMode_Call) Run(run func(cfgMode types.AggsenderMode)) *MultisigQuerier_ResolveAutoMode_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(types.AggsenderMode))
	})
	return _c
}

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

func (_c *MultisigQuerier_ResolveAutoMode_Call) RunAndReturn(run func(types.AggsenderMode) (types.AggsenderMode, error)) *MultisigQuerier_ResolveAutoMode_Call {
	_c.Call.Return(run)
	return _c
}

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

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

	return mock
}
