Skip to content Search Apps Documentation Source Content Run Reset Eval Playground File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.

gallery state

Back to all declarations

pageSize

untyped bigint

Value

(20 <untyped> bigint)

homeLimit

untyped bigint

Value

(20 <untyped> bigint)

maxPageNum

untyped bigint

Value

(500 <untyped> bigint)

collectionPage

func(cid string, page int64) string
Open
OID
06ec94…1fda:6
collectionPage details

Inspect func

tokenPage

func(cid string, tid string) string
Open
OID
06ec94…1fda:7
tokenPage details

Inspect func

tokenImage

func(info v2.CollectionInfo, cid string, tid string) (string, string)

tokenImage is the image the page embeds and the file line under it. An SVG engine's token is its art (TokenURI). A media engine's token is the checked file when core serves it as a data URI (TokenURI), otherwise the engine's checked SVG card (TokenCard): never a remote image (SA-M4); an IPFS address is escaped text. TokenMediaInfo is read first, so a 256 KiB file is encoded only when it is shown.

Open
OID
06ec94…1fda:8
tokenImage details

Inspect func

mediaView

func(mi string) (showFile bool, line string)

mediaView decides from core.TokenMediaInfo whether the page embeds the file itself (core serves it as a data URI: source "data") or the card, and writes the file line. Every value is escaped as text.

Open
OID
06ec94…1fda:9
mediaView details

Inspect func

isMedia

func(engineID string) bool

isMedia: the engine serves files (engine/v2 KindMedia).

Open
OID
06ec94…1fda:10
isMedia details

Inspect func

jsonStr

func(js string, key string) string

jsonStr reads a string field of a flat JSON object written by core's safe.JSONWriter (keys are ours; the values read here — source, mime, sha256, an ipfs:// CIDv1 — never contain an escaped quote).

Open
OID
06ec94…1fda:11
jsonStr details

Inspect func

jsonNum

func(js string, key string) string

jsonNum reads a non-negative integer field of the same JSON ("0" if absent).

Open
OID
06ec94…1fda:12
jsonNum details

Inspect func

fairness

func(cid string) string

fairness never calls a collection "verified" unless it is a fair launch (core.FairLaunch): a consistent record is not enough when one party could choose the map (SA-M2). An open edition (I-17) is never a fair launch. SEC-F2: the committed beacon's secret is derived by the Sinopia operator, so a fair badge on that path trusts the operator: beacon-only means the operator alone knew the map while minting, and 2/2 assumes the operator did not collude with the creator. Only a randomness provider (a public round nobody knows in advance) needs no such trust.

Open
OID
06ec94…1fda:13
fairness details

Inspect func

plainText

func(s string) string

plainText renders user text as inert markdown: sanitize.InlineText escapes every inline-active character (\\ \* \_ \[ ] ( ) ~ > - + . ! \` # \< &) and folds newlines, and escaping ':' breaks bare-URL autolinks ("https\\://…"), which InlineText leaves alone (SA-M4).

Open
OID
06ec94…1fda:14
plainText details

Inspect func

enginePage

func(id string) string
Open
OID
06ec94…1fda:15
enginePage details

Inspect func

userPage

func(name string) string
Open
OID
06ec94…1fda:16
userPage details

Inspect func

who

func(addr .uverse.address) string

who renders an address as its r/sys/users name when it has one.

Open
OID
06ec94…1fda:17
who details

Inspect func

pageFrom

func(query string) int64
Open
OID
06ec94…1fda:18
pageFrom details

Inspect func

selfPath

string

selfPath is captured at deploy; links are gnoweb paths without the domain.

Value

"gno.land/r/g1jz6j9hj6rdf5ltl2kcrpa4jwtdh3w30z0yul06/sinopia4/gallery"
pageSize : untyped bigint =(20 <untyped> bigint)
homeLimit : untyped bigint =(20 <untyped> bigint)
maxPageNum : untyped bigint =(500 <untyped> bigint)
Render : func(path string) string Inspect
home : func() string Inspect
collectionPage : func(cid string, page int64) string Inspect
tokenPage : func(cid string, tid string) string Inspect
tokenImage : func(info v2.CollectionInfo, cid string, tid string) (string, string) Inspect
mediaView : func(mi string) (showFile bool, line string) Inspect
isMedia : func(engineID string) bool Inspect
jsonStr : func(js string, key string) string Inspect
jsonNum : func(js string, key string) string Inspect
fairness : func(cid string) string Inspect
plainText : func(s string) string Inspect
enginePage : func(id string) string Inspect
userPage : func(name string) string Inspect
who : func(addr .uverse.address) string Inspect
pageFrom : func(query string) int64 Inspect
selfPath : string ="gno.land/r/g1jz6j9hj6rdf5ltl2kcrpa4jwtdh3w30z0yul06/sinopia4/gallery"
init.19 : func() Inspect
base : func() string Inspect
itoa : func(n int64) string Inspect