Skip to main content

ILockValidKeyHook

Functions to be implemented by a hasValidKey Hook.

Lock hooks are configured by calling setEventHooks on the lock.

Methods​

hasValidKey​

function hasValidKey(address lockAddress, address keyOwner, uint256 expirationTimestamp, bool isValidKey) external view returns (bool)

If the lock owner has registered an implementer then this hook is called every time balanceOf is called

Parameters​

NameTypeDescription
lockAddressaddressthe address of the current lock
keyOwneraddressthe potential owner of the key for which we are retrieving the balanceof
expirationTimestampuint256the key expiration timestamp
isValidKeyboolundefined

Returns​

NameTypeDescription
_0boolundefined