PR #479 — Milestone 2: Activity Records & Reward Computation Infrastructure
OPENIssue
milestone-tracking
References:CIP-0104
Parent: #581 PR: https://github.com/canton-foundation/canton-dev-fund/pull/479
| | | | :---- | :---- | | Estimated Delivery | Month 4 | | Focus | Precise activity record computation, three-stage reward computation, and Scan API endpoints |
Deliverables:
- Scan app:
ScanTcsStoretemporal contract store forFeaturedAppRight,OpenMiningRound, andAmuletRuleswith as-of-round-start lookups. - Scan app:
ScanTcsIngestionservice feeding the temporal store from the Ledger API. - Scan app: extended
ScanVerdictIngestioncomputing activity records per CIP-0104 formula, with round attribution and confirmer-based traffic weight computation. - Scan app:
ComputeAppRewardsTriggerimplementing the three-stage computation (activity totals → reward totals → Merkle-tree hashes). - Unit tests validating SQL computations match Scala and Daml decimal computations.
- Activity records served via
/v2/eventson Scan.
Acceptance Criteria: Precise per-party activity records and reward computations are available on the Scan API for closed mining rounds.