MinSize
untyped bigintValue
(32 <untyped> bigint)
MaxSize
untyped bigintValue
(2048 <untyped> bigint)
Notice
stringValue
""
NoticeType
v0.TypeValue
<zero>
RealmPath
stringValue
"/r/g17khqpukees4237dtn3astzapmp462vjhsz6st4/settlers/avatar"
admin
*v0.Ownable- OID
- 0d4f58…3f89:29
admin details
goSnippet
stringValue
"import \"gno.land/r/g17khqpukees4237dtn3astzapmp462vjhsz6st4/settlers/avatar\"\n\nfunc RenderUser(addr address) string {\n\treturn avatar.Markdown(addr, 32, true) + \" \" + addr.String()\n}\n"
gnokeySnippet
stringValue
"gnokey query vm/qrender \\\n -remote <remote> \\\n -data \"gno.land/r/g17khqpukees4237dtn3astzapmp462vjhsz6st4/settlers/avatar:svg/{address}?size=256\" \\\n | tail -n +2 | sed '1s/^data: //' > settler.svg\n"
init.8
func()- OID
- 0d4f58…3f89:9
init.8 details
Admin
func() .uverse.address- OID
- 0d4f58…3f89:11
Admin details
TransferAdmin
func(newAdmin .uverse.address)TransferAdmin makes another account the admin. Only the admin can call it.
- OID
- 0d4f58…3f89:12
TransferAdmin details
SetNotice
func(alertType v0.Type, msg string)SetNotice posts a realm-wide message, shown at the top of the page.
- OID
- 0d4f58…3f89:13
SetNotice details
ClearNotice
func()ClearNotice removes the current notice.
- OID
- 0d4f58…3f89:14
ClearNotice details
SVG
func(addr .uverse.address, size int, transparent bool) stringSVG returns the SVG document of the Settler of an address, or an empty text if it has none. The size is the width and height in pixels of the square image, from 32 to 2048 (multiples of 32 keep every art pixel as a whole number of screen pixels). A size of 0 or less leaves out the width and the height, so that the image scales to its container. If transparent is true, the image has no background.
- OID
- 0d4f58…3f89:15
SVG details
URI
func(addr .uverse.address, size int, transparent bool) stringURI returns the image of the Settler of an address as a "data:image/svg+xml;charset=utf-8," URI, that can be used as the source of an image or as the address of a Markdown image, or an empty text if it has none. The size and transparent are the same as in SVG.
- OID
- 0d4f58…3f89:16
URI details
Markdown
func(addr .uverse.address, size int, transparent bool) stringMarkdown returns the avatar of an address as a Markdown image, or an empty text if it has none:  The size and transparent are the same as in SVG.
- OID
- 0d4f58…3f89:17
Markdown details
lookup
func(addr .uverse.address) (v0.TokenID, v0.Traits)lookup returns the ID and traits of the Settler of an address, or an empty ID and a zero-value Traits if it has none.
- OID
- 0d4f58…3f89:18
lookup details
options
func(size int, transparent bool) v0.Optionsoptions builds the nft.Options for an image; size is clamped between MinSize and MaxSize (0 or less is left as 0, so the image has no fixed size and scales to its container), and transparent controls whether the background is drawn.
- OID
- 0d4f58…3f89:19
options details
assertIsCurrent
func()- OID
- 0d4f58…3f89:20
assertIsCurrent details
assertIsValidAlertType
func(t v0.Type)- OID
- 0d4f58…3f89:21
assertIsValidAlertType details
sampleSize
untyped bigintValue
(48 <untyped> bigint)
samples
untyped bigintValue
(6 <untyped> bigint)
Render
func(path string) stringRender renders the realm. By default renders what this realm is, how to use it, and some avatars. Paths: - \`svg/{address}\`: The SVG of the Settler of an address. - \`md/{address}\`: The Markdown that Markdown returns for an address, rendered, with the same parameters.
- OID
- 0d4f58…3f89:22
Render details
renderHome
func(res *v0.ResponseWriter, *v0.Request)- OID
- 0d4f58…3f89:24
renderHome details
renderSVG
func(res *v0.ResponseWriter, req *v0.Request)- OID
- 0d4f58…3f89:25
renderSVG details
renderMarkdown
func(res *v0.ResponseWriter, req *v0.Request)- OID
- 0d4f58…3f89:26
renderMarkdown details
sizeParam
func(req *v0.Request) int- OID
- 0d4f58…3f89:27
sizeParam details
transparentParam
func(req *v0.Request) bool- OID
- 0d4f58…3f89:28