A CTO file is composed of the following elements:
Element |
Description |
A single namespace |
Defines the composer model namespace; every .cto model file requires a namespace. |
Resources - asset |
Anything of value that can be exchanged between parties. |
Resources - participant |
Business network member. |
Resources - enum |
A data type consisting of a set of named values. |
Resources - concept |
Any object you want to model that is not one of the other types. |
Resources - transactions |
Defines the blockchain business logic. |
Resources - events |
Blockchain transaction notification. |
Import |
Imports resources from other namespaces. |
The composer model language, like other programming ...