RollingMerkleDistributorTypes
Defines the data, error, and event types used by the RollingMerkleDistributor contract.
event Claimed(uint256 indexed window, uint256 index, address indexed claimant, uint256 amount)
Updated when an account completes a proof based claim.
Name | Type | Description |
---|---|---|
window indexed | uint256 | undefined |
index | uint256 | undefined |
claimant indexed | address | undefined |
amount | uint256 | undefined |
event MerkleRootRolledOver(bytes32 indexed merkleRoot, uint256 windowEnd)
Emitted when an authorized account rolls over the Merkle root and claim window. Also emitted on deploy with initial root and claim window.
Name | Type | Description |
---|---|---|
merkleRoot indexed | bytes32 | undefined |
windowEnd | uint256 | undefined |
error AlreadyClaimed()
Thrown if a claimant attempts to claim funds that were already claimed.
error InvalidPeriod()
Thrown if there is an attempt to define a claim window period that is 0 seconds, or too long.
error InvalidProof()
Thrown if the claimant provides an invalid Merkle proof when attempting to claim.
error OutsideClaimWindow()
Thrown if a claim is attempted after the claim window has closed, but before its rolled over.
error PriorWindowStillOpen()
Thrown if there is an attempt to rollover while the current claim window is still open.
Last modified 4mo ago