IPAccountChecker.sol

This library provides utility functions to check the registration and validity of IP Accounts.
It uses the ERC165 standard for contract introspection and the IIPAccountRegistry interface
for account registration checks.

isRegistered

function isRegistered(contract IIPAccountRegistry ipAccountRegistry_, uint256 chainId_, address tokenContract_, uint256 tokenId_) external view returns (bool)

Returns true if the IPAccount is registered.

Parameters

NameTypeDescription
ipAccountRegistry_contract IIPAccountRegistry
chainId_uint256The chain ID where the IP Account is located.
tokenContract_addressThe address of the token contract associated with the IP Account.
tokenId_uint256The ID of the token associated with the IP Account.

Return Values

NameTypeDescription
[0]boolTrue if the IP Account is registered, false otherwise.

isIpAccount

function isIpAccount(contract IIPAccountRegistry ipAccountRegistry_, address ipAccountAddress_) external view returns (bool)

Checks if the given address is a valid IP Account.

Parameters

NameTypeDescription
ipAccountRegistry_contract IIPAccountRegistryThe IP Account registry contract.
ipAccountAddress_addressThe address to check.

Return Values

NameTypeDescription
[0]boolTrue if the address is a valid IP Account, false otherwise.