mocks

package
v1.13.14 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EthereumClient

type EthereumClient struct {
	mock.Mock
}

EthereumClient is an autogenerated mock type for the EthereumClient type

func NewEthereumClient

func NewEthereumClient(t mockConstructorTestingTNewEthereumClient) *EthereumClient

NewEthereumClient creates a new instance of EthereumClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*EthereumClient) CallContract

func (_m *EthereumClient) CallContract(ctx context.Context, call ethereum.CallMsg, blockNumber *big.Int) ([]byte, error)

CallContract provides a mock function with given fields: ctx, call, blockNumber

func (*EthereumClient) ChainID

func (_m *EthereumClient) ChainID(ctx context.Context) (*big.Int, error)

ChainID provides a mock function with given fields: ctx

func (*EthereumClient) CodeAt

func (_m *EthereumClient) CodeAt(ctx context.Context, contract common.Address, blockNumber *big.Int) ([]byte, error)

CodeAt provides a mock function with given fields: ctx, contract, blockNumber

func (*EthereumClient) EstimateGas

func (_m *EthereumClient) EstimateGas(ctx context.Context, call ethereum.CallMsg) (uint64, error)

EstimateGas provides a mock function with given fields: ctx, call

func (*EthereumClient) FilterLogs

func (_m *EthereumClient) FilterLogs(ctx context.Context, query ethereum.FilterQuery) ([]types.Log, error)

FilterLogs provides a mock function with given fields: ctx, query

func (*EthereumClient) HeaderByNumber

func (_m *EthereumClient) HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error)

HeaderByNumber provides a mock function with given fields: ctx, number

func (*EthereumClient) PendingCodeAt

func (_m *EthereumClient) PendingCodeAt(ctx context.Context, account common.Address) ([]byte, error)

PendingCodeAt provides a mock function with given fields: ctx, account

func (*EthereumClient) PendingNonceAt

func (_m *EthereumClient) PendingNonceAt(ctx context.Context, account common.Address) (uint64, error)

PendingNonceAt provides a mock function with given fields: ctx, account

func (*EthereumClient) SendTransaction

func (_m *EthereumClient) SendTransaction(ctx context.Context, tx *types.Transaction) error

SendTransaction provides a mock function with given fields: ctx, tx

func (*EthereumClient) SubscribeFilterLogs

func (_m *EthereumClient) SubscribeFilterLogs(ctx context.Context, query ethereum.FilterQuery, ch chan<- types.Log) (ethereum.Subscription, error)

SubscribeFilterLogs provides a mock function with given fields: ctx, query, ch

func (*EthereumClient) SuggestGasPrice

func (_m *EthereumClient) SuggestGasPrice(ctx context.Context) (*big.Int, error)

SuggestGasPrice provides a mock function with given fields: ctx

func (*EthereumClient) SuggestGasTipCap

func (_m *EthereumClient) SuggestGasTipCap(ctx context.Context) (*big.Int, error)

SuggestGasTipCap provides a mock function with given fields: ctx

type JobResult

type JobResult struct {
	mock.Mock
}

JobResult is an autogenerated mock type for the JobResult type

func NewJobResult

func NewJobResult(t mockConstructorTestingTNewJobResult) *JobResult

NewJobResult creates a new instance of JobResult. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*JobResult) Data

func (_m *JobResult) Data() interface{}

Data provides a mock function with given fields:

func (*JobResult) Error

func (_m *JobResult) Error() error

Error provides a mock function with given fields:

func (*JobResult) GetAuthorizerID

func (_m *JobResult) GetAuthorizerID() string

GetAuthorizerID provides a mock function with given fields:

func (*JobResult) SetAuthorizerID

func (_m *JobResult) SetAuthorizerID(ID string)

SetAuthorizerID provides a mock function with given fields: ID

type KeyStore

type KeyStore struct {
	mock.Mock
}

KeyStore is an autogenerated mock type for the KeyStore type

func NewKeyStore

func NewKeyStore(t mockConstructorTestingTNewKeyStore) *KeyStore

NewKeyStore creates a new instance of KeyStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*KeyStore) Find

func (_m *KeyStore) Find(_a0 accounts.Account) (accounts.Account, error)

