Documentation ¶
Index ¶
- type AccountBalanceService
- type BalanceServiceFactory
- type NewAccountBalanceServiceT
- type NewBalanceServiceFactoryT
- type NewRPCClientT
- type RPCClient
- func (_m *RPCClient) ABCIInfo(_a0 context.Context) (*coretypes.ResultABCIInfo, error)
- func (_m *RPCClient) ABCIQuery(ctx context.Context, path string, data bytes.HexBytes) (*coretypes.ResultABCIQuery, error)
- func (_m *RPCClient) ABCIQueryWithOptions(ctx context.Context, path string, data bytes.HexBytes, ...) (*coretypes.ResultABCIQuery, error)
- func (_m *RPCClient) Account(ctx context.Context, addr types.AccAddress, height int64) (authtypes.AccountI, error)
- func (_m *RPCClient) Balance(ctx context.Context, addr types.AccAddress, height int64) (types.Coins, error)
- func (_m *RPCClient) Block(ctx context.Context, height *int64) (*coretypes.ResultBlock, error)
- func (_m *RPCClient) BlockByHash(ctx context.Context, hash []byte) (*coretypes.ResultBlock, error)
- func (_m *RPCClient) BlockResults(ctx context.Context, height *int64) (*coretypes.ResultBlockResults, error)
- func (_m *RPCClient) BlockSearch(ctx context.Context, query string, page *int, perPage *int, orderBy string) (*coretypes.ResultBlockSearch, error)
- func (_m *RPCClient) BlockchainInfo(ctx context.Context, minHeight int64, maxHeight int64) (*coretypes.ResultBlockchainInfo, error)
- func (_m *RPCClient) BroadcastEvidence(_a0 context.Context, _a1 tenderminttypes.Evidence) (*coretypes.ResultBroadcastEvidence, error)
- func (_m *RPCClient) BroadcastTxAsync(_a0 context.Context, _a1 tenderminttypes.Tx) (*coretypes.ResultBroadcastTx, error)
- func (_m *RPCClient) BroadcastTxCommit(_a0 context.Context, _a1 tenderminttypes.Tx) (*coretypes.ResultBroadcastTxCommit, error)
- func (_m *RPCClient) BroadcastTxSync(_a0 context.Context, _a1 tenderminttypes.Tx) (*coretypes.ResultBroadcastTx, error)
- func (_m *RPCClient) CheckTx(_a0 context.Context, _a1 tenderminttypes.Tx) (*coretypes.ResultCheckTx, error)
- func (_m *RPCClient) Commit(ctx context.Context, height *int64) (*coretypes.ResultCommit, error)
- func (_m *RPCClient) ConsensusParams(ctx context.Context, height *int64) (*coretypes.ResultConsensusParams, error)
- func (_m *RPCClient) ConsensusState(_a0 context.Context) (*coretypes.ResultConsensusState, error)
- func (_m *RPCClient) Delegations(ctx context.Context, addr types.AccAddress, height int64) (stakingtypes.DelegationResponses, error)
- func (_m *RPCClient) DumpConsensusState(_a0 context.Context) (*coretypes.ResultDumpConsensusState, error)
- func (_m *RPCClient) Genesis(_a0 context.Context) (*coretypes.ResultGenesis, error)
- func (_m *RPCClient) GenesisChunked(_a0 context.Context, _a1 uint) (*coretypes.ResultGenesisChunk, error)
- func (_m *RPCClient) Health(_a0 context.Context) (*coretypes.ResultHealth, error)
- func (_m *RPCClient) IsRunning() bool
- func (_m *RPCClient) NetInfo(_a0 context.Context) (*coretypes.ResultNetInfo, error)
- func (_m *RPCClient) NumUnconfirmedTxs(_a0 context.Context) (*coretypes.ResultUnconfirmedTxs, error)
- func (_m *RPCClient) OnReset() error
- func (_m *RPCClient) OnStart() error
- func (_m *RPCClient) OnStop()
- func (_m *RPCClient) Quit() <-chan struct{}
- func (_m *RPCClient) Reset() error
- func (_m *RPCClient) SetLogger(_a0 log.Logger)
- func (_m *RPCClient) SimulateTx(ctx context.Context, tx signing.Tx) (*types.SimulationResponse, error)
- func (_m *RPCClient) Start() error
- func (_m *RPCClient) Status(_a0 context.Context) (*coretypes.ResultStatus, error)
- func (_m *RPCClient) Stop() error
- func (_m *RPCClient) String() string
- func (_m *RPCClient) Subscribe(ctx context.Context, subscriber string, query string, outCapacity ...int) (<-chan coretypes.ResultEvent, error)
- func (_m *RPCClient) Tx(ctx context.Context, hash []byte, prove bool) (*coretypes.ResultTx, error)
- func (_m *RPCClient) TxSearch(ctx context.Context, query string, prove bool, page *int, perPage *int, ...) (*coretypes.ResultTxSearch, error)
- func (_m *RPCClient) UnbondingDelegations(ctx context.Context, addr types.AccAddress, height int64) (stakingtypes.UnbondingDelegations, error)
- func (_m *RPCClient) UnconfirmedTxs(ctx context.Context, limit *int) (*coretypes.ResultUnconfirmedTxs, error)
- func (_m *RPCClient) Unsubscribe(ctx context.Context, subscriber string, query string) error
- func (_m *RPCClient) UnsubscribeAll(ctx context.Context, subscriber string) error
- func (_m *RPCClient) Validators(ctx context.Context, height *int64, page *int, perPage *int) (*coretypes.ResultValidators, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountBalanceService ¶
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 ¶
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 ¶
func (_m *BalanceServiceFactory) Execute(ctx context.Context, addr types.AccAddress, blockHeader *tenderminttypes.Header) (kava.AccountBalanceService, error)
Execute provides a mock function with given fields: ctx, addr, blockHeader
type NewAccountBalanceServiceT ¶ added in v1.2.0
type NewBalanceServiceFactoryT ¶ added in v1.2.0
type NewRPCClientT ¶ added in v1.2.0
type RPCClient ¶
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) 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) BlockByHash ¶
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 ¶
func (_m *RPCClient) BroadcastEvidence(_a0 context.Context, _a1 tenderminttypes.Evidence) (*coretypes.ResultBroadcastEvidence, error)
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 ¶
func (_m *RPCClient) CheckTx(_a0 context.Context, _a1 tenderminttypes.Tx) (*coretypes.ResultCheckTx, error)
CheckTx provides a mock function with given fields: _a0, _a1
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 ¶
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) 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) NumUnconfirmedTxs ¶
func (_m *RPCClient) NumUnconfirmedTxs(_a0 context.Context) (*coretypes.ResultUnconfirmedTxs, error)
NumUnconfirmedTxs provides a mock function with given fields: _a0
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) 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) 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) 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 ¶
Unsubscribe provides a mock function with given fields: ctx, subscriber, query
func (*RPCClient) UnsubscribeAll ¶
UnsubscribeAll provides a mock function with given fields: ctx, subscriber