Skip to content

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

Smart contract implementations of LSP1 Universal Receiver Delegate
to register and manage:

  • LSP5 Received Assets
  • LSP10 Vaults

Currently there are Universal Receiver Delegate contracts for:

Installation

npm install @lukso/lsp1delegate-contracts

Type-safe ABIs, contract interfaces and React Hooks

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

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

Available Constants & Types

The @lukso/lsp1delegate-contracts npm package contains useful constants such as InterfaceIds related to the LSP1Delegate Standard. You can import and access them as follow:

import { INTERFACE_ID_LSP1DELEGATE } from "@lukso/lsp1delegate-contracts";

Miscellaneous Chores

  • release lsp-smart-contracts 0.15.0 (fbbd048)