Skip to content

lsp7-contracts: v0.15.0

Compare
Choose a tag to compare
@github-actions github-actions released this 05 Apr 16:05
5481427

0.15.0 (2024-04-05)

Installation

npm install @lukso/lsp7-contracts

Type-safe ABIs, contract interfaces and React Hooks

This release includes new type-safe features generated by wagmi:

  • ABIs + typed events
import {
    ilsp7DigitalAssetAbi
    lsp7BurnableAbi
    lsp7BurnableInitAbstractAbi
    lsp7CappedSupplyAbi
    lsp7CappedSupplyInitAbstractAbi
    lsp7DigitalAssetAbi
    lsp7DigitalAssetInitAbstractAbi
    lsp7MintableAbi
    lsp7MintableInitAbi
} from "@lukso/lsp7-contracts/types";
  • React hooks
  • contract Interfaces (based on Viem types) including the following helper functions:
    • getFunction(...)
    • getEvent(...)
    • encodeFunctionData(...)
    • decodeFunctionData(...)

To see all the React hooks available for the LSP7 contracts, you can look at the file @lukso/lsp7-contracts/types/index.ts under your node_modules dependencies.

Available Constants & Types

The @lukso/lsp7-contracts npm package contains useful constants such as InterfaceIds or ERC725Y Data Keys related to the LSP7 Standard. You can import and access them as follow:

import {
  INTERFACE_ID_LSP7,
  INTERFACE_ID_LSP7_PREVIOUS,
  LSP7_TYPE_IDS,
} from "@lukso/lsp7-contracts";

Miscellaneous Chores

  • release lsp-smart-contracts 0.15.0 (fbbd048)