Skip to main content

Getting Started

caution

This package is currently in the early stages of development. Please use it for testing or experimentation purposes only.

The @lukso/lsp-utils package allows you to interact with the LSPs in a easier way. It provides a set of utility functions. The package is meant to speed up the frontend/backend development using LSP smart contracts.

Modules

Installation

General package

npm install @lukso/lsp-utils

Specific package

npm install @lukso/lsp-utils/LSP2

Usage

import { generateArrayElementKeyAtIndex } from '@lukso/lsp-utils';

const indexDataKey = generateArrayElementKeyAtIndex('ArrayName[]', 1);
import { generateMappingKey } from '@lukso/lsp-utils/LSP2';

const mappingDataKey = generateMappingKey(
'FirstMappingPart',
'SecondMappingPart',
);