Traffic-Based App Rewards 107 Milestone 2: Activity Records & Reward Computation Infrastructure
OPENIssue
gitvotegitvote/open
References:CIP-0104
Milestone 2: Activity Records & Reward Computation Infrastructure
| | Months after grant approval | | :---- | :---- | | 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.
_Originally posted by @pedrodneves in https://github.com/canton-foundation/canton-dev-fund/issues/107#issuecomment-4306083290_