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.

upload package

Overview

Package upload is the engine/v1 adapter for uploaded collections (docs/uploaded-collections.md §5.3, §7–§10, §0a). Core knows it as one more engine; each collection's params name one sealed asset store ("store:<id>", r/…/assets/v1) and Bind locks that store to the collection while it is a Draft. After the reveal every token shows the artwork of the slot a salt-keyed permutation gives it.

What holds, and why:

  • art theft (T1): ValidateParams accepts a store only when its owner signs the Create tx; Bind needs caller == collection creator == store owner, from a wallet;
  • no swap after sale (T2): stores are sealed before Bind and never change; params are fixed by core; Bind and Unbind run only while core says Draft, i.e. before any token was ever minted;
  • one collection per store (T3); slots == maxSupply (T13);
  • snipe resistance (T4/T5): before Final core shows its placeholder and never calls Render/Traits; every read here checks Final too; the assignment needs the final salt; Render answers core's real call only (CollectionID, params and seed must match core's), so RenderWith (CollectionID "0") always gets the generic card;
  • SA-L5: this realm and assets/v1 may not be payees (Bind refuses);
  • I-12: Render, Traits and ValidateParams only read; Bind, Unbind and Settle are crossing functions; there is no exported non-crossing mutator.

The adapter is stateful by design (bindings and cached keys), declares Living false, takes no fee (D3) and holds no coins.

Function

TraitJSONLists

func TraitJSONLists(cid string, offset, limit int64) ([]string, []string)
Ask AI Claude ChatGPT

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.

Params

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1jz6j9hj6rdf5ltl2kcrpa4jwtdh3w30z0yul06/sinopia3/engines/upload.TraitJSONLists(,,)"

Result

Gno Expression Evaluator

Evaluate any read-only Gno expression against gno.land/r/g1jz6j9hj6rdf5ltl2kcrpa4jwtdh3w30z0yul06/sinopia3/engines/upload, for example a function call with arguments.