Daml.Finance.Interface.Account.Factory

Interfaces

interface Factory

Interface that allows implementing templates to create accounts.

viewtype V

  • Choice Archive

    Controller: Signatories of implementing template

    Returns: ()

    (no fields)

  • Choice Create

    Create a new account.

    Controller: (DA.Internal.Record.getField @"custodian" account), (DA.Internal.Record.getField @"owner" account)

    Returns: ContractId I

    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.

    Controller: (DA.Internal.Record.getField @"custodian" account), (DA.Internal.Record.getField @"owner" account)

    Returns: ()

    Field Type Description
    account AccountKey The account’s key.
  • Method create’ : Create -> Update (ContractId I)

    Implementation of Create choice.

  • Method remove : Remove -> Update ()

    Implementation of Remove choice.

Data Types

type F

= Factory

Type synonym for Factory.

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