registry
*v0.Tree// rlmPath.symbol -> \*Token
- OID
- 0a28ce…86fb:4
registry details
Register
func(token *grc20.Token, slug string) stringRegister records token under its rlmPath.symbol key and returns that key. Token.ID() carries a trailing sequence id (rlmPath.symbol.\<id>) that keeps token identities/events unique, but the registry deliberately keys by rlmPath.symbol so lookups don't need to know the id, and so a realm cannot register two tokens under the same symbol (overwrite/alias guard).
- OID
- 0a28ce…86fb:6
Register details
Get
func(key string) *grc20.Token- OID
- 0a28ce…86fb:8
Get details
MustGet
func(key string) *grc20.Token- OID
- 0a28ce…86fb:9
MustGet details
Render
func(path string) string- OID
- 0a28ce…86fb:10
Render details
registerEvent
untyped stringValue
"register"
maxSlugLen
untyped bigintValue
(128 <untyped> bigint)
GetRegistry
func() *rotree.ReadOnlyTree- OID
- 0a28ce…86fb:11
GetRegistry details
validateSlug
func(slug string)validateSlug panics if the slug is too long or contains non-alphanumeric characters. Only letters, digits, dashes, and underscores are allowed.
- OID
- 0a28ce…86fb:12
validateSlug details
isAlphanumeric
func(c int32) bool- OID
- 0a28ce…86fb:13
isAlphanumeric details
registry : *v0.Tree Inspect
Register : func(token *grc20.Token, slug string) string Inspect
Get : func(key string) *grc20.Token Inspect
MustGet : func(key string) *grc20.Token Inspect
Render : func(path string) string Inspect
registerEvent
:
untyped string
="register"
maxSlugLen
:
untyped bigint
=(128 <untyped> bigint)