Package for the LSP6 Key Manager standard, to enable granting multiple permissions to controllers.
npm install @lukso/lsp6-contracts
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";
You can also import the type-safe ABI from the /abi
path.
import {
lsp6KeyManagerAbi,
lsp6KeyManagerInitAbi,
} from "@lukso/lsp6-contracts/abi";