Package for the LSP17 Extensions, that includes the following extensions:
Extension4337
extension, which contains thevalidateUserOp
function from theERC4337
standard.OnERC721ReceivedExtension
extension that contains theonERC721Received
function from theERC721
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.
npm install @lukso/lsp17-contracts
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";