The counterpart of DAML's ContractId T
type.
We represent ContractId
s as strings. Their exact format of these strings depends on the ledger
the DAML application is running on.
The purpose of the intersection with { [ContractIdBrand]: T }
is to
prevent accidental use of a ContractId<T>
when a ContractId<U>
is
needed (unless T
is a subtype of U
). This technique is known as
"branding" in the TypeScript community.
The contract template.
The counterpart of DAML's Date
type.
We represent Date
s as strings with format YYYY-MM-DD
.
The counterpart of DAML's Decimal type.
In DAML, Decimal's are the same as Numeric with precision 10.
The counterpart of DAML's Int
type.
We represent Int
s as string in order to avoid a loss of precision.
The counterpart of DAML's [T]
list type.
We represent lists using arrays.
The type of the list values.
The counterpart of DAML's Numeric
type.
We represent Numeric
s as string in order to avoid a loss of precision. The string must match
the regular expression -?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?
.
The counterpart of DAML's Optional T
type.
The type of the optionally present value.
Inner type of Optional.
The counterpart of DAML's Party
type.
We represent Party
s as strings matching the regular expression [A-Za-z0-9:_\- ]+
.
The counterpart of DAML's Text
type.
The counterpart of DAML's TextMap T
type.
We represent TextMap
s as dictionaries.
The type of the map values.
The counterpart of DAML's Time
type.
We represent Times
s as strings with format YYYY-MM-DDThh:mm:ss[.ssssss]Z
.
The counterpart of DAML's ()
type.
Used to brand
ContractId.
Companion object of the Decimal type.
Companion object of the ContractId type.
Companion object of the List type.
Companion function of the Numeric type.
Companion function of the Optional type.
Companion object of the TextMap type.
Companion object of the Bool type.
Companion object of the Date type.
Companion object of the Int type.
Companion object of the Party type.
Companion object of the Text type.
Companion object of the Time type.
Companion obect of the Unit type.
Generated using TypeDoc
The counterpart of DAML's
Bool
type.