@lukso/universalprofile-smart-contracts
@lukso/universalprofile-smart-contracts
npm i @lukso/universalprofile-smart-contracts
Deprecated!
Renamed to @lukso/lsp-smart-contracts
@lukso/universalprofile-smart-contracts

@lukso/universalprofile-smart-contracts

The reference implementation for universal profiles smart contracts

by lukso-network

0.4.1 (see all)License:Apache-2.0TypeScript:Not Found
npm i @lukso/universalprofile-smart-contracts
Readme

Version

lsp-universalprofile-smart-contracts

The reference implementation for universal profiles smart contracts.

For more information see Documentation

⚠️This package is currently in early stages of development,
use for testing or experimentation purposes only.

Overview

Installation

npm

Universal Profile smart contracts are available as a npm package.

npm install @lukso/universalprofile-smart-contracts

cloning the repository

Alternatively you can also clone the repository and install its dependencies to start using the smart contracts.

$ git clone https://github.com/lukso-network/lsp-universalprofile-smart-contracts.git
$ cd ./lsp-universalprofile-smart-contracts
$ npm install

Usage

in Javascript

You can use the contracts JSON ABI by importing them as follow:

import UniversalProfile from "@lukso/universalprofile-smart-contracts/artifacts/UniversalProfile.json";

const myContract = new this.web3.eth.Contract(UniversalProfile.abi, "", defaultOptions);

in Solidity

import UniversalProfile from "@lukso/universalprofile-smart-contracts/contracts/UniversalProfile.sol";

Testing

Jest contract tests are defined under the tests directory. To run all the tests, run:

$ npm test

Deployment via hardhat

You can find more infos on how to deploy the contracts via hardhat in the DEPLOYMENT page.

Downloads/wk

43

GitHub Stars

14

LAST COMMIT

NaNyrs ago

MAINTAINERS

2

CONTRIBUTORS

0

OPEN ISSUES

1

OPEN PRs

3
VersionTagPublished
0.4.1
latest
10mos ago
No alternatives found
No tutorials found
Add a tutorial

Rate & Review

100
No reviews found
Be the first to rate