Search Apps Documentation Source Content File Folder Download Copy Actions Download 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

CapabilitiesJSON

func CapabilitiesJSON(id string) string

CapabilitiesJSON tells a wallet or a market what a holder of this collection can do, without it knowing the modes. "markets" is empty when any operator may be approved. Royalties are paid by markets at sale. "royaltyEnforcement" is "none" without royalties; "market_sales" for an open collection, where the ledger enforces nothing: a market that honours royalties pays them at a sale, and a direct transfer or any other realm pays none; "listed_markets" when the ledger lets a token move only through the realms in "markets". Whether a listed realm pays is the word of the creator who listed it. "creatorRevoke" is the creator's right to revoke a token of a revocable soulbound collection.

Param

Command

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

Result