Entry
typeEntry is what one denom says about itself.
Value
v0.Entry
MaxName
untyped bigintValue
(40 <untyped> bigint)
MaxSymbol
untyped bigintValue
(12 <untyped> bigint)
MaxDoc
untyped bigintValue
(200 <untyped> bigint)
MaxDecimals
untyped bigintValue
(18 <untyped> bigint)
byDenom
*v0.Tree// denom -> \*Entry
- OID
- 0dfd5d…459d:4
byDenom details
denoms
[]string// registration order, for a stable Render
Value
<zero>
Register
func(denom string, name string, symbol string, decimals int, doc string)Register records or rewrites what a denom means. The caller must be the realm the denom names, which is the entire authorization. Calling it again overwrites the entry and bumps \[Entry.Revisions]. An issuer can always re-describe its own coin, and can never describe anybody else's.
- OID
- 0dfd5d…459d:7
Register details
Get
func(denom string) (v0.Entry, bool)Get returns the entry for a denom, and whether it has one.
- OID
- 0dfd5d…459d:9
Get details
MustGet
func(denom string) v0.EntryMustGet is [Get](#Get) for a caller that treats an unregistered denom as a bug.
- OID
- 0dfd5d…459d:10
MustGet details
IsRegistered
func(denom string) boolIsRegistered reports whether a denom has said anything about itself.
- OID
- 0dfd5d…459d:11
IsRegistered details
List
func() []v0.EntryList returns every entry, in registration order.
- OID
- 0dfd5d…459d:12
List details
ByIssuer
func(pkgPath string) []v0.EntryByIssuer returns every entry issued by one realm, in registration order.
- OID
- 0dfd5d…459d:13
ByIssuer details
Count
func() intCount returns how many denoms are registered.
- OID
- 0dfd5d…459d:14
Count details
IssuerOf
func(denom string) stringIssuerOf returns the package path embedded in a denom, without consulting the registry: the relation is in the string itself. It aborts on anything that is not a realm denom, which includes \`ugnot\`. It is exported because it is useful to anybody handling a denom, registered or not: given a balance, this is how you find the code that can take it away.
- OID
- 0dfd5d…459d:15
IssuerOf details
issuerOf
func(denom string) string- OID
- 0dfd5d…459d:16
issuerOf details
assertLen
func(what string, s string, max int)- OID
- 0dfd5d…459d:17
assertLen details
Render
func(path string) stringRender lists the registry. \`?\<denom>\` shows one entry, \`?\<pkgpath>\` shows everything one realm issues.
- OID
- 0dfd5d…459d:18
Render details
renderIndex
func() string- OID
- 0dfd5d…459d:20
renderIndex details
renderDenom
func(denom string) string- OID
- 0dfd5d…459d:21
renderDenom details
renderIssuer
func(pkgPath string) string- OID
- 0dfd5d…459d:22
renderIssuer details
safeIssuer
func(denom string) stringsafeIssuer is IssuerOf for a Render, which must never abort on a path a reader typed into the URL bar.
- OID
- 0dfd5d…459d:23