mocks

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockClient

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

MockClient is a mock of Client interface.

func NewMockClient

func NewMockClient(ctrl *gomock.Controller) *MockClient

NewMockClient creates a new mock instance.

func (*MockClient) EXPECT

func (m *MockClient) EXPECT() *MockClientMockRecorder

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

func (*MockClient) GetAccountBalance

func (m *MockClient) GetAccountBalance(ctx context.Context, stateRootHash *string, purseURef string) (rpc.StateGetBalanceResult, error)

func (*MockClient) GetAccountInfoByBlochHash

func (m *MockClient) GetAccountInfoByBlochHash(ctx context.Context, blockHash string, pub keypair.PublicKey) (rpc.StateGetAccountInfo, error)

GetAccountInfoByBlochHash mocks base method.

func (*MockClient) GetAccountInfoByBlochHeight

func (m *MockClient) GetAccountInfoByBlochHeight(ctx context.Context, blockHeight uint64, pub keypair.PublicKey) (rpc.StateGetAccountInfo, error)

GetAccountInfoByBlochHeight mocks base method.

func (*MockClient) GetAuctionInfoByHash

func (m *MockClient) GetAuctionInfoByHash(ctx context.Context, blockHash string) (rpc.StateGetAuctionInfoResult, error)

GetAuctionInfoByHash mocks base method.

func (*MockClient) GetAuctionInfoByHeight

func (m *MockClient) GetAuctionInfoByHeight(ctx context.Context, height uint64) (rpc.StateGetAuctionInfoResult, error)

GetAuctionInfoByHeight mocks base method.

func (*MockClient) GetAuctionInfoLatest

func (m *MockClient) GetAuctionInfoLatest(ctx context.Context) (rpc.StateGetAuctionInfoResult, error)

GetAuctionInfoLatest mocks base method.

func (*MockClient) GetBlockByHash

func (m *MockClient) GetBlockByHash(ctx context.Context, hash string) (rpc.ChainGetBlockResult, error)

GetBlockByHash mocks base method.

func (*MockClient) GetBlockByHeight

func (m *MockClient) GetBlockByHeight(ctx context.Context, height uint64) (rpc.ChainGetBlockResult, error)

GetBlockByHeight mocks base method.

func (*MockClient) GetBlockLatest

func (m *MockClient) GetBlockLatest(ctx context.Context) (rpc.ChainGetBlockResult, error)

GetBlockLatest mocks base method.

func (*MockClient) GetBlockTransfersByHash

func (m *MockClient) GetBlockTransfersByHash(ctx context.Context, blockHash string) (rpc.ChainGetBlockTransfersResult, error)

GetBlockTransfersByHash mocks base method.

func (*MockClient) GetBlockTransfersByHeight

func (m *MockClient) GetBlockTransfersByHeight(ctx context.Context, height uint64) (rpc.ChainGetBlockTransfersResult, error)

GetBlockTransfersByHeight mocks base method.

func (*MockClient) GetBlockTransfersLatest

func (m *MockClient) GetBlockTransfersLatest(ctx context.Context) (rpc.ChainGetBlockTransfersResult, error)

GetBlockTransfersLatest mocks base method.

func (*MockClient) GetDeploy

func (m *MockClient) GetDeploy(ctx context.Context, hash string) (rpc.InfoGetDeployResult, error)

GetDeploy mocks base method.

func (*MockClient) GetDictionaryItem

func (m *MockClient) GetDictionaryItem(ctx context.Context, stateRootHash *string, uref, key string) (rpc.StateGetDictionaryResult, error)

func (*MockClient) GetEraInfoByBlockHash

func (m *MockClient) GetEraInfoByBlockHash(ctx context.Context, hash string) (rpc.ChainGetEraInfoResult, error)

GetEraInfoByBlockHash mocks base method.

func (*MockClient) GetEraInfoByBlockHeight

func (m *MockClient) GetEraInfoByBlockHeight(ctx context.Context, height uint64) (rpc.ChainGetEraInfoResult, error)

GetEraInfoByBlockHeight mocks base method.

func (*MockClient) GetEraInfoLatest

func (m *MockClient) GetEraInfoLatest(ctx context.Context) (rpc.ChainGetEraInfoResult, error)

GetEraInfoLatest mocks base method.

func (*MockClient) GetEraSummaryByHash

func (m *MockClient) GetEraSummaryByHash(ctx context.Context, blockHash string) (rpc.ChainGetEraSummaryResult, error)

GetEraSummaryByHash mocks base method.

func (*MockClient) GetEraSummaryByHeight

func (m *MockClient) GetEraSummaryByHeight(ctx context.Context, height uint64) (rpc.ChainGetEraSummaryResult, error)

GetEraSummaryByHeight mocks base method.

func (*MockClient) GetEraSummaryLatest

func (m *MockClient) GetEraSummaryLatest(ctx context.Context) (rpc.ChainGetEraSummaryResult, error)

GetEraSummaryLatest mocks base method.

func (*MockClient) GetPeers

