0.15.1 • Published 7 months ago

@lukso/lsp6-contracts v0.15.1

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
7 months ago

LSP6 Key Manager · npm version

Package for the LSP6 Key Manager standard, to enable granting multiple permissions to controllers.

Installation

npm install @lukso/lsp6-contracts

Available Constants & Types

The @lukso/lsp6-contracts npm package contains useful constants such as interface IDs or ERC725Y Data Keys related to the LSP6 Standard. You can import and access them as follows.

In Javascript.

import {
  INTERFACE_ID_LSP6,
  LSP6DataKeys,
  ERC1271_VALUES,
  CALLTYPE,
  ALL_PERMISSIONS,
  PERMISSIONS,
  LSP6PermissionName,
} from "@lukso/lsp6-contracts";

In Solidity.

import {
  _INTERFACEID_ERC1271,
  _ERC1271_SUCCESSVALUE,
  _ERC1271_FAILVALUE
} from "@lukso/lsp6-contracts/contracts/constants.sol";

Typescript types

You can also import the type-safe ABI from the /abi path.

import {
  lsp6KeyManagerAbi,
  lsp6KeyManagerInitAbi,
} from "@lukso/lsp6-contracts/abi";