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

Bind

func Bind(cur realm, cid string)
Ask AI Claude ChatGPT

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; no primary or royalty payee is this realm or assets/v1 (SA-L5). Event StoreBound{store, cid}.

Param

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1jz6j9hj6rdf5ltl2kcrpa4jwtdh3w30z0yul06/sinopia3/engines/upload" -func "Bind" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1jz6j9hj6rdf5ltl2kcrpa4jwtdh3w30z0yul06/sinopia3/engines/upload" -func "Bind" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

Gno Expression Evaluator

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