/lukso-playground

Code snippets to interact with Universal Profiles and other LSP standards

This repository was transferred to lukso-network/lukso-playground and is no longer maintained.

lukso-playground

Convenient and standalone code snippets to interact with LSP standards.

Foundation

Most snippets were taken from LUKSO Tech Docs and work completely autonomously.

Contents

Tags

  • legacy: Legacy LSP standards on L14 (universalprofile.cloud)
  • current: Latest LSP standards on L16
  • none: using latest standards and version of erc725.js

Folders

project
│
└───convenience                                     // Utility Functions
│   │   Check Blockchain Addresses
│   │   Create Externally Owned Account
│
└───create-asset                                    // Create LSP7 & LSP8
│   │   WIP
|
└───create-profile                                  // Create UP
│   │   Create Universal Profile
|
└───create-vault                                    // Create UP
│   │   WIP
|
└───extract-data                                    // Extract LSP JSON
│   │   Extract Data from Asset JSON
│   │   Extract Data from Profile JSON
|
└───fetch-asset                                     // Fetch LSP7 & LSP8
│   │
│   └───current/legacy
│       │   Fetch Owned Assets
│       │   Fetch Asset Data
│       │   Complete Asset Guide
|
└───fetch-profile                                   // Fetch UP
|   │   Fetch Universal Receiver
|   │   Read Profile Data
|   │   Read Profile Metadata
|   │   Complete Profile Guide
|
└───hardhat-deploy                                  // SC Deployment Setup for L16
|   │   Sample Contract
|   │   Scripts
|   │   Test
|
└───key-manager                                     // Permission Management
|   │   Manage 3rd party permissions (WIP)
|   │   Get controller key (WIP)
|   │   Set UP Permissions to Address
|
└───transfer-lyx                                    // Value Transfer
|   │   Complete Transfer Guide
|
└───update-profile                                  // Update UP
    │   Complete Update Guide

Used ERC725.js Build

Version 0.14.0

IPFS Server

https://2eff.lukso.dev/ipfs/ (current L14 & L16)

Run locally

Clone this repository and install its dependencies.

git clone https://github.com/lukso-network/lukso-playground.git
cd lukso-playground
npm install

Run the JavaScript code of one file within the terminal.

node [FILENAME].js

Run in browser

Open this project on StackBlitz and start coding right away.