AirdropCovenant enforces a fixed-amount self-service token distribution. Anyone can call claim() within the time window.
Contract path: contracts/core/distribution/AirdropCovenant.cash
Parameters
| Parameter | Type | Description |
|---|---|---|
vaultId | bytes32 | Links to source vault |
authorityHash | bytes20 | Controls pause/resume/cancel |
amountPerClaim | int | Fixed amount per claim |
totalPool | int | Total distribution pool |
startTimestamp | int | Claims open time. 0 = immediate. |
endTimestamp | int | Claims close time. 0 = no expiry. |
NFT State (40 bytes)
Functions
claim(sig claimerSig, pubkey claimerPubkey, bytes20 claimerHash)
Self-service. Claimer signs and provides their own hash160. Validates time window and pool availability.
Auto-completes when newTotalClaimed >= totalPool
pause(sig authSig, pubkey authPubkey)
resume(sig authSig, pubkey authPubkey)
cancel(sig authSig, pubkey authPubkey)
Authority-only. Cancel returns totalPool - totalClaimed to authorityHash.
