Skip to content

pawanpaudel93/valist-software-license

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.