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.
Install the package using npm or yarn as desired to get started.
npm install --save valist-software-license
OR
yarn add valist-software-license
- node >= 18.11.0
- yarn >= 3.3.0
git clone https://github.com/pawanpaudel93/valist-software-license
cd valist-software-license
yarn
.
├── packages # All workspaces
│ ├── sdk # Valist software license lightweight SDK.
│ ├── license-gated-dapp # License gated nextjs Dapp utilizing valist software license sdk
└── ...
👤 Pawan Paudel
- Github: @pawanpaudel93
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Give a ⭐️ if this project helped you!
Copyright © 2022 Pawan Paudel.