mock

package
v0.0.0-...-11a4fed Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2023 License: LGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockExecutor

type MockExecutor struct {
	// contains filtered or unexported fields
}

MockExecutor is a mock of Executor interface

func NewMockExecutor

func NewMockExecutor(ctrl *gomock.Controller) *MockExecutor

NewMockExecutor creates a new mock instance

func (*MockExecutor) CalcSwapId

func (m *MockExecutor) CalcSwapId(randomNumberHash common0.Hash, sender, senderOtherChain string) ([]byte, error)

CalcSwapId mocks base method

func (*MockExecutor) Claim

func (m *MockExecutor) Claim(swapId, randomNumber common0.Hash) (string, *common.Error)

Claim mocks base method

func (*MockExecutor) Claimable

func (m *MockExecutor) Claimable(swapId common0.Hash) (bool, error)

Claimable mocks base method

func (*MockExecutor) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockExecutor) GetBalance

func (m *MockExecutor) GetBalance(address string) (*big.Int, error)

GetBalance mocks base method

func (*MockExecutor) GetBalanceAlertMsg

func (m *MockExecutor) GetBalanceAlertMsg() (string, error)

GetBalanceAlertMsg mocks base method

func (*MockExecutor) GetBlockAndTxs

func (m *MockExecutor) GetBlockAndTxs(height int64) (*common.BlockAndTxLogs, error)

GetBlockAndTxs mocks base method

func (*MockExecutor) GetChain

func (m *MockExecutor) GetChain() string

GetChain mocks base method

func (*MockExecutor) GetColdWalletAddress

func (m *MockExecutor) GetColdWalletAddress() string

GetColdWalletAddress mocks base method

func (*MockExecutor) GetDeputyAddress

func (m *MockExecutor) GetDeputyAddress() string

GetDeputyAddress mocks base method

func (*MockExecutor) GetFetchInterval

func (m *MockExecutor) GetFetchInterval() time.Duration

GetFetchInterval mocks base method

func (*MockExecutor) GetHeight

func (m *MockExecutor) GetHeight() (int64, error)

GetHeight mocks base method

func (*MockExecutor) GetSentTxStatus

func (m *MockExecutor) GetSentTxStatus(hash string) store.TxStatus

GetSentTxStatus mocks base method

func (*MockExecutor) GetStatus

func (m *MockExecutor) GetStatus() (interface{}, error)

GetStatus mocks base method

func (*MockExecutor) GetSwap

func (m *MockExecutor) GetSwap(swapId common0.Hash) (*common.SwapRequest, error)

GetSwap mocks base method

func (*MockExecutor) HTLT

func (m *MockExecutor) HTLT(randomNumberHash common0.Hash, timestamp, heightSpan int64, recipientAddr, otherChainSenderAddr, otherChainRecipientAddr string, outAmount *big.Int) (string, *common.Error)

HTLT mocks base method

func (*MockExecutor) HasSwap

func (m *MockExecutor) HasSwap(swapId common0.Hash) (bool, error)

HasSwap mocks base method

func (*MockExecutor) IsSameAddress

func (m *MockExecutor) IsSameAddress(addrA, addrB string) bool

IsSameAddress mocks base method

func (*MockExecutor) Refund

func (m *MockExecutor) Refund(swapId common0.Hash) (string, *common.Error)

Refund mocks base method

func (*MockExecutor) Refundable

func (m *MockExecutor) Refundable(swapId common0.Hash) (bool, error)

Refundable mocks base method

func (*MockExecutor) SendAmount

func (m *MockExecutor) SendAmount(address string, amount *big.Int) (string, error)

SendAmount mocks base method

type MockExecutorMockRecorder

type MockExecutorMockRecorder struct {
	// contains filtered or unexported fields
}

MockExecutorMockRecorder is the mock recorder for MockExecutor

func (*MockExecutorMockRecorder) CalcSwapId

func (mr *MockExecutorMockRecorder) CalcSwapId(randomNumberHash, sender, senderOtherChain interface{}) *gomock.Call

CalcSwapId indicates an expected call of CalcSwapId

