Module Daml.Finance.Interface.Instrument.Generic.Election.Factory¶
Interfaces¶
interface Factory
Factory interface to instantiate elections on generic instruments.
Choice Archive
(no fields)
Choice Create
Create a new Election.
Field Type Description actors Parties Parties calling the Createchoice.elector Party Parties on behalf of which the election is made. counterparty Party Faces the electorin theHolding.provider Party Party that signs the election (together with the elector). id Id The identifier for an election. description Text A description of the instrument. claim C The claim representation of the election (i.e., the elected sub-tree). electorIsOwner Bool Trueif election is on behalf of the owner of the holding,Falseotherwise.electionTime Time Time at which the election is put forward. observers PartiesMap Observers of the election. amount Decimal Number of instrument units to which the election applies. instrument InstrumentKey The instrument to which the election applies. Choice Remove
Archive an account.
Field Type Description actors Parties Parties executing the Removechoice.electionCid ContractId I The election’s contract id. Method asDisclosure : I
Conversion to
Disclosureinterface.Method create’ : Create -> Update (ContractId I)
Implementation of
Createchoice.Method remove : Remove -> Update ()
Implementation of
Removechoice.
Typeclasses¶
class Implementation t => HasImplementation t where
Data Types¶
- type Implementation t
= (HasToInterface t Factory, Implementation t)
Type constraint for requiring templates to implement
Factoryalong withDisclosure.
- type V
= View
Type synonym for
View.instance HasFromAnyView Factory V
data View