示例#1
0
 public Com.Daml.Ledger.Api.V1.CreateAndExerciseCommand ToProto()
 {
     return(new Com.Daml.Ledger.Api.V1.CreateAndExerciseCommand {
         TemplateId = TemplateId.ToProto(), CreateArguments = CreateArguments.ToProtoRecord(),
         Choice = Choice, ChoiceArgument = ChoiceArgument.ToProto()
     });
 }
示例#2
0
        public Com.Daml.Ledger.Api.V1.ExercisedEvent ToProto()
        {
            var exercisedEvent = new Com.Daml.Ledger.Api.V1.ExercisedEvent {
                EventId    = EventId, Choice = Choice, ChoiceArgument = ChoiceArgument.ToProto(), Consuming = Consuming,
                ContractId = ContractId, TemplateId = TemplateId.ToProto(), ExerciseResult = ExerciseResult.ToProto()
            };

            exercisedEvent.ActingParties.AddRange(ActingParties);
            exercisedEvent.WitnessParties.AddRange(WitnessParties);
            exercisedEvent.ChildEventIds.AddRange(ChildEventIds);

            return(exercisedEvent);
        }
示例#3
0
 public Com.Daml.Ledger.Api.V1.ExerciseCommand ToProto()
 {
     return(new Com.Daml.Ledger.Api.V1.ExerciseCommand {
         TemplateId = TemplateId.ToProto(), ContractId = ContractId, Choice = Choice, ChoiceArgument = ChoiceArgument.ToProto()
     });
 }
 public Com.DigitalAsset.Ledger.Api.V1.ExerciseByKeyCommand ToProto()
 {
     return(new Com.DigitalAsset.Ledger.Api.V1.ExerciseByKeyCommand {
         TemplateId = TemplateId.ToProto(), ContractKey = ContractKey.ToProto(), Choice = Choice, ChoiceArgument = ChoiceArgument.ToProto()
     });
 }