Universal Receiver Type IDs
The LSP1 type Ids listed below correspond to unique identifiers used across the LSP standards.
They are used by various smart contracts to notify sender and recipients contracts implementing LSP1 about various incoming or outgoing information. For instance, notify a sender that some LSP7 tokens are being transferred from its balance, or a recipient about receiving some LSP7 tokens.
The type Ids listed below cna be exported and accessed from the @lukso/lsp-smart-contracts
package as follow:
import { LSP1_TYPE_IDS } from "@lukso/lsp-smart-contracts";
// access the typeId related to being notified when receiving LYX (= native tokens)
LSP1_TYPE_IDS.
// access the typeId related to being notified when receiving LSP7 tokens
LSP1_TYPE_IDS.
LSP0 - ERC725 Account
LSP0ValueReceived
Name | "LSP0ValueReceived" |
Hash | 0x9c4705229491d365fb5434052e12a386d6771d976bea61070a8c694e8affea3d |
Used in: | constructor(address) , receive() , fallback(bytes) , execute(uint256,address,uint256,bytes) , executeBatch(uint256[],address[],uint256[],bytes[]) , setData(bytes32,bytes) , setDataBatch(bytes32[],bytes[]) |
Solidity constant: | _TYPEID_LSP0_VALUE_RECEIVED |
Javascript constant: | LSP1_TYPE_IDS.LSP0ValueReceived |
LSP0OwnershipTransferStarted
Name | "LSP0OwnershipTransferStarted" |
Hash | 0xe17117c9d2665d1dbeb479ed8058bbebde3c50ac50e2e65619f60006caac6926 |
Used in: | transferOwnership(address) |
Solidity constant: | _TYPEID_LSP0_OwnershipTransferStarted |
Javascript constant: | LSP1_TYPE_IDS.LSP0OwnershipTransferStarted |
LSP0OwnershipTransferred_SenderNotification
Name | "LSP0OwnershipTransferred_SenderNotification" |
Hash | 0xa4e59c931d14f7c8a7a35027f92ee40b5f2886b9fdcdb78f30bc5ecce5a2f814 |
Used in: | acceptOwnership() renounceOwnership() |
Solidity constant: | _TYPEID_LSP0_OwnershipTransferred_SenderNotification |
Javascript constant: | LSP1_TYPE_IDS.LSP0OwnershipTransferred_SenderNotification |
LSP0OwnershipTransferred_RecipientNotification
Name | "LSP0OwnershipTransferred_RecipientNotification" |
Hash | 0xceca317f109c43507871523e82dc2a3cc64dfa18f12da0b6db14f6e23f995538 |
Used in: | acceptOwnership() |
Solidity constant: | _TYPEID_LSP0_OwnershipTransferred_RecipientNotification |
Javascript constant: | LSP1_TYPE_IDS.LSP0OwnershipTransferred_RecipientNotification |
LSP7 - Digital Asset
LSP7Tokens_SenderNotification
Name | "LSP7Tokens_SenderNotification" |
Hash | 0x429ac7a06903dbc9c13dfcb3c9d11df8194581fa047c96d7a4171fc7402958ea |
Used in: | _burn(address,uint256,bytes) , _transfer(address,address,uint256,bool,bytes) |
Solidity constant: | _TYPEID_LSP7_TOKENSSENDER |
Javascript constant: | LSP1_TYPE_IDS.LSP7Tokens_SenderNotification |
LSP7Tokens_RecipientNotification
Name | "LSP7Tokens_RecipientNotification" |
Hash | 0x20804611b3e2ea21c480dc465142210acf4a2485947541770ec1fb87dee4a55c |
Used in: | _mint(address,uint256,bool,bytes) , _transfer(address,address,uint256,bool,bytes) |
Solidity constant: | _TYPEID_LSP7_TOKENSRECIPIENT |
Javascript constant: | LSP1_TYPE_IDS.LSP7Tokens_RecipientNotification |
LSP7Tokens_OperatorNotification
Name | "LSP7Tokens_OperatorNotification" |
Hash | 0x386072cc5a58e61263b434c722725f21031cd06e7c552cfaa06db5de8a320dbc |
Used in: | authorizeOperator(address,uint256,bytes) , revokeOperator(address,bool,bytes) , increaseAllowance(address,uint256,bytes) , decreaseAllowance(address,uint256,bytes) |
Solidity constant: | _TYPEID_LSP7_TOKENOPERATOR |
Javascript constant: | LSP1_TYPE_IDS.LSP7Tokens_OperatorNotification |
LSP8 - Identifiable Digital Asset
LSP8Tokens_SenderNotification
Name | "LSP8Tokens_SenderNotification" |
Hash | 0xb23eae7e6d1564b295b4c3e3be402d9a2f0776c57bdf365903496f6fa481ab00 |
Used in: | _burn(bytes32,bytes) , _transfer(address,address,bytes32,bool,bytes) |
Solidity constant: | _TYPEID_LSP8_TOKENSSENDER |
Javascript constant: | LSP1_TYPE_IDS.LSP8Tokens_SenderNotification |
LSP8Tokens_RecipientNotification
Name | "LSP8Tokens_RecipientNotification" |
Hash | 0x0b084a55ebf70fd3c06fd755269dac2212c4d3f0f4d09079780bfa50c1b2984d |
Used in: | _mint(address,bytes32,bool,bytes) , _transfer(address,address,bytes32,bool,bytes) |
Solidity constant: | _TYPEID_LSP8_TOKENSRECIPIENT |
Javascript constant: | LSP1_TYPE_IDS.LSP8Tokens_RecipientNotification |
LSP8Tokens_OperatorNotification
Name | "LSP8Tokens_OperatorNotification" |
Hash | 0x468cd1581d7bc001c3b685513d2b929b55437be34700410383d58f3aa1ea0abc |
Used in: | authorizeOperator(address,bytes32,bytes) , revokeOperator(address,bytes32,bool,bytes) |
Solidity constant: | _TYPEID_LSP8_TOKENOPERATOR |
Javascript constant: | LSP1_TYPE_IDS.LSP8Tokens_OperatorNotification |
LSP9 - Vault
LSP9ValueReceived
Name | "LSP9ValueReceived" |
Hash | 0x468cd1581d7bc001c3b685513d2b929b55437be34700410383d58f3aa1ea0abc |
Used in: | constructor(address) , receive() , fallback(bytes) , execute(uint256,address,uint256,bytes) , executeBatch(uint256[],address[],uint256[],bytes[]) |
Solidity constant: | _TYPEID_LSP9_VALUE_RECEIVED |
Javascript constant: | LSP1_TYPE_IDS.LSP9ValueReceived |
LSP9OwnershipTransferStarted
Name | "LSP9OwnershipTransferStarted" |
Hash | 0xaefd43f45fed1bcd8992f23c803b6f4ec45cf6b62b0d404d565f290a471e763f |
Used in: | transferOwnership(address) |
Solidity constant: | _TYPEID_LSP9_OwnershipTransferStarted |
Javascript constant: | LSP1_TYPE_IDS.LSP9OwnershipTransferStarted |
LSP9OwnershipTransferred_SenderNotification
Name | "LSP9OwnershipTransferred_SenderNotification" |
Hash | 0x0c622e58e6b7089ae35f1af1c86d997be92fcdd8c9509652022d41aa65169471 |
Used in: | acceptOwnership() renounceOwnership() |
Solidity constant: | _TYPEID_LSP9_OwnershipTransferred_SenderNotification |
Javascript constant: | LSP1_TYPE_IDS.LSP9OwnershipTransferred_SenderNotification |
LSP9OwnershipTransferred_RecipientNotification
Name | "LSP9OwnershipTransferred_RecipientNotification" |
Hash | 0x79855c97dbc259ce395421d933d7bc0699b0f1561f988f09a9e8633fd542fe5c |
Used in: | acceptOwnership() |
Solidity constant: | _TYPEID_LSP9_OwnershipTransferred_RecipientNotification |
Javascript constant: | LSP1_TYPE_IDS.LSP9OwnershipTransferred_RecipientNotification |
LSP14 - Ownable 2-Step
LSP14OwnershipTransferStarted
Name | "LSP14OwnershipTransferStarted" |
Hash | 0xee9a7c0924f740a2ca33d59b7f0c2929821ea9837ce043ce91c1823e9c4e52c0 |
Used in: | transferOwnership(address) |
Solidity constant: | _TYPEID_LSP14_OwnershipTransferStarted |
Javascript constant: | LSP1_TYPE_IDS.LSP14OwnershipTransferStarted |
LSP14OwnershipTransferred_SenderNotification
Name | "LSP14OwnershipTransferred_SenderNotification" |
Hash | 0xa124442e1cc7b52d8e2ede2787d43527dc1f3ae0de87f50dd03e27a71834f74c |
Used in: | acceptOwnership() renounceOwnership() |
Solidity constant: | _TYPEID_LSP14_OwnershipTransferred_SenderNotification |
Javascript constant: | LSP1_TYPE_IDS.LSP14OwnershipTransferred_SenderNotification |
LSP14OwnershipTransferred_RecipientNotification
Name | "LSP14OwnershipTransferred_RecipientNotification" |
Hash | 0xe32c7debcb817925ba4883fdbfc52797187f28f73f860641dab1a68d9b32902c |
Used in: | acceptOwnership() |
Solidity constant: | _TYPEID_LSP14_OwnershipTransferred_RecipientNotification |
Javascript constant: | LSP1_TYPE_IDS.LSP14OwnershipTransferred_RecipientNotification |