Skip to content

Latest commit

 

History

History

lsp7-contracts

LSP7 Digital Asset · npm version

Package for the LSP7 Digital Asset standard.

Installation

npm install @lukso/lsp7-contracts

Available Constants & Types

The @lukso/lsp7-contracts npm package contains useful constants such as interface IDs or ERC725Y data keys related to the LSP7 Standard. You can import and access them as follows:

import {
  INTERFACE_ID_LSP7,
  INTERFACE_ID_LSP7_PREVIOUS,
  LSP7_TYPE_IDS,
} from "@lukso/lsp7-contracts";

The LSP7_TYPE_IDS includes type IDs for the following type of notifications:

'LSP7Tokens_SenderNotification';
'LSP7Tokens_RecipientNotification';
'LSP7Tokens_OperatorNotification';
'LSP7Tokens_VotesDelegatorNotification';
'LSP7Tokens_VotesDelegateeNotification';