Skip to content

Latest commit

 

History

History
51 lines (25 loc) · 2.01 KB

README.md

File metadata and controls

51 lines (25 loc) · 2.01 KB

This is a DAML app:

DAML is smart contract language for multi party applications. DAML contracts/apps can be deployed to interact with centralized databases as well as select blockchain networks. DAML syntax is based on and is similar to the Haskell programing language. DAML differes from Solidity smart contracts in many ways, you can read more about how they stack up here

You can access the DAML docs at https://docs.daml.com/. Additoinally a good resource for updated information about the platform can befound on their forum here

Time Tracker Application

This is a time tracker application that makes it possible for a user to track time they have spent on various tasks.

The daml template can be found in theTimetracker.daml file in the daml directory.

  • This Daml model implements:
    • creation
    • update and
    • deletion of the representation of time spent.

Additionally the following data types have been provided: Description, Start (date)time, End (date)time, A project identifier to allow higher level organization.

In the same Timetracker.daml file you will find the following script:

  • A Daml script that can be used to initialize the ledger with at least one user and a few sample records.
  • A Daml script that does some testing of the templates.

Finally, using daml start from the root of the timetracker directory we can start an 'in-memory instance of Canton with a single domain and a single participant` achieving the following objective:

  • A minimal Canton ledger (1 participant node, 1 domain node, single config file) that when opening the Navigator shows how the template can be used. Configuration for Canton ledger can be found in the daml.yaml file as follows:
ledger:
    host: localhost
    port: 6865

From the Navigator UI you can create, update, and archive contracts from the Timetracker template.