vendorplug2025/flarum-ext-tokenpoints-suite
Composer 安装命令:
composer require vendorplug2025/flarum-ext-tokenpoints-suite
包简介
Token Points Suite: wallet-linking + deposits + PTA/PTP/PTV/PTB + transfers + bounties
README 文档
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.
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-08-19