testing

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2026 License: UNKNOWN not legal advice Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func X_getContext

func X_getContext(m *gno.Machine) (
	originCaller string,
	origSendDenoms []string, origSendAmounts []int64,
	origSpendDenoms []string, origSpendAmounts []int64,
	chainID string,
	height int64,
	timeUnix int64, timeNano int64,
)

func X_isRealm

func X_isRealm(m *gno.Machine, pkgPath string) bool

func X_makeRealm

func X_makeRealm(m *gno.Machine, addr, pkgPath string, prev gno.TypedValue) gno.TypedValue

X_makeRealm builds a uverse realm value with the given (addr, pkgPath, prev) tuple. Tests use this to construct cur values explicitly when the SetRealm/SetCodeRealm composition semantics don't match the scenario being tested — e.g. to express "alice EOA crossed into r/foo, cur.Previous() == alice realm" without relying on chained SetRealm calls (which overwrite prev with the test pkg's own addr).

func X_matchString

func X_matchString(pat, str string) (bool, string)

func X_newRealm

func X_newRealm(m *gno.Machine, addr, pkgPath string) gno.TypedValue

func X_originRealm

func X_originRealm(m *gno.Machine) gno.TypedValue

X_originRealm returns the EOA-origin realm value (addr=OriginCaller, pkgPath="", prev=truly-nil). Useful as the seed prev when assembling explicit cur chains in tests.

func X_recoverWithStacktrace

func X_recoverWithStacktrace(m *gnolang.Machine) (gnolang.TypedValue, string)

func X_setContext

func X_setContext(
	m *gno.Machine,
	originCaller string,
	currRealmAddr string, currRealmPkgPath string,
	origSendDenoms []string, origSendAmounts []int64,
	origSpendDenoms []string, origSpendAmounts []int64,
	chainID string,
	height int64,
	timeUnix int64, timeNano int64,
)

func X_setSysParamBool

func X_setSysParamBool(m *gno.Machine, module, submodule, name string, val bool)

func X_setSysParamInt64

func X_setSysParamInt64(m *gno.Machine, module, submodule, name string, val int64)

func X_setSysParamStrings

func X_setSysParamStrings(m *gno.Machine, module, submodule, name string, val []string)

func X_setSysParamUint64

func X_setSysParamUint64(m *gno.Machine, module, submodule, name string, val uint64)

func X_testIssueCoins

func X_testIssueCoins(m *gno.Machine, addr string, denom []string, amt []int64)

func X_unixNano

func X_unixNano() int64

Types

This section is empty.

Jump to

Keyboard shortcuts

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