BasicsΒΆ
Mapping DAML types to Python types
DAML type |
Python type |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
records |
|
variants |
|
Some examples
The examples below are valid for the following DAML:
data Rectangle = Rectangle with
length: Decimal
width: Decimal
data Expr a = Num a
| Product (Expr a) (Expr a)
| Sum (Expr a) (Expr a)
template CalculateRequest
with
requester: Party
computer: Party
expression: Expr Decimal
template CalculateResponse
with
requester: Party
computer: Party
value: Decimal