app.gno
0.41 Kb · 17 lines
1package core
2
3import (
4 "gno.land/p/onbloc/ibc/union/app"
5)
6
7// RegisterApp registers an IBC application at the caller realm's package path,
8// delegating to the installed mustGetImpl().
9func RegisterApp(cur realm, app app.IApp) {
10 mustGetImpl().RegisterApp(0, cur, app)
11}
12
13// HasApp reports whether an app is registered at portId.
14func HasApp(portId []byte) bool {
15 _, ok := store.ports[string(portId)]
16 return ok
17}