mocks

package
v1.2.0-dev.1 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ABCIClient

type ABCIClient struct {
	mock.Mock
}

ABCIClient is an autogenerated mock type for the ABCIClient type

func NewABCIClient

func NewABCIClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *ABCIClient

NewABCIClient creates a new instance of ABCIClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ABCIClient) ABCIInfo

func (_m *ABCIClient) ABCIInfo(_a0 context.Context) (*coretypes.ResultABCIInfo, error)

ABCIInfo provides a mock function with given fields: _a0

func (*ABCIClient) ABCIQuery

func (_m *ABCIClient) ABCIQuery(ctx context.Context, path string, data bytes.HexBytes) (*coretypes.ResultABCIQuery, error)

ABCIQuery provides a mock function with given fields: ctx, path, data

func (*ABCIClient) ABCIQueryWithOptions

func (_m *ABCIClient) ABCIQueryWithOptions(ctx context.Context, path string, data bytes.HexBytes, opts client.ABCIQueryOptions) (*coretypes.ResultABCIQuery, error)

ABCIQueryWithOptions provides a mock function with given fields: ctx, path, data, opts

func (*ABCIClient) BroadcastTx

func (_m *ABCIClient) BroadcastTx(_a0 context.Context, _a1 types.Tx) (*coretypes.ResultBroadcastTx, error)

BroadcastTx provides a mock function with given fields: _a0, _a1

func (*ABCIClient) BroadcastTxAsync

func (_m *ABCIClient) BroadcastTxAsync(_a0 context.Context, _a1 types.Tx) (*coretypes.ResultBroadcastTx, error)

BroadcastTxAsync provides a mock function with given fields: _a0, _a1

func (*ABCIClient) BroadcastTxCommit

func (_m *ABCIClient) BroadcastTxCommit(_a0 context.Context, _a1 types.Tx) (*coretypes.ResultBroadcastTxCommit, error)

BroadcastTxCommit provides a mock function with given fields: _a0, _a1

func (*ABCIClient) BroadcastTxSync

func (_m *ABCIClient) BroadcastTxSync(_a0 context.Context, _a1 types.Tx) (*coretypes.ResultBroadcastTx, error)

BroadcastTxSync provides a mock function with given fields: _a0, _a1

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func NewClient

func NewClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *Client

NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Client) ABCIInfo

func (_m *Client) ABCIInfo(_a0 context.Context) (*coretypes.ResultABCIInfo, error)

ABCIInfo provides a mock function with given fields: _a0

func (*Client) ABCIQuery

func (_m *Client) ABCIQuery(ctx context.Context, path string, data bytes.HexBytes) (*coretypes.ResultABCIQuery, error)

ABCIQuery provides a mock function with given fields: ctx, path, data

func (*Client) ABCIQueryWithOptions

func (_m *Client) ABCIQueryWithOptions(ctx context.Context, path string, data bytes.HexBytes, opts client.ABCIQueryOptions) (*coretypes.ResultABCIQuery, error)

ABCIQueryWithOptions provides a mock function with given fields: ctx, path, data, opts

func (*Client) Block

func (_m *Client) Block(ctx context.Context, height *int64) (*coretypes.ResultBlock, error)

Block provides a mock function with given fields: ctx, height

func (*Client) BlockByHash

func (_m *Client) BlockByHash(ctx context.Context, hash bytes.HexBytes) (*coretypes.ResultBlock, error)

BlockByHash provides a mock function with given fields: ctx, hash

func (*Client) BlockResults

func (_m *Client) BlockResults(ctx context.Context, height *int64) (*coretypes.ResultBlockResults, error)

BlockResults provides a mock function with given fields: ctx, height

func (*Client) BlockSearch

func (_m *Client) BlockSearch(ctx context.Context, query string, page *int, perPage *int, orderBy string) (*coretypes.ResultBlockSearch, error)

BlockSearch provides a mock function with given fields: ctx, query, page, perPage, orderBy

func (*Client) BlockchainInfo

func (_m *Client) BlockchainInfo(ctx context.Context, minHeight int64, maxHeight int64) (*coretypes.ResultBlockchainInfo, error)

BlockchainInfo provides a mock function with given fields: ctx, minHeight, maxHeight

func (*Client) BroadcastEvidence

func (_m *Client) BroadcastEvidence(_a0 context.Context, _a1 types.Evidence) (*coretypes.ResultBroadcastEvidence, error)

BroadcastEvidence provides a mock function with given fields: _a0, _a1