func (m *MockClient) GetPeers(ctx context.Context) (rpc.InfoGetPeerResult, error)

GetPeers mocks base method.

func (*MockClient) GetStateItem

func (m *MockClient) GetStateItem(ctx context.Context, stateRootHash *string, key string, path []string) (rpc.StateGetItemResult, error)

func (*MockClient) GetStateRootHashByHash

func (m *MockClient) GetStateRootHashByHash(ctx context.Context, stateRootHash string) (rpc.ChainGetStateRootHashResult, error)

GetStateRootHashByHash mocks base method.

func (*MockClient) GetStateRootHashByHeight

func (m *MockClient) GetStateRootHashByHeight(ctx context.Context, height uint64) (rpc.ChainGetStateRootHashResult, error)

GetStateRootHashByHeight mocks base method.

func (*MockClient) GetStateRootHashLatest

func (m *MockClient) GetStateRootHashLatest(ctx context.Context) (rpc.ChainGetStateRootHashResult, error)

GetStateRootHashLatest mocks base method.

func (*MockClient) GetStatus

func (m *MockClient) GetStatus(ctx context.Context) (rpc.InfoGetStatusResult, error)

GetStatus mocks base method.

func (*MockClient) GetValidatorChangesInfo

func (m *MockClient) GetValidatorChangesInfo(ctx context.Context) (rpc.InfoGetValidatorChangesResult, error)

GetValidatorChangesInfo mocks base method.

func (*MockClient) PutDeploy

func (m *MockClient) PutDeploy(ctx context.Context, deploy types.Deploy) (rpc.PutDeployResult, error)

PutDeploy mocks base method.

func (*MockClient) QueryGlobalStateByBlockHash

func (m *MockClient) QueryGlobalStateByBlockHash(ctx context.Context, blockHash, key string, path []string) (rpc.QueryGlobalStateResult, error)

QueryGlobalStateByBlockHash mocks base method.

func (*MockClient) QueryGlobalStateByStateHash

func (m *MockClient) QueryGlobalStateByStateHash(ctx context.Context, stateRootHash *string, key string, path []string) (rpc.QueryGlobalStateResult, error)

type MockClientMockRecorder

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

MockClientMockRecorder is the mock recorder for MockClient.

func (*MockClientMockRecorder) GetAccountBalance

func (mr *MockClientMockRecorder) GetAccountBalance(ctx, stateRootHash, purseURef interface{}) *gomock.Call

GetAccountBalance indicates an expected call of GetAccountBalance.

func (*MockClientMockRecorder) GetAccountInfoByBlochHash

func (mr *MockClientMockRecorder) GetAccountInfoByBlochHash(ctx, blockHash, pub interface{}) *gomock.Call

GetAccountInfoByBlochHash indicates an expected call of GetAccountInfoByBlochHash.

func (*MockClientMockRecorder) GetAccountInfoByBlochHeight

func (mr *MockClientMockRecorder) GetAccountInfoByBlochHeight(ctx, blockHeight, pub interface{}) *gomock.Call

GetAccountInfoByBlochHeight indicates an expected call of GetAccountInfoByBlochHeight.

func (*MockClientMockRecorder) GetAuctionInfoByHash

func (mr *MockClientMockRecorder) GetAuctionInfoByHash(ctx, blockHash interface{}) *gomock.Call

GetAuctionInfoByHash indicates an expected call of GetAuctionInfoByHash.

func (*MockClientMockRecorder) GetAuctionInfoByHeight

func (mr *MockClientMockRecorder) GetAuctionInfoByHeight(ctx, height interface{}) *gomock.Call

GetAuctionInfoByHeight indicates an expected call of GetAuctionInfoByHeight.

func (*MockClientMockRecorder) GetAuctionInfoLatest

func (mr *MockClientMockRecorder) GetAuctionInfoLatest(ctx interface{}) *gomock.Call

GetAuctionInfoLatest indicates an expected call of GetAuctionInfoLatest.

func (*MockClientMockRecorder) GetBlockByHash

func (mr *MockClientMockRecorder) GetBlockByHash(ctx, hash interface{}) *gomock.Call

GetBlockByHash indicates an expected call of GetBlockByHash.

func (*MockClientMockRecorder) GetBlockByHeight

func (mr *MockClientMockRecorder) GetBlockByHeight(ctx, height interface{}) *gomock.Call

GetBlockByHeight indicates an expected call of GetBlockByHeight.

func (*MockClientMockRecorder) GetBlockLatest

func (mr *MockClientMockRecorder) GetBlockLatest(ctx interface{}) *gomock.Call

GetBlockLatest indicates an expected call of GetBlockLatest.

func (*MockClientMockRecorder) GetBlockTransfersByHash

func (mr *MockClientMockRecorder) GetBlockTransfersByHash(ctx, blockHash interface{}) *gomock.Call

GetBlockTransfersByHash indicates an expected call of GetBlockTransfersByHash.

func (*MockClientMockRecorder) GetBlockTransfersByHeight

