InviteValidationHook
Inherits: IValidationHook
CCA bid validation: require a valid invite code in hookData.
Constants
registry
InviteRegistry public immutable registry
Functions
constructor
constructor(InviteRegistry registry_) ;
validate
Validate a bid
MUST revert if the bid is invalid
function validate(uint256, uint128, address owner, address, bytes calldata hookData) external;
Parameters
| Name | Type | Description |
|---|---|---|
<none> | uint256 | |
<none> | uint128 | |
owner | address | The owner of the bid |
<none> | address | |
hookData | bytes | Additional data to pass to the hook required for validation |
Errors
InvalidHookData
error InvalidHookData();