Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Choice<T, C, R, K>

Interface for objects representing Daml choices.

Type parameters

  • T: object

    The template type.

  • C

    The choice type.

  • R

    The choice return type.

  • K = unknown

    The contract key type.

Hierarchy

Index

Properties

argumentDecoder: Decoder<C>
internal

Returns a decoder to decode the choice arguments.

Note: we never need to decode the choice arguments, as they are sent over the API but not received.

choiceName: string

The choice name.

resultDecoder: Decoder<R>
internal

Returns a deocoder to decode the return value.

Methods

  • argumentEncode(c: C): unknown
  • internal

    Parameters

    • c: C

    Returns unknown

  • template(): O
  • Returns the template to which this choice belongs.

    Returns O

Generated using TypeDoc