Skip to main content
Pre-built aggregation functions that combine multiple on-chain reads into meaningful reports. Import from @oaknetwork/contracts-sdk/metrics.
Entry pointMetrics helpers are exported from @oaknetwork/contracts-sdk/metrics only — they are not re-exported from the root @oaknetwork/contracts-sdk barrel.

Platform Stats

Protocol-level statistics from GlobalParams:

Return shape

Campaign Summary

Financial aggregation from a deployed CampaignInfo contract:

Return shape

Treasury Report

Per-treasury financial report for any treasury type:

Return shape

Supported treasury types