IOU Smart Contract Data Model

Define contract state data schema that should be stored on the ledger

  • Start up and open Dovetail Studio WebUI
  • Go to Connection tab
  • Click “Add Connection”
    • Choose “Define Ledger Asset Schema” from the list
    • Enter display name, e.g. “my first IOU”
    • Enter asset name “IOU”
    • Enter module name “com.example.iou”
    • Select asset type “Linear State”
      • LinearId attribute will be automatically added to the pre-defined fields
    • Enter addition fields
      • issuer, select “Party” from the type dropdown menu
      • holder, select “Party” from the type dropdown menu
      • amt, select “Amount” from the type dropdown menu
    • Define party roles
      • add “issuer”, leave other fields as default
      • add “holder”, leave other fields as default
    • Click “Donee” button

Last modified February 10, 2020: New docs with TCI (843c31c)