Find provides a mock function with given fields: _a0

func (*KeyStore) GetEthereumKeyStore

func (_m *KeyStore) GetEthereumKeyStore() *keystore.KeyStore

GetEthereumKeyStore provides a mock function with given fields:

func (*KeyStore) SignHash

func (_m *KeyStore) SignHash(account accounts.Account, hash []byte) ([]byte, error)

SignHash provides a mock function with given fields: account, hash

func (*KeyStore) TimedUnlock

func (_m *KeyStore) TimedUnlock(_a0 accounts.Account, _a1 string, _a2 time.Duration) error

TimedUnlock provides a mock function with given fields: _a0, _a1, _a2

type Transaction

type Transaction struct {
	mock.Mock
}

Transaction is an autogenerated mock type for the Transaction type

func NewTransaction

func NewTransaction(t mockConstructorTestingTNewTransaction) *Transaction

NewTransaction creates a new instance of Transaction. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Transaction) ExecuteSmartContract

func (_m *Transaction) ExecuteSmartContract(ctx context.Context, address string, funcName string, input interface{}, val uint64) (string, error)

ExecuteSmartContract provides a mock function with given fields: ctx, address, funcName, input, val

func (*Transaction) GetCallback

GetCallback provides a mock function with given fields:

func (*Transaction) GetHash

func (_m *Transaction) GetHash() string

GetHash provides a mock function with given fields:

func (*Transaction) GetScheme

func (_m *Transaction) GetScheme() zcncore.TransactionScheme

GetScheme provides a mock function with given fields:

func (*Transaction) GetTransactionOutput

func (_m *Transaction) GetTransactionOutput() string

GetTransactionOutput provides a mock function with given fields:

func (*Transaction) SetHash

func (_m *Transaction) SetHash(_a0 string)

SetHash provides a mock function with given fields: _a0

func (*Transaction) Verify

func (_m *Transaction) Verify(ctx context.Context) error

Verify provides a mock function with given fields: ctx

type TransactionCallbackAwaitable

type TransactionCallbackAwaitable struct {
	mock.Mock
}

TransactionCallbackAwaitable is an autogenerated mock type for the TransactionCallbackAwaitable type

func NewTransactionCallbackAwaitable

func NewTransactionCallbackAwaitable(t mockConstructorTestingTNewTransactionCallbackAwaitable) *TransactionCallbackAwaitable

NewTransactionCallbackAwaitable creates a new instance of TransactionCallbackAwaitable. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*TransactionCallbackAwaitable) OnAuthComplete

func (_m *TransactionCallbackAwaitable) OnAuthComplete(t *zcncore.Transaction, status int)

OnAuthComplete provides a mock function with given fields: t, status

func (*TransactionCallbackAwaitable) OnTransactionComplete

func (_m *TransactionCallbackAwaitable) OnTransactionComplete(t *zcncore.Transaction, status int)

OnTransactionComplete provides a mock function with given fields: t, status

func (*TransactionCallbackAwaitable) OnVerifyComplete

func (_m *TransactionCallbackAwaitable) OnVerifyComplete(t *zcncore.Transaction, status int)

OnVerifyComplete provides a mock function with given fields: t, status

func (*TransactionCallbackAwaitable) WaitCompleteCall

func (_m *TransactionCallbackAwaitable) WaitCompleteCall(ctx context.Context) error

WaitCompleteCall provides a mock function with given fields: ctx

func (*TransactionCallbackAwaitable) WaitVerifyCall

func (_m *TransactionCallbackAwaitable) WaitVerifyCall(ctx context.Context) error

WaitVerifyCall provides a mock function with given fields: ctx

type TransactionProvider

type TransactionProvider struct {
	mock.Mock
}

TransactionProvider is an autogenerated mock type for the TransactionProvider type

func NewTransactionProvider

func NewTransactionProvider(t mockConstructorTestingTNewTransactionProvider) *TransactionProvider

NewTransactionProvider creates a new instance of TransactionProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*TransactionProvider) NewTransactionEntity

func (_m *TransactionProvider) NewTransactionEntity(txnFee uint64) (transaction.Transaction, error)

NewTransactionEntity provides a mock function with given fields: txnFee

Jump to

Keyboard shortcuts

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