npm.io
0.16.3 • Published 3 months ago

@lukso/lsp0-contracts

Licence
Apache-2.0
Version
0.16.3
Deps
7
Size
354 kB
Vulns
0
Weekly
0
Stars
88

LSP0 ERC725Account · npm version

npm package for the LSP0 ERC725Account standard.

Installation

npm install @lukso/lsp0-contracts

Available Constants & Types

The @lukso/lsp0-contracts npm package contains useful constants such as interface IDs, and ERC725Y data keys related to the LSP0 Standard. You can import and access them as follows.

In JavaScript.

import {
  INTERFACE_ID_LSP0,
  OPERATION_TYPES,
  LSP0_TYPE_IDS,
  ERC1271_VALUES,
} from "@lukso/lsp0-contracts";

In Solidity.

import {
  _INTERFACEID_LSP0,
  _INTERFACEID_ERC1271,
  _ERC1271_SUCCESSVALUE,
  _ERC1271_FAILVALUE,
  _TYPEID_LSP0_VALUE_RECEIVED,
  _TYPEID_LSP0_OwnershipTransferStarted,
  _TYPEID_LSP0_OwnershipTransferred_SenderNotification,
  _TYPEID_LSP0_OwnershipTransferred_RecipientNotification
} from "@lukso/lsp0-contracts/contracts/LSP0Constants.sol";

TypeScript types

You can also import the type-safe ABI of each LSP smart contract from the /abi path.

import {
  lsp0Erc725AccountAbi,
  lsp0Erc725AccountInitAbi,
} from "@lukso/lsp0-contracts/abi";

Keywords