mocks

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountBalanceService

type AccountBalanceService struct {
	mock.Mock
}

AccountBalanceService is an autogenerated mock type for the AccountBalanceService type

func NewAccountBalanceService added in v1.2.0

func NewAccountBalanceService(t NewAccountBalanceServiceT) *AccountBalanceService

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

func (*AccountBalanceService) GetCoinsAndSequenceForSubAccount added in v1.2.0

func (_m *AccountBalanceService) GetCoinsAndSequenceForSubAccount(ctx context.Context, subAccount *types.SubAccountIdentifier) (cosmos_sdktypes.Coins, uint64, error)

GetCoinsAndSequenceForSubAccount provides a mock function with given fields: ctx, subAccount

type BalanceServiceFactory

type BalanceServiceFactory struct {
	mock.Mock
}

BalanceServiceFactory is an autogenerated mock type for the BalanceServiceFactory type

func NewBalanceServiceFactory added in v1.2.0

func NewBalanceServiceFactory(t NewBalanceServiceFactoryT) *BalanceServiceFactory

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

func (*BalanceServiceFactory) Execute

Execute provides a mock function with given fields: ctx, addr, blockHeader

type NewAccountBalanceServiceT added in v1.2.0

type NewAccountBalanceServiceT interface {
	mock.TestingT
	Cleanup(func())
}

type NewBalanceServiceFactoryT added in v1.2.0

type NewBalanceServiceFactoryT interface {
	mock.TestingT
	Cleanup(func())
}

type NewRPCClientT added in v1.2.0

type NewRPCClientT interface {
	mock.TestingT
	Cleanup(func())
}

type RPCClient

type RPCClient struct {
	mock.Mock
}

RPCClient is an autogenerated mock type for the RPCClient type

func NewRPCClient added in v1.2.0

func NewRPCClient(t NewRPCClientT) *RPCClient

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

func (*RPCClient) ABCIInfo

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

ABCIInfo provides a mock function with given fields: _a0

func (*RPCClient) ABCIQuery

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

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

func (*RPCClient) ABCIQueryWithOptions

func (_m *RPCClient) 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 (*RPCClient) Account

func (_m *RPCClient) Account(ctx context.Context, addr types.AccAddress, height int64) (authtypes.AccountI, error)

Account provides a mock function with given fields: ctx, addr, height

func (*RPCClient) Balance

func (_m *RPCClient) Balance(ctx context.Context, addr types.AccAddress, height int64) (types.Coins, error)

Balance provides a mock function with given fields: ctx, addr, height

func (*RPCClient) Block

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

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

func (*RPCClient) BlockByHash

func (_m *RPCClient) BlockByHash(ctx context.Context, hash []byte) (*coretypes.ResultBlock, error)

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

func (*RPCClient) BlockResults

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

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

func (*RPCClient) BlockSearch

func (_m *RPCClient) 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 (*RPCClient) BlockchainInfo

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

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

func (*RPCClient) BroadcastEvidence

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

func (*RPCClient) BroadcastTxAsync

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

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

func (*RPCClient) BroadcastTxCommit

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

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

func (*RPCClient) BroadcastTxSync

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

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

func (*RPCClient) CheckTx

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

func (*RPCClient) Commit

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

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

func (*RPCClient) ConsensusParams

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

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

func (*RPCClient) ConsensusState

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

ConsensusState provides a mock function with given fields: _a0

func (*RPCClient) Delegations

func (_m *RPCClient) Delegations(ctx context.Context, addr types.AccAddress, height int64) (stakingtypes.DelegationResponses, error)

Delegations provides a mock function with given fields: ctx, addr, height

func (*RPCClient) DumpConsensusState

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

DumpConsensusState provides a mock function with given fields: _a0

func (*RPCClient) Genesis

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

Genesis provides a mock function with given fields: _a0

func (*RPCClient) GenesisChunked

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

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

func (*RPCClient) Health

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

Health provides a mock function with given fields: _a0

func (*RPCClient) IsRunning

func (_m *RPCClient) IsRunning() bool

IsRunning provides a mock function with given fields:

func (*RPCClient) NetInfo

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

NetInfo provides a mock function with given fields: _a0

func (*RPCClient) NumUnconfirmedTxs

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

NumUnconfirmedTxs provides a mock function with given fields: _a0

func (*RPCClient) OnReset

func (_m *RPCClient) OnReset() error

OnReset provides a mock function with given fields:

func (*RPCClient) OnStart

func (_m *RPCClient) OnStart() error

OnStart provides a mock function with given fields:

func (*RPCClient) OnStop

func (_m *RPCClient) OnStop()

OnStop provides a mock function with given fields:

func (*RPCClient) Quit

func (_m *RPCClient) Quit() <-chan struct{}

Quit provides a mock function with given fields:

func (*RPCClient) Reset

func (_m *RPCClient) Reset() error

Reset provides a mock function with given fields:

func (*RPCClient) SetLogger

func (_m *RPCClient) SetLogger(_a0 log.Logger)

SetLogger provides a mock function with given fields: _a0

func (*RPCClient) SimulateTx

func (_m *RPCClient) SimulateTx(ctx context.Context, tx signing.Tx) (*types.SimulationResponse, error)

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

func (*RPCClient) Start

func (_m *RPCClient) Start() error

Start provides a mock function with given fields:

func (*RPCClient) Status

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

Status provides a mock function with given fields: _a0

func (*RPCClient) Stop

func (_m *RPCClient) Stop() error

Stop provides a mock function with given fields:

func (*RPCClient) String

func (_m *RPCClient) String() string

String provides a mock function with given fields:

func (*RPCClient) Subscribe

func (_m *RPCClient) 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 (*RPCClient) Tx

func (_m *RPCClient) Tx(ctx context.Context, hash []byte, prove bool) (*coretypes.ResultTx, error)

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

func (*RPCClient) TxSearch

func (_m *RPCClient) 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 (*RPCClient) UnbondingDelegations

func (_m *RPCClient) UnbondingDelegations(ctx context.Context, addr types.AccAddress, height int64) (stakingtypes.UnbondingDelegations, error)

UnbondingDelegations provides a mock function with given fields: ctx, addr, height

func (*RPCClient) UnconfirmedTxs

func (_m *RPCClient) UnconfirmedTxs(ctx context.Context, limit *int) (*coretypes.ResultUnconfirmedTxs, error)

UnconfirmedTxs provides a mock function with given fields: ctx, limit

func (*RPCClient) Unsubscribe

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

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

func (*RPCClient) UnsubscribeAll

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

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

func (*RPCClient) Validators

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

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

Jump to

Keyboard shortcuts

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