Module Daml.Finance.Interface.Lifecycle.Event

Interfaces

interface Event

A lifecycle event. These events are ordered based on the corresponding event time.

  • Choice Archive

    (no fields)

  • Choice GetView

    Retrieves the interface view.

    Field Type Description
    viewer Party The party retrieving the view.

Typeclasses

class Implementation t => HasImplementation t where

Data Types

type I

= Event

Type synonym for Event.

instance HasMethod Instrument "declareDividend" (DeclareDividend -> Update (ContractId I))

instance HasMethod Instrument "declareReplacement" (DeclareReplacement -> Update (ContractId I))

instance HasMethod Instrument "declareStockSplit" (DeclareStockSplit -> Update (ContractId I))

instance HasMethod Election "asEvent" I

instance HasMethod Event "asEvent" I

instance HasMethod Event "asEvent" I

instance HasMethod Event "asEvent" I

type Implementation t

= HasToInterface t I

Type constraint for requiring templates to implement Event.

type V

= View

Type synonym for View.

instance HasFromAnyView Event V

data View

View for Event.

View

Field Type Description
providers Parties Providers of the event.
id Id Identifier for the event.
description Text A human readable description of the event.
eventTime Time The time of the event. This allows ordering of events.

instance Eq View

instance Show View

Functions

getEventTime

: Event -> Time

Given an event, retrieves the event time.