0.1.3 • Published 2 years ago

openlp3 v0.1.3

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

OpenLP3 JavaScript SDK

Open Loyality Points 3 (OpenLP3) is an opensource Loyality Point platform build top on public blockchain.

Build

GitHub Workflow Status npm.io

Technologies

Ethereum Solidity JavaScript

Documentation

*OpenLP Version 0.1.0 Doc

Status

npm.io

Installation

npm install openlp3

Usage

Deploy smart contract from https://github.com/Midhun-Chandrasekhar/OpenLP on EVM compatible blockchain (etherium).

Import

const OpenLP3 = require("openlp3");

Initializing

const olp = new OpenLP3("network_address", "contract_address", "owner_private_key", "abi");

Contract Information

await olp.contractInfo()

Issue loyality point to wallet

await olp.issuePoints("wallet_address", 1000)

Burn loyality point to wallet

await olp.burnPoints("wallet_address", 100)

Get Loyality balance

await olp.userPoints("wallet_address")

License

npm.io

Contributing

contributions welcome