Skip to content Search Apps Documentation Source Content 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.

mint/v1 package

Overview

Package mint is the platform's first minter (design §2.5.3): sale phases, fixed price or Dutch auction, live and merkle allowlists, lifetime wallet caps, and payment settlement. It is replaceable: core binds each collection to the minter that created it, so a future mint/v2 serves new collections without touching sales in progress.

Creator flow (one multi-message transaction from the frontend; safety does not depend on atomicity because nobody can mint a Draft):

Example
1Create -> AddPhase x1..3 -> Launch

Collector flow: Mint, with Price / Phases / Eligible as the read side.

Function

Eligible

func Eligible(cid string, addr address, proof string) string
Ask AI Claude ChatGPT

Eligible answers "can addr mint now, and how many?" with the same checks Mint runs, so the UI never disagrees with the chain (OA B3). JSON: {phase, kind, eligible, reason, remainingCap (-1 = no cap), price}.

Params

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g19dzk54hhsdc3gllpksuj6gu4a3e6fl8cr6rn4w/minhwa2/mint/v1.Eligible(,,)"

Result