Entry
typeEntry is one registered instance.
Value
v0.Entry
entries
v0.Treeentries maps instance path -> \*Entry. couples maps a pair ID ("keyA~keyB") -> int, how many instances claim that couple.
- OID
- 06da01…2d2f:4
entries details
couples
v0.Treeentries maps instance path -> \*Entry. couples maps a pair ID ("keyA~keyB") -> int, how many instances claim that couple.
- OID
- 06da01…2d2f:6
couples details
Register
func(p *v0.Pair)Register records the calling realm as an instance. Call it from the instance's init, so that deploying and listing are one transaction: func init(cur realm) { p = pair.New(keyA, keyB, grc20reg.MustGet(keyA), grc20reg.MustGet(keyB)) pairreg.Register(cross(cur), p) } Permissionless by design: anyone may deploy an instance under their own address namespace and land here. Spam is self funded, since the registering transaction pays for the storage it adds.
- OID
- 06da01…2d2f:7
Register details
Get
func(path string) *v0.EntryGet returns the entry for an instance path, or nil.
- OID
- 06da01…2d2f:9
Get details
Size
func() intSize returns how many instances are registered.
- OID
- 06da01…2d2f:10
Size details
Couples
func() intCouples returns how many distinct token couples are represented.
- OID
- 06da01…2d2f:11
Couples details
InstancesFor
func(id string) []stringInstancesFor returns the instance paths claiming a given couple id.
- OID
- 06da01…2d2f:12
InstancesFor details
Render
func(path string) stringRender is the unified frontend: the index of every instance with its live state, or one instance's own page when path is an instance path.
- OID
- 06da01…2d2f:13
Render details
countFor
func(id string) int- OID
- 06da01…2d2f:14
countFor details
webPath
func(pkgPath string) stringwebPath turns a package path into a gnoweb link.
- OID
- 06da01…2d2f:15
webPath details
shortPath
func(pkgPath string) stringshortPath drops the chain domain, which is the same on every row.
- OID
- 06da01…2d2f:16