X404 · Official documentation v1
Full Contract Reference
All functions, outputs, events and custom errors.
The following comes directly from the compiler-synchronized ABI and includes all callable functions, events, and custom errors. The indexed parameter indicates that it can be filtered by log topics. Pure functions and reads do not send transactions; payable methods can be attached with native coins.
X404GameplayHub
Function 17
Events 2
Custom errors 3
X404GameAdministration
Function 21
Events 6
Custom errors 5
X404GameSetup
Function 4
Events 0
Custom errors 0
X404Characters
Function 58
Events 14
Custom errors 9
X404EntryChances
Function 14
Events 5
Custom errors 5
X404EntryChancesDeployer
Function 3
Events 0
Custom errors 4
X404PowerMining
Function 32
Events 8
Custom errors 11
X404PowerPool
Function 18
Events 4
Custom errors 1
X404PokerBank
Function 20
Events 5
Custom errors 9
X404TaskRewards
Function 18
Events 4
Custom errors 10
X404LiveAirdrop
Function 32
Events 5
Custom errors 12
X404Issuance
Function 24
Events 11
Custom errors 10
X404V2Operations
Function 5
Events 1
Custom errors 5
X404LiquidityManager
Function 39
Events 10
Custom errors 4
X404CLLockFactory
Function 7
Events 1
Custom errors 4
X404CLPositionLock
Function 47
Events 10
Custom errors 9
X404DexRegistry
Function 6
Events 1
Custom errors 1
X404UniswapAdapterFactory
Function 5
Events 1
Custom errors 1
X404InfinityAdapterFactory
Function 5
Events 1
Custom errors 1
X404UniswapAdapter
Function 19
Events 3
Custom errors 7
X404InfinityAdapter
Function 19
Events 3
Custom errors 7
X404PlainToken
Function 14
Events 2
Custom errors 7
X404Lock
Function 32
Events 7
Custom errors 9
X404V4PositionLock
Function 37
Events 8
Custom errors 9
X404ProtocolFees
Function 57
Events 17
Custom errors 5
X404GameQuery
Function 11
Events 0
Custom errors 5
X404TokenDeployer
Function 5
Events 0
Custom errors 2
X404GameConfig
Function 4
Events 1
Custom errors 1
X404SocialProtocol
Function 47
function MAX_BATCH_SIZE() view returns (uint256)function MAX_PAGE_SIZE() view returns (uint256)function MAX_POST_BYTES() view returns (uint256)function PROTOCOL_NAME() view returns (string)function PROTOCOL_VERSION() view returns (uint256)function REQUIRED_PROFILE_FIELDS() view returns (uint256)function balanceOf(address account, uint256 id) view returns (uint256)function balanceOfBatch(address[] accounts, uint256[] ids) view returns (uint256[])function follow(address account)function followBatch(address[] accounts)function followerCount(address) view returns (uint256)function followingCount(address) view returns (uint256)function getAuthorPosts(address author, uint256 cursor, uint256 limit) view returns ((uint256 id, address author, string content, uint256 timestamp, uint256 parentId, uint256 likes, uint256 replyCount)[], uint256 nextCursor)function getFollowers(address account, uint256 offset, uint256 limit) view returns (address[])function getFollowing(address account, uint256 offset, uint256 limit) view returns (address[])function getPost(uint256 id) view returns ((uint256 id, address author, string content, uint256 timestamp, uint256 parentId, uint256 likes, uint256 replyCount))function getPostLikes(uint256[] ids, address viewer) view returns (bool[] result)function getPosts(uint256 cursor, uint256 limit) view returns ((uint256 id, address author, string content, uint256 timestamp, uint256 parentId, uint256 likes, uint256 replyCount)[], uint256 nextCursor)function getProfile(address account) view returns ((string metadataURI, uint256 followerLimit))function getProfileDetails(address account) view returns ((string name, string avatar, string bio, string website, string twitter, string discord, string telegram))function getProfileSummaries(address[] accounts, address viewer) view returns ((uint256 profileId, string username, string metadataURI, uint256 followerLimit, uint256 followers, uint256 following, bool followed)[] result)function getReplies(uint256 id, uint256 cursor, uint256 limit) view returns ((uint256 id, address author, string content, uint256 timestamp, uint256 parentId, uint256 likes, uint256 replyCount)[], uint256 nextCursor)function isApprovedForAll(address account, address operator) view returns (bool)function isFollowing(address follower, address account) view returns (bool)function liked(uint256, address) view returns (bool)function normalizeUsername(string value) pure returns (string)function postCount() view returns (uint256)function profileCompletion(address) view returns (uint256 fields, uint256 firstCompletedAt, uint256 revision)function profileCount() view returns (uint256)function profileIdByUsername(string username) view returns (uint256)function profileIdOf(address) view returns (uint256)function profileOwner(uint256) view returns (address)function publishPost(string content, uint256 parentId) returns (uint256 id)function safeBatchTransferFrom(address from, address to, uint256[] ids, uint256[] values, bytes data)function safeTransferFrom(address from, address to, uint256 id, uint256 value, bytes data)function setApprovalForAll(address operator, bool approved)function setLike(uint256 id, bool enabled)function setProfile(string metadataURI, uint256 followerLimit)function setProfileDetails((string name, string avatar, string bio, string website, string twitter, string discord, string telegram) value, uint256 followerLimit, string username)function setProfileWithUsername(string metadataURI, uint256 followerLimit, string username)function setUsername(string username)function supportsInterface(bytes4 interfaceId) view returns (bool)function tokenIdOf(address account) view returns (uint256)function unfollow(address account)function unfollowBatch(address[] accounts)function uri(uint256 id) view returns (string)function usernameOf(uint256) view returns (string)Events 12
event ApprovalForAll(address indexed account, address indexed operator, bool approved)event Followed(address indexed follower, address indexed account)event LikeUpdated(uint256 indexed id, address indexed account, bool enabled)event PostPublished(uint256 indexed id, address indexed author, uint256 indexed parentId, string content)event ProfileDetailsUpdated(address indexed account, uint256 indexed revision, uint256 fields, uint256 changedFields, bool firstCompletion, uint256 firstCompletedAt)event ProfileRegistered(uint256 indexed profileId, address indexed owner)event ProfileUpdated(address indexed account, string metadataURI, uint256 followerLimit)event TransferBatch(address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values)event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value)event URI(string value, uint256 indexed id)event Unfollowed(address indexed follower, address indexed account)event UsernameUpdated(uint256 indexed profileId, string previousUsername, string username)Custom errors 22
error AlreadyFollowing()error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId)error ERC1155InvalidApprover(address approver)error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength)error ERC1155InvalidOperator(address operator)error ERC1155InvalidReceiver(address receiver)error ERC1155InvalidSender(address sender)error ERC1155MissingApprovalForAll(address operator, address owner)error FollowerLimitReached()error InvalidAccount()error InvalidBatch()error InvalidContent()error InvalidFollowerLimit()error InvalidMetadata()error InvalidPage()error InvalidPost()error InvalidUsername()error LikeUnchanged()error NonTransferable()error NotFollowing()error ReentrancyGuardReentrantCall()error UsernameTaken()