Open Issues Need Help
View All on GitHubAI Summary: Implement a `get_asset_data` function in Cairo (Starknet) that retrieves asset metadata for a given token ID from a contract's internal storage. The function should return the `AssetData` struct. Unit tests are required to cover both successful retrieval and handling of non-existent token IDs.
AI Summary: Implement a Cairo function `grant_tokenizer_role` within a Starknet smart contract to allow an administrator to grant the `TOKENIZER_ROLE` to a specified account. This function should utilize an access control library to grant the role and emit a `TokenizerRoleGranted` event. Comprehensive unit tests covering successful and unsuccessful grant attempts are required.
AI Summary: The task requires resolving a compilation error in a Cairo smart contract for a decentralized real-world asset platform on Starknet. The error stems from an un-exposed `AssetData` struct used in an event. The solution involves importing the necessary module containing the `AssetData` struct into the `lib.cairo` file.
AI Summary: Implement a Cairo function `get_fractionalization_module` within a Starknet smart contract that returns the address of the fractionalization module. This requires reading the address from contract state and writing unit tests to verify correct functionality in success and failure scenarios.
AI Summary: Implement Cairo smart contract events for price updates, feeder granting/revoking, and staleness threshold updates within the RWAx platform's oracle module. This involves defining structs for each event, ensuring they are properly decorated with `#[derive(Drop, starknet::Event)]`, and including appropriate key fields for efficient event indexing.
AI Summary: Implement a function to revoke the `TOKENIZER_ROLE` from a specified account in a Starknet smart contract, emit a corresponding event, and write unit tests to cover success and failure scenarios. This involves interacting with an access control library and ensuring proper event emission and role revocation.
AI Summary: Implement five Cairo smart contract events (ListingCreated, ListingCancelled, ListingPriceUpdated, TokensPurchased, OfferMade) in the `src/events/marketplace.cairo` file for a decentralized marketplace on Starknet. Ensure the code compiles and passes tests.
AI Summary: Implement a Cairo function `has_tokenizer_role` that checks if a given account has the `TOKENIZER_ROLE` within the RWAx smart contract's access control system. This involves calling the existing `has_role` function and writing unit tests to verify its functionality for both positive and negative cases (account with and without the role).
AI Summary: Create a skeletal implementation of the `rwa_factory.cairo` smart contract in Starknet Cairo, based on the provided interface `src/interfaces/irwa_factory.cairo`. This involves defining the contract structure and placeholder functions to guide further development.
AI Summary: Create a Cairo struct called `AssetData` to represent real-world assets, including fields for type, name, description, value, legal document URI, image URI, location, and creation timestamp. Then, replace placeholder `felt252` types with this `AssetData` struct in the `irwa_factory.cairo` interface file.
AI Summary: Implement three Cairo smart contract events: `AssetFractionalized`, `AssetReconstructed`, and `EmergencyUnlock` within the `src/events/fractionalization.cairo` file. These events track the fractionalization, reconstruction, and emergency unlocking of real-world assets on the RWAx platform. Ensure the code compiles and passes existing tests.
AI Summary: Implement four events (AssetTokenized, AssetMetadataUpdated, TokenizerRoleGranted, TokenizerRoleRevoked) within a Cairo smart contract for a decentralized real-world asset platform. This involves creating a `factory.cairo` file (if it doesn't exist) and adding the provided event structures to it, ensuring the code compiles successfully.
AI Summary: The task involves deleting all the code within the `src/lib.cairo` file of a Starknet-based project called RWAx, a decentralized platform for fractional ownership of real-world assets. This is a simple code modification, not requiring any understanding of the project's logic.
AI Summary: Create a Cairo 2.x interface, `IRWAFactory`, for a Starknet smart contract that handles real-world asset (RWA) tokenization. The interface should define functions for asset creation and metadata management, access control (granting and revoking tokenizer permissions), and view functions for retrieving asset data, checking permissions, getting statistics, and accessing the fractionalization module. The interface must adhere to specific function signatures, documentation standards, and integrate with existing `AssetData` structs and ERC721 standards.
AI Summary: The task involves deleting all Cairo files from specified directories within a Starknet project's repository to facilitate a project restart with a new structure and timeline. This is a preparatory step before rebuilding the project from scratch.