You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implements the scan-based computation of app rewards
Several PRs to add to a feature branch that add a schema, define computations, and add endpoints to the Scan API.
Testing
A Store test (DbScanAppRewardsStoreTest) updated each PR
Trigger — RewardComputationTrigger is introduced in PR 2 and extended in subsequent PRs.
Initially fires on DB conditions (round closed + no root hash) and has a FIXME for the missing CalculateRewardsV2/ProcessRewardsV2 contract check (Daml not yet on feature branch).
Store tests: single-party aggregation, multi-party GROUP BY with alphabetical seq_nums, non-featured exclusion, empty round handling, idempotency, query methods.
PostgreSQL CryptoHash function, computeRewardHashes, root-hash + batches/{batchHash} endpoints. Trigger extended to all 3 stages with simulated Open Mining round info
Store tests: hash computation, Merkle tree structure, batch retrieval.
Implements the scan-based computation of app rewards
Several PRs to add to a feature branch that add a schema, define computations, and add endpoints to the Scan API.
Testing
DbScanAppRewardsStoreTest) updated each PRScanAppRewardsComputationIntegrationTestsv1ScanBackendRewardComputationTriggeris introduced in PR 2 and extended in subsequent PRs.CalculateRewardsV2/ProcessRewardsV2contract check (Daml not yet on feature branch).Tasks
ScanAppRewardsStoreCRUD skeleton.aggregateActivityTotals,FeaturedAppRightProvidertrait,RewardComputationTrigger(FIXME: no contract check),earliest-available+activity-totalsendpoints.computeRewardTotals(CC conversion + threshold). No new endpoints.CryptoHashfunction,computeRewardHashes,root-hash+batches/{batchHash}endpoints. Trigger extended to all 3 stages with simulated Open Mining round infoReplace FIXME withCalculateRewardsV2/ProcessRewardsV2contract gate. (no longer required)Spun-out tasks