func (*Client) BroadcastTx

func (_m *Client) BroadcastTx(_a0 context.Context, _a1 types.Tx) (*coretypes.ResultBroadcastTx, error)

BroadcastTx provides a mock function with given fields: _a0, _a1

func (*Client) BroadcastTxAsync

func (_m *Client) BroadcastTxAsync(_a0 context.Context, _a1 types.Tx) (*coretypes.ResultBroadcastTx, error)

BroadcastTxAsync provides a mock function with given fields: _a0, _a1

func (*Client) BroadcastTxCommit

func (_m *Client) BroadcastTxCommit(_a0 context.Context, _a1 types.Tx) (*coretypes.ResultBroadcastTxCommit, error)

BroadcastTxCommit provides a mock function with given fields: _a0, _a1

func (*Client) BroadcastTxSync

func (_m *Client) BroadcastTxSync(_a0 context.Context, _a1 types.Tx) (*coretypes.ResultBroadcastTx, error)

BroadcastTxSync provides a mock function with given fields: _a0, _a1

func (*Client) CheckTx

func (_m *Client) CheckTx(_a0 context.Context, _a1 types.Tx) (*coretypes.ResultCheckTx, error)

CheckTx provides a mock function with given fields: _a0, _a1

func (*Client) Commit

func (_m *Client) Commit(ctx context.Context, height *int64) (*coretypes.ResultCommit, error)

Commit provides a mock function with given fields: ctx, height

func (*Client) ConsensusParams

func (_m *Client) ConsensusParams(ctx context.Context, height *int64) (*coretypes.ResultConsensusParams, error)

ConsensusParams provides a mock function with given fields: ctx, height

func (*Client) ConsensusState

func (_m *Client) ConsensusState(_a0 context.Context) (*coretypes.ResultConsensusState, error)

ConsensusState provides a mock function with given fields: _a0

func (*Client) DumpConsensusState

func (_m *Client) DumpConsensusState(_a0 context.Context) (*coretypes.ResultDumpConsensusState, error)

DumpConsensusState provides a mock function with given fields: _a0

func (*Client) Events

Events provides a mock function with given fields: ctx, req

func (*Client) Genesis

func (_m *Client) Genesis(_a0 context.Context) (*coretypes.ResultGenesis, error)

Genesis provides a mock function with given fields: _a0

func (*Client) GenesisChunked

func (_m *Client) GenesisChunked(_a0 context.Context, _a1 uint) (*coretypes.ResultGenesisChunk, error)

GenesisChunked provides a mock function with given fields: _a0, _a1

func (*Client) Header

func (_m *Client) Header(ctx context.Context, height *int64) (*coretypes.ResultHeader, error)

Header provides a mock function with given fields: ctx, height

func (*Client) HeaderByHash

func (_m *Client) HeaderByHash(ctx context.Context, hash bytes.HexBytes) (*coretypes.ResultHeader, error)

HeaderByHash provides a mock function with given fields: ctx, hash

func (*Client) Health

func (_m *Client) Health(_a0 context.Context) (*coretypes.ResultHealth, error)

Health provides a mock function with given fields: _a0

func (*Client) NetInfo

func (_m *Client) NetInfo(_a0 context.Context) (*coretypes.ResultNetInfo, error)

NetInfo provides a mock function with given fields: _a0

func (*Client) NumUnconfirmedTxs

func (_m *Client) NumUnconfirmedTxs(_a0 context.Context) (*coretypes.ResultUnconfirmedTxs, error)

NumUnconfirmedTxs provides a mock function with given fields: _a0

func (*Client) RemoveTx

func (_m *Client) RemoveTx(_a0 context.Context, _a1 types.TxKey) error

RemoveTx provides a mock function with given fields: _a0, _a1

func (*Client) Start

func (_m *Client) Start(_a0 context.Context) error

Start provides a mock function with given fields: _a0

func (*Client) Status

func (_m *Client) Status(_a0 context.Context) (*coretypes.ResultStatus, error)

Status provides a mock function with given fields: _a0

func (*Client) Subscribe

func (_m *Client) Subscribe(ctx context.Context, subscriber string, query string, outCapacity ...int) (<-chan coretypes.ResultEvent, error)

Subscribe provides a mock function with given fields: ctx, subscriber, query, outCapacity

func (*Client) Tx

func (_m *Client) Tx(ctx context.Context, hash bytes.HexBytes, prove bool) (*coretypes.ResultTx, error)

Tx provides a mock function with given fields: ctx, hash, prove

