UNPKG

near-protocol-rewards

Version:

A transparent, metric-based rewards system for NEAR projects

26 lines (25 loc) 924 B
/** * GitHub Rewards SDK * * A simplified rewards system that tracks GitHub development activity * and calculates rewards based on contribution metrics. */ /// <reference types="node" /> import { EventEmitter } from "events"; import { ProcessedMetrics } from "./types/metrics"; import { SDKConfig } from "./types/sdk"; export declare class GitHubRewardsSDK extends EventEmitter { private readonly collector; private readonly walletCollector?; private readonly logger; private readonly validator; private readonly config; private isTracking; constructor(config: SDKConfig); startTracking(): Promise<void>; stopTracking(): Promise<void>; getMetrics(): Promise<ProcessedMetrics | null>; } export { SDKConfig, SDKEvents, RewardCalculation } from "./types/sdk"; export { GitHubMetrics, ProcessedMetrics } from "./types/metrics"; export { BaseError, ErrorCode } from "./types/errors";