Search…
⌃K

RollingMerkleDistributorTypes

Defines the data, error, and event types used by the RollingMerkleDistributor contract.

Events

Claimed

event Claimed(uint256 indexed window, uint256 index, address indexed claimant, uint256 amount)
Updated when an account completes a proof based claim.

Parameters

Name
Type
Description
window indexed
uint256
undefined
index
uint256
undefined
claimant indexed
address
undefined
amount
uint256
undefined

MerkleRootRolledOver

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.

Parameters

Name
Type
Description
merkleRoot indexed
bytes32
undefined
windowEnd
uint256
undefined

Errors

AlreadyClaimed

error AlreadyClaimed()
Thrown if a claimant attempts to claim funds that were already claimed.

InvalidPeriod

error InvalidPeriod()
Thrown if there is an attempt to define a claim window period that is 0 seconds, or too long.

InvalidProof

error InvalidProof()
Thrown if the claimant provides an invalid Merkle proof when attempting to claim.

OutsideClaimWindow

error OutsideClaimWindow()
Thrown if a claim is attempted after the claim window has closed, but before its rolled over.

PriorWindowStillOpen

error PriorWindowStillOpen()
Thrown if there is an attempt to rollover while the current claim window is still open.