Convenient code snippets to interact with LSP standards on LUKSO. Code examples are taken from the LUKSO Tech Docs and are working as standalone scripts.
universal-profile
: Universal Profile related scriptsdigital-assets
: Digital assets (LSP7/8) scriptsinterface-detection
: Verify EIP165 Standard Compatibilitykey-manager
: Permission Management of Controller Keysmetadata-detection
: Verify ERC725Y Storage Compatabilitytransfer-lyx
: Coin Transfers for Backend and Extension
smart-contracts-hardhat
: Hardhat Smart Contract Deployment Setup and Scripts
Please check the versions used in the package.json
A lot of these scripts should run with
ts-node
in development environnements, but you might be encountering issues because of ESM dependencies.
This repository uses the bun toolkit to manage packages and run scripts.Make sure to install it first.
Then clone this repository and install its dependencies.
git clone https://github.com/lukso-network/lukso-playground.git
cd lukso-playground && bun install
Run the TypeScript code of one file within the terminal using bun
.
bun file-path/script.ts
We highly recommend that developers fetch and store profile or asset data using their own IPFS gateway solutions like Pinata or Infura. For development purposes, this repository uses the following RPC to fetch mainnet and testnet data:
- IPFS Gateway:
https://api.universalprofile.cloud/ipfs
LUKSO does not provide an official gateway for uploading asset data.