mock

package
v0.0.0-...-aa68697 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ContractAddress is the default contract address returned by Env.
	ContractAddress = "test-contract"
	// BlockHeight is the default height returned by Env.
	BlockHeight = 12_345
	// BlockTime is the default block time returned by Env.
	BlockTime = 1_571_797_419_404_808_777
	// ChainID is the default chain ID returned by Env.
	ChainID = "cosmos-testnet-14002"
)

Variables

This section is empty.

Functions

func API

func API() std.Api

API returns a mocked std.Api

func Deps

func Deps(funds []types.Coin) *std.Deps

Deps returns mocked dependencies, funds can be provided optionally.

func Env

func Env() types.Env

Env returns mocked environment.

func Info

func Info(sender string, funds []types.Coin) types.MessageInfo

Info returns mocked message info, given a sender and the funds.

func Querier

func Querier(funds []types.Coin) std.Querier

func Storage

func Storage() std.Storage

Types

This section is empty.

Jump to

Keyboard shortcuts

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