Skip to content

lsp9-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)

Package for the LSP9 Vault standard.

Installation

npm install @lukso/lsp9-contracts

Type-safe ABIs, contract interfaces and React Hooks

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

  • ABIs + typed events
import {
    lsp9VaultAbi,
    lsp9VaultInitAbi
} from "@lukso/lsp9-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 LSP9 contracts, you can look at the file @lukso/lsp9-contracts/types/index.ts under your node_modules dependencies.

Available Constants & Types

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

import {
  OPERATION_TYPES,
  INTERFACE_ID_LSP9,
  LSP9_TYPE_IDS,
  LSP9DataKeys,
  LSP9SupportedStandard,
} from "@lukso/lsp9-contracts";

Miscellaneous Chores

  • release lsp-smart-contracts 0.15.0 (fbbd048)