Types
Types are the building blocks of your coin economy: in particular, who is handling transactions, what is being transacted, and how the transactions work. Coin Core types fall into three general categories:
- objects
- states
- operations
Objects
Objects are types that define the what, who, and how of a coin economy. Coins specify what assets are available, targets define who can participate in transactions using those assets, and events define how those assets may be used.
Operations
Operations are types that change or produce states within a coin economy. Currently, there is only one operation type: the “action” operation.
States
States are types that record the condition of a coin economy at a given time. By evaluating states, it is possible to verify the veracity of transactions that occur within your coin economy.
The upcoming sections will go into the details of each of these types and their properties.
Updated over 6 years ago