Search Apps Documentation Source Content File Folder Download Copy Actions Download

crossrealm package

Functions

CallFooerBar

func CallFooerBar()
Execute

Command

gnokey query vm/qeval -remote "https://rpc.test10.testnets.gno.land" -data "gno.land/r/tests/vm/crossrealm.CallFooerBar()"

Result

CallFooerBarCrossing

func CallFooerBarCrossing(cur realm)
Execute

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/tests/vm/crossrealm" -func "CallFooerBarCrossing" -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -broadcast -chainid "test10" -remote "https://rpc.test10.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.test10.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/tests/vm/crossrealm" -func "CallFooerBarCrossing" -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test10" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test10.testnets.gno.land" call.tx
  

CallFooerFooCross

func CallFooerFooCross(cur realm)
Execute

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/tests/vm/crossrealm" -func "CallFooerFooCross" -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -broadcast -chainid "test10" -remote "https://rpc.test10.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.test10.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/tests/vm/crossrealm" -func "CallFooerFooCross" -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test10" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test10.testnets.gno.land" call.tx
  

CallFooerFooCur

func CallFooerFooCur(cur realm)
Execute

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/tests/vm/crossrealm" -func "CallFooerFooCur" -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -broadcast -chainid "test10" -remote "https://rpc.test10.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.test10.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/tests/vm/crossrealm" -func "CallFooerFooCur" -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test10" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test10.testnets.gno.land" call.tx
  

CallFooerGetterBar

func CallFooerGetterBar()
Execute

Command

gnokey query vm/qeval -remote "https://rpc.test10.testnets.gno.land" -data "gno.land/r/tests/vm/crossrealm.CallFooerGetterBar()"

Result

CallFooerGetterBarCrossing

func CallFooerGetterBarCrossing(cur realm)
Execute

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/tests/vm/crossrealm" -func "CallFooerGetterBarCrossing" -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -broadcast -chainid "test10" -remote "https://rpc.test10.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.test10.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/tests/vm/crossrealm" -func "CallFooerGetterBarCrossing" -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test10" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test10.testnets.gno.land" call.tx
  

CallFooerGetterFooCross

func CallFooerGetterFooCross(cur realm)
Execute

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/tests/vm/crossrealm" -func "CallFooerGetterFooCross" -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -broadcast -chainid "test10" -remote "https://rpc.test10.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.test10.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/tests/vm/crossrealm" -func "CallFooerGetterFooCross" -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test10" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test10.testnets.gno.land" call.tx
  

CallFooerGetterFooCur

func CallFooerGetterFooCur(cur realm)
Execute

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/tests/vm/crossrealm" -func "CallFooerGetterFooCur" -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -broadcast -chainid "test10" -remote "https://rpc.test10.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.test10.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/tests/vm/crossrealm" -func "CallFooerGetterFooCur" -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test10" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test10.testnets.gno.land" call.tx
  

CurRealmCrossing

func CurRealmCrossing(cur realm) runtime.Realm
Execute

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/tests/vm/crossrealm" -func "CurRealmCrossing" -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -broadcast -chainid "test10" -remote "https://rpc.test10.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.test10.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/tests/vm/crossrealm" -func "CurRealmCrossing" -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test10" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test10.testnets.gno.land" call.tx
  

CurRealmNoCrossing

func CurRealmNoCrossing() runtime.Realm
Execute

Command

gnokey query vm/qeval -remote "https://rpc.test10.testnets.gno.land" -data "gno.land/r/tests/vm/crossrealm.CurRealmNoCrossing()"

Result

EntryPoint

func EntryPoint() (noCros *ownable.Ownable)
Execute

Command

gnokey query vm/qeval -remote "https://rpc.test10.testnets.gno.land" -data "gno.land/r/tests/vm/crossrealm.EntryPoint()"

Result

EntryPointWithCrossing

func EntryPointWithCrossing() (withCros *ownable.Ownable)
Execute

Command

gnokey query vm/qeval -remote "https://rpc.test10.testnets.gno.land" -data "gno.land/r/tests/vm/crossrealm.EntryPointWithCrossing()"

Result

Exec

func Exec(cb func() string) string
Execute

This is a top function that doesn't switch realms.

Param

Command

gnokey query vm/qeval -remote "https://rpc.test10.testnets.gno.land" -data "gno.land/r/tests/vm/crossrealm.Exec()"

Result

ExecCrossing

func ExecCrossing(cur realm, cb func() string) string
Execute

This is a top function that does switch realms.

Param

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/tests/vm/crossrealm" -func "ExecCrossing" -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -broadcast -chainid "test10" -remote "https://rpc.test10.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.test10.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/tests/vm/crossrealm" -func "ExecCrossing" -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test10" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test10.testnets.gno.land" call.tx
  

ExecuteClosure

func ExecuteClosure(cur realm)
Execute

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/tests/vm/crossrealm" -func "ExecuteClosure" -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -broadcast -chainid "test10" -remote "https://rpc.test10.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.test10.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/tests/vm/crossrealm" -func "ExecuteClosure" -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test10" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test10.testnets.gno.land" call.tx
  

