merkleRoot
untyped stringmerkleRoot commits to the airdrop allocation set. Generated off-chain with the exact scheme above over the four example recipients in README.md.
Value
"0d00b73577019dc92924f0ae001d3e1839d51fb358adda2ad1510c39eb82b13f"
claimed
v0.Treeclaimed maps claimer address string -> claimed amount (uint64).
- OID
- 0f7653…197c:4
claimed details
totalClaimed
uint64totalClaimed is the running sum of all claimed allocations.
Value
0
leaf
func(claimer .uverse.address, amount uint64) []uint8leaf computes the tree leaf for an (address, amount) allocation.
- OID
- 0f7653…197c:6
leaf details
hashPair
func(a []uint8, b []uint8) []uint8hashPair hashes two nodes in sorted order (commutative), so the proof does not need to encode child positions.
- OID
- 0f7653…197c:8
hashPair details
parseProof
func(proof string) [][]uint8parseProof splits a comma-separated list of hex hashes into raw 32-byte nodes, panicking on any malformed element.
- OID
- 0f7653…197c:9
parseProof details
computeRoot
func(leafHash []uint8, proof [][]uint8) stringcomputeRoot walks the proof from the given leaf up to a candidate root and returns its hex encoding.
- OID
- 0f7653…197c:10
computeRoot details
Verify
func(claimer .uverse.address, amount uint64, proof string) boolVerify reports whether (claimer, amount, proof) resolves to merkleRoot. Pure and read-only — safe to call from tests and Render.
- OID
- 0f7653…197c:11
Verify details
AmountClaimed
func(claimer .uverse.address) uint64AmountClaimed returns how much the address has already claimed (0 if none).
- OID
- 0f7653…197c:12
AmountClaimed details
HasClaimed
func(claimer .uverse.address) boolHasClaimed reports whether the address already claimed.
- OID
- 0f7653…197c:13
HasClaimed details
Claim
func(amount uint64, proof string)Claim proves the caller is entitled to \`amount\` via \`proof\` (comma-separated hex sibling hashes) and marks the allocation claimed. Panics on a bad proof or a double claim. Mirrors MerkleDistributor.claim (msg.sender is the caller).
- OID
- 0f7653…197c:14
Claim details
Render
func(path string) stringRender shows the committed root, aggregate stats, and the list of claimers.
- OID
- 0f7653…197c:15