Module Daml.Finance.Interface.Data.Numeric.Observation

Interfaces

interface Observation

Interface for a time-dependent numeric Observation, where the values are explicitly stored on-ledger.

  • Choice Archive

    (no fields)

  • Choice GetView

    Retrieves the interface view.

    Field Type Description
    viewer Party The party fetching the view.
  • Method asDisclosure : I

    Conversion to Disclosure interface.

  • Method asNumericObservable : I

    Conversion to NumericObservable interface.

Typeclasses

class Implementation t => HasImplementation t where

Data Types

type I

= Observation

Type synonym for Observation.

instance HasMethod Factory "create’" (Create -> Update (ContractId I))

type Implementation t

= (HasToInterface t I, Implementation t, Implementation t)

Type constraint for requiring templates to implement Observation along with Disclosure as well as NumericObservable.

type V

= View

Type synonym for View.

instance HasFromAnyView Observation V

data View

View for Observation.

View

Field Type Description
provider Party The reference data provider.
id Id A textual identifier.
observations Map Time Decimal The time-dependent values.
observers PartiesMap Observers.