4.18.1 (Option) Make Offer

(Option) Make Offer Step-by-Step test guide

Allows an investor to place an offer on a property listing by locking funds into escrow until the offer is accepted, rejected, or expires.

Action:

  1. Developer → Extrinsics → pallet marketplacemakeOffer

    • origin: Investor

    • listingId: 3 . The listingId thatthe investor wants to buy from increases after relist action taken, the number of make offer, handle offer and buy relisted token happened to the listed property by the real estate developer at 4.1.1 List Property.

    • offerPrice: 9000000 . The offer price can be anything that the investor prefer.

    • amount: 2 . This is the amount of token that the investor wants to purchase with the offerPrice above.

    • paymentAsset: choose accepted id ( 1337 or 1984 ).

  1. Submit & sign.

The transaction can also be seen in Network → Explorer

Repeat Action (1) and (2) for another investor making an offer

The transaction can also be seen in Network → Explorer

Post-checks:

Developer → Chain State

marketplacetokenListings :

  • The result shows the relist tokens that the investors trying to make offer to.

  • listingId: 3 is the second item on the list (green colour font).

[ [ [ 1 ] { seller: 126TwBzBM4jUEK2gTphmW4oLoBWWnYvPp8hygmduTr4uds57 tokenPrice: 10,000,000 assetId: 0 itemId: 0 collectionId: 0 amount: 3 } ] [ [ 3 ] { seller: 15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5 tokenPrice: 10,000,000 assetId: 0 itemId: 0 collectionId: 0 amount: 5 } ] ]

assetHolderbalancesOnHold :

  • u32: paymentAsset accepted id ( 1337 or 1984 ).

[ [ [ 1,984 14E5nqKAp3oAJcmzgZhUD2RcptBeUBScxKHgJKU4HPNcKVf3 ] 16,000,000 ] [ [ 1,984 126TwBzBM4jUEK2gTphmW4oLoBWWnYvPp8hygmduTr4uds57 ] 18,000,000 ] ]

Last updated