Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

subhost state

Back to all declarations

pkgPath

untyped string

Value

"gno.land/r/tests/vm/subhost"

Observe

func()

Observe reports what the immediate caller presented as its identity. The three cur.Previous() views (address, synthesized pkgpath, subpath) are the callee-side surface a sub-token must present; the two parity booleans assert unsafe.PreviousRealm() reads the SAME identity (v2 §5.4: unsafe.\* must agree with cur.Previous()). prevParity is the load-bearing assertion for the identity-chain walk; curParity guards height 0.

Open
OID
06c6d9…90f7:3
Observe details

Inspect func

pkgPathOf

func(p string) string

pkgPathOf returns the host portion of a possibly-synthesized pkgpath, so DerivePkgSubAddr (which takes the host) can be recomputed from the callee's observation alone.

Open
OID
06c6d9…90f7:5
pkgPathOf details

Inspect func

ActAsSub

func(subpath string)

ActAsSub mints a sub-identity of subhost's OWN live cur and crosses with it into Observe. Used by the MsgRun-entry parity test: the outermost entry is a \`/e/\<addr>/run\` ephemeral, but subhost's cur is a first-class primary here, so cur.Sub is legal and the sub presents to Observe exactly as in the MsgCall path.

Open
OID
06c6d9…90f7:6
ActAsSub details

Inspect func
pkgPath : untyped string ="gno.land/r/tests/vm/subhost"
Observe : func() Inspect
pkgPathOf : func(p string) string Inspect
ActAsSub : func(subpath string) Inspect