QovaQova docs
Smart Contracts

ReputationRegistry

Score storage, agent registration, and update history.

Stores agent reputation scores (0-1000), registration status, and score update history.

Functions

FunctionAccessDescription
registerAgent(address)PublicRegister a new agent
updateScore(address, uint256, bytes)UPDATER_ROLEUpdate score with reason
batchUpdateScores(address[], uint256[], bytes[])UPDATER_ROLEBatch update
getScore(address)ViewGet current score
getAgentDetails(address)ViewFull agent struct
isRegistered(address)ViewCheck registration

Events

event AgentRegistered(address indexed agent, address indexed owner);
event ScoreUpdated(address indexed agent, uint256 oldScore, uint256 newScore, bytes reason);

Storage

struct AgentDetails {
    uint256 score;
    bool isRegistered;
    uint256 lastUpdated;
    uint256 registeredAt;
    address owner;
}

Address

Base Sepolia: 0x0b2466b01E6d73A24D9C716A9072ED3923563fBB