Skip to content

P2E: add end-to-end reward economy tests #100

@ilyar

Description

@ilyar

Source PRD: tasks/prd-full-play-to-earn.md
Parent epic: #86
PRD section: US-014

Description

P2E needs deterministic tests for earning, claiming, payout status, eligibility blocks, and abuse holds.

Acceptance Criteria

  • Local scenario covers match settlement -> reward points -> campaign finalization -> claimable reward.
  • Fake payout provider scenario covers claim -> payout pending -> webhook paid.
  • Tests verify entry fees do not fund or change reward pool balances.
  • Tests verify ineligible users can play but cannot claim external-value rewards.
  • Tests verify abuse-held rewards are not paid automatically.
  • CI passes.

Constraints

  • Keep current paid PvP settlement as entry fee, not player-funded prize pool.
  • Do not make Season Points redeemable or refundable.
  • Keep payout/compliance/provider secrets backend-only.
  • Treat this as deferred future-phase work until mechanics/self-host production readiness is stable.

Notes

Keep public/cloud reward smoke manual until the full P2E layer is intentionally enabled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: backendServer-side services, APIs, reducers, and data mutationsarea: frontendTelegram Mini App UI, screens, and client UXarea: testingAutomated tests, smoke tests, and verification harnessesdomain: economyELM/tELM balances, ledger, credits, debits, and rewardsdomain: paymentsTelegram Stars, payment webhooks, refunds, and paid balance flowdomain: securityAuth, secrets, trust boundaries, permissions, and abuse resistancepriority: highImportant for MVPstatus: deferredDeferred until the current active milestone is stabletype: featureNew capability or product improvement

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions