Skip to content

Latest commit

 

History

History

lsp17-contracts

LSP17 Extensions Package · npm version

Package for the LSP17 Extensions, that includes the following extensions:

  • Extension4337 extension, which contains the validateUserOp function from the ERC4337 standard.
  • OnERC721ReceivedExtension extension that contains the onERC721Received function from the ERC721 standard.
  • ERCTokenCallbacks extension that contains implemented callback functions with valid returned values from ERC721, ERC1155 and ERC777 to support receiving tokens via the transfer functions that trigger these callbacks.

Installation

npm install @lukso/lsp17-contracts

Available Constants & Types

The @lukso/lsp17-contracts npm package contains useful constants such as interface IDs related to the LSP17 Extensions. You can import and access them as follows:

import { INTERFACE_ID_LSP17Extension } from "@lukso/lsp17-contracts";