func (*Client) TxSearch

func (_m *Client) TxSearch(ctx context.Context, query string, prove bool, page *int, perPage *int, orderBy string) (*coretypes.ResultTxSearch, error)

TxSearch provides a mock function with given fields: ctx, query, prove, page, perPage, orderBy

func (*Client) UnconfirmedTxs

func (_m *Client) UnconfirmedTxs(ctx context.Context, page *int, perPage *int) (*coretypes.ResultUnconfirmedTxs, error)

UnconfirmedTxs provides a mock function with given fields: ctx, page, perPage

func (*Client) Unsubscribe

func (_m *Client) Unsubscribe(ctx context.Context, subscriber string, query string) error

Unsubscribe provides a mock function with given fields: ctx, subscriber, query

func (*Client) UnsubscribeAll

func (_m *Client) UnsubscribeAll(ctx context.Context, subscriber string) error

UnsubscribeAll provides a mock function with given fields: ctx, subscriber

func (*Client) Validators

func (_m *Client) Validators(ctx context.Context, height *int64, page *int, perPage *int, requestQuorumInfo *bool) (*coretypes.ResultValidators, error)

Validators provides a mock function with given fields: ctx, height, page, perPage, requestQuorumInfo

type EventsClient

type EventsClient struct {
	mock.Mock
}

EventsClient is an autogenerated mock type for the EventsClient type

func NewEventsClient

func NewEventsClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *EventsClient

NewEventsClient creates a new instance of EventsClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*EventsClient) Events

Events provides a mock function with given fields: ctx, req

type EvidenceClient

type EvidenceClient struct {
	mock.Mock
}

EvidenceClient is an autogenerated mock type for the EvidenceClient type

func NewEvidenceClient

func NewEvidenceClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *EvidenceClient

NewEvidenceClient creates a new instance of EvidenceClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*EvidenceClient) BroadcastEvidence

func (_m *EvidenceClient) BroadcastEvidence(_a0 context.Context, _a1 types.Evidence) (*coretypes.ResultBroadcastEvidence, error)

BroadcastEvidence provides a mock function with given fields: _a0, _a1

type HistoryClient

type HistoryClient struct {
	mock.Mock
}

HistoryClient is an autogenerated mock type for the HistoryClient type

func NewHistoryClient

func NewHistoryClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *HistoryClient

NewHistoryClient creates a new instance of HistoryClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*HistoryClient) BlockchainInfo

func (_m *HistoryClient) BlockchainInfo(ctx context.Context, minHeight int64, maxHeight int64) (*coretypes.ResultBlockchainInfo, error)

BlockchainInfo provides a mock function with given fields: ctx, minHeight, maxHeight

func (*HistoryClient) Genesis

Genesis provides a mock function with given fields: _a0

func (*HistoryClient) GenesisChunked

func (_m *HistoryClient) GenesisChunked(_a0 context.Context, _a1 uint) (*coretypes.ResultGenesisChunk, error)

GenesisChunked provides a mock function with given fields: _a0, _a1

type MempoolClient

type MempoolClient struct {
	mock.Mock
}

MempoolClient is an autogenerated mock type for the MempoolClient type

func NewMempoolClient

func NewMempoolClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *MempoolClient

NewMempoolClient creates a new instance of MempoolClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MempoolClient) CheckTx

func (_m *MempoolClient) CheckTx(_a0 context.Context, _a1 types.Tx) (*coretypes.ResultCheckTx, error)

CheckTx provides a mock function with given fields: _a0, _a1

func (*MempoolClient) NumUnconfirmedTxs

func (_m *MempoolClient) NumUnconfirmedTxs(_a0 context.Context) (*coretypes.ResultUnconfirmedTxs, error)

NumUnconfirmedTxs provides a mock function with given fields: _a0

func (*MempoolClient) RemoveTx

func (_m *MempoolClient) RemoveTx(_a0 context.Context, _a1 types.TxKey) error

RemoveTx provides a mock function with given fields: _a0, _a1

func (*MempoolClient) UnconfirmedTxs

func (_m *MempoolClient) UnconfirmedTxs(ctx context.Context, page *int, perPage *int) (*coretypes.ResultUnconfirmedTxs, error)

UnconfirmedTxs provides a mock function with given fields: ctx, page, perPage

type NetworkClient

type NetworkClient struct {
	mock.Mock
}

NetworkClient is an autogenerated mock type for the NetworkClient type

func NewNetworkClient

func NewNetworkClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *NetworkClient