ExecuteClosureCross

func ExecuteClosureCross(cur realm)
Execute

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/tests/vm/crossrealm" -func "ExecuteClosureCross" -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -broadcast -chainid "test10" -remote "https://rpc.test10.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.test10.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/tests/vm/crossrealm" -func "ExecuteClosureCross" -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test10" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test10.testnets.gno.land" call.tx
  

GetObject

func GetObject() any
Execute

Command

gnokey query vm/qeval -remote "https://rpc.test10.testnets.gno.land" -data "gno.land/r/tests/vm/crossrealm.GetObject()"

Result

Make1

func Make1() *p_crossrealm.Container
Execute

Make1 returns a local object wrapped by a p struct

Command

gnokey query vm/qeval -remote "https://rpc.test10.testnets.gno.land" -data "gno.land/r/tests/vm/crossrealm.Make1()"

Result

PkgCurRealmCrossing

func PkgCurRealmCrossing(cur realm) runtime.Realm
Execute

call the package that returns current realm

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/tests/vm/crossrealm" -func "PkgCurRealmCrossing" -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -broadcast -chainid "test10" -remote "https://rpc.test10.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.test10.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/tests/vm/crossrealm" -func "PkgCurRealmCrossing" -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test10" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test10.testnets.gno.land" call.tx
  

PkgCurRealmNoCrossing

func PkgCurRealmNoCrossing() runtime.Realm
Execute

call the package that returns current realm

Command

gnokey query vm/qeval -remote "https://rpc.test10.testnets.gno.land" -data "gno.land/r/tests/vm/crossrealm.PkgCurRealmNoCrossing()"

Result

PrevRealmCrossing

func PrevRealmCrossing(cur realm) *ownable.Ownable
Execute

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/tests/vm/crossrealm" -func "PrevRealmCrossing" -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -broadcast -chainid "test10" -remote "https://rpc.test10.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.test10.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/tests/vm/crossrealm" -func "PrevRealmCrossing" -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test10" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test10.testnets.gno.land" call.tx
  

PrevRealmNoCrossing

func PrevRealmNoCrossing() *ownable.Ownable
Execute

Command

gnokey query vm/qeval -remote "https://rpc.test10.testnets.gno.land" -data "gno.land/r/tests/vm/crossrealm.PrevRealmNoCrossing()"

Result

PrintRealms

func PrintRealms(cur realm)
Execute

Closure -> FooUpdate

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/tests/vm/crossrealm" -func "PrintRealms" -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -broadcast -chainid "test10" -remote "https://rpc.test10.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.test10.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/tests/vm/crossrealm" -func "PrintRealms" -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test10" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test10.testnets.gno.land" call.tx
  

SetClosure

func SetClosure(cur realm, f func())
Execute

Param

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/tests/vm/crossrealm" -func "SetClosure" -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -broadcast -chainid "test10" -remote "https://rpc.test10.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.test10.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/tests/vm/crossrealm" -func "SetClosure" -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test10" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test10.testnets.gno.land" call.tx
  

SetClosure2

func SetClosure2(cur realm, f func(realm))
Execute

Param

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/tests/vm/crossrealm" -func "SetClosure2" -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -broadcast -chainid "test10" -remote "https://rpc.test10.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.test10.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/tests/vm/crossrealm" -func "SetClosure2" -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test10" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test10.testnets.gno.land" call.tx
  

SetObject

func SetObject(cur realm, x any)
Execute

Param

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/tests/vm/crossrealm" -func "SetObject" -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -broadcast -chainid "test10" -remote "https://rpc.test10.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.test10.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/tests/vm/crossrealm" -func "SetObject" -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test10" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test10.testnets.gno.land" call.tx
  

GetFooer

func GetFooer() Fooer
Execute

Command

gnokey query vm/qeval -remote "https://rpc.test10.testnets.gno.land" -data "gno.land/r/tests/vm/crossrealm.GetFooer()"

Result

SetFooer

func SetFooer(cur realm, f Fooer) Fooer
Execute

Param

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/tests/vm/crossrealm" -func "SetFooer" -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -broadcast -chainid "test10" -remote "https://rpc.test10.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.test10.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/tests/vm/crossrealm" -func "SetFooer" -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test10" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test10.testnets.gno.land" call.tx
  

GetFooerGetter

func GetFooerGetter() FooerGetter
Execute

Command

gnokey query vm/qeval -remote "https://rpc.test10.testnets.gno.land" -data "gno.land/r/tests/vm/crossrealm.GetFooerGetter()"

Result

SetFooerGetter

func SetFooerGetter(cur realm, fg FooerGetter) FooerGetter
Execute

Param

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/tests/vm/crossrealm" -func "SetFooerGetter" -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -broadcast -chainid "test10" -remote "https://rpc.test10.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.test10.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/tests/vm/crossrealm" -func "SetFooerGetter" -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test10" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test10.testnets.gno.land" call.tx