The AllowedControllers contract manages the allowed delegation and lock controllers within the Unlockd Wallet. It determines which addresses are authorized to perform delegation and locking operations.
Copy function setCollectionAllowance ( address _collection , bool _allowed ) external ; Sets the allowance status of a collection controller.
_collection (address): The address of the collection.
_allowed (bool): A boolean indicating whether the collection controller is allowed.
Emits the Collections event when the allowance status of a collection is set.
Copy function setCollectionsAllowances (
address [] calldata _collections ,
bool [] calldata _allowances
) external ; Sets the allowance statuses of multiple collection controllers.
_collections (address[]): An array of collection addresses.
_allowances (bool[]): An array of allowance statuses corresponding to the collections.
Emits the Collections event for each collection allowance status set.
Sets the allowance status of a delegation controller.
_controller (address): The address of the delegation controller.
_allowed (bool): A boolean indicating whether the delegation controller is allowed.
Emits the DelegationController event when the allowance status of a delegation controller is set.
Sets the allowance statuses of multiple delegation controllers.
_controllers (address[]): An array of delegation controller addresses.
_allowances (bool[]): An array of allowance statuses corresponding to the controllers.
Emits the DelegationController event for each delegation controller allowance status set.
Checks if a collection address is allowed
_collection (address): The address of the collection.
(bool): A boolean indicating whether the collection is allowed.
Checks if an address is an allowed delegation controller.
_controller (address): The address of the delegation controller.
(bool): A boolean indicating whether the delegation controller is allowed.