vendorplug2025 / flarum-ext-tokenpoints-suite
Token Points Suite: wallet-linking + deposits + PTA/PTP/PTV/PTB + transfers + bounties
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:flarum-extension
Requires
- php: >=8.0
- ext-json: *
- flarum/core: ^1.8
- illuminate/database: ^8.0|^9.0|^10.0
This package is not auto-updated.
Last update: 2025-08-20 01:15:41 UTC
README
All-in-one: Deposits (single treasury + Alchemy verification), PTA (pay-to-access groups), PTP (pay-to-post by tag), PTV (pay-to-view by tag with API redaction), PTB (bump discussions), Transfers, Bounties.
Install
- Upload into
/path/to/flarum/extensions/flarum-ext-tokenpoints-suite
composer dump-autoload php flarum migrate php flarum cache:clear
- Configure in Admin → Extensions → Token Points Suite
- Token config: ERC20 address/decimals, Treasury, Rate, Confirmations, Alchemy RPC URL
- Prices JSON:
- PTA groups:
{ "3": 100 }
- PTP tags:
{ "5": 50 }
- PTV tags:
{ "6": 30 }
- PTB price:
20
- PTA groups:
Features
- Wallet linking (one-time, admin can reset)
- Submit TX verification with Alchemy (no keys stored)
- PTA: charges points and adds user to group
- PTP: charges points on discussion creation under priced tags
- PTV: Serializer redacts post content unless purchased
- PTB: (optional) can be implemented updating discussion timestamps (left out by default here)
- Transfers: user→user internal points
- Bounties: donate points to a discussion; aggregate as needed
Notes
- Points start at 0 by default.
- For huge token values, consider using BCMath/GMP in PHP for safe big int handling.