github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/gnovm/stdlibs/std/frame.gno (about)

     1  package std
     2  
     3  type Realm struct {
     4  	addr    Address
     5  	pkgPath string
     6  }
     7  
     8  func (r Realm) Addr() Address {
     9  	return r.addr
    10  }
    11  
    12  func (r Realm) PkgPath() string {
    13  	return r.pkgPath
    14  }
    15  
    16  func (r Realm) IsUser() bool {
    17  	return r.pkgPath == ""
    18  }