Skip to main content

Universal Receiver Delegate

There are two default implementations of the LSP1 Delegate contracts available, each for different use cases.

ContractDescription
LSP1UniversalReceiverDelegateUP.solAdd feature to a LSP0ERC725Account to registered and un-register tokens (LSP7 and LSP8) and vaults (LSP9) received.
LSP1UniversalReceiverDelegateVault.solAdd feature to a LSP9Vault to register and un-register tokens (LSP7 and LSP8).

Routing​

The Universal Profile implementation allows for attaching multiple instances of Universal Receiver Delegate to it. This is due to LSP1 Routing. You could have a single General Purpose Unviersal Receiver Delegate and multiple instances of Specific Unviersal Receiver Delegate.

A General Purpose Universal Receiver Delegate has its address stored under the LSP1UniversalReceiverDelegate Singleton data key. This contract will be called on any LSP1 hook, meaning that it can potentially react on any TypeID.

A Specific Universal Receiver Delegate has its address stored under the LSP1UniversalReceiverDelegate Mapping data key. This contract will be called on specific LSP1 hook, depending on the TypeID that was passed as a parameter in the hook, meaning that it only reacts on a single specific TypeID.