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
Name | Type | Description |
---|---|---|
ipAccountRegistry_ | contract IIPAccountRegistry | |
chainId_ | uint256 | The chain ID where the IP Account is located. |
tokenContract_ | address | The address of the token contract associated with the IP Account. |
tokenId_ | uint256 | The ID of the token associated with the IP Account. |
Return Values
Name | Type | Description |
---|---|---|
[0] | bool | True 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
Name | Type | Description |
---|---|---|
ipAccountRegistry_ | contract IIPAccountRegistry | The IP Account registry contract. |
ipAccountAddress_ | address | The address to check. |
Return Values
Name | Type | Description |
---|---|---|
[0] | bool | True if the address is a valid IP Account, false otherwise. |
Updated 2 months ago