package command
Type Members
- sealed abstract class ApiCommand extends Command
- sealed abstract class Command extends Product with Serializable
- case class Commands(commands: ImmArray[ApiCommand], ledgerEffectiveTime: Timestamp, commandsReference: String) extends Product with Serializable
Commands input adapted from ledger-api
Commands input adapted from ledger-api
- commands
a batch of commands to be interpreted/executed
- ledgerEffectiveTime
approximate time the commands to be effective, interpretation will take this instant
- commandsReference
id passed only for error reporting
- final case class CreateAndExerciseCommand(templateId: Identifier, createArgument: Value, choiceId: ChoiceName, choiceArgument: Value) extends ApiCommand with Product with Serializable
Command for creating a contract and exercising a choice on that existing contract within the same transaction
Command for creating a contract and exercising a choice on that existing contract within the same transaction
- templateId
identifier of the original contract
- createArgument
value passed to the template
- choiceId
identifier choice
- choiceArgument
value passed for the choice
- final case class CreateByInterfaceCommand(interfaceId: Identifier, templateId: Identifier, argument: Value) extends Command with Product with Serializable
Create template contract, by interface
- final case class CreateCommand(templateId: Identifier, argument: Value) extends ApiCommand with Product with Serializable
Command for creating a contract
Command for creating a contract
- templateId
identifier of the template that the contract is instantiating
- argument
value passed to the template
- final case class ExerciseByInterfaceCommand(interfaceId: Identifier, templateId: Identifier, contractId: ContractId, choiceId: ChoiceName, argument: Value) extends Command with Product with Serializable
Exercise a template choice, by interface.
- final case class ExerciseByKeyCommand(templateId: Identifier, contractKey: Value, choiceId: ChoiceName, argument: Value) extends ApiCommand with Product with Serializable
Command for exercising a choice on an existing contract specified by its key
Command for exercising a choice on an existing contract specified by its key
- templateId
identifier of the original contract
- contractKey
key of the contract on which the choice is exercised
- choiceId
identifier choice
- argument
value passed for the choice
- final case class ExerciseCommand(templateId: Identifier, contractId: ContractId, choiceId: ChoiceName, argument: Value) extends ApiCommand with Product with Serializable
Command for exercising a choice on an existing contract
Command for exercising a choice on an existing contract
- templateId
identifier of the original contract
- contractId
contract on which the choice is exercised
- choiceId
identifier choice
- argument
value passed for the choice
- final case class ExerciseTemplateCommand(templateId: Identifier, contractId: ContractId, choiceId: ChoiceName, argument: Value) extends Command with Product with Serializable
Exercise a template choice, not by interface.
- final case class FetchByInterfaceCommand(interfaceId: Identifier, templateId: Identifier, coid: ContractId) extends Command with Product with Serializable
Fetch a template, by interface
- final case class FetchByKeyCommand(templateId: Identifier, key: Value) extends Command with Product with Serializable
- final case class FetchCommand(templateId: Identifier, coid: ContractId) extends Command with Product with Serializable
Fetch a template, not by interface
- final case class LookupByKeyCommand(templateId: Identifier, contractKey: Value) extends Command with Product with Serializable