Module Daml.Finance.Interface.Account.Factory


interface Factory

Interface that allows implementing templates to create accounts.

  • Choice Archive

    (no fields)

  • Choice Create

    Create a new account.

    Field Type Description
    account AccountKey The account’s key.
    holdingFactoryCid ContractId F Associated holding factory for the account.
    controllers Controllers Controllers of the account.
    description Text Human readable description of the account.
    observers PartiesMap The account’s observers.
  • Choice Remove

    Archive an account.

    Field Type Description
    account AccountKey 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.


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


Field Type Description
provider Party The provider of the Factory.

instance Eq View

instance Show View


: Factory -> I
: Factory -> Create -> Update (ContractId I)
: Factory -> Remove -> Update ()