Module Daml.Finance.Interface.Instrument.Equity.Factory

Interfaces

interface Factory

Factory interface to instantiate equities.

  • Choice Archive

    (no fields)

  • Choice Create

    Create a new account.

    Field Type Description
    instrument InstrumentKey The instrument’s key.
    description Text A description of the instrument.
    validAsOf Time (Market) time of the last recorded lifecycle event. If no event has occurred yet, the time of creation should be used.
    observers PartiesMap The instrument’s observers.
  • Choice Remove

    Archive an account.

    Field Type Description
    instrument InstrumentKey The account’s key.
  • Method asDisclosure : I

    Conversion to Disclosure 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 Factory, 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.

instance Eq View

instance Show View

Functions

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