👩‍💻
Unlockd Developers Docs
Unlockd for Devs V2
Unlockd for Devs V2
  • Introduction
  • ⚙️Core
    • Unlockd
    • BaseCore
    • BaseCoreModule
  • ⚙️Modules
    • Installer
    • Manager
    • Action
    • SellNow
    • BuyNow
    • Market
    • Auction
  • 🆕Vault and Tokens
    • UTokenVault
    • BaseToken
    • ScaledToken
    • WethGateway
  • 🆕Adapters and Strategies
    • ReservoirAdapter
    • MaxApyStrategy
  • 🆕Storage
    • CoreStorage
    • UVaultStorage
  • 📔Deployed Contracts
    • Ethereum Sepolia
    • Ethereum Mainnet
  • 📫Unlockd Account (Wallet)
    • Introduction
    • Architecture
    • DelegationWalletFactory
    • DelegationWalletRegistry
    • DelegationOwner
    • GuardOwner
    • ProtocolOwner
    • TransactionGuard
    • DelegationRecipes
    • AllowedControllers
    • Deployed Contracts
      • Ethereum Sepolia (Testnet)
  • 🧰SDK
    • Typescript Package
    • SDK Docs
  • 🤝DEVELOPERS HELP
    • Best Practices
    • Security and Risk Management
    • Github
    • Bug Bounty - ACTIVE
Powered by GitBook
On this page
  • Key Functions:
  • Parameters:
  • Interactions:
  • Parameters:
  • Interactions:
  • Parameters:
  • Interactions:
  • Parameters:
  • Interactions:
  • Parameters:
  • Returns:
  • Parameters:
  • Returns:
  1. Unlockd Account (Wallet)

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.

PreviousDelegationRecipesNextDeployed Contracts

Last updated 1 year ago

📫