Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.ameo.agiwithai.com/llms.txt

Use this file to discover all available pages before exploring further.

Primary contract: MantleAgentIdentity — ERC-721 agent identity with [DecisionLogged](/glossary#decisionlogged-event) audit log. Deployed on Mantle Sepolia: 0x8aC72a4B26e973FCdD7dAadd960Ae0eC635b4197 (verified on Mantlescan). Source: packages/contracts/src/MantleAgentIdentity.sol

Events

EventIndexed fieldsPayload
DecisionLoggedagentIdrationaleHash, actionType, metadataUri, operator

Functions

FunctionVisibilityDescription
mintAgent(address operator)external, onlyOwnerMint agent NFT to operator, return tokenId
logDecision(uint256 agentId, bytes32 rationaleHash, string actionType, string metadataUri)externalCaller must own agentId; updates snapshot + emits event

View mappings

MappingReturns
lastRationaleHash(agentId)Latest rationale hash
lastActionHash(agentId)keccak256(actionType)
lastMetadataUri(agentId)Latest metadata URI
nextTokenIdNext mint id

Build & verify

cd packages/contracts
forge build
Set AGENT_IDENTITY_ADDRESS and AGENT_TOKEN_ID in worker + web env. The canonical deployment is already live; only redeploy if you are running a private fork.

ABI

Generated ABI after build:
packages/contracts/out/MantleAgentIdentity.sol/AgentIdentity.json
Verify source on Mantlescan after any new deployment.