loyalty-sdk-v2
v1.0.1
Published
The **SUI Loyalty Platform SDK** is a SDK designed to integrate a loyalty platform with the SUI blockchain using Move smart contracts. The SDK provides a modular framework to facilitate user sign-up, loyalty program configuration, token management, custom
Readme
SUI Loyalty Platform SDK
Overview
The SUI Loyalty Platform SDK is a SDK designed to integrate a loyalty platform with the SUI blockchain using Move smart contracts. The SDK provides a modular framework to facilitate user sign-up, loyalty program configuration, token management, customer participation, wallet integration, redemption, and reward distribution.
Build Process
1. Setup Development Environment
- Install Node.js and npm
- Install dependencies
2. SDK Folder Structure
A structured folder layout:
sui-sdk/
├── src/
│ ├── auth/
│ ├── clients/
│ ├── modules/
│ ├── utils/
│ ├── index.js
│ ├── constants.js
│ └── package.json
└── tests/
└── README.md3. Publish the SDK
Once tested and documented:
npm run build
npm test
npm publishUsage
Import the SDK and configure it:
const SDK = require('sui-loyalty-sdk');
const sdk = new AuthManager();
sdk.setToken('YOUR_JWT_TOKEN');