npm.io
0.17.3 • Published 3 months ago

@lukso/lsp17-contracts

Licence
Apache-2.0
Version
0.17.3
Deps
8
Size
65 kB
Vulns
0
Weekly
0
Stars
88

LSP17 Extensions Package · npm version

npm package for the LSP17 Extensions, which include the following extensions contracts:

  • 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";

Keywords