- 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
256 lines
4.9 KiB
JSON
256 lines
4.9 KiB
JSON
[
|
|
{
|
|
"type": "function",
|
|
"name": "getService",
|
|
"inputs": [
|
|
{
|
|
"name": "serviceId",
|
|
"type": "uint256",
|
|
"internalType": "uint256"
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"name": "",
|
|
"type": "tuple",
|
|
"internalType": "struct ServiceRegistry.Service",
|
|
"components": [
|
|
{
|
|
"name": "provider",
|
|
"type": "address",
|
|
"internalType": "address"
|
|
},
|
|
{
|
|
"name": "agentId",
|
|
"type": "uint256",
|
|
"internalType": "uint256"
|
|
},
|
|
{
|
|
"name": "capability",
|
|
"type": "string",
|
|
"internalType": "string"
|
|
},
|
|
{
|
|
"name": "endpoint",
|
|
"type": "string",
|
|
"internalType": "string"
|
|
},
|
|
{
|
|
"name": "metadataURI",
|
|
"type": "string",
|
|
"internalType": "string"
|
|
},
|
|
{
|
|
"name": "priceWei",
|
|
"type": "uint256",
|
|
"internalType": "uint256"
|
|
},
|
|
{
|
|
"name": "active",
|
|
"type": "bool",
|
|
"internalType": "bool"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"stateMutability": "view"
|
|
},
|
|
{
|
|
"type": "function",
|
|
"name": "list",
|
|
"inputs": [
|
|
{
|
|
"name": "agentId",
|
|
"type": "uint256",
|
|
"internalType": "uint256"
|
|
},
|
|
{
|
|
"name": "capability",
|
|
"type": "string",
|
|
"internalType": "string"
|
|
},
|
|
{
|
|
"name": "endpoint",
|
|
"type": "string",
|
|
"internalType": "string"
|
|
},
|
|
{
|
|
"name": "metadataURI",
|
|
"type": "string",
|
|
"internalType": "string"
|
|
},
|
|
{
|
|
"name": "priceWei",
|
|
"type": "uint256",
|
|
"internalType": "uint256"
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"name": "serviceId",
|
|
"type": "uint256",
|
|
"internalType": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "nonpayable"
|
|
},
|
|
{
|
|
"type": "function",
|
|
"name": "nextServiceId",
|
|
"inputs": [],
|
|
"outputs": [
|
|
{
|
|
"name": "",
|
|
"type": "uint256",
|
|
"internalType": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "view"
|
|
},
|
|
{
|
|
"type": "function",
|
|
"name": "servicesByCapability",
|
|
"inputs": [
|
|
{
|
|
"name": "capability",
|
|
"type": "string",
|
|
"internalType": "string"
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"name": "",
|
|
"type": "uint256[]",
|
|
"internalType": "uint256[]"
|
|
}
|
|
],
|
|
"stateMutability": "view"
|
|
},
|
|
{
|
|
"type": "function",
|
|
"name": "servicesByProvider",
|
|
"inputs": [
|
|
{
|
|
"name": "provider",
|
|
"type": "address",
|
|
"internalType": "address"
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"name": "",
|
|
"type": "uint256[]",
|
|
"internalType": "uint256[]"
|
|
}
|
|
],
|
|
"stateMutability": "view"
|
|
},
|
|
{
|
|
"type": "function",
|
|
"name": "totalServices",
|
|
"inputs": [],
|
|
"outputs": [
|
|
{
|
|
"name": "",
|
|
"type": "uint256",
|
|
"internalType": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "view"
|
|
},
|
|
{
|
|
"type": "function",
|
|
"name": "update",
|
|
"inputs": [
|
|
{
|
|
"name": "serviceId",
|
|
"type": "uint256",
|
|
"internalType": "uint256"
|
|
},
|
|
{
|
|
"name": "priceWei",
|
|
"type": "uint256",
|
|
"internalType": "uint256"
|
|
},
|
|
{
|
|
"name": "active",
|
|
"type": "bool",
|
|
"internalType": "bool"
|
|
}
|
|
],
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable"
|
|
},
|
|
{
|
|
"type": "event",
|
|
"name": "ServiceListed",
|
|
"inputs": [
|
|
{
|
|
"name": "serviceId",
|
|
"type": "uint256",
|
|
"indexed": true,
|
|
"internalType": "uint256"
|
|
},
|
|
{
|
|
"name": "provider",
|
|
"type": "address",
|
|
"indexed": true,
|
|
"internalType": "address"
|
|
},
|
|
{
|
|
"name": "capability",
|
|
"type": "string",
|
|
"indexed": false,
|
|
"internalType": "string"
|
|
},
|
|
{
|
|
"name": "priceWei",
|
|
"type": "uint256",
|
|
"indexed": false,
|
|
"internalType": "uint256"
|
|
}
|
|
],
|
|
"anonymous": false
|
|
},
|
|
{
|
|
"type": "event",
|
|
"name": "ServiceUpdated",
|
|
"inputs": [
|
|
{
|
|
"name": "serviceId",
|
|
"type": "uint256",
|
|
"indexed": true,
|
|
"internalType": "uint256"
|
|
},
|
|
{
|
|
"name": "priceWei",
|
|
"type": "uint256",
|
|
"indexed": false,
|
|
"internalType": "uint256"
|
|
},
|
|
{
|
|
"name": "active",
|
|
"type": "bool",
|
|
"indexed": false,
|
|
"internalType": "bool"
|
|
}
|
|
],
|
|
"anonymous": false
|
|
},
|
|
{
|
|
"type": "error",
|
|
"name": "EmptyCapability",
|
|
"inputs": []
|
|
},
|
|
{
|
|
"type": "error",
|
|
"name": "NotProvider",
|
|
"inputs": []
|
|
},
|
|
{
|
|
"type": "error",
|
|
"name": "UnknownService",
|
|
"inputs": []
|
|
}
|
|
]
|