AllowedControllers
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.
Key Functions:
function setCollectionAllowance(address _collection, bool _allowed) external;
Sets the allowance status of a collection controller.
Parameters:
_collection
(address): The address of the collection.
_allowed
(bool): A boolean indicating whether the collection controller is allowed.
Interactions:
Emits the Collections
event when the allowance status of a collection is set.
function setCollectionsAllowances(
address[] calldata _collections,
bool[] calldata _allowances
) external;
Sets the allowance statuses of multiple collection controllers.
Parameters:
_collections
(address[]): An array of collection addresses.
_allowances
(bool[]): An array of allowance statuses corresponding to the collections.
Interactions:
Emits the Collections
event for each collection allowance status set.
function setDelegationControllerAllowance(
address _controller,
bool _allowed
) external;
Sets the allowance status of a delegation controller.
Parameters:
_controller
(address): The address of the delegation controller.
_allowed
(bool): A boolean indicating whether the delegation controller is allowed.
Interactions:
Emits the DelegationController
event when the allowance status of a delegation controller is set.
function setDelegationControllerAllowances(
address[] calldata _controllers,
bool[] calldata _allowances
) external;
Sets the allowance statuses of multiple delegation controllers.
Parameters:
_controllers
(address[]): An array of delegation controller addresses.
_allowances
(bool[]): An array of allowance statuses corresponding to the controllers.
Interactions:
Emits the DelegationController
event for each delegation controller allowance status set.
function isAllowedCollection(
address _collection
) external view returns (bool);#
Checks if a collection address is allowed
Parameters:
_collection
(address): The address of the collection.
Returns:
(bool): A boolean indicating whether the collection is allowed.
function isAllowedDelegationController(address _controller) external view returns (bool);
Checks if an address is an allowed delegation controller.
Parameters:
_controller
(address): The address of the delegation controller.
Returns:
(bool): A boolean indicating whether the delegation controller is allowed.
Last updated