stoa/packages/contracts/abi/ValueReputation.json
stoa 606076ab64 feat(web+abi): wallet connect, agents/contracts APIs, real ABI artifacts
- 13 contract ABIs generated via forge inspect -> packages/contracts/abi/*.json
- apps/web: lib/wallet.ts (viem injected wallet), /connect page (connect + add Pharos network + PHRS balance), /agents page, /api/agents (registry events + demo fallback), /api/contracts (contract set + addresses)
- packages/contracts/deployments/{pharos-atlantic,localhost}.json
- web app now: 6 pages + 6 API routes
2026-06-12 01:10:33 +03:00

80 lines
1.4 KiB
JSON

[
{
"type": "function",
"name": "recordSettlement",
"inputs": [
{
"name": "agentId",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "value",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "scoreOf",
"inputs": [
{
"name": "agentId",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "totalValue",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "jobCount",
"type": "uint64",
"internalType": "uint64"
},
{
"name": "averageValue",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "event",
"name": "Settlement",
"inputs": [
{
"name": "agentId",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
},
{
"name": "from",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "value",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "error",
"name": "ZeroValue",
"inputs": []
}
]