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

nft/v1 package

Overview

Package nft is the Launchpad collection ledger. Each collection is a GRC721 token whose transfer mode, royalties and metadata rules are fixed at creation. Collections are created, and their tokens minted, only by issuer realms: the Launchpad drops realm and any realm the config admin adds. Holders move, approve and burn their own tokens. The ledger has no admin of its own: nothing here can move a holder's token or change a collection's terms, and a paused lane stops only new collections and new mints.

Function

RevealCommitment

func RevealCommitment(creator address, salt, baseURI string) string
Ask AI Claude ChatGPT

RevealCommitment is what a creator commits to at creation and opens at Reveal: sha256("launchpad-reveal-v1|<creator>|<salt>|<base URI>"), with a salt of 64 hex digits the creator keeps secret until then. The salt keeps a guessed URI from being confirmed before the reveal. The creator's address keeps another account from reusing the commitment: a collection's ID does not exist yet when its creator commits, so the account stands in for it.

Params

Command

gnokey query vm/qeval -remote "https://rpc.gno.land" -data "gno.land/r/samcrew/launchpad/nft/v1.RevealCommitment(,,)"

Result

Gno Expression Evaluator

Evaluate any read-only Gno expression against gno.land/r/samcrew/launchpad/nft/v1, for example a function call with arguments.