feat(payments): chip wallet, store-compliance gate and benefit application #217
Reference in New Issue
Block a user
Delete Branch "feature/payments-currency-benefit-core"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Internal chip/benefit mechanic behind the narrow payments interface: context-aware balances/benefits, atomic chip spend, admin grants (0-price value sales), the one-directional store-compliance gate (VK/TG same-origin, web draws direct→vk→tg, VK-iOS frozen, untrusted fail-closed), per-origin hint/no-ads with term stacking. Reads served from an in-process write-through cache (mirrors the suspension gate).
Flips the online-game hint wallet and the ad-banner suppression from the deprecated accounts.hint_balance/paid_account columns to the payments benefit (a hint balance no longer suppresses the banner — only a no-ads benefit does), and folds chip segments + benefits by origin on account merge (inside the merge tx). Adds the GET/POST /api/v1/user/wallet edge chain (REST → Connect → FlatBuffers) + its codec unit test; no wallet UI yet.
Brings the frozen decisions log into the repo (docs/PAYMENTS_DECISIONS_ru.md, was untracked under .vscode) + records the read-cache and present-sources design in PLAN.md / docs/PAYMENTS.md (+RU).
Tests: payments gate/wallet unit + gate compliance regression; integration for atomic spend + rollback, admin_grant (values not chips), spend-hint by context, merge fold, and the named direct-benefit-never-in-VK/TG regression; codec round-trip.