NewNetworkClient creates a new instance of NetworkClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*NetworkClient) ConsensusParams

func (_m *NetworkClient) ConsensusParams(ctx context.Context, height *int64) (*coretypes.ResultConsensusParams, error)

ConsensusParams provides a mock function with given fields: ctx, height

func (*NetworkClient) ConsensusState

func (_m *NetworkClient) ConsensusState(_a0 context.Context) (*coretypes.ResultConsensusState, error)

ConsensusState provides a mock function with given fields: _a0

func (*NetworkClient) DumpConsensusState

func (_m *NetworkClient) DumpConsensusState(_a0 context.Context) (*coretypes.ResultDumpConsensusState, error)

DumpConsensusState provides a mock function with given fields: _a0

func (*NetworkClient) Health

Health provides a mock function with given fields: _a0

func (*NetworkClient) NetInfo

NetInfo provides a mock function with given fields: _a0

type RemoteClient

type RemoteClient struct {
	mock.Mock
}

RemoteClient is an autogenerated mock type for the RemoteClient type

func NewRemoteClient

func NewRemoteClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *RemoteClient

NewRemoteClient creates a new instance of RemoteClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*RemoteClient) ABCIInfo

func (_m *RemoteClient) ABCIInfo(_a0 context.Context) (*coretypes.ResultABCIInfo, error)

ABCIInfo provides a mock function with given fields: _a0

func (*RemoteClient) ABCIQuery

func (_m *RemoteClient) ABCIQuery(ctx context.Context, path string, data bytes.HexBytes) (*coretypes.ResultABCIQuery, error)

ABCIQuery provides a mock function with given fields: ctx, path, data

func (*RemoteClient) ABCIQueryWithOptions

func (_m *RemoteClient) ABCIQueryWithOptions(ctx context.Context, path string, data bytes.HexBytes, opts client.ABCIQueryOptions) (*coretypes.ResultABCIQuery, error)

ABCIQueryWithOptions provides a mock function with given fields: ctx, path, data, opts

func (*RemoteClient) Block

func (_m *RemoteClient) Block(ctx context.Context, height *int64) (*coretypes.ResultBlock, error)

Block provides a mock function with given fields: ctx, height

func (*RemoteClient) BlockByHash

func (_m *RemoteClient) BlockByHash(ctx context.Context, hash bytes.HexBytes) (*coretypes.ResultBlock, error)

BlockByHash provides a mock function with given fields: ctx, hash

func (*RemoteClient) BlockResults

func (_m *RemoteClient) BlockResults(ctx context.Context, height *int64) (*coretypes.ResultBlockResults, error)

BlockResults provides a mock function with given fields: ctx, height

func (*RemoteClient) BlockSearch

func (_m *RemoteClient) BlockSearch(ctx context.Context, query string, page *int, perPage *int, orderBy string) (*coretypes.ResultBlockSearch, error)

BlockSearch provides a mock function with given fields: ctx, query, page, perPage, orderBy

func (*RemoteClient) BlockchainInfo

func (_m *RemoteClient) BlockchainInfo(ctx context.Context, minHeight int64, maxHeight int64) (*coretypes.ResultBlockchainInfo, error)

BlockchainInfo provides a mock function with given fields: ctx, minHeight, maxHeight

func (*RemoteClient) BroadcastEvidence

func (_m *RemoteClient) BroadcastEvidence(_a0 context.Context, _a1 types.Evidence) (*coretypes.ResultBroadcastEvidence, error)

BroadcastEvidence provides a mock function with given fields: _a0, _a1

func (*RemoteClient) BroadcastTx

func (_m *RemoteClient) BroadcastTx(_a0 context.Context, _a1 types.Tx) (*coretypes.ResultBroadcastTx, error)

BroadcastTx provides a mock function with given fields: _a0, _a1

func (*RemoteClient) BroadcastTxAsync

func (_m *RemoteClient) BroadcastTxAsync(_a0 context.Context, _a1 types.Tx) (*coretypes.ResultBroadcastTx, error)

BroadcastTxAsync provides a mock function with given fields: _a0, _a1

func (*RemoteClient) BroadcastTxCommit

func (_m *RemoteClient) BroadcastTxCommit(_a0 context.Context, _a1 types.Tx) (*coretypes.ResultBroadcastTxCommit, error)

BroadcastTxCommit provides a mock function with given fields: _a0, _a1

func (*RemoteClient) BroadcastTxSync

