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

Interfaces

interface Factory

Factory contract used to create, remove and view a Numeric.Observation.

  • Choice Archive

    (no fields)

  • Choice Create

    Create an Observation.

    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.
  • Choice Remove

    Archive an Observation.

    Field Type Description
    actors Parties The parties authorizing the removal.
    observationCid ContractId I The observation to be removed.
  • Method asDisclosure : I

    Conversion to Disclosure.I interface.

  • Method create’ : Create -> Update (ContractId I)

    Implementation of Create choice.

  • Method remove : Remove -> Update ()

    Implementation of Remove choice.

Typeclasses

class Implementation t => HasImplementation t where

Data Types

type F

= Factory

Type synonym for Factory.

type Implementation t

= (HasToInterface t F, Implementation t)

Type constraint for requiring templates to implement Factory along with Disclosure.

type V

= View

Type synonym for View.

instance HasFromAnyView Factory V

data View

View

Field Type Description
provider Party The provider of the Factory.
observers PartiesMap The observers of the Factory.

instance Eq View

instance Show View

Functions

asDisclosure
: Factory -> I
create’
: Factory -> Create -> Update (ContractId I)
remove
: Factory -> Remove -> Update ()