Skip to content

bug: ChaosAgent._get_reputation_registry_abi #4

Description

@denverbaumgartner

Hey, I don't think the function getReputation matches the 8004 spec. From my understanding, feedback lives on the client AgentCard, not on the ReputationRegistry (https://eips.ethereum.org/EIPS/eip-8004#feedback-data-structure). This is discussed somewhat ad nauseam in the Ethereum Magicians Discussion (https://ethereum-magicians.org/t/erc-8004-trustless-agents/25098/15)

def _get_reputation_registry_abi(self) -> list:
        """Get embedded Reputation Registry ABI."""
        return [
            {
                "inputs": [
                    {"name": "agentClientId", "type": "uint256"},
                    {"name": "agentServerId", "type": "uint256"}
                ],
                "name": "acceptFeedback",
                "outputs": [],
                "stateMutability": "nonpayable",
                "type": "function"
            },
            {
                "inputs": [{"name": "agentId", "type": "uint256"}],
                "name": "getReputation",
                "outputs": [
                    {"name": "score", "type": "uint256"},
                    {"name": "count", "type": "uint256"}
                ],
                "stateMutability": "view",
                "type": "function"
            }
        ]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions