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

Overview

Setup

Creation of Asset: Asset Contract and Asset Holder Contract

Asset Contract

Asset template (Asset.daml)

Asset Holder Contracts

AssetHolder template (Asset/Role.daml)
AssetHolderInvite template (Asset/Role.daml)

Asset Contract Creation

Issuer creates Asset contract through exercising in AssetHolder contract.
Choice Issue_Asset in AssetHolder template (Asset/Role.daml)

Fungibility of Asset

Overview

Split

Choice Split in Asset template (Asset.daml)

Merge

Choice Merge in Asset template (Asset.daml)

Asset Transfer

Proposal Stage

Choice ProposeTransfer in Asset template (Asset.daml)
TransferProposal template (Asset.daml)

Acceptance Stage

Choice Accept_Transfer in AssetHolder contract (Asset/Role.daml)
TransferProposal template (Asset.daml)

Test Script

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