- 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
179 lines
3.1 KiB
JSON
179 lines
3.1 KiB
JSON
[
|
|
{
|
|
"type": "function",
|
|
"name": "balance",
|
|
"inputs": [
|
|
{
|
|
"name": "",
|
|
"type": "address",
|
|
"internalType": "address"
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"name": "",
|
|
"type": "uint256",
|
|
"internalType": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "view"
|
|
},
|
|
{
|
|
"type": "function",
|
|
"name": "tip",
|
|
"inputs": [
|
|
{
|
|
"name": "to",
|
|
"type": "address",
|
|
"internalType": "address"
|
|
},
|
|
{
|
|
"name": "memo",
|
|
"type": "string",
|
|
"internalType": "string"
|
|
}
|
|
],
|
|
"outputs": [],
|
|
"stateMutability": "payable"
|
|
},
|
|
{
|
|
"type": "function",
|
|
"name": "tipsBetween",
|
|
"inputs": [
|
|
{
|
|
"name": "",
|
|
"type": "address",
|
|
"internalType": "address"
|
|
},
|
|
{
|
|
"name": "",
|
|
"type": "address",
|
|
"internalType": "address"
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"name": "",
|
|
"type": "uint256",
|
|
"internalType": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "view"
|
|
},
|
|
{
|
|
"type": "function",
|
|
"name": "totalGiven",
|
|
"inputs": [
|
|
{
|
|
"name": "",
|
|
"type": "address",
|
|
"internalType": "address"
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"name": "",
|
|
"type": "uint256",
|
|
"internalType": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "view"
|
|
},
|
|
{
|
|
"type": "function",
|
|
"name": "totalReceived",
|
|
"inputs": [
|
|
{
|
|
"name": "",
|
|
"type": "address",
|
|
"internalType": "address"
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"name": "",
|
|
"type": "uint256",
|
|
"internalType": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "view"
|
|
},
|
|
{
|
|
"type": "function",
|
|
"name": "withdraw",
|
|
"inputs": [],
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable"
|
|
},
|
|
{
|
|
"type": "event",
|
|
"name": "Tipped",
|
|
"inputs": [
|
|
{
|
|
"name": "from",
|
|
"type": "address",
|
|
"indexed": true,
|
|
"internalType": "address"
|
|
},
|
|
{
|
|
"name": "to",
|
|
"type": "address",
|
|
"indexed": true,
|
|
"internalType": "address"
|
|
},
|
|
{
|
|
"name": "amount",
|
|
"type": "uint256",
|
|
"indexed": false,
|
|
"internalType": "uint256"
|
|
},
|
|
{
|
|
"name": "memo",
|
|
"type": "string",
|
|
"indexed": false,
|
|
"internalType": "string"
|
|
}
|
|
],
|
|
"anonymous": false
|
|
},
|
|
{
|
|
"type": "event",
|
|
"name": "Withdrawn",
|
|
"inputs": [
|
|
{
|
|
"name": "to",
|
|
"type": "address",
|
|
"indexed": true,
|
|
"internalType": "address"
|
|
},
|
|
{
|
|
"name": "amount",
|
|
"type": "uint256",
|
|
"indexed": false,
|
|
"internalType": "uint256"
|
|
}
|
|
],
|
|
"anonymous": false
|
|
},
|
|
{
|
|
"type": "error",
|
|
"name": "BadRecipient",
|
|
"inputs": []
|
|
},
|
|
{
|
|
"type": "error",
|
|
"name": "NothingToWithdraw",
|
|
"inputs": []
|
|
},
|
|
{
|
|
"type": "error",
|
|
"name": "TransferFailed",
|
|
"inputs": []
|
|
},
|
|
{
|
|
"type": "error",
|
|
"name": "ZeroTip",
|
|
"inputs": []
|
|
}
|
|
]
|