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-utils
Alternatively 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 install
You can use the utils by importing them as follow:
import { encodeAllowedCalls } from '@lukso/lsp-utils/dist/lib/es6';
const allowedCalls = encodeAllowedCalls(
allowedInteractions,
allowedAddresses,
allowedStandards,
allowedFunctions,
);
cosnt { encodeAllowedCalls } = require('@lukso/lsp-utils/dist/lib/es5');
const allowedCalls = encodeAllowedCalls(
allowedInteractions,
allowedAddresses,
allowedStandards,
allowedFunctions
);
For more informations check the docs
folder