0.15.1 • Published 7 months ago

@lukso/lsp0-contracts v0.15.1

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
7 months ago

LSP0 ERC725Account · npm version

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 contracts from the /abi path.

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