UNPKG

near-protocol-rewards

Version:

A transparent, metric-based rewards system for NEAR projects

22 lines (21 loc) 579 B
export interface OnChainMetrics { transactionVolume: number; contractInteractions: number; uniqueWallets: number; } export interface OnChainScoreBreakdown { transactionVolume: number; contractInteractions: number; uniqueWallets: number; } export interface OnChainRewards { totalScore: number; breakdown: OnChainScoreBreakdown; } export declare class OnChainRewardsCalculator { private readonly metrics; private readonly weights; private readonly thresholds; constructor(metrics: OnChainMetrics); calculate(): OnChainRewards; }