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.
A disclosed contract that can be passed on a command submission.
The counterpart of Daml's Int
type.
We represent Int
s as string in order to avoid a loss of precision.
An interface type, for use with contract IDs.
The interface ID as a constant string.
Interface for objects representing Daml interfaces.
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.
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
.
Companion object of the Bool type.
Companion object of the Date type.
Companion object of the Decimal 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 object of the Unit type.
Companion object of the ContractId type.
Companion object of the List type.
Companion function of the [[GenMap]] type.
Companion function of the Numeric type.
Companion function of the Optional type.
Companion object of the TextMap type.
Generated using TypeDoc
The counterpart of Daml's
Bool
type.