// Code generated by mockery v2.40.1. DO NOT EDIT.

package mocks

import (
	blockchain "github.com/BitBoxSwiss/bitbox-wallet-app/backend/coins/btc/blockchain"
	btcutil "github.com/btcsuite/btcd/btcutil"

	chainhash "github.com/btcsuite/btcd/chaincfg/chainhash"

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

	types "github.com/BitBoxSwiss/block-client-go/electrum/types"

	wire "github.com/btcsuite/btcd/wire"
)

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

// Close provides a mock function with given fields:
func (_m *Interface) Close() {
	_m.Called()
}

// ConnectionError provides a mock function with given fields:
func (_m *Interface) ConnectionError() error {
	ret := _m.Called()

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

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

	return r0
}

// EstimateFee provides a mock function with given fields: _a0
func (_m *Interface) EstimateFee(_a0 int) (btcutil.Amount, error) {
	ret := _m.Called(_a0)

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

	var r0 btcutil.Amount
	var r1 error
	if rf, ok := ret.Get(0).(func(int) (btcutil.Amount, error)); ok {
		return rf(_a0)
	}
	if rf, ok := ret.Get(0).(func(int) btcutil.Amount); ok {
		r0 = rf(_a0)
	} else {
		r0 = ret.Get(0).(btcutil.Amount)
	}

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

	return r0, r1
}

// GetMerkle provides a mock function with given fields: _a0, _a1
func (_m *Interface) GetMerkle(_a0 chainhash.Hash, _a1 int) (*blockchain.GetMerkleResult, error) {
	ret := _m.Called(_a0, _a1)

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

	var r0 *blockchain.GetMerkleResult
	var r1 error
	if rf, ok := ret.Get(0).(func(chainhash.Hash, int) (*blockchain.GetMerkleResult, error)); ok {
		return rf(_a0, _a1)
	}
	if rf, ok := ret.Get(0).(func(chainhash.Hash, int) *blockchain.GetMerkleResult); ok {
		r0 = rf(_a0, _a1)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*blockchain.GetMerkleResult)
		}
	}

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

	return r0, r1
}

// Headers provides a mock function with given fields: _a0, _a1
func (_m *Interface) Headers(_a0 int, _a1 int) (*blockchain.HeadersResult, error) {
	ret := _m.Called(_a0, _a1)

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

	var r0 *blockchain.HeadersResult
	var r1 error
	if rf, ok := ret.Get(0).(func(int, int) (*blockchain.HeadersResult, error)); ok {
		return rf(_a0, _a1)
	}
	if rf, ok := ret.Get(0).(func(int, int) *blockchain.HeadersResult); ok {
		r0 = rf(_a0, _a1)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*blockchain.HeadersResult)
		}
	}

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

	return r0, r1
}

// HeadersSubscribe provides a mock function with given fields: _a0
func (_m *Interface) HeadersSubscribe(_a0 func(*types.Header)) {
	_m.Called(_a0)
}

// ManualReconnect provides a mock function with given fields:
func (_m *Interface) ManualReconnect() {
	_m.Called()
}

// RegisterOnConnectionErrorChangedEvent provides a mock function with given fields: _a0
func (_m *Interface) RegisterOnConnectionErrorChangedEvent(_a0 func(error)) {
	_m.Called(_a0)
}

// RelayFee provides a mock function with given fields:
func (_m *Interface) RelayFee() (btcutil.Amount, error) {
	ret := _m.Called()

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

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

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

	return r0, r1
}

// ScriptHashGetHistory provides a mock function with given fields: _a0
func (_m *Interface) ScriptHashGetHistory(_a0 blockchain.ScriptHashHex) (blockchain.TxHistory, error) {
	ret := _m.Called(_a0)

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

	var r0 blockchain.TxHistory
	var r1 error
	if rf, ok := ret.Get(0).(func(blockchain.ScriptHashHex) (blockchain.TxHistory, error)); ok {
		return rf(_a0)
	}
	if rf, ok := ret.Get(0).(func(blockchain.ScriptHashHex) blockchain.TxHistory); ok {
		r0 = rf(_a0)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(blockchain.TxHistory)
		}
	}

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

	return r0, r1
}

// ScriptHashSubscribe provides a mock function with given fields: _a0, _a1, _a2
func (_m *Interface) ScriptHashSubscribe(_a0 func() func(), _a1 blockchain.ScriptHashHex, _a2 func(string)) {
	_m.Called(_a0, _a1, _a2)
}

// TransactionBroadcast provides a mock function with given fields: _a0
func (_m *Interface) TransactionBroadcast(_a0 *wire.MsgTx) error {
	ret := _m.Called(_a0)

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

	var r0 error
	if rf, ok := ret.Get(0).(func(*wire.MsgTx) error); ok {
		r0 = rf(_a0)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

// TransactionGet provides a mock function with given fields: _a0
func (_m *Interface) TransactionGet(_a0 chainhash.Hash) (*wire.MsgTx, error) {
	ret := _m.Called(_a0)

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

	var r0 *wire.MsgTx
	var r1 error
	if rf, ok := ret.Get(0).(func(chainhash.Hash) (*wire.MsgTx, error)); ok {
		return rf(_a0)
	}
	if rf, ok := ret.Get(0).(func(chainhash.Hash) *wire.MsgTx); ok {
		r0 = rf(_a0)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*wire.MsgTx)
		}
	}

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

	return r0, r1
}

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

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

	return mock
}
