Reviewed & Enhanced IP ID Protocol for MIP Integration #119
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
π PR: Enhance IP ID Protocol for MIP Integration #112
β Summary
This PR addresses Issue #112 by enhancing the
IPIdentityCairo smart contract to improve interoperability with the broader MIP Protocol. The updates make IP IDs universally accessible, composable, and indexable across Starknet applications.π§ Changes Introduced
Refactored storage schema for better structure and MIP compatibility.
Added the following public view functions:
get_token_id_by_ip(ip_id)β Returns the ERC721 token ID for a given IP ID.get_ip_owner(ip_id)β Retrieves the current owner of the IP.get_ip_metadata_uri(ip_id)β Returns the metadata URI associated with the IP.get_user_ip_ids(owner)β Lists all IP IDs owned by a given address.get_total_supply()β Returns the total minted IP ID supply.Maintained compatibility with ERC721 methods for composability.
Add
owner_to_ip_ids: Map<ContractAddress, Vec<felt252>>,for tracking idsadd
IPIDVerifiedeventπ Related Issue
Closes #112