Skip to content

Conversation

@ryzen-xp
Copy link
Contributor

@ryzen-xp ryzen-xp commented Aug 5, 2025

πŸš€ PR: Enhance IP ID Protocol for MIP Integration #112

βœ… Summary

This PR addresses Issue #112 by enhancing the IPIdentity Cairo 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 ids

  • add IPIDVerified event

πŸ“š Related Issue

Closes #112

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cairo Smart Contract: Review & Enhance IP ID Protocol for MIP Integration

1 participant