Documentation
¶
Index ¶
- func X_getContext(m *gno.Machine) (originCaller string, origSendDenoms []string, origSendAmounts []int64, ...)
- func X_isRealm(m *gno.Machine, pkgPath string) bool
- func X_makeRealm(m *gno.Machine, addr, pkgPath string, prev gno.TypedValue) gno.TypedValue
- func X_matchString(pat, str string) (bool, string)
- func X_newRealm(m *gno.Machine, addr, pkgPath string) gno.TypedValue
- func X_originRealm(m *gno.Machine) gno.TypedValue
- func X_recoverWithStacktrace(m *gnolang.Machine) (gnolang.TypedValue, string)
- func X_setContext(m *gno.Machine, originCaller string, currRealmAddr string, ...)
- func X_setSysParamBool(m *gno.Machine, module, submodule, name string, val bool)
- func X_setSysParamInt64(m *gno.Machine, module, submodule, name string, val int64)
- func X_setSysParamStrings(m *gno.Machine, module, submodule, name string, val []string)
- func X_setSysParamUint64(m *gno.Machine, module, submodule, name string, val uint64)
- func X_testIssueCoins(m *gno.Machine, addr string, denom []string, amt []int64)
- func X_unixNano() int64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func X_getContext ¶
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_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_setSysParamBool ¶
func X_setSysParamInt64 ¶
func X_setSysParamStrings ¶
func X_setSysParamUint64 ¶
func X_testIssueCoins ¶
func X_unixNano ¶
func X_unixNano() int64
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.