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 and contrib contract support lease agreements, insurance policies on assets, and KYC verification for investors. This issue exposes these modules. Enables FE-47 (Lease UI), FE-48 (Insurance UI), and FE-50 (KYC UI).
KYC is required before a user can acquire tokens in a tokenized asset
Acceptance Criteria
POST /stellar/assets/:id/lease body: { lesseeAddress, startDate, endDate, monthlyRent, deposit } — records lease agreement on-chain via contracts/assetsup/src/lease.rs
GET /stellar/assets/:id/lease — retrieves current or historical lease terms from on-chain storage
PATCH /stellar/assets/:id/lease/terminate — terminates the active lease on-chain
POST /stellar/assets/:id/insurance body: { insurer, policyNumber, coverage, premium, startDate, endDate } — records insurance policy on-chain
GET /stellar/assets/:id/insurance — retrieves insurance details
POST /stellar/kyc/submit body: { documentType, documentNumber, country, expiryDate } — submits KYC data to the contrib contract's KYC module for review
GET /stellar/kyc/status — returns current user's KYC status: PENDING, VERIFIED, REJECTED
Overview
The
assetsupcontract andcontribcontract support lease agreements, insurance policies on assets, and KYC verification for investors. This issue exposes these modules. Enables FE-47 (Lease UI), FE-48 (Insurance UI), and FE-50 (KYC UI).Context
contracts/assetsup/src/lease.rs,contracts/assetsup/src/insurance.rs,contracts/contrib/src/(KYC module)Acceptance Criteria
POST /stellar/assets/:id/leasebody:{ lesseeAddress, startDate, endDate, monthlyRent, deposit }— records lease agreement on-chain viacontracts/assetsup/src/lease.rsGET /stellar/assets/:id/lease— retrieves current or historical lease terms from on-chain storagePATCH /stellar/assets/:id/lease/terminate— terminates the active lease on-chainPOST /stellar/assets/:id/insurancebody:{ insurer, policyNumber, coverage, premium, startDate, endDate }— records insurance policy on-chainGET /stellar/assets/:id/insurance— retrieves insurance detailsPOST /stellar/kyc/submitbody:{ documentType, documentNumber, country, expiryDate }— submits KYC data to thecontribcontract's KYC module for reviewGET /stellar/kyc/status— returns current user's KYC status:PENDING,VERIFIED,REJECTED