4.3.1 Create SPV

Create SVP Step-by-Step test guide

Create Special Purpose Vehicle (SPV). Requires SpvConfirmation role. Ensures property fully sold, registers SPV, sets claim window, updates listing, emits SpvCreated.

Expected:

  • Must be called after sold-out (listed_token_amount == 0).

Action:

  1. Developer → Extrinsics → pallet marketplacecreateSpv

    • origin: Dave (sign). This needs to be someone with SpvConfirmation role.

    • listingid: 7 . The screenshot is illustrative and may not reflect the exact state following the described attempts in 4.2.1 Buy Property Token. This is the listing where the last token has been purchased. This is when the listed token amount in marketplaceOngoingObjectListing in Chain State becomes zero.

  2. Submit & sign.

Post-checks:

Developer → Chain State

marketplaceOngoingObjectListing :

  • PropertyToken::register_spv(asset_id) executed, claim_expiry set to current + ClaimWindow. Claim expiry shown in green font below.

  • Event SpvCreated.

{ realEstateDeveloper: 14Gjs1TD93gnwEBfDMHoCgsuf1s2TVKUP6Z1qKmAZnZ8cW5q tokenPrice: 100 collectedFunds: { 1337: 0 1984: 0 } collectedTax: { 1337: 0 1984: 0 } collectedFees: { 1337: 0 1984: 0 } assetId: 7 itemId: 7 collectionId: 0 tokenAmount: 100 listedTokenAmount: 0 taxPaidByDeveloper: true tax: 0.20% listingExpiry: 8,768 investorFunds: {} claimExpiry: 8,737 relistCount: 0 unclaimedTokenAmount: 100 }

Last updated