// Code generated by mockery v2.14.0. DO NOT EDIT. package mocks import ( context "context" big "math/big" common "github.com/ethereum/go-ethereum/common" mock "github.com/stretchr/testify/mock" types "github.com/ethereum/go-ethereum/core/types" ) // ConfirmationClient is an autogenerated mock type for the ConfirmationClient type type ConfirmationClient struct { mock.Mock } // BalanceAt provides a mock function with given fields: ctx, account, blockNumber func (_m *ConfirmationClient) BalanceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (*big.Int, error) { ret := _m.Called(ctx, account, blockNumber) var r0 *big.Int if rf, ok := ret.Get(0).(func(context.Context, common.Address, *big.Int) *big.Int); ok { r0 = rf(ctx, account, blockNumber) } else { if ret.Get(0) != nil { r0 = ret.Get(0).(*big.Int) } } var r1 error if rf, ok := ret.Get(1).(func(context.Context, common.Address, *big.Int) error); ok { r1 = rf(ctx, account, blockNumber) } else { r1 = ret.Error(1) } return r0, r1 } // CodeAt provides a mock function with given fields: ctx, account, blockNumber func (_m *ConfirmationClient) CodeAt(ctx context.Context, account common.Address, blockNumber *big.Int) ([]byte, error) { ret := _m.Called(ctx, account, blockNumber) var r0 []byte if rf, ok := ret.Get(0).(func(context.Context, common.Address, *big.Int) []byte); ok { r0 = rf(ctx, account, blockNumber) } else { if ret.Get(0) != nil { r0 = ret.Get(0).([]byte) } } var r1 error if rf, ok := ret.Get(1).(func(context.Context, common.Address, *big.Int) error); ok { r1 = rf(ctx, account, blockNumber) } else { r1 = ret.Error(1) } return r0, r1 } // NonceAt provides a mock function with given fields: ctx, account, blockNumber func (_m *ConfirmationClient) NonceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (uint64, error) { ret := _m.Called(ctx, account, blockNumber) var r0 uint64 if rf, ok := ret.Get(0).(func(context.Context, common.Address, *big.Int) uint64); ok { r0 = rf(ctx, account, blockNumber) } else { r0 = ret.Get(0).(uint64) } var r1 error if rf, ok := ret.Get(1).(func(context.Context, common.Address, *big.Int) error); ok { r1 = rf(ctx, account, blockNumber) } else { r1 = ret.Error(1) } return r0, r1 } // SendTransaction provides a mock function with given fields: ctx, tx func (_m *ConfirmationClient) SendTransaction(ctx context.Context, tx *types.Transaction) error { ret := _m.Called(ctx, tx) var r0 error if rf, ok := ret.Get(0).(func(context.Context, *types.Transaction) error); ok { r0 = rf(ctx, tx) } else { r0 = ret.Error(0) } return r0 } // StorageAt provides a mock function with given fields: ctx, account, key, blockNumber func (_m *ConfirmationClient) StorageAt(ctx context.Context, account common.Address, key common.Hash, blockNumber *big.Int) ([]byte, error) { ret := _m.Called(ctx, account, key, blockNumber) var r0 []byte if rf, ok := ret.Get(0).(func(context.Context, common.Address, common.Hash, *big.Int) []byte); ok { r0 = rf(ctx, account, key, blockNumber) } else { if ret.Get(0) != nil { r0 = ret.Get(0).([]byte) } } var r1 error if rf, ok := ret.Get(1).(func(context.Context, common.Address, common.Hash, *big.Int) error); ok { r1 = rf(ctx, account, key, blockNumber) } else { r1 = ret.Error(1) } return r0, r1 } // TransactionByHash provides a mock function with given fields: ctx, txHash func (_m *ConfirmationClient) TransactionByHash(ctx context.Context, txHash common.Hash) (*types.Transaction, bool, error) { ret := _m.Called(ctx, txHash) var r0 *types.Transaction if rf, ok := ret.Get(0).(func(context.Context, common.Hash) *types.Transaction); ok { r0 = rf(ctx, txHash) } else { if ret.Get(0) != nil { r0 = ret.Get(0).(*types.Transaction) } } var r1 bool if rf, ok := ret.Get(1).(func(context.Context, common.Hash) bool); ok { r1 = rf(ctx, txHash) } else { r1 = ret.Get(1).(bool) } var r2 error if rf, ok := ret.Get(2).(func(context.Context, common.Hash) error); ok { r2 = rf(ctx, txHash) } else { r2 = ret.Error(2) } return r0, r1, r2 } // TransactionReceipt provides a mock function with given fields: ctx, txHash func (_m *ConfirmationClient) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error) { ret := _m.Called(ctx, txHash) var r0 *types.Receipt if rf, ok := ret.Get(0).(func(context.Context, common.Hash) *types.Receipt); ok { r0 = rf(ctx, txHash) } else { if ret.Get(0) != nil { r0 = ret.Get(0).(*types.Receipt) } } var r1 error if rf, ok := ret.Get(1).(func(context.Context, common.Hash) error); ok { r1 = rf(ctx, txHash) } else { r1 = ret.Error(1) } return r0, r1 } type mockConstructorTestingTNewConfirmationClient interface { mock.TestingT Cleanup(func()) } // NewConfirmationClient creates a new instance of ConfirmationClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. func NewConfirmationClient(t mockConstructorTestingTNewConfirmationClient) *ConfirmationClient { mock := &ConfirmationClient{} mock.Mock.Test(t) t.Cleanup(func() { mock.AssertExpectations(t) }) return mock }