Giter VIP home page Giter VIP logo

valist-software-license's Introduction

Valist Software License SDK

Valist lightweight TypeScript SDK & License NFT Gated Dapp

Version

Table of Contents

About

Valist is the Universal software deployment and monetization protocol. Valist Software License is the lightweight sdk of valist-sdk only having fewer core functionality like purchaseProduct, purchaseProductToken and checkLicense.

A checkLicense function that:

  • Prompts a human-readable message signature request from the user's wallet
  • Recovers the address from the signature
  • Uses that address to check the user's balance on the Software License NFT contract

A purchaseProduct function that prompts the user to purchase the Software License NFT with native MATIC.

A purchaseProductToken function that prompts the user to purchase the Software License NFT with the user's desired (and supported) token.

A hasLicense function that checks whether a given address has license to a given product ID.

Learn more about Valist.

Installing the package

Install the package using npm or yarn as desired to get started.

npm install --save valist-software-license

OR

yarn add valist-software-license

Development

Requirements

  • node >= 18.11.0
  • yarn >= 3.3.0

Setup

git clone https://github.com/pawanpaudel93/valist-software-license

cd valist-software-license

yarn

๐Ÿง Folder Structure

.
โ”œโ”€โ”€ packages                 # All workspaces
โ”‚   โ”œโ”€โ”€ sdk                  # Valist software license lightweight SDK.
โ”‚   โ”œโ”€โ”€ license-gated-dapp   # License gated nextjs Dapp utilizing valist software license sdk
โ””โ”€โ”€ ...

Author

๐Ÿ‘ค Pawan Paudel

๐Ÿค Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page.

Show your support

Give a โญ๏ธ if this project helped you!

Copyright ยฉ 2022 Pawan Paudel.

valist-software-license's People

Contributors

pawanpaudel93 avatar

Stargazers

Alec M. Wantoch avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.