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

drops/v1 package

Overview

Package drops creates Launchpad NFT collections and runs their primary mints. It charges the collection fee and each mint price, and pays the treasury and the creator inside the same transaction: it holds no funds between calls and has no admin.

Function

AllowlistLeaf

func AllowlistLeaf(id string, index int, who address, allowance int64) merkle.Hash

AllowlistLeaf is the Merkle leaf that lets who mint up to allowance tokens in one stage: sha256(0x00 || "launchpad-drop-v1|<collection>|<stage>|<address>|<allowance>"). Only the chain's spelling of an address makes a leaf: a list written in capitals would name accounts that can never claim.

Params

Command

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

Result