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

doc.gno

1.31 Kb · 24 lines
 1// Package gnofly is the wrapper that puts gnofly's planes on Bazaar
 2// (bazaar.gnomi.fun), the NFT marketplace of gno.land.
 3//
 4// Bazaar lists the collections registered on its factory, bazaarv5, and sends
 5// its site's List, Buy and Cancel to the collection's own package. This realm
 6// is that package for the planes: Init registers it under the slug "gnofly"
 7// (its last path element), and it holds the book. It mints nothing: the
 8// planes are the tokens of
 9// gno.land/r/g1t2kg2vtr3fukg43eujkn6x53gfdyakhngt4sfd/gnofly/nfts/planes,
10// moved with that realm's TransferFrom. A seller first approves this realm
11// there (Approve, or SetApprovalForAll once); List then moves the plane here,
12// in escrow, Buy hands it to the buyer and Cancel back to the seller.
13//
14// A sale pays, out of its price: Bazaar's fee (read from the factory: its
15// ProtocolBps less the holder discount, split between its sinks), the planes
16// realm's royalty (5% to the gnofly treasury), and the rest to the seller.
17//
18// It is version v1 of the market; v0 is the same book without Bazaar, which
19// cannot register. SetPaused stops new listings for a move to a newer version;
20// Cancel and Buy keep working, so no plane is ever stuck here.
21//
22// Every write is a direct call from a wallet: no realm can list, buy or
23// cancel in a user's name.
24package gnofly