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
The assetsup contract supports tokenization — splitting an asset into fractional tokens that can be held by multiple investors. This issue exposes the tokenization contract functions as REST API endpoints. Enables the tokenization UI (FE-43) and investor portal (FE-44).
Context
Depends on BE-60 (StellarService) and BE-61 (asset must be registered on-chain first)
Overview
The
assetsupcontract supports tokenization — splitting an asset into fractional tokens that can be held by multiple investors. This issue exposes the tokenization contract functions as REST API endpoints. Enables the tokenization UI (FE-43) and investor portal (FE-44).Context
contracts/assetsup/src/tokenization.rs— reviewtokenize(),transfer_tokens(),lock_tokens(),unlock_tokens()function signaturesAcceptance Criteria
POST /stellar/assets/:id/tokenizebody:{ totalTokens: number, pricePerToken: number, lockPeriodDays?: number }— calls contracttokenize(), stores tokenization config on theAssetentity (isTokenized: boolean,totalTokens,tokenPrice)GET /stellar/assets/:id/tokens— queries on-chain token holders and balances, returns:{ totalTokens, circulatingTokens, holders: [{ address, balance, percentage }] }POST /stellar/assets/:id/tokens/transferbody:{ toAddress: string, amount: number }— calls contracttransfer_tokens()POST /stellar/assets/:id/tokens/lockandPOST /stellar/assets/:id/tokens/unlock— calls contract lock/unlock functionsisTokenized,totalTokens(nullable),tokenPrice(nullable decimal) toAssetentity