This package was created with the intent to help developers to use @lukso/lsp-smart-contracts. Its purpose is to provide a series of helper functions for each LSP.
- For more information on LSPs see Documentation on docs.lukso.tech.
- For more information on LIPs see Specification
| This package is currently in early stages of development, use for testing or experimentation purposes only. |
|---|
@lukso/lsp-utils is available as a npm package.
npm install @lukso/lsp-utilsAlternatively you can also clone the repository and install its dependencies to start using the smart contracts.
$ git clone https://github.com/lukso-network/lsp-utils.git
$ cd ./lsp-utils
$ npm installYou can use the utils by importing them as follow:
import { encodeAllowedCalls } from '@lukso/lsp-utils';
const allowedCalls = encodeAllowedCalls(
allowedInteractions,
allowedAddresses,
allowedStandards,
allowedFunctions,
);cosnt { encodeAllowedCalls } = require('@lukso/lsp-utils');
const allowedCalls = encodeAllowedCalls(
allowedInteractions,
allowedAddresses,
allowedStandards,
allowedFunctions
);For more informations check the docs folder