mocks

package
v2.0.0-beta0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chain

type Chain struct {
	mock.Mock
}

Chain is an autogenerated mock type for the Chain type

func NewChain

func NewChain(t mockConstructorTestingTNewChain) *Chain

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

func (*Chain) Close

func (_m *Chain) Close() error

Close provides a mock function with given fields:

func (*Chain) Config

func (_m *Chain) Config() config.Config

Config provides a mock function with given fields:

func (*Chain) HealthReport

func (_m *Chain) HealthReport() map[string]error

HealthReport provides a mock function with given fields:

func (*Chain) ID

func (_m *Chain) ID() string

ID provides a mock function with given fields:

func (*Chain) Name

func (_m *Chain) Name() string

Name provides a mock function with given fields:

func (*Chain) Reader

func (_m *Chain) Reader(nodeName string) (client.Reader, error)

Reader provides a mock function with given fields: nodeName

func (*Chain) Ready

func (_m *Chain) Ready() error

Ready provides a mock function with given fields:

func (*Chain) Start

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

Start provides a mock function with given fields: _a0

func (*Chain) TxManager

func (_m *Chain) TxManager() adapters.TxManager

TxManager provides a mock function with given fields:

type ChainSet

type ChainSet struct {
	mock.Mock
}

ChainSet is an autogenerated mock type for the ChainSet type

func NewChainSet

func NewChainSet(t mockConstructorTestingTNewChainSet) *ChainSet

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

func (*ChainSet) Chain

func (_m *ChainSet) Chain(ctx context.Context, id string) (adapters.Chain, error)

Chain provides a mock function with given fields: ctx, id

func (*ChainSet) Close

func (_m *ChainSet) Close() error

Close provides a mock function with given fields:

func (*ChainSet) HealthReport

func (_m *ChainSet) HealthReport() map[string]error

HealthReport provides a mock function with given fields:

func (*ChainSet) Name

func (_m *ChainSet) Name() string

Name provides a mock function with given fields:

func (*ChainSet) Ready

func (_m *ChainSet) Ready() error

Ready provides a mock function with given fields:

func (*ChainSet) Start

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

Start provides a mock function with given fields: _a0

type Reader

type Reader struct {
	mock.Mock
}

Reader is an autogenerated mock type for the Reader type

func NewReader

func NewReader(t mockConstructorTestingTNewReader) *Reader

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

func (*Reader) Account

func (_m *Reader) Account(address types.AccAddress) (uint64, uint64, error)

Account provides a mock function with given fields: address

func (*Reader) Balance

func (_m *Reader) Balance(addr types.AccAddress, denom string) (*types.Coin, error)

Balance provides a mock function with given fields: addr, denom

func (*Reader) BlockByHeight

func (_m *Reader) BlockByHeight(height int64) (*tmservice.GetBlockByHeightResponse, error)

BlockByHeight provides a mock function with given fields: height

func (*Reader) Context

func (_m *Reader) Context() *cosmos_sdkclient.Context

Context provides a mock function with given fields:

func (*Reader) ContractState

func (_m *Reader) ContractState(contractAddress types.AccAddress, queryMsg []byte) ([]byte, error)

ContractState provides a mock function with given fields: contractAddress, queryMsg

func (*Reader) LatestBlock

func (_m *Reader) LatestBlock() (*tmservice.GetLatestBlockResponse, error)

LatestBlock provides a mock function with given fields:

func (*Reader) Tx

func (_m *Reader) Tx(hash string) (*tx.GetTxResponse, error)

Tx provides a mock function with given fields: hash

func (*Reader) TxsEvents

func (_m *Reader) TxsEvents(events []string, paginationParams *query.PageRequest) (*tx.GetTxsEventResponse, error)

TxsEvents provides a mock function with given fields: events, paginationParams

type TxManager

type TxManager struct {
	mock.Mock
}

TxManager is an autogenerated mock type for the TxManager type

func NewTxManager

func NewTxManager(t mockConstructorTestingTNewTxManager) *TxManager

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

func (*TxManager) Enqueue

func (_m *TxManager) Enqueue(contractID string, msg types.Msg) (int64, error)

Enqueue provides a mock function with given fields: contractID, msg

func (*TxManager) GasPrice

func (_m *TxManager) GasPrice() (types.DecCoin, error)

GasPrice provides a mock function with given fields:

func (*TxManager) GetMsgs

func (_m *TxManager) GetMsgs(ids ...int64) (adapters.Msgs, error)

GetMsgs provides a mock function with given fields: ids

Jump to

Keyboard shortcuts

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