mocks

package
v1.11.0-rc5 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: MIT Imports: 9 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 added in v1.5.0

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() terra.Config

Config provides a mock function with given fields:

func (*Chain) Healthy

func (_m *Chain) Healthy() error

Healthy 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) 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 added in v1.3.0

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

TxManager provides a mock function with given fields:

func (*Chain) UpdateConfig added in v1.5.0

func (_m *Chain) UpdateConfig(_a0 *db.ChainCfg)

UpdateConfig provides a mock function with given fields: _a0

type ChainSet

type ChainSet struct {
	mock.Mock
}

ChainSet is an autogenerated mock type for the ChainSet type

func NewChainSet added in v1.5.0

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) (terra.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) Healthy

func (_m *ChainSet) Healthy() error

Healthy 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 added in v1.5.0

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) ContractStore

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

ContractStore 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 added in v1.3.0

type TxManager struct {
	mock.Mock
}

TxManager is an autogenerated mock type for the TxManager type

func NewTxManager added in v1.5.0

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 added in v1.3.0

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

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

func (*TxManager) GasPrice added in v1.3.0

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

GasPrice provides a mock function with given fields:

func (*TxManager) GetMsgs added in v1.3.0

func (_m *TxManager) GetMsgs(ids ...int64) (terra.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