func (_m *RemoteClient) BroadcastTxSync(_a0 context.Context, _a1 types.Tx) (*coretypes.ResultBroadcastTx, error)

BroadcastTxSync provides a mock function with given fields: _a0, _a1

func (*RemoteClient) CheckTx

func (_m *RemoteClient) CheckTx(_a0 context.Context, _a1 types.Tx) (*coretypes.ResultCheckTx, error)

CheckTx provides a mock function with given fields: _a0, _a1

func (*RemoteClient) Commit

func (_m *RemoteClient) Commit(ctx context.Context, height *int64) (*coretypes.ResultCommit, error)

Commit provides a mock function with given fields: ctx, height

func (*RemoteClient) ConsensusParams

func (_m *RemoteClient) ConsensusParams(ctx context.Context, height *int64) (*coretypes.ResultConsensusParams, error)

ConsensusParams provides a mock function with given fields: ctx, height

func (*RemoteClient) ConsensusState

func (_m *RemoteClient) ConsensusState(_a0 context.Context) (*coretypes.ResultConsensusState, error)

ConsensusState provides a mock function with given fields: _a0

func (*RemoteClient) DumpConsensusState

func (_m *RemoteClient) DumpConsensusState(_a0 context.Context) (*coretypes.ResultDumpConsensusState, error)

DumpConsensusState provides a mock function with given fields: _a0

func (*RemoteClient) Events

Events provides a mock function with given fields: ctx, req

func (*RemoteClient) Genesis

Genesis provides a mock function with given fields: _a0

func (*RemoteClient) GenesisChunked

func (_m *RemoteClient) GenesisChunked(_a0 context.Context, _a1 uint) (*coretypes.ResultGenesisChunk, error)

GenesisChunked provides a mock function with given fields: _a0, _a1

func (*RemoteClient) Header

func (_m *RemoteClient) Header(ctx context.Context, height *int64) (*coretypes.ResultHeader, error)

Header provides a mock function with given fields: ctx, height

func (*RemoteClient) HeaderByHash

func (_m *RemoteClient) HeaderByHash(ctx context.Context, hash bytes.HexBytes) (*coretypes.ResultHeader, error)

HeaderByHash provides a mock function with given fields: ctx, hash

func (*RemoteClient) Health

Health provides a mock function with given fields: _a0

func (*RemoteClient) NetInfo

NetInfo provides a mock function with given fields: _a0

func (*RemoteClient) NumUnconfirmedTxs

func (_m *RemoteClient) NumUnconfirmedTxs(_a0 context.Context) (*coretypes.ResultUnconfirmedTxs, error)

NumUnconfirmedTxs provides a mock function with given fields: _a0

func (*RemoteClient) Remote

func (_m *RemoteClient) Remote() string

Remote provides a mock function with given fields:

func (*RemoteClient) RemoveTx

func (_m *RemoteClient) RemoveTx(_a0 context.Context, _a1 types.TxKey) error

RemoveTx provides a mock function with given fields: _a0, _a1

func (*RemoteClient) Start

func (_m *RemoteClient) Start(_a0 context.Context) error

Start provides a mock function with given fields: _a0

func (*RemoteClient) Status

Status provides a mock function with given fields: _a0

func (*RemoteClient) Subscribe

func (_m *RemoteClient) Subscribe(ctx context.Context, subscriber string, query string, outCapacity ...int) (<-chan coretypes.ResultEvent, error)

Subscribe provides a mock function with given fields: ctx, subscriber, query, outCapacity

func (*RemoteClient) Tx

func (_m *RemoteClient) Tx(ctx context.Context, hash bytes.HexBytes, prove bool) (*coretypes.ResultTx, error)

Tx provides a mock function with given fields: ctx, hash, prove

func (*RemoteClient) TxSearch

func (_m *RemoteClient) TxSearch(ctx context.Context, query string, prove bool, page *int, perPage *int, orderBy string) (*coretypes.ResultTxSearch, error)

TxSearch provides a mock function with given fields: ctx, query, prove, page, perPage, orderBy

func (*RemoteClient) UnconfirmedTxs

func (_m *RemoteClient) UnconfirmedTxs(ctx context.Context, page *int, perPage *int) (*coretypes.ResultUnconfirmedTxs, error)

UnconfirmedTxs provides a mock function with given fields: ctx, page, perPage

func (*RemoteClient) Unsubscribe

func (_m *RemoteClient) Unsubscribe(ctx context.Context, subscriber string, query string) error

Unsubscribe provides a mock function with given fields: ctx, subscriber, query

