/** Active opinion state for a rater→agent relationship (from ReputationModule) */ export interface ActiveOpinion { /** Current index in ERC-8004 Reputation Registry (1-indexed) */ opinionIndex: bigint; /** Whether active opinion exists for this relationship */ exists: boolean; } /** Parameters for submitting on-chain opinion via ReputationModule (payment-gated, $1 USD minimum) */ export interface OnChainOpinion { /** Target agent's ERC-8004 token ID */ agentId: bigint; /** Opinion value (int128 — can be negative) */ value: bigint; /** Decimal precision for the value (0-18) */ valueDecimals: number; /** Primary categorization tag (e.g., "quality", "uptime") */ tag1: string; /** Secondary categorization tag (e.g., "x402", "rpc") */ tag2: string; /** Service endpoint being rated */ endpoint: string; /** URI containing detailed opinion data */ opinionURI: string; /** Hash of the opinion data for integrity verification */ opinionHash: `0x${string}`; } /** Value-weighted reputation result from ReputationModule.getWeightedReputation() */ export interface WeightedReputation { /** Weighted average value (int256, can be negative) */ weightedValue: bigint; /** Sum of all raters' x^(2/3) dampened USD weights */ totalWeight: bigint; /** Number of raters with valid opinion and sufficient USD payment */ opinionCount: bigint; } /** A single opinion entry read from the ERC-8004 Reputation Registry */ export interface OpinionEntry { /** Opinion value (int128 from registry) */ value: bigint; /** Decimal precision of the value */ valueDecimals: number; /** Primary tag */ tag1: string; /** Secondary tag */ tag2: string; /** Whether the opinion has been revoked */ isRevoked: boolean; } /** Net payment delta between two accounts for a specific token */ export interface PaymentDelta { /** The address that paid */ from: `0x${string}`; /** The address that received */ to: `0x${string}`; /** Token address (0x0 for native ETH) */ token: `0x${string}`; /** Net amount paid (positive = from paid more, negative = to paid more) */ netPaid: bigint; } /** @deprecated Use ActiveOpinion instead */ export type ActiveFeedback = ActiveOpinion; /** @deprecated Use OnChainOpinion instead */ export type OnChainFeedback = OnChainOpinion; /** @deprecated Use OpinionEntry instead */ export type FeedbackEntry = OpinionEntry; export interface ReputationScore { tokenId: bigint; /** Uptime ratio (0.0 to 1.0) */ uptime: number; /** Average response time in milliseconds */ responseTimeMs: number; /** Success rate ratio (0.0 to 1.0) */ successRate: number; /** Data freshness ratio (0.0 to 1.0) */ dataFreshness: number; /** Total volume processed in wei */ volumeProcessed: bigint; /** Total number of interactions */ totalInteractions: bigint; /** Unix timestamp of last update */ lastUpdated: number; } export interface ReputationFeedback { serviceTokenId: bigint; success: boolean; /** Response time in milliseconds */ responseTimeMs: number; /** Quality score (0.0 to 1.0). Optional. */ qualityScore?: number; } //# sourceMappingURL=reputation.d.ts.map