author
.uverse.address// stage:engineAuthor
Value
<gnolang.StringValue>
ReasonNotUpload
untyped stringReadiness reasons (Status.reason).
Value
"not-upload"
ReasonNoStore
untyped stringReadiness reasons (Status.reason).
Value
"no-store"
ReasonNotSealed
untyped stringReadiness reasons (Status.reason).
Value
"store-not-sealed"
ReasonBoundElsewhere
untyped stringReadiness reasons (Status.reason).
Value
"bound-elsewhere"
ReasonSupply
untyped stringReadiness reasons (Status.reason).
Value
"supply-mismatch"
ReasonUnbound
untyped stringReadiness reasons (Status.reason).
Value
"unbound"
ReasonReady
untyped stringReadiness reasons (Status.reason).
Value
"ready"
col
typeValue
upload.col
loadCol
func(cid string) upload.col- OID
- 0cd23b…90c1:4
loadCol details
mustUpload
func(cid string) upload.col- OID
- 0cd23b…90c1:6
mustUpload details
IsUpload
func(cid string) boolIsUpload reports whether cid's engine is this adapter.
- OID
- 0cd23b…90c1:7
IsUpload details
StoreOf
func(cid string) stringStoreOf is the store named by cid's params ("" if none).
- OID
- 0cd23b…90c1:8
StoreOf details
Readiness
func(cid string) (ready bool, reason string, store string, badge string)Readiness is the typed Status for other realms.
- OID
- 0cd23b…90c1:9
Readiness details
Status
func(cid string) stringStatus is {cid, upload, state, store, bound, ready, reason, badge, settled, maxSupply, slots}. The frontend shows the mint UI only when ready (T14).
- OID
- 0cd23b…90c1:10
Status details
StorageBadge
func(cid string) stringStorageBadge is "computed" (any other engine), "onchain", "ipfs", "mixed", or "unbound" for an upload collection that is not ready (§9).
- OID
- 0cd23b…90c1:11
StorageBadge details
SetComposition
func(cid string) stringSetComposition is {collection, store, ready, reason, set}, set = assets.Composition of the collection's store: slots per tier and per trait value over the planned set (public and fixed before the sale, D8).
- OID
- 0cd23b…90c1:12
SetComposition details
stNotReady
untyped bigint// Final but not bound/ready: no art
Value
(1 <untyped> bigint)
stResolved
untyped bigintValue
(2 <untyped> bigint)
readToken
func(cid string, tid string) (upload.col, upload.resolved, int, .uverse.error)- OID
- 0cd23b…90c1:13
readToken details
mustReadToken
func(cid string, tid string) (upload.col, upload.resolved, int)- OID
- 0cd23b…90c1:14
mustReadToken details
TokenURI
func(cid string, tid string) (string, .uverse.error)TokenURI is core.TokenURI of an upload collection (sinopia4: core serves the art through Media): "data:\<mime>;base64,…" for on-chain art, "ipfs://\<cidv1>" for IPFS art, core's placeholder before Final. Kept for callers of the sinopia3 adapter; read core directly.
- OID
- 0cd23b…90c1:15
TokenURI details
artURI
func(r upload.resolved) stringartURI is what core.TokenURI returns for a resolved token (same bytes: "data:\<mime>;base64,\<std base64>" or "ipfs://\<cid>").
- OID
- 0cd23b…90c1:16
artURI details
TokenImage
func(cid string, tid string) stringTokenImage is the inline image: core.TokenURI, except "" for IPFS art (never a remote URL); core's placeholder before Final. Panics on an unknown token or a collection of another engine.
- OID
- 0cd23b…90c1:17
TokenImage details
Assignment
func(cid string, tid string) (ready bool, slot int64, edition int64, a v2.Artwork)Assignment is the typed TokenArtwork for other realms (gallery): ready is false before Final or when the collection is not ready; a is a copy.
- OID
- 0cd23b…90c1:18
Assignment details
TokenArtwork
func(cid string, tid string) stringTokenArtwork is the token's assignment as JSON: {collection, tid, revealed, ready, reason} and, once revealed and ready, {store, artwork, slot, edition, editions, assignment, kind, mime, mimeType, size, sha256, digest, cid, uri, tier, tierSource, title, traits}. uri is "ipfs://\<cid>" for IPFS art and "" for on-chain art (read its bytes with TokenImage / TokenURI: base64 of up to 256 KiB is not free).
- OID
- 0cd23b…90c1:19
TokenArtwork details
assignmentMode
func(si v2.StoreInfo) string- OID
- 0cd23b…90c1:20
assignmentMode details
unrevealed
[]v2.Trait- OID
- 0cd23b…90c1:22
unrevealed details
notReady
[]v2.Trait- OID
- 0cd23b…90c1:25
notReady details
unrevealedJSON
untyped stringValue
"[{\"trait_type\":\"Status\",\"value\":\"Unrevealed\"}]"
notReadyJSON
untyped stringValue
"[{\"trait_type\":\"Status\",\"value\":\"Not ready\"}]"
realTraitsJSON
func(r upload.resolved) stringrealTraitsJSON is realTraits as JSON, from the names the store escaped once (media.Artwork.TierJSON / TraitsJSON): same bytes as writeTraits of realTraits, without escaping creator text on every read (review UP-M1).
- OID
- 0cd23b…90c1:27
realTraitsJSON details
writeTraits
func(w *v2.JSONWriter, ts []v2.Trait)- OID
- 0cd23b…90c1:28
writeTraits details
TokenTraitList
func(cid string, tid string) []v2.TraitTokenTraitList is the typed real-name trait list of one token (a copy).
- OID
- 0cd23b…90c1:29
TokenTraitList details
TokenTraits
func(cid string, tid string) stringTokenTraits is TokenTraitList as \[{"trait\_type","value"}] JSON.
- OID
- 0cd23b…90c1:30
TokenTraits details
TokenMetadata
func(cid string, tid string) stringTokenMetadata is the upload view of the metadata (§10.2): core's TokenMetadata fields plus image\_size and properties (store, artwork, edition, storage, cid, title, tier, tierSource, assignment, fair, mimeVerified). "image" equals core.TokenURI and is written with RawStrField (a data URI / ipfs URI needs no escaping: M-4, the 256 KiB PNG no longer runs out of gas). mimeVerified (UP-I6) is true only for on-chain files, whose type the chain checked; an IPFS file's mime is the creator's claim. Before Final: core's placeholder image and \[{Status: Unrevealed}].
- OID
- 0cd23b…90c1:31
TokenMetadata details
TraitLists
func(cid string, offset int64, limit int64) ([]string, [][]v2.Trait)TraitLists returns, for tokens offset+1 … offset+limit (limit \<= MaxTraitLists, burned tokens skipped), the token ids and their real-name traits. The permutation key is computed once per call.
- OID
- 0cd23b…90c1:32
TraitLists details
TraitJSONLists
func(cid string, offset int64, limit int64) ([]string, []string)TraitJSONLists is TraitLists with each token's traits as a JSON array (the bytes TokenTraits returns), for pages that print them (reader.Cards). limit \<= MaxTraitJSONLists.
- OID
- 0cd23b…90c1:33
TraitJSONLists details
tokenPage
func(cid string, offset int64, limit int64, max int64) ([]string, []upload.resolved, int)tokenPage resolves tokens offset+1 … offset+limit (limit \<= max, burned skipped) with one permutation key per call and one record read per distinct artwork. st is stHidden before Final, stNotReady when the collection is Final but not ready, else stResolved.
- OID
- 0cd23b…90c1:34
tokenPage details
TraitCounts
func(cid string, offset int64, limit int64) stringTraitCounts is {"n": tokens counted, "counts": {type: {value: count}}} over tokens offset+1 … offset+limit (limit \<= MaxTraitCounts, burned skipped), with the creator's real names: Tier, the creator's trait types (store order, values in dictionary order), Edition, Storage. Before Final every token counts as {"Status": "Unrevealed"}, Final but not ready as {"Status": "Not ready"}. One permutation key per call; the counting runs in assets/v1 over integer ids (review UP-M1).
- OID
- 0cd23b…90c1:35
TraitCounts details
TraitsBatch
func(cid string, offset int64, limit int64) stringTraitsBatch is \[{tid, traits:\[{trait\_type, value}]}] for tokens offset+1 … offset+limit (limit \<= MaxTraitsBatch), burned tokens skipped.
- OID
- 0cd23b…90c1:36
TraitsBatch details
traitJSONPage
func(cid string, offset int64, limit int64, max int64) ([]string, []string)- OID
- 0cd23b…90c1:37
traitJSONPage details
Render
func(path string) stringRender is the token's card: an on-chain SVG artwork is its own card (passed AssertSVG(16 KiB) at upload; core re-checks), raster and IPFS art get the certificate; anything that is not core's real call gets the generic card (registration sample, RenderWith).
- OID
- 0cd23b…90c1:38
Render details
cardSVG
untyped stringcardSVG is the generic card (v2): the registration sample (its sha256 is the engine's fingerprint, reserved in core's config.gno, I-14), the RenderWith output, and the answer to any call that is not core's real render of a revealed, bound token. Changing one byte changes the fingerprint: update CardFingerprint, docs/test-vectors (gen-upload-v2.py) and core's reserved entry together.
Value
"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\" width=\"512\" height=\"512\"><rect width=\"512\" height=\"512\" fill=\"#16130f\"/><rect x=\"20\" y=\"20\" width=\"472\" height=\"472\" fill=\"none\" stroke=\"#b5332e\" stroke-width=\"3\"/><text x=\"256\" y=\"232\" fill=\"#e"...
CardFingerprint
untyped stringCardFingerprint = sha256(cardSVG) = the engine's sample fingerprint (TestCardFingerprint checks it against core's registration).
Value
"0e414b46db68c64891aadfb4e1fc18ef63d9711907538b659b61b41c7d34efd1"
certificateSVG
func(r upload.resolved) stringcertificateSVG is the card of a raster or IPFS artwork: what core.TokenCard returns (SVG-only clients, gnoweb) while core.TokenURI serves the file itself. Every text is XML-escaped; the document stays far below MaxSVGBytes.
- OID
- 0cd23b…90c1:39
certificateSVG details
sizeLabel
func(n int64) string- OID
- 0cd23b…90c1:41
sizeLabel details
Author
func() .uverse.address- OID
- 0cd23b…90c1:42
Author details
FeeBps
untyped bigintFeeBps is the engine-author fee (D3: none; fixed forever at Register).
Value
(0 <untyped> bigint)
EngineVersion
untyped stringEngineVersion is Manifest().Version.
Value
"2.0.0"
TraitTier
untyped stringTrait names the adapter adds itself (assets/v1 reserves them, so a creator's trait type can never collide). A collection's trait list is TraitTypes(params): Tier (if the store has tiers), the creator's types in store order, Edition (if an artwork has editions), Storage.
Value
"Tier"
TraitEdition
untyped stringTrait names the adapter adds itself (assets/v1 reserves them, so a creator's trait type can never collide). A collection's trait list is TraitTypes(params): Tier (if the store has tiers), the creator's types in store order, Edition (if an artwork has editions), Storage.
Value
"Edition"
TraitStorage
untyped stringTrait names the adapter adds itself (assets/v1 reserves them, so a creator's trait type can never collide). A collection's trait list is TraitTypes(params): Tier (if the store has tiers), the creator's types in store order, Edition (if an artwork has editions), Storage.
Value
"Storage"
defaultTraitTypes
[]stringdefaultTraitTypes is Manifest().TraitTypes and TraitTypes(""): core stores a collection's list only when it differs from this one.
- OID
- 0cd23b…90c1:45
defaultTraitTypes details
MaxTraitsBatch
untyped bigint// JSON
Value
(20 <untyped> bigint)
MaxTraitJSONLists
untyped bigint// typed, JSON per token (reader.Cards)
Value
(20 <untyped> bigint)
MaxTraitLists
untyped bigint// typed
Value
(250 <untyped> bigint)
MaxTraitCounts
untyped bigint// TraitCounts (reader.TraitCounts)
Value
(200 <untyped> bigint)
selfPath
stringValue
"gno.land/r/g1jz6j9hj6rdf5ltl2kcrpa4jwtdh3w30z0yul06/sinopia4/engines/upload"
assetsPath
stringValue
"gno.land/r/g1jz6j9hj6rdf5ltl2kcrpa4jwtdh3w30z0yul06/sinopia4/assets/v1"
bound
v0.Tree// store id -> cid
- OID
- 0cd23b…90c1:49
bound details
byCID
v0.Tree// cid -> \*binding
- OID
- 0cd23b…90c1:51
byCID details
binding
typeValue
upload.binding
init.64
func()- OID
- 0cd23b…90c1:52
init.64 details
SelfPath
func() stringSelfPath and AssetsPath are the engine id and the store realm it reads.
- OID
- 0cd23b…90c1:53
SelfPath details
AssetsPath
func() string- OID
- 0cd23b…90c1:54
AssetsPath details
impl
typeimpl is zero-size and declared here, so core runs it with this realm's authority (interrealm v2 borrow rule #1).
Value
upload.impl
storeTraitTypes
func(si v2.StoreInfo) []string- OID
- 0cd23b…90c1:55
storeTraitTypes details
Register
func() stringRegister is an explicit call (not init: under the inert package policy init runs in the approver's tx). The card's fingerprint is reserved in core's source for the platform author, so only that key can sign it.
- OID
- 0cd23b…90c1:56
Register details
Bind
func(cid string)Bind locks the collection's store (its params "store:\<id>") to the collection. Caller == core creator == store owner, from a wallet; core state Draft; the collection uses this engine; the store is sealed and not bound elsewhere; maxSupply == the store's slots. cid may be "\<cid>" or "c/\<cid>"; the binding is kept under core's bare id. Event StoreBound{store, cid}.
- OID
- 0cd23b…90c1:57
Bind details
Unbind
func(cid string)Unbind releases the store while the collection is still a Draft. Creator only. Event StoreUnbound{store, cid}.
- OID
- 0cd23b…90c1:58
Unbind details
Settle
func(cid string)Settle caches the salt and permutation key once the collection is Final. Anyone may call it; it is deterministic (the salt is final) and idempotent, and it only saves read gas: the lazy path computes the same key. Event Settled{cid, key} (first call only).
- OID
- 0cd23b…90c1:59
Settle details
assertWallet
func()- OID
- 0cd23b…90c1:60
assertWallet details
assertUploadDraft
func(info v2.CollectionInfo, cid string)- OID
- 0cd23b…90c1:61
assertUploadDraft details
finalSalt
func(s string) stringfinalSalt is core's typed salt (M-5: core.Salt / Info.Salt, "" before Final) when it is 64 lower-case hex, else "".
- OID
- 0cd23b…90c1:62
finalSalt details
parseParams
func(p string) (string, bool)parseParams accepts exactly "store:\<id>" with a canonical decimal id.
- OID
- 0cd23b…90c1:63
parseParams details
storeExists
func(id string) bool- OID
- 0cd23b…90c1:64
storeExists details
tidNum
func(tid string) int64tidNum is the numeric token id, 0 for a non-canonical one.
- OID
- 0cd23b…90c1:65
tidNum details
resolved
typeresolved is one token's assignment.
Value
upload.resolved
coreResolve
func(in v2.Input) (upload.resolved, bool)coreResolve answers only core's own TokenURI/TokenCard/TokenTraits call for a Final, bound collection: CollectionID, params and seed must be exactly what core passes (§7 snipe resistance). Anything else gets the card (Media{} / cardSVG).
- OID
- 0cd23b…90c1:66
coreResolve details
keyOf
func(cid string, b *upload.binding, salt string) string- OID
- 0cd23b…90c1:67
keyOf details
assign
func(cid string, tid string, n int64, info v2.CollectionInfo, store string, si v2.StoreInfo, key string, cache map[int64]v2.Artwork) upload.resolvedassign maps token n to its slot, artwork and edition. With a cache (trait batches) artworks are read once per batch and without their hashes/CID (assets.ArtworkMeta); without one the full record is read.
- OID
- 0cd23b…90c1:68
assign details
realTraits
func(r upload.resolved) []v2.TraitrealTraits are the upload-path attributes with the creator's real type names, in TraitTypes order: Tier, the creator's traits in store order, Edition (when the artwork has more than one) and Storage.
- OID
- 0cd23b…90c1:69
realTraits details
editionLabel
func(e int64, of int64) string- OID
- 0cd23b…90c1:70
editionLabel details
storageLabel
func(kind int) string- OID
- 0cd23b…90c1:71