func (*RemoteClient) UnsubscribeAll

func (_m *RemoteClient) UnsubscribeAll(ctx context.Context, subscriber string) error

UnsubscribeAll provides a mock function with given fields: ctx, subscriber

func (*RemoteClient) Validators

func (_m *RemoteClient) Validators(ctx context.Context, height *int64, page *int, perPage *int, requestQuorumInfo *bool) (*coretypes.ResultValidators, error)

Validators provides a mock function with given fields: ctx, height, page, perPage, requestQuorumInfo

type SignClient

type SignClient struct {
	mock.Mock
}

SignClient is an autogenerated mock type for the SignClient type

func NewSignClient

func NewSignClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *SignClient

NewSignClient creates a new instance of SignClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*SignClient) Block

func (_m *SignClient) Block(ctx context.Context, height *int64) (*coretypes.ResultBlock, error)

Block provides a mock function with given fields: ctx, height

func (*SignClient) BlockByHash

func (_m *SignClient) BlockByHash(ctx context.Context, hash bytes.HexBytes) (*coretypes.ResultBlock, error)

BlockByHash provides a mock function with given fields: ctx, hash

func (*SignClient) BlockResults

func (_m *SignClient) BlockResults(ctx context.Context, height *int64) (*coretypes.ResultBlockResults, error)

BlockResults provides a mock function with given fields: ctx, height

func (*SignClient) BlockSearch

func (_m *SignClient) BlockSearch(ctx context.Context, query string, page *int, perPage *int, orderBy string) (*coretypes.ResultBlockSearch, error)

BlockSearch provides a mock function with given fields: ctx, query, page, perPage, orderBy

func (*SignClient) Commit

func (_m *SignClient) Commit(ctx context.Context, height *int64) (*coretypes.ResultCommit, error)

Commit provides a mock function with given fields: ctx, height

func (*SignClient) Header

func (_m *SignClient) Header(ctx context.Context, height *int64) (*coretypes.ResultHeader, error)

Header provides a mock function with given fields: ctx, height

func (*SignClient) HeaderByHash

func (_m *SignClient) HeaderByHash(ctx context.Context, hash bytes.HexBytes) (*coretypes.ResultHeader, error)

HeaderByHash provides a mock function with given fields: ctx, hash

func (*SignClient) Tx

func (_m *SignClient) Tx(ctx context.Context, hash bytes.HexBytes, prove bool) (*coretypes.ResultTx, error)

Tx provides a mock function with given fields: ctx, hash, prove

func (*SignClient) TxSearch

func (_m *SignClient) TxSearch(ctx context.Context, query string, prove bool, page *int, perPage *int, orderBy string) (*coretypes.ResultTxSearch, error)

TxSearch provides a mock function with given fields: ctx, query, prove, page, perPage, orderBy

func (*SignClient) Validators

func (_m *SignClient) Validators(ctx context.Context, height *int64, page *int, perPage *int, requestQuorumInfo *bool) (*coretypes.ResultValidators, error)

Validators provides a mock function with given fields: ctx, height, page, perPage, requestQuorumInfo

type StatusClient

type StatusClient struct {
	mock.Mock
}

StatusClient is an autogenerated mock type for the StatusClient type

func NewStatusClient

func NewStatusClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *StatusClient

NewStatusClient creates a new instance of StatusClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*StatusClient) Status

Status provides a mock function with given fields: _a0

type SubscriptionClient

type SubscriptionClient struct {
	mock.Mock
}

SubscriptionClient is an autogenerated mock type for the SubscriptionClient type

func NewSubscriptionClient

func NewSubscriptionClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *SubscriptionClient

NewSubscriptionClient creates a new instance of SubscriptionClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*SubscriptionClient) Subscribe

func (_m *SubscriptionClient) Subscribe(ctx context.Context, subscriber string, query string, outCapacity ...int) (<-chan coretypes.ResultEvent, error)

Subscribe provides a mock function with given fields: ctx, subscriber, query, outCapacity

func (*SubscriptionClient) Unsubscribe

func (_m *SubscriptionClient) Unsubscribe(ctx context.Context, subscriber string, query string) error

Unsubscribe provides a mock function with given fields: ctx, subscriber, query

func (*SubscriptionClient) UnsubscribeAll

func (_m *SubscriptionClient) UnsubscribeAll(ctx context.Context, subscriber string) error

UnsubscribeAll provides a mock function with given fields: ctx, subscriber

Jump to

Keyboard shortcuts

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