Mukul-code-rep / lukso-playground

Code snippets to interact with Universal Profiles and other LSP standards

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

Last Playground Check

5th August 2022

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
│   │   Work in Progress ...
|
└───create-profile                                  // Create UP
│   │   Create Universal Profile
|
└───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
|
└───permissions                                     // Key Manager
|   │   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.

About

Code snippets to interact with Universal Profiles and other LSP standards


Languages

Language:JavaScript 98.4%Language:Solidity 1.6%