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

sales/v1 package

Overview

Package sales owns launch token custody, direct-creation allocations, fair sales and airdrops. Quote that reaches it through its entry points is owed to someone on record: buyers (escrow and refunds), creators (settled proceeds) or the protocol (fees). Coins sent to it any other way are owed to no one and never leave. It has no admin and no emergency withdrawal path.

Function

FairBuyerJSON

func FairBuyerJSON(id string, buyer address) string

FairBuyerJSON is one buyer's record in a sale and, once the sale is settled and until the buyer is paid, what ClaimFair would send them. Before settlement both amounts are 0 and settled is false: settle first.

Params

Command

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

Result