stoa/packages/contracts/abi/SocialFeed.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

400 lines
7.2 KiB
JSON

[
{
"type": "function",
"name": "follow",
"inputs": [
{
"name": "followee",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "followerCount",
"inputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "followingCount",
"inputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "follows",
"inputs": [
{
"name": "",
"type": "address",
"internalType": "address"
},
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "getPost",
"inputs": [
{
"name": "postId",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "tuple",
"internalType": "struct SocialFeed.Post",
"components": [
{
"name": "author",
"type": "address",
"internalType": "address"
},
{
"name": "parentId",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "contentURI",
"type": "string",
"internalType": "string"
},
{
"name": "createdAt",
"type": "uint64",
"internalType": "uint64"
},
{
"name": "likes",
"type": "uint64",
"internalType": "uint64"
}
]
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "like",
"inputs": [
{
"name": "postId",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "liked",
"inputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "nextPostId",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "post",
"inputs": [
{
"name": "contentURI",
"type": "string",
"internalType": "string"
}
],
"outputs": [
{
"name": "postId",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "postsByAuthor",
"inputs": [
{
"name": "author",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256[]",
"internalType": "uint256[]"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "repliesOf",
"inputs": [
{
"name": "postId",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "uint256[]",
"internalType": "uint256[]"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "reply",
"inputs": [
{
"name": "parentId",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "contentURI",
"type": "string",
"internalType": "string"
}
],
"outputs": [
{
"name": "postId",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "totalPosts",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "unfollow",
"inputs": [
{
"name": "followee",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "event",
"name": "Followed",
"inputs": [
{
"name": "follower",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "followee",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "event",
"name": "Liked",
"inputs": [
{
"name": "postId",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
},
{
"name": "by",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "likes",
"type": "uint64",
"indexed": false,
"internalType": "uint64"
}
],
"anonymous": false
},
{
"type": "event",
"name": "Posted",
"inputs": [
{
"name": "postId",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
},
{
"name": "author",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "parentId",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
},
{
"name": "contentURI",
"type": "string",
"indexed": false,
"internalType": "string"
}
],
"anonymous": false
},
{
"type": "event",
"name": "Unfollowed",
"inputs": [
{
"name": "follower",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "followee",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "error",
"name": "AlreadyFollowing",
"inputs": []
},
{
"type": "error",
"name": "AlreadyLiked",
"inputs": []
},
{
"type": "error",
"name": "CannotFollowSelf",
"inputs": []
},
{
"type": "error",
"name": "NotFollowing",
"inputs": []
},
{
"type": "error",
"name": "UnknownPost",
"inputs": []
}
]