New actions need to be implemented to allow the Notary to validate or reject a transaction and the Seller to cancel the transaction.
Implementation
Create the pallet finalizer
Add a new asset status CANCELLED to manage the status of a asset in a transaction cancelled by the seller
Add the method get_assets() to retrieve assets for the Notary to process and can only be called by the Notary role. Assets will have FINALISNG status
Add the method validate_transaction_asset. This method set the asset status to FINALISED and can only be called by the Notary role.
Add the method reject_transaction_asset. This method set the asset status to REJECTED and unreserve the investors participation (by calling HousingFund::cancel_house_bidding() ) and can only be called by the Notary role.
Add the method cancel_transaction_asset(). This method set the asset status to CANCELLED, unreserved the investors fund and can only be called by the SELLER role owner of the asset. The call is only possible on an asset with the FINALISED status after the Notary has approved the transaction.
Motivation
New actions need to be implemented to allow the Notary to validate or reject a transaction and the Seller to cancel the transaction.
Implementation
Create the pallet finalizer
CANCELLED
to manage the status of a asset in a transaction cancelled by the sellerget_assets()
to retrieve assets for the Notary to process and can only be called by theNotary
role. Assets will haveFINALISNG
statusvalidate_transaction_asset
. This method set the asset status toFINALISED
and can only be called by theNotary
role.reject_transaction_asset
. This method set the asset status toREJECTED
and unreserve the investors participation (by callingHousingFund::cancel_house_bidding()
) and can only be called by theNotary
role.cancel_transaction_asset()
. This method set the asset status toCANCELLED
, unreserved the investors fund and can only be called by theSELLER
role owner of the asset. The call is only possible on an asset with theFINALISED
status after the Notary has approved the transaction.