npm.io
0.16.3 • Published 3 months ago

@lukso/lsp6-contracts

Licence
Apache-2.0
Version
0.16.3
Deps
8
Size
426 kB
Vulns
0
Weekly
0
Stars
88

LSP6 Key Manager · npm version

npm package for the LSP6 Key Manager standard. It can be used with a Universal Profile or an LSP7/8 Token contract to manage these contracts from multiple addresses ("controllers"), with multiple permissions and fine-grained access control.

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

Keywords