Asset Modeling in DAML (Tutorial-7 Deep Dive Part 2)

Overview

Flow of Asset Trading

Analysis of Contract Design

Flow Walk-through

Step 1: Setup of AssetHolder and Asset Contracts for both parties

Step 2: Observer setting

SetObservers choice in Asset template (Asset.daml)

Step 3: Preparation of Information for Trade Contract

Choice Preapprove_Transfer in AssetHolder template (Asset/Role.daml)

Step 4: Creation of Trade Contract

Trade template (Asset/Trade.daml)

Step 5: Preparation for Trade Settlement

Step 6: Trade Settlement

Choice Trade_Settle in Trade template (Asset/Trade.daml)
Choice TransferApproval_Transfer in TransferApproval template (Asset.daml)

Summary

Visit http://www.ledgertech.biz/kcarticles.html for all my works. Reach me on https://www.linkedin.com/in/ktam1/ or follow me @kctheservant in Twitter.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store