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_pilot_v1 source realm

Functions 65

func ActivatePilotSale

crossing Action
1func ActivatePilotSale(cur realm)
source

Activate once, after metadata and proofs are ready. Both purchase modes share the same on-chain 24-hour window beginning in this activation transaction.

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.

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 applies an explicit free/paid split in one atomic direct-user call. The caller reviews the split and payment in Adena before signing.

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 Reveal

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

The pilot owner reveals manually after the full 24-hour sale window. Selling out early never starts reveal, and no timer invokes this function.

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 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 8