lsp6-contracts: v0.15.0
0.15.0 (2024-04-05)
Package for the LSP6 Key Manager standard, to enable granting multiple permissions to controllers.
Installation
npm install @lukso/lsp6-contracts
Type-safe ABIs, contract interfaces and React Hooks
This release includes new type-safe features generated by wagmi:
- ABIs + typed events
import {
ilsp6KeyManagerAbi
lsp6KeyManagerAbi
lsp6KeyManagerInitAbi
} from "@lukso/lsp6-contracts/types";
- React hooks
- contract Interfaces (based on Viem types) including the following helper functions:
getFunction(...)
getEvent(...)
encodeFunctionData(...)
decodeFunctionData(...)
To see all the React hooks available for the LSP6 contracts, you can look at the file
@lukso/lsp6-contracts/types/index.ts
under yournode_modules
dependencies.
Available Constants & Types
The @lukso/lsp6-contracts
npm package contains useful constants such as InterfaceIds or ERC725Y Data Keys related to the LSP6 Standard. You can import and access them as follow:
import {
INTERFACE_ID_LSP6,
LSP6DataKeys,
ERC1271_VALUES,
CALLTYPE,
ALL_PERMISSIONS,
PERMISSIONS,
LSP6PermissionName,
} from "@lukso/lsp6-contracts";
Miscellaneous Chores
- release lsp-smart-contracts 0.15.0 (fbbd048)