mock_client

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package mock_client is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockIoTexClient

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

MockIoTexClient is a mock of IoTexClient interface

func NewMockIoTexClient

func NewMockIoTexClient(ctrl *gomock.Controller) *MockIoTexClient

NewMockIoTexClient creates a new mock instance

func (*MockIoTexClient) EXPECT

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

func (*MockIoTexClient) EstimateGasForAction

func (m *MockIoTexClient) EstimateGasForAction(ctx context.Context, action *iotextypes.Action) (uint64, error)

EstimateGasForAction mocks base method

func (*MockIoTexClient) GetAccount

func (m *MockIoTexClient) GetAccount(ctx context.Context, height int64, owner string) (*types.AccountBalanceResponse, error)

GetAccount mocks base method

func (*MockIoTexClient) GetBlock

func (m *MockIoTexClient) GetBlock(ctx context.Context, height int64) (*types.Block, error)

GetBlock mocks base method

func (*MockIoTexClient) GetBlockTransaction

func (m *MockIoTexClient) GetBlockTransaction(ctx context.Context, actionHash string) (*types.Transaction, error)

GetBlockTransaction mocks base method

func (*MockIoTexClient) GetChainID

func (m *MockIoTexClient) GetChainID(ctx context.Context) (string, error)

GetChainID mocks base method

func (*MockIoTexClient) GetConfig

func (m *MockIoTexClient) GetConfig() *config.Config

GetConfig mocks base method

func (*MockIoTexClient) GetGenesisBlock

func (m *MockIoTexClient) GetGenesisBlock(ctx context.Context) (*types.Block, error)

GetGenesisBlock mocks base method

func (*MockIoTexClient) GetLatestBlock

func (m *MockIoTexClient) GetLatestBlock(ctx context.Context) (*types.Block, error)

GetLatestBlock mocks base method

func (*MockIoTexClient) GetMemPool

func (m *MockIoTexClient) GetMemPool(ctx context.Context, actionHashes []string) ([]*types.TransactionIdentifier, error)

GetMemPool mocks base method

func (*MockIoTexClient) GetMemPoolTransaction

func (m *MockIoTexClient) GetMemPoolTransaction(ctx context.Context, h string) (*types.Transaction, error)

GetMemPoolTransaction mocks base method

func (*MockIoTexClient) GetStatus

GetStatus mocks base method

func (*MockIoTexClient) GetTransactions

func (m *MockIoTexClient) GetTransactions(ctx context.Context, height int64) ([]*types.Transaction, error)

GetTransactions mocks base method

func (*MockIoTexClient) GetVersion

GetVersion mocks base method

func (*MockIoTexClient) SubmitTx

func (m *MockIoTexClient) SubmitTx(ctx context.Context, tx *iotextypes.Action) (string, error)

SubmitTx mocks base method

func (*MockIoTexClient) SuggestGasPrice

func (m *MockIoTexClient) SuggestGasPrice(ctx context.Context) (uint64, error)

SuggestGasPrice mocks base method

type MockIoTexClientMockRecorder

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

MockIoTexClientMockRecorder is the mock recorder for MockIoTexClient

func (*MockIoTexClientMockRecorder) EstimateGasForAction

func (mr *MockIoTexClientMockRecorder) EstimateGasForAction(ctx, action interface{}) *gomock.Call

EstimateGasForAction indicates an expected call of EstimateGasForAction

func (*MockIoTexClientMockRecorder) GetAccount

func (mr *MockIoTexClientMockRecorder) GetAccount(ctx, height, owner interface{}) *gomock.Call

GetAccount indicates an expected call of GetAccount

func (*MockIoTexClientMockRecorder) GetBlock

func (mr *MockIoTexClientMockRecorder) GetBlock(ctx, height interface{}) *gomock.Call

GetBlock indicates an expected call of GetBlock

func (*MockIoTexClientMockRecorder) GetBlockTransaction

func (mr *MockIoTexClientMockRecorder) GetBlockTransaction(ctx, actionHash interface{}) *gomock.Call

GetBlockTransaction indicates an expected call of GetBlockTransaction

func (*MockIoTexClientMockRecorder) GetChainID

func (mr *MockIoTexClientMockRecorder) GetChainID(ctx interface{}) *gomock.Call

GetChainID indicates an expected call of GetChainID

func (*MockIoTexClientMockRecorder) GetConfig

func (mr *MockIoTexClientMockRecorder) GetConfig() *gomock.Call

GetConfig indicates an expected call of GetConfig

func (*MockIoTexClientMockRecorder) GetGenesisBlock

func (mr *MockIoTexClientMockRecorder) GetGenesisBlock(ctx interface{}) *gomock.Call

GetGenesisBlock indicates an expected call of GetGenesisBlock

func (*MockIoTexClientMockRecorder) GetLatestBlock

func (mr *MockIoTexClientMockRecorder) GetLatestBlock(ctx interface{}) *gomock.Call

GetLatestBlock indicates an expected call of GetLatestBlock

func (*MockIoTexClientMockRecorder) GetMemPool

func (mr *MockIoTexClientMockRecorder) GetMemPool(ctx, actionHashes interface{}) *gomock.Call

GetMemPool indicates an expected call of GetMemPool

func (*MockIoTexClientMockRecorder) GetMemPoolTransaction

func (mr *MockIoTexClientMockRecorder) GetMemPoolTransaction(ctx, actionHash interface{}) *gomock.Call

GetMemPoolTransaction indicates an expected call of GetMemPoolTransaction

func (*MockIoTexClientMockRecorder) GetStatus

func (mr *MockIoTexClientMockRecorder) GetStatus(ctx interface{}) *gomock.Call

GetStatus indicates an expected call of GetStatus

func (*MockIoTexClientMockRecorder) GetTransactions

func (mr *MockIoTexClientMockRecorder) GetTransactions(ctx, height interface{}) *gomock.Call

GetTransactions indicates an expected call of GetTransactions

func (*MockIoTexClientMockRecorder) GetVersion

func (mr *MockIoTexClientMockRecorder) GetVersion(ctx interface{}) *gomock.Call

GetVersion indicates an expected call of GetVersion

func (*MockIoTexClientMockRecorder) SubmitTx

func (mr *MockIoTexClientMockRecorder) SubmitTx(ctx, tx interface{}) *gomock.Call

SubmitTx indicates an expected call of SubmitTx

func (*MockIoTexClientMockRecorder) SuggestGasPrice

func (mr *MockIoTexClientMockRecorder) SuggestGasPrice(ctx interface{}) *gomock.Call

SuggestGasPrice indicates an expected call of SuggestGasPrice

Jump to

Keyboard shortcuts

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