func (mr *MockClientMockRecorder) GetBlockTransfersByHeight(ctx, height interface{}) *gomock.Call

GetBlockTransfersByHeight indicates an expected call of GetBlockTransfersByHeight.

func (*MockClientMockRecorder) GetBlockTransfersLatest

func (mr *MockClientMockRecorder) GetBlockTransfersLatest(ctx interface{}) *gomock.Call

GetBlockTransfersLatest indicates an expected call of GetBlockTransfersLatest.

func (*MockClientMockRecorder) GetDeploy

func (mr *MockClientMockRecorder) GetDeploy(ctx, hash interface{}) *gomock.Call

GetDeploy indicates an expected call of GetDeploy.

func (*MockClientMockRecorder) GetDictionaryItem

func (mr *MockClientMockRecorder) GetDictionaryItem(ctx, stateRootHash, uref, key interface{}) *gomock.Call

GetDictionaryItem indicates an expected call of GetDictionaryItem.

func (*MockClientMockRecorder) GetEraInfoByBlockHash

func (mr *MockClientMockRecorder) GetEraInfoByBlockHash(ctx, hash interface{}) *gomock.Call

GetEraInfoByBlockHash indicates an expected call of GetEraInfoByBlockHash.

func (*MockClientMockRecorder) GetEraInfoByBlockHeight

func (mr *MockClientMockRecorder) GetEraInfoByBlockHeight(ctx, height interface{}) *gomock.Call

GetEraInfoByBlockHeight indicates an expected call of GetEraInfoByBlockHeight.

func (*MockClientMockRecorder) GetEraInfoLatest

func (mr *MockClientMockRecorder) GetEraInfoLatest(ctx interface{}) *gomock.Call

GetEraInfoLatest indicates an expected call of GetEraInfoLatest.

func (*MockClientMockRecorder) GetEraSummaryByHash

func (mr *MockClientMockRecorder) GetEraSummaryByHash(ctx, blockHash interface{}) *gomock.Call

GetEraSummaryByHash indicates an expected call of GetEraSummaryByHash.

func (*MockClientMockRecorder) GetEraSummaryByHeight

func (mr *MockClientMockRecorder) GetEraSummaryByHeight(ctx, height interface{}) *gomock.Call

GetEraSummaryByHeight indicates an expected call of GetEraSummaryByHeight.

func (*MockClientMockRecorder) GetEraSummaryLatest

func (mr *MockClientMockRecorder) GetEraSummaryLatest(ctx interface{}) *gomock.Call

GetEraSummaryLatest indicates an expected call of GetEraSummaryLatest.

func (*MockClientMockRecorder) GetPeers

func (mr *MockClientMockRecorder) GetPeers(ctx interface{}) *gomock.Call

GetPeers indicates an expected call of GetPeers.

func (*MockClientMockRecorder) GetStateItem

func (mr *MockClientMockRecorder) GetStateItem(ctx, stateRootHash, key, path interface{}) *gomock.Call

GetStateItem indicates an expected call of GetStateItem.

func (*MockClientMockRecorder) GetStateRootHashByHash

func (mr *MockClientMockRecorder) GetStateRootHashByHash(ctx, stateRootHash interface{}) *gomock.Call

GetStateRootHashByHash indicates an expected call of GetStateRootHashByHash.

func (*MockClientMockRecorder) GetStateRootHashByHeight

func (mr *MockClientMockRecorder) GetStateRootHashByHeight(ctx, height interface{}) *gomock.Call

GetStateRootHashByHeight indicates an expected call of GetStateRootHashByHeight.

func (*MockClientMockRecorder) GetStateRootHashLatest

func (mr *MockClientMockRecorder) GetStateRootHashLatest(ctx interface{}) *gomock.Call

GetStateRootHashLatest indicates an expected call of GetStateRootHashLatest.

func (*MockClientMockRecorder) GetStatus

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

GetStatus indicates an expected call of GetStatus.

func (*MockClientMockRecorder) GetValidatorChangesInfo

func (mr *MockClientMockRecorder) GetValidatorChangesInfo(ctx interface{}) *gomock.Call

GetValidatorChangesInfo indicates an expected call of GetValidatorChangesInfo.

func (*MockClientMockRecorder) PutDeploy

func (mr *MockClientMockRecorder) PutDeploy(ctx, deploy interface{}) *gomock.Call

PutDeploy indicates an expected call of PutDeploy.

func (*MockClientMockRecorder) QueryGlobalStateByBlockHash

func (mr *MockClientMockRecorder) QueryGlobalStateByBlockHash(ctx, blockHash, key, path interface{}) *gomock.Call

QueryGlobalStateByBlockHash indicates an expected call of QueryGlobalStateByBlockHash.

func (*MockClientMockRecorder) QueryGlobalStateByStateHash

func (mr *MockClientMockRecorder) QueryGlobalStateByStateHash(ctx, stateRootHash, key, path interface{}) *gomock.Call

QueryGlobalStateByStateHash indicates an expected call of QueryGlobalStateByStateHash.

Jump to

Keyboard shortcuts

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