You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Define the tokenization structs and implement the tokenize_asset function that converts a registered asset into fractional tokens inside contracts/contrib/.
Location
All work must be inside contracts/contrib/src/tokenization.rs.
Overview
Define the tokenization structs and implement the
tokenize_assetfunction that converts a registered asset into fractional tokens insidecontracts/contrib/.Location
All work must be inside
contracts/contrib/src/tokenization.rs.Acceptance Criteria
TokenizedAssetstruct with fields:asset_id,total_supply: i128,symbol: String,decimals: u32,tokenizer: Address,valuation: i128,revenue_sharing_enabled: bool,tokenization_timestamp: u64TokenMetadatastruct:name,description,asset_type(Physical/Digital),ipfs_uri,legal_docs_hash,accredited_investor_requiredtokenize_asset(env, asset_id, symbol, total_supply, valuation, metadata)— owner only; storesTokenizedAsset; creates initialOwnershipRecordfor tokenizer with 100% ownership; emits event