Features
Description

Above diagram represents the internal structure of the Loyalty point/token Ledger contracts.
8-1: Ledger - Smart contract where loyalty balances are recorded.
8-2: PhoneLinkCollection – Smart contract storing the mapping information between phone number hashes and wallet addresses.
8-3: Shop – Smart contract storing information such as the total loyalty paid, total loyalty used, settled amounts, and amounts available for settlement.
8-4: CurrencyRate – Smart contract storing exchange rate information. Only validators are permitted to store data.
8-1-1: LoyaltyProvider – Module executed when the system grants points to a user.
8-1-2: LoyaltyConsumer – Module executed when a user redeems points to purchase products.
8-1-3: LoyaltyExchange – Module executed when a user exchanges points for tokens.
8-1-4: LoyaltyBurner – Module executed when expired tokens are burned.
Links
Last updated