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.

guardians source realm

Functions 74

func AdminMint

crossing Action
1func AdminMint(cur realm, to address, quantity int)
source

AdminMint is for reserve/local-development minting and is permanently locked after the first sale activation to prevent post-sale rare-token allocation.

func AllowlistLeaf

Action
1func AllowlistLeaf(owner address, allowance int, unitPrice int64) string
source

AllowlistLeaf binds a claim to this chain, collection, phase, address, individual allowance and configured unit price.

func ApplyRevealBatch

Action
1func ApplyRevealBatch(startTokenID int64, quantity int)
source

ApplyRevealBatch updates sequentially minted tokens. Anyone may execute the deterministic batch, so the project operator cannot block progress.

func ComputeRevealCommitment

Action
1func ComputeRevealCommitment(secret string) string
source

ComputeRevealCommitment is deterministic but production secrets should be committed with the offline helper, never exposed through a public RPC query.

func ConfigureReveal

crossing Action
1func ConfigureReveal(cur realm, provenance, commitment, baseURI string, deadline int64)
source

ConfigureReveal permanently commits provenance, secret hash and final URI layout before the first token can be minted.

func ConfigureSale

crossing Action
1func ConfigureSale(
2	cur realm,
3	allowlistStart, allowlistEnd int64,
4	publicStart, publicEnd int64,
5	allowlistPrice, publicPrice int64,
6	allowlistLimit, publicLimit int,
7	treasury address,
8)
source

ConfigureSale stores timestamps as Unix seconds and prices in ugnot. Configuration is only mutable while the sale is paused. An end timestamp of zero means no announced deadline, not an already-ended sale.

func MarketplaceTransfer

crossing Action
1func MarketplaceTransfer(cur realm, seller, buyer address, tokenID string, grossPrice, nonce int64)
source

MarketplaceTransfer is the only operator-transfer route. The authorized market supplies its consumed listing nonce and gross price for audit events.

func Mint

crossing Action
1func Mint(cur realm, freeQuantity, paidQuantity, allowance int, unitPrice int64, proof string)
source

Mint preserves the pilot's one-button, free-first split. Each allowance is checked independently and exact payment/forwarding is atomic with minting.

func MintPublic

crossing Action
1func MintPublic(cur realm, quantity int)
source

MintPublic accepts only direct Adena/EOA calls. This pairing is critical: OriginSend describes actual receipt by this realm only for a direct user call.

func ReleaseAllowlistReserve

crossing Action
1func ReleaseAllowlistReserve(cur realm)
source

This one-way administrator action releases only the still-unclaimed stock. It does NOT change the proof root, free price, or individual free entitlement. No timer, public mint, or claim can trigger this release automatically.

func Reveal

crossing Action
1func Reveal(cur realm, secret string)
source

Only the administrator can manually begin reveal after sale end or sellout. Neither a deadline nor knowledge of the secret alone starts the reveal.

func SaleSnapshot

Action
1func SaleSnapshot() string
source

One read produces a consistent supply/reserve/timing snapshot and avoids issuing thousands of owner queries as the collection approaches 3,333.

func SetAllowlistRoot

crossing Action
1func SetAllowlistRoot(cur realm, root string)
source

SetAllowlistRoot accepts a lowercase/uppercase 32-byte SHA-256 hash in hex. The first sale unpause permanently locks the root for this deployment.

func SetAuthorizedMarketplace

crossing Action
1func SetAuthorizedMarketplace(cur realm, marketplace address)
source

SetAuthorizedMarketplace is a one-time binding made before minting. Keeping the PrivateLedger and Token handle private prevents other approved operators from bypassing the official royalty settlement path.

func SetPublicEnd

crossing Action
1func SetPublicEnd(cur realm, end int64)
source

SetPublicEnd announces a deadline without pausing or changing price, wallet limits, roots, or counters. A completed sale cannot be reopened this way. Set end to the current block time to close immediately, or a future time to announce an end countdown. Zero is reserved for initial configuration.

func SetVeiledURI

crossing Action
1func SetVeiledURI(cur realm, uri string)
source

SetVeiledURI allows the final placeholder CID to be configured once before minting begins. Existing token URIs are never silently rewritten.

func VerifyAllowlist

Action
1func VerifyAllowlist(owner address, allowance int, unitPrice int64, proof string) bool
source

VerifyAllowlist expects comma-separated 64-character hex sibling hashes. Pair hashing is sorted, so proofs do not need left/right direction flags.

Dependencies

Source Files 10