func (*MockExecutorMockRecorder) Claim

func (mr *MockExecutorMockRecorder) Claim(swapId, randomNumber interface{}) *gomock.Call

Claim indicates an expected call of Claim

func (*MockExecutorMockRecorder) Claimable

func (mr *MockExecutorMockRecorder) Claimable(swapId interface{}) *gomock.Call

Claimable indicates an expected call of Claimable

func (*MockExecutorMockRecorder) GetBalance

func (mr *MockExecutorMockRecorder) GetBalance(address interface{}) *gomock.Call

GetBalance indicates an expected call of GetBalance

func (*MockExecutorMockRecorder) GetBalanceAlertMsg

func (mr *MockExecutorMockRecorder) GetBalanceAlertMsg() *gomock.Call

GetBalanceAlertMsg indicates an expected call of GetBalanceAlertMsg

func (*MockExecutorMockRecorder) GetBlockAndTxs

func (mr *MockExecutorMockRecorder) GetBlockAndTxs(height interface{}) *gomock.Call

GetBlockAndTxs indicates an expected call of GetBlockAndTxs

func (*MockExecutorMockRecorder) GetChain

func (mr *MockExecutorMockRecorder) GetChain() *gomock.Call

GetChain indicates an expected call of GetChain

func (*MockExecutorMockRecorder) GetColdWalletAddress

func (mr *MockExecutorMockRecorder) GetColdWalletAddress() *gomock.Call

GetColdWalletAddress indicates an expected call of GetColdWalletAddress

func (*MockExecutorMockRecorder) GetDeputyAddress

func (mr *MockExecutorMockRecorder) GetDeputyAddress() *gomock.Call

GetDeputyAddress indicates an expected call of GetDeputyAddress

func (*MockExecutorMockRecorder) GetFetchInterval

func (mr *MockExecutorMockRecorder) GetFetchInterval() *gomock.Call

GetFetchInterval indicates an expected call of GetFetchInterval

func (*MockExecutorMockRecorder) GetHeight

func (mr *MockExecutorMockRecorder) GetHeight() *gomock.Call

GetHeight indicates an expected call of GetHeight

func (*MockExecutorMockRecorder) GetSentTxStatus

func (mr *MockExecutorMockRecorder) GetSentTxStatus(hash interface{}) *gomock.Call

GetSentTxStatus indicates an expected call of GetSentTxStatus

func (*MockExecutorMockRecorder) GetStatus

func (mr *MockExecutorMockRecorder) GetStatus() *gomock.Call

GetStatus indicates an expected call of GetStatus

func (*MockExecutorMockRecorder) GetSwap

func (mr *MockExecutorMockRecorder) GetSwap(swapId interface{}) *gomock.Call

GetSwap indicates an expected call of GetSwap

func (*MockExecutorMockRecorder) HTLT

func (mr *MockExecutorMockRecorder) HTLT(randomNumberHash, timestamp, heightSpan, recipientAddr, otherChainSenderAddr, otherChainRecipientAddr, outAmount interface{}) *gomock.Call

HTLT indicates an expected call of HTLT

func (*MockExecutorMockRecorder) HasSwap

func (mr *MockExecutorMockRecorder) HasSwap(swapId interface{}) *gomock.Call

HasSwap indicates an expected call of HasSwap

func (*MockExecutorMockRecorder) IsSameAddress

func (mr *MockExecutorMockRecorder) IsSameAddress(addrA, addrB interface{}) *gomock.Call

IsSameAddress indicates an expected call of IsSameAddress

func (*MockExecutorMockRecorder) Refund

func (mr *MockExecutorMockRecorder) Refund(swapId interface{}) *gomock.Call

Refund indicates an expected call of Refund

func (*MockExecutorMockRecorder) Refundable

func (mr *MockExecutorMockRecorder) Refundable(swapId interface{}) *gomock.Call

Refundable indicates an expected call of Refundable

func (*MockExecutorMockRecorder) SendAmount

func (mr *MockExecutorMockRecorder) SendAmount(address, amount interface{}) *gomock.Call

SendAmount indicates an expected call of SendAmount

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL