@canton-network/core-ledger-client 0.9.0 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (222) hide show
  1. package/dist/index.d.ts +1 -9
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +0 -8
  4. package/dist/token-standard-service.d.ts +8 -0
  5. package/dist/token-standard-service.d.ts.map +1 -1
  6. package/dist/token-standard-service.js +28 -0
  7. package/dist/txparse/types.d.ts +9 -9
  8. package/dist/txparse/types.d.ts.map +1 -1
  9. package/package.json +5 -5
  10. package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.client.d.ts +0 -58
  11. package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.client.d.ts.map +0 -1
  12. package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.client.js +0 -34
  13. package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.d.ts +0 -232
  14. package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.d.ts.map +0 -1
  15. package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.js +0 -560
  16. package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.client.d.ts +0 -144
  17. package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.client.d.ts.map +0 -1
  18. package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.client.js +0 -85
  19. package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.d.ts +0 -291
  20. package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.d.ts.map +0 -1
  21. package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.js +0 -663
  22. package/dist/_proto/com/daml/ledger/api/v2/admin/object_meta.d.ts +0 -76
  23. package/dist/_proto/com/daml/ledger/api/v2/admin/object_meta.d.ts.map +0 -1
  24. package/dist/_proto/com/daml/ledger/api/v2/admin/object_meta.js +0 -96
  25. package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.client.d.ts +0 -106
  26. package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.client.d.ts.map +0 -1
  27. package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.client.js +0 -62
  28. package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.d.ts +0 -199
  29. package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.d.ts.map +0 -1
  30. package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.js +0 -427
  31. package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.client.d.ts +0 -56
  32. package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.client.d.ts.map +0 -1
  33. package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.client.js +0 -35
  34. package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.d.ts +0 -81
  35. package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.d.ts.map +0 -1
  36. package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.js +0 -135
  37. package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.client.d.ts +0 -196
  38. package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.client.d.ts.map +0 -1
  39. package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.client.js +0 -113
  40. package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.d.ts +0 -413
  41. package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.d.ts.map +0 -1
  42. package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.js +0 -867
  43. package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.client.d.ts +0 -210
  44. package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.client.d.ts.map +0 -1
  45. package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.client.js +0 -126
  46. package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.d.ts +0 -758
  47. package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.d.ts.map +0 -1
  48. package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.js +0 -1580
  49. package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.client.d.ts +0 -66
  50. package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.client.d.ts.map +0 -1
  51. package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.client.js +0 -38
  52. package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.d.ts +0 -90
  53. package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.d.ts.map +0 -1
  54. package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.js +0 -178
  55. package/dist/_proto/com/daml/ledger/api/v2/command_service.client.d.ts +0 -99
  56. package/dist/_proto/com/daml/ledger/api/v2/command_service.client.d.ts.map +0 -1
  57. package/dist/_proto/com/daml/ledger/api/v2/command_service.client.js +0 -61
  58. package/dist/_proto/com/daml/ledger/api/v2/command_service.d.ts +0 -210
  59. package/dist/_proto/com/daml/ledger/api/v2/command_service.d.ts.map +0 -1
  60. package/dist/_proto/com/daml/ledger/api/v2/command_service.js +0 -436
  61. package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.client.d.ts +0 -80
  62. package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.client.d.ts.map +0 -1
  63. package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.client.js +0 -47
  64. package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.d.ts +0 -91
  65. package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.d.ts.map +0 -1
  66. package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.js +0 -200
  67. package/dist/_proto/com/daml/ledger/api/v2/commands.d.ts +0 -491
  68. package/dist/_proto/com/daml/ledger/api/v2/commands.d.ts.map +0 -1
  69. package/dist/_proto/com/daml/ledger/api/v2/commands.js +0 -828
  70. package/dist/_proto/com/daml/ledger/api/v2/completion.d.ts +0 -149
  71. package/dist/_proto/com/daml/ledger/api/v2/completion.d.ts.map +0 -1
  72. package/dist/_proto/com/daml/ledger/api/v2/completion.js +0 -196
  73. package/dist/_proto/com/daml/ledger/api/v2/event.d.ts +0 -495
  74. package/dist/_proto/com/daml/ledger/api/v2/event.d.ts.map +0 -1
  75. package/dist/_proto/com/daml/ledger/api/v2/event.js +0 -723
  76. package/dist/_proto/com/daml/ledger/api/v2/event_query_service.client.d.ts +0 -52
  77. package/dist/_proto/com/daml/ledger/api/v2/event_query_service.client.d.ts.map +0 -1
  78. package/dist/_proto/com/daml/ledger/api/v2/event_query_service.client.js +0 -31
  79. package/dist/_proto/com/daml/ledger/api/v2/event_query_service.d.ts +0 -150
  80. package/dist/_proto/com/daml/ledger/api/v2/event_query_service.d.ts.map +0 -1
  81. package/dist/_proto/com/daml/ledger/api/v2/event_query_service.js +0 -291
  82. package/dist/_proto/com/daml/ledger/api/v2/experimental_features.d.ts +0 -96
  83. package/dist/_proto/com/daml/ledger/api/v2/experimental_features.d.ts.map +0 -1
  84. package/dist/_proto/com/daml/ledger/api/v2/experimental_features.js +0 -225
  85. package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_common_data.d.ts +0 -43
  86. package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_common_data.d.ts.map +0 -1
  87. package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_common_data.js +0 -85
  88. package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.client.d.ts +0 -100
  89. package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.client.d.ts.map +0 -1
  90. package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.client.js +0 -59
  91. package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.d.ts +0 -877
  92. package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.d.ts.map +0 -1
  93. package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.js +0 -1768
  94. package/dist/_proto/com/daml/ledger/api/v2/interactive/transaction/v1/interactive_submission_data.d.ts +0 -259
  95. package/dist/_proto/com/daml/ledger/api/v2/interactive/transaction/v1/interactive_submission_data.d.ts.map +0 -1
  96. package/dist/_proto/com/daml/ledger/api/v2/interactive/transaction/v1/interactive_submission_data.js +0 -667
  97. package/dist/_proto/com/daml/ledger/api/v2/offset_checkpoint.d.ts +0 -69
  98. package/dist/_proto/com/daml/ledger/api/v2/offset_checkpoint.d.ts.map +0 -1
  99. package/dist/_proto/com/daml/ledger/api/v2/offset_checkpoint.js +0 -133
  100. package/dist/_proto/com/daml/ledger/api/v2/package_reference.d.ts +0 -41
  101. package/dist/_proto/com/daml/ledger/api/v2/package_reference.d.ts.map +0 -1
  102. package/dist/_proto/com/daml/ledger/api/v2/package_reference.js +0 -84
  103. package/dist/_proto/com/daml/ledger/api/v2/package_service.client.d.ts +0 -68
  104. package/dist/_proto/com/daml/ledger/api/v2/package_service.client.d.ts.map +0 -1
  105. package/dist/_proto/com/daml/ledger/api/v2/package_service.client.js +0 -43
  106. package/dist/_proto/com/daml/ledger/api/v2/package_service.d.ts +0 -181
  107. package/dist/_proto/com/daml/ledger/api/v2/package_service.d.ts.map +0 -1
  108. package/dist/_proto/com/daml/ledger/api/v2/package_service.js +0 -395
  109. package/dist/_proto/com/daml/ledger/api/v2/reassignment.d.ts +0 -308
  110. package/dist/_proto/com/daml/ledger/api/v2/reassignment.d.ts.map +0 -1
  111. package/dist/_proto/com/daml/ledger/api/v2/reassignment.js +0 -521
  112. package/dist/_proto/com/daml/ledger/api/v2/reassignment_commands.d.ts +0 -193
  113. package/dist/_proto/com/daml/ledger/api/v2/reassignment_commands.d.ts.map +0 -1
  114. package/dist/_proto/com/daml/ledger/api/v2/reassignment_commands.js +0 -350
  115. package/dist/_proto/com/daml/ledger/api/v2/state_service.client.d.ts +0 -91
  116. package/dist/_proto/com/daml/ledger/api/v2/state_service.client.d.ts.map +0 -1
  117. package/dist/_proto/com/daml/ledger/api/v2/state_service.client.js +0 -56
  118. package/dist/_proto/com/daml/ledger/api/v2/state_service.d.ts +0 -448
  119. package/dist/_proto/com/daml/ledger/api/v2/state_service.d.ts.map +0 -1
  120. package/dist/_proto/com/daml/ledger/api/v2/state_service.js +0 -874
  121. package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.client.d.ts +0 -54
  122. package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.client.d.ts.map +0 -1
  123. package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.client.js +0 -34
  124. package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.d.ts +0 -78
  125. package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.d.ts.map +0 -1
  126. package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.js +0 -168
  127. package/dist/_proto/com/daml/ledger/api/v2/topology_transaction.d.ts +0 -211
  128. package/dist/_proto/com/daml/ledger/api/v2/topology_transaction.d.ts.map +0 -1
  129. package/dist/_proto/com/daml/ledger/api/v2/topology_transaction.js +0 -447
  130. package/dist/_proto/com/daml/ledger/api/v2/trace_context.d.ts +0 -33
  131. package/dist/_proto/com/daml/ledger/api/v2/trace_context.d.ts.map +0 -1
  132. package/dist/_proto/com/daml/ledger/api/v2/trace_context.js +0 -69
  133. package/dist/_proto/com/daml/ledger/api/v2/transaction.d.ts +0 -252
  134. package/dist/_proto/com/daml/ledger/api/v2/transaction.d.ts.map +0 -1
  135. package/dist/_proto/com/daml/ledger/api/v2/transaction.js +0 -410
  136. package/dist/_proto/com/daml/ledger/api/v2/transaction_filter.d.ts +0 -453
  137. package/dist/_proto/com/daml/ledger/api/v2/transaction_filter.d.ts.map +0 -1
  138. package/dist/_proto/com/daml/ledger/api/v2/transaction_filter.js +0 -815
  139. package/dist/_proto/com/daml/ledger/api/v2/update_service.client.d.ts +0 -199
  140. package/dist/_proto/com/daml/ledger/api/v2/update_service.client.d.ts.map +0 -1
  141. package/dist/_proto/com/daml/ledger/api/v2/update_service.client.js +0 -121
  142. package/dist/_proto/com/daml/ledger/api/v2/update_service.d.ts +0 -424
  143. package/dist/_proto/com/daml/ledger/api/v2/update_service.d.ts.map +0 -1
  144. package/dist/_proto/com/daml/ledger/api/v2/update_service.js +0 -853
  145. package/dist/_proto/com/daml/ledger/api/v2/value.d.ts +0 -500
  146. package/dist/_proto/com/daml/ledger/api/v2/value.d.ts.map +0 -1
  147. package/dist/_proto/com/daml/ledger/api/v2/value.js +0 -937
  148. package/dist/_proto/com/daml/ledger/api/v2/version_service.client.d.ts +0 -40
  149. package/dist/_proto/com/daml/ledger/api/v2/version_service.client.d.ts.map +0 -1
  150. package/dist/_proto/com/daml/ledger/api/v2/version_service.client.js +0 -25
  151. package/dist/_proto/com/daml/ledger/api/v2/version_service.d.ts +0 -190
  152. package/dist/_proto/com/daml/ledger/api/v2/version_service.d.ts.map +0 -1
  153. package/dist/_proto/com/daml/ledger/api/v2/version_service.js +0 -400
  154. package/dist/_proto/com/digitalasset/canton/crypto/v30/crypto.d.ts +0 -1028
  155. package/dist/_proto/com/digitalasset/canton/crypto/v30/crypto.d.ts.map +0 -1
  156. package/dist/_proto/com/digitalasset/canton/crypto/v30/crypto.js +0 -2110
  157. package/dist/_proto/com/digitalasset/canton/protocol/v30/sequencing_parameters.d.ts +0 -30
  158. package/dist/_proto/com/digitalasset/canton/protocol/v30/sequencing_parameters.d.ts.map +0 -1
  159. package/dist/_proto/com/digitalasset/canton/protocol/v30/sequencing_parameters.js +0 -62
  160. package/dist/_proto/com/digitalasset/canton/protocol/v30/synchronizer_parameters.d.ts +0 -168
  161. package/dist/_proto/com/digitalasset/canton/protocol/v30/synchronizer_parameters.d.ts.map +0 -1
  162. package/dist/_proto/com/digitalasset/canton/protocol/v30/synchronizer_parameters.js +0 -395
  163. package/dist/_proto/com/digitalasset/canton/protocol/v30/topology.d.ts +0 -1105
  164. package/dist/_proto/com/digitalasset/canton/protocol/v30/topology.d.ts.map +0 -1
  165. package/dist/_proto/com/digitalasset/canton/protocol/v30/topology.js +0 -2294
  166. package/dist/_proto/com/digitalasset/canton/protocol/v30/traffic_control_parameters.d.ts +0 -278
  167. package/dist/_proto/com/digitalasset/canton/protocol/v30/traffic_control_parameters.d.ts.map +0 -1
  168. package/dist/_proto/com/digitalasset/canton/protocol/v30/traffic_control_parameters.js +0 -654
  169. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/common.d.ts +0 -166
  170. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/common.d.ts.map +0 -1
  171. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/common.js +0 -379
  172. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.client.d.ts +0 -199
  173. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.client.d.ts.map +0 -1
  174. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.client.js +0 -136
  175. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.d.ts +0 -1195
  176. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.d.ts.map +0 -1
  177. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.js +0 -3342
  178. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.client.d.ts +0 -119
  179. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.client.d.ts.map +0 -1
  180. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.client.js +0 -76
  181. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.d.ts +0 -607
  182. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.d.ts.map +0 -1
  183. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.js +0 -1292
  184. package/dist/_proto/google/protobuf/any.d.ts +0 -177
  185. package/dist/_proto/google/protobuf/any.d.ts.map +0 -1
  186. package/dist/_proto/google/protobuf/any.js +0 -175
  187. package/dist/_proto/google/protobuf/descriptor.d.ts +0 -1638
  188. package/dist/_proto/google/protobuf/descriptor.d.ts.map +0 -1
  189. package/dist/_proto/google/protobuf/descriptor.js +0 -2999
  190. package/dist/_proto/google/protobuf/duration.d.ts +0 -114
  191. package/dist/_proto/google/protobuf/duration.d.ts.map +0 -1
  192. package/dist/_proto/google/protobuf/duration.js +0 -113
  193. package/dist/_proto/google/protobuf/empty.d.ts +0 -33
  194. package/dist/_proto/google/protobuf/empty.d.ts.map +0 -1
  195. package/dist/_proto/google/protobuf/empty.js +0 -41
  196. package/dist/_proto/google/protobuf/field_mask.d.ts +0 -240
  197. package/dist/_proto/google/protobuf/field_mask.d.ts.map +0 -1
  198. package/dist/_proto/google/protobuf/field_mask.js +0 -95
  199. package/dist/_proto/google/protobuf/struct.d.ts +0 -187
  200. package/dist/_proto/google/protobuf/struct.d.ts.map +0 -1
  201. package/dist/_proto/google/protobuf/struct.js +0 -417
  202. package/dist/_proto/google/protobuf/timestamp.d.ts +0 -159
  203. package/dist/_proto/google/protobuf/timestamp.d.ts.map +0 -1
  204. package/dist/_proto/google/protobuf/timestamp.js +0 -157
  205. package/dist/_proto/google/rpc/code.d.ts +0 -219
  206. package/dist/_proto/google/rpc/code.d.ts.map +0 -1
  207. package/dist/_proto/google/rpc/code.js +0 -237
  208. package/dist/_proto/google/rpc/context/attribute_context.d.ts +0 -594
  209. package/dist/_proto/google/rpc/context/attribute_context.d.ts.map +0 -1
  210. package/dist/_proto/google/rpc/context/attribute_context.js +0 -1007
  211. package/dist/_proto/google/rpc/context/audit_context.d.ts +0 -62
  212. package/dist/_proto/google/rpc/context/audit_context.d.ts.map +0 -1
  213. package/dist/_proto/google/rpc/context/audit_context.js +0 -111
  214. package/dist/_proto/google/rpc/error_details.d.ts +0 -549
  215. package/dist/_proto/google/rpc/error_details.d.ts.map +0 -1
  216. package/dist/_proto/google/rpc/error_details.js +0 -918
  217. package/dist/_proto/google/rpc/status.d.ts +0 -55
  218. package/dist/_proto/google/rpc/status.d.ts.map +0 -1
  219. package/dist/_proto/google/rpc/status.js +0 -79
  220. package/dist/_proto/scalapb/scalapb.d.ts +0 -779
  221. package/dist/_proto/scalapb/scalapb.d.ts.map +0 -1
  222. package/dist/_proto/scalapb/scalapb.js +0 -1658
@@ -1,210 +0,0 @@
1
- import { ServiceType } from '@protobuf-ts/runtime-rpc';
2
- import type { BinaryWriteOptions } from '@protobuf-ts/runtime';
3
- import type { IBinaryWriter } from '@protobuf-ts/runtime';
4
- import type { BinaryReadOptions } from '@protobuf-ts/runtime';
5
- import type { IBinaryReader } from '@protobuf-ts/runtime';
6
- import type { PartialMessage } from '@protobuf-ts/runtime';
7
- import { MessageType } from '@protobuf-ts/runtime';
8
- import { Reassignment } from './reassignment.js';
9
- import { EventFormat } from './transaction_filter.js';
10
- import { ReassignmentCommands } from './reassignment_commands.js';
11
- import { TransactionTree } from './transaction.js';
12
- import { Transaction } from './transaction.js';
13
- import { TransactionFormat } from './transaction_filter.js';
14
- import { Commands } from './commands.js';
15
- /**
16
- * These commands are executed as a single atomic transaction.
17
- *
18
- * @generated from protobuf message com.daml.ledger.api.v2.SubmitAndWaitRequest
19
- */
20
- export interface SubmitAndWaitRequest {
21
- /**
22
- * The commands to be submitted.
23
- * Required
24
- *
25
- * @generated from protobuf field: com.daml.ledger.api.v2.Commands commands = 1
26
- */
27
- commands?: Commands;
28
- }
29
- /**
30
- * These commands are executed as a single atomic transaction.
31
- *
32
- * @generated from protobuf message com.daml.ledger.api.v2.SubmitAndWaitForTransactionRequest
33
- */
34
- export interface SubmitAndWaitForTransactionRequest {
35
- /**
36
- * The commands to be submitted.
37
- * Required
38
- *
39
- * @generated from protobuf field: com.daml.ledger.api.v2.Commands commands = 1
40
- */
41
- commands?: Commands;
42
- /**
43
- * If no ``transaction_format`` is provided, a default will be used where ``transaction_shape`` is set to
44
- * TRANSACTION_SHAPE_ACS_DELTA, ``event_format`` is defined with ``filters_by_party`` containing wildcard-template
45
- * filter for all original ``act_as`` and ``read_as`` parties and the ``verbose`` flag is set.
46
- * Optional
47
- *
48
- * @generated from protobuf field: com.daml.ledger.api.v2.TransactionFormat transaction_format = 2
49
- */
50
- transactionFormat?: TransactionFormat;
51
- }
52
- /**
53
- * @generated from protobuf message com.daml.ledger.api.v2.SubmitAndWaitResponse
54
- */
55
- export interface SubmitAndWaitResponse {
56
- /**
57
- * The id of the transaction that resulted from the submitted command.
58
- * Must be a valid LedgerString (as described in ``value.proto``).
59
- * Required
60
- *
61
- * @generated from protobuf field: string update_id = 1
62
- */
63
- updateId: string;
64
- /**
65
- * The details of the offset field are described in ``community/ledger-api/README.md``.
66
- * Required
67
- *
68
- * @generated from protobuf field: int64 completion_offset = 2
69
- */
70
- completionOffset: bigint;
71
- }
72
- /**
73
- * @generated from protobuf message com.daml.ledger.api.v2.SubmitAndWaitForTransactionResponse
74
- */
75
- export interface SubmitAndWaitForTransactionResponse {
76
- /**
77
- * The transaction that resulted from the submitted command.
78
- * The transaction might contain no events (request conditions result in filtering out all of them).
79
- * Required
80
- *
81
- * @generated from protobuf field: com.daml.ledger.api.v2.Transaction transaction = 1
82
- */
83
- transaction?: Transaction;
84
- }
85
- /**
86
- * Provided for backwards compatibility, it will be removed in the Canton version 3.4.0.
87
- *
88
- * @generated from protobuf message com.daml.ledger.api.v2.SubmitAndWaitForTransactionTreeResponse
89
- */
90
- export interface SubmitAndWaitForTransactionTreeResponse {
91
- /**
92
- * The transaction tree that resulted from the submitted command.
93
- * The transaction might contain no events (request conditions result in filtering out all of them).
94
- * Required
95
- *
96
- * @generated from protobuf field: com.daml.ledger.api.v2.TransactionTree transaction = 1
97
- */
98
- transaction?: TransactionTree;
99
- }
100
- /**
101
- * This reassignment is executed as a single atomic update.
102
- *
103
- * @generated from protobuf message com.daml.ledger.api.v2.SubmitAndWaitForReassignmentRequest
104
- */
105
- export interface SubmitAndWaitForReassignmentRequest {
106
- /**
107
- * The reassignment commands to be submitted.
108
- * Required
109
- *
110
- * @generated from protobuf field: com.daml.ledger.api.v2.ReassignmentCommands reassignment_commands = 1
111
- */
112
- reassignmentCommands?: ReassignmentCommands;
113
- /**
114
- * Optional
115
- * If no event_format provided, the result will contain no events.
116
- * The events in the result, will take shape TRANSACTION_SHAPE_ACS_DELTA.
117
- *
118
- * @generated from protobuf field: com.daml.ledger.api.v2.EventFormat event_format = 2
119
- */
120
- eventFormat?: EventFormat;
121
- }
122
- /**
123
- * @generated from protobuf message com.daml.ledger.api.v2.SubmitAndWaitForReassignmentResponse
124
- */
125
- export interface SubmitAndWaitForReassignmentResponse {
126
- /**
127
- * The reassignment that resulted from the submitted reassignment command.
128
- * The reassignment might contain no events (request conditions result in filtering out all of them).
129
- * Required
130
- *
131
- * @generated from protobuf field: com.daml.ledger.api.v2.Reassignment reassignment = 1
132
- */
133
- reassignment?: Reassignment;
134
- }
135
- declare class SubmitAndWaitRequest$Type extends MessageType<SubmitAndWaitRequest> {
136
- constructor();
137
- create(value?: PartialMessage<SubmitAndWaitRequest>): SubmitAndWaitRequest;
138
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SubmitAndWaitRequest): SubmitAndWaitRequest;
139
- internalBinaryWrite(message: SubmitAndWaitRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
140
- }
141
- /**
142
- * @generated MessageType for protobuf message com.daml.ledger.api.v2.SubmitAndWaitRequest
143
- */
144
- export declare const SubmitAndWaitRequest: SubmitAndWaitRequest$Type;
145
- declare class SubmitAndWaitForTransactionRequest$Type extends MessageType<SubmitAndWaitForTransactionRequest> {
146
- constructor();
147
- create(value?: PartialMessage<SubmitAndWaitForTransactionRequest>): SubmitAndWaitForTransactionRequest;
148
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SubmitAndWaitForTransactionRequest): SubmitAndWaitForTransactionRequest;
149
- internalBinaryWrite(message: SubmitAndWaitForTransactionRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
150
- }
151
- /**
152
- * @generated MessageType for protobuf message com.daml.ledger.api.v2.SubmitAndWaitForTransactionRequest
153
- */
154
- export declare const SubmitAndWaitForTransactionRequest: SubmitAndWaitForTransactionRequest$Type;
155
- declare class SubmitAndWaitResponse$Type extends MessageType<SubmitAndWaitResponse> {
156
- constructor();
157
- create(value?: PartialMessage<SubmitAndWaitResponse>): SubmitAndWaitResponse;
158
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SubmitAndWaitResponse): SubmitAndWaitResponse;
159
- internalBinaryWrite(message: SubmitAndWaitResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
160
- }
161
- /**
162
- * @generated MessageType for protobuf message com.daml.ledger.api.v2.SubmitAndWaitResponse
163
- */
164
- export declare const SubmitAndWaitResponse: SubmitAndWaitResponse$Type;
165
- declare class SubmitAndWaitForTransactionResponse$Type extends MessageType<SubmitAndWaitForTransactionResponse> {
166
- constructor();
167
- create(value?: PartialMessage<SubmitAndWaitForTransactionResponse>): SubmitAndWaitForTransactionResponse;
168
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SubmitAndWaitForTransactionResponse): SubmitAndWaitForTransactionResponse;
169
- internalBinaryWrite(message: SubmitAndWaitForTransactionResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
170
- }
171
- /**
172
- * @generated MessageType for protobuf message com.daml.ledger.api.v2.SubmitAndWaitForTransactionResponse
173
- */
174
- export declare const SubmitAndWaitForTransactionResponse: SubmitAndWaitForTransactionResponse$Type;
175
- declare class SubmitAndWaitForTransactionTreeResponse$Type extends MessageType<SubmitAndWaitForTransactionTreeResponse> {
176
- constructor();
177
- create(value?: PartialMessage<SubmitAndWaitForTransactionTreeResponse>): SubmitAndWaitForTransactionTreeResponse;
178
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SubmitAndWaitForTransactionTreeResponse): SubmitAndWaitForTransactionTreeResponse;
179
- internalBinaryWrite(message: SubmitAndWaitForTransactionTreeResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
180
- }
181
- /**
182
- * @generated MessageType for protobuf message com.daml.ledger.api.v2.SubmitAndWaitForTransactionTreeResponse
183
- */
184
- export declare const SubmitAndWaitForTransactionTreeResponse: SubmitAndWaitForTransactionTreeResponse$Type;
185
- declare class SubmitAndWaitForReassignmentRequest$Type extends MessageType<SubmitAndWaitForReassignmentRequest> {
186
- constructor();
187
- create(value?: PartialMessage<SubmitAndWaitForReassignmentRequest>): SubmitAndWaitForReassignmentRequest;
188
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SubmitAndWaitForReassignmentRequest): SubmitAndWaitForReassignmentRequest;
189
- internalBinaryWrite(message: SubmitAndWaitForReassignmentRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
190
- }
191
- /**
192
- * @generated MessageType for protobuf message com.daml.ledger.api.v2.SubmitAndWaitForReassignmentRequest
193
- */
194
- export declare const SubmitAndWaitForReassignmentRequest: SubmitAndWaitForReassignmentRequest$Type;
195
- declare class SubmitAndWaitForReassignmentResponse$Type extends MessageType<SubmitAndWaitForReassignmentResponse> {
196
- constructor();
197
- create(value?: PartialMessage<SubmitAndWaitForReassignmentResponse>): SubmitAndWaitForReassignmentResponse;
198
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SubmitAndWaitForReassignmentResponse): SubmitAndWaitForReassignmentResponse;
199
- internalBinaryWrite(message: SubmitAndWaitForReassignmentResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
200
- }
201
- /**
202
- * @generated MessageType for protobuf message com.daml.ledger.api.v2.SubmitAndWaitForReassignmentResponse
203
- */
204
- export declare const SubmitAndWaitForReassignmentResponse: SubmitAndWaitForReassignmentResponse$Type;
205
- /**
206
- * @generated ServiceType for protobuf service com.daml.ledger.api.v2.CommandService
207
- */
208
- export declare const CommandService: ServiceType;
209
- export {};
210
- //# sourceMappingURL=command_service.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"command_service.d.ts","sourceRoot":"","sources":["../../../../../../../src/_proto/com/daml/ledger/api/v2/command_service.ts"],"names":[],"mappings":"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"}
@@ -1,436 +0,0 @@
1
- // @generated by protobuf-ts 2.11.1 with parameter generate_dependencies
2
- // @generated from protobuf file "com/daml/ledger/api/v2/command_service.proto" (package "com.daml.ledger.api.v2", syntax proto3)
3
- // tslint:disable
4
- //
5
- // Copyright (c) 2025 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
6
- // SPDX-License-Identifier: Apache-2.0
7
- //
8
- import { ServiceType } from '@protobuf-ts/runtime-rpc';
9
- import { WireType } from '@protobuf-ts/runtime';
10
- import { UnknownFieldHandler } from '@protobuf-ts/runtime';
11
- import { reflectionMergePartial } from '@protobuf-ts/runtime';
12
- import { MessageType } from '@protobuf-ts/runtime';
13
- import { Reassignment } from './reassignment.js';
14
- import { EventFormat } from './transaction_filter.js';
15
- import { ReassignmentCommands } from './reassignment_commands.js';
16
- import { TransactionTree } from './transaction.js';
17
- import { Transaction } from './transaction.js';
18
- import { TransactionFormat } from './transaction_filter.js';
19
- import { Commands } from './commands.js';
20
- // @generated message type with reflection information, may provide speed optimized methods
21
- class SubmitAndWaitRequest$Type extends MessageType {
22
- constructor() {
23
- super('com.daml.ledger.api.v2.SubmitAndWaitRequest', [
24
- { no: 1, name: 'commands', kind: 'message', T: () => Commands },
25
- ]);
26
- }
27
- create(value) {
28
- const message = globalThis.Object.create(this.messagePrototype);
29
- if (value !== undefined)
30
- reflectionMergePartial(this, message, value);
31
- return message;
32
- }
33
- internalBinaryRead(reader, length, options, target) {
34
- let message = target ?? this.create(), end = reader.pos + length;
35
- while (reader.pos < end) {
36
- let [fieldNo, wireType] = reader.tag();
37
- switch (fieldNo) {
38
- case /* com.daml.ledger.api.v2.Commands commands */ 1:
39
- message.commands = Commands.internalBinaryRead(reader, reader.uint32(), options, message.commands);
40
- break;
41
- default:
42
- let u = options.readUnknownField;
43
- if (u === 'throw')
44
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
45
- let d = reader.skip(wireType);
46
- if (u !== false)
47
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
48
- }
49
- }
50
- return message;
51
- }
52
- internalBinaryWrite(message, writer, options) {
53
- /* com.daml.ledger.api.v2.Commands commands = 1; */
54
- if (message.commands)
55
- Commands.internalBinaryWrite(message.commands, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
56
- let u = options.writeUnknownFields;
57
- if (u !== false)
58
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
59
- return writer;
60
- }
61
- }
62
- /**
63
- * @generated MessageType for protobuf message com.daml.ledger.api.v2.SubmitAndWaitRequest
64
- */
65
- export const SubmitAndWaitRequest = new SubmitAndWaitRequest$Type();
66
- // @generated message type with reflection information, may provide speed optimized methods
67
- class SubmitAndWaitForTransactionRequest$Type extends MessageType {
68
- constructor() {
69
- super('com.daml.ledger.api.v2.SubmitAndWaitForTransactionRequest', [
70
- { no: 1, name: 'commands', kind: 'message', T: () => Commands },
71
- {
72
- no: 2,
73
- name: 'transaction_format',
74
- kind: 'message',
75
- T: () => TransactionFormat,
76
- },
77
- ]);
78
- }
79
- create(value) {
80
- const message = globalThis.Object.create(this.messagePrototype);
81
- if (value !== undefined)
82
- reflectionMergePartial(this, message, value);
83
- return message;
84
- }
85
- internalBinaryRead(reader, length, options, target) {
86
- let message = target ?? this.create(), end = reader.pos + length;
87
- while (reader.pos < end) {
88
- let [fieldNo, wireType] = reader.tag();
89
- switch (fieldNo) {
90
- case /* com.daml.ledger.api.v2.Commands commands */ 1:
91
- message.commands = Commands.internalBinaryRead(reader, reader.uint32(), options, message.commands);
92
- break;
93
- case /* com.daml.ledger.api.v2.TransactionFormat transaction_format */ 2:
94
- message.transactionFormat =
95
- TransactionFormat.internalBinaryRead(reader, reader.uint32(), options, message.transactionFormat);
96
- break;
97
- default:
98
- let u = options.readUnknownField;
99
- if (u === 'throw')
100
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
101
- let d = reader.skip(wireType);
102
- if (u !== false)
103
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
104
- }
105
- }
106
- return message;
107
- }
108
- internalBinaryWrite(message, writer, options) {
109
- /* com.daml.ledger.api.v2.Commands commands = 1; */
110
- if (message.commands)
111
- Commands.internalBinaryWrite(message.commands, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
112
- /* com.daml.ledger.api.v2.TransactionFormat transaction_format = 2; */
113
- if (message.transactionFormat)
114
- TransactionFormat.internalBinaryWrite(message.transactionFormat, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
115
- let u = options.writeUnknownFields;
116
- if (u !== false)
117
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
118
- return writer;
119
- }
120
- }
121
- /**
122
- * @generated MessageType for protobuf message com.daml.ledger.api.v2.SubmitAndWaitForTransactionRequest
123
- */
124
- export const SubmitAndWaitForTransactionRequest = new SubmitAndWaitForTransactionRequest$Type();
125
- // @generated message type with reflection information, may provide speed optimized methods
126
- class SubmitAndWaitResponse$Type extends MessageType {
127
- constructor() {
128
- super('com.daml.ledger.api.v2.SubmitAndWaitResponse', [
129
- {
130
- no: 1,
131
- name: 'update_id',
132
- kind: 'scalar',
133
- T: 9 /*ScalarType.STRING*/,
134
- },
135
- {
136
- no: 2,
137
- name: 'completion_offset',
138
- kind: 'scalar',
139
- T: 3 /*ScalarType.INT64*/,
140
- L: 0 /*LongType.BIGINT*/,
141
- },
142
- ]);
143
- }
144
- create(value) {
145
- const message = globalThis.Object.create(this.messagePrototype);
146
- message.updateId = '';
147
- message.completionOffset = 0n;
148
- if (value !== undefined)
149
- reflectionMergePartial(this, message, value);
150
- return message;
151
- }
152
- internalBinaryRead(reader, length, options, target) {
153
- let message = target ?? this.create(), end = reader.pos + length;
154
- while (reader.pos < end) {
155
- let [fieldNo, wireType] = reader.tag();
156
- switch (fieldNo) {
157
- case /* string update_id */ 1:
158
- message.updateId = reader.string();
159
- break;
160
- case /* int64 completion_offset */ 2:
161
- message.completionOffset = reader.int64().toBigInt();
162
- break;
163
- default:
164
- let u = options.readUnknownField;
165
- if (u === 'throw')
166
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
167
- let d = reader.skip(wireType);
168
- if (u !== false)
169
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
170
- }
171
- }
172
- return message;
173
- }
174
- internalBinaryWrite(message, writer, options) {
175
- /* string update_id = 1; */
176
- if (message.updateId !== '')
177
- writer.tag(1, WireType.LengthDelimited).string(message.updateId);
178
- /* int64 completion_offset = 2; */
179
- if (message.completionOffset !== 0n)
180
- writer.tag(2, WireType.Varint).int64(message.completionOffset);
181
- let u = options.writeUnknownFields;
182
- if (u !== false)
183
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
184
- return writer;
185
- }
186
- }
187
- /**
188
- * @generated MessageType for protobuf message com.daml.ledger.api.v2.SubmitAndWaitResponse
189
- */
190
- export const SubmitAndWaitResponse = new SubmitAndWaitResponse$Type();
191
- // @generated message type with reflection information, may provide speed optimized methods
192
- class SubmitAndWaitForTransactionResponse$Type extends MessageType {
193
- constructor() {
194
- super('com.daml.ledger.api.v2.SubmitAndWaitForTransactionResponse', [
195
- {
196
- no: 1,
197
- name: 'transaction',
198
- kind: 'message',
199
- T: () => Transaction,
200
- },
201
- ]);
202
- }
203
- create(value) {
204
- const message = globalThis.Object.create(this.messagePrototype);
205
- if (value !== undefined)
206
- reflectionMergePartial(this, message, value);
207
- return message;
208
- }
209
- internalBinaryRead(reader, length, options, target) {
210
- let message = target ?? this.create(), end = reader.pos + length;
211
- while (reader.pos < end) {
212
- let [fieldNo, wireType] = reader.tag();
213
- switch (fieldNo) {
214
- case /* com.daml.ledger.api.v2.Transaction transaction */ 1:
215
- message.transaction = Transaction.internalBinaryRead(reader, reader.uint32(), options, message.transaction);
216
- break;
217
- default:
218
- let u = options.readUnknownField;
219
- if (u === 'throw')
220
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
221
- let d = reader.skip(wireType);
222
- if (u !== false)
223
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
224
- }
225
- }
226
- return message;
227
- }
228
- internalBinaryWrite(message, writer, options) {
229
- /* com.daml.ledger.api.v2.Transaction transaction = 1; */
230
- if (message.transaction)
231
- Transaction.internalBinaryWrite(message.transaction, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
232
- let u = options.writeUnknownFields;
233
- if (u !== false)
234
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
235
- return writer;
236
- }
237
- }
238
- /**
239
- * @generated MessageType for protobuf message com.daml.ledger.api.v2.SubmitAndWaitForTransactionResponse
240
- */
241
- export const SubmitAndWaitForTransactionResponse = new SubmitAndWaitForTransactionResponse$Type();
242
- // @generated message type with reflection information, may provide speed optimized methods
243
- class SubmitAndWaitForTransactionTreeResponse$Type extends MessageType {
244
- constructor() {
245
- super('com.daml.ledger.api.v2.SubmitAndWaitForTransactionTreeResponse', [
246
- {
247
- no: 1,
248
- name: 'transaction',
249
- kind: 'message',
250
- T: () => TransactionTree,
251
- },
252
- ]);
253
- }
254
- create(value) {
255
- const message = globalThis.Object.create(this.messagePrototype);
256
- if (value !== undefined)
257
- reflectionMergePartial(this, message, value);
258
- return message;
259
- }
260
- internalBinaryRead(reader, length, options, target) {
261
- let message = target ?? this.create(), end = reader.pos + length;
262
- while (reader.pos < end) {
263
- let [fieldNo, wireType] = reader.tag();
264
- switch (fieldNo) {
265
- case /* com.daml.ledger.api.v2.TransactionTree transaction */ 1:
266
- message.transaction = TransactionTree.internalBinaryRead(reader, reader.uint32(), options, message.transaction);
267
- break;
268
- default:
269
- let u = options.readUnknownField;
270
- if (u === 'throw')
271
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
272
- let d = reader.skip(wireType);
273
- if (u !== false)
274
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
275
- }
276
- }
277
- return message;
278
- }
279
- internalBinaryWrite(message, writer, options) {
280
- /* com.daml.ledger.api.v2.TransactionTree transaction = 1; */
281
- if (message.transaction)
282
- TransactionTree.internalBinaryWrite(message.transaction, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
283
- let u = options.writeUnknownFields;
284
- if (u !== false)
285
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
286
- return writer;
287
- }
288
- }
289
- /**
290
- * @generated MessageType for protobuf message com.daml.ledger.api.v2.SubmitAndWaitForTransactionTreeResponse
291
- */
292
- export const SubmitAndWaitForTransactionTreeResponse = new SubmitAndWaitForTransactionTreeResponse$Type();
293
- // @generated message type with reflection information, may provide speed optimized methods
294
- class SubmitAndWaitForReassignmentRequest$Type extends MessageType {
295
- constructor() {
296
- super('com.daml.ledger.api.v2.SubmitAndWaitForReassignmentRequest', [
297
- {
298
- no: 1,
299
- name: 'reassignment_commands',
300
- kind: 'message',
301
- T: () => ReassignmentCommands,
302
- },
303
- {
304
- no: 2,
305
- name: 'event_format',
306
- kind: 'message',
307
- T: () => EventFormat,
308
- },
309
- ]);
310
- }
311
- create(value) {
312
- const message = globalThis.Object.create(this.messagePrototype);
313
- if (value !== undefined)
314
- reflectionMergePartial(this, message, value);
315
- return message;
316
- }
317
- internalBinaryRead(reader, length, options, target) {
318
- let message = target ?? this.create(), end = reader.pos + length;
319
- while (reader.pos < end) {
320
- let [fieldNo, wireType] = reader.tag();
321
- switch (fieldNo) {
322
- case /* com.daml.ledger.api.v2.ReassignmentCommands reassignment_commands */ 1:
323
- message.reassignmentCommands =
324
- ReassignmentCommands.internalBinaryRead(reader, reader.uint32(), options, message.reassignmentCommands);
325
- break;
326
- case /* com.daml.ledger.api.v2.EventFormat event_format */ 2:
327
- message.eventFormat = EventFormat.internalBinaryRead(reader, reader.uint32(), options, message.eventFormat);
328
- break;
329
- default:
330
- let u = options.readUnknownField;
331
- if (u === 'throw')
332
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
333
- let d = reader.skip(wireType);
334
- if (u !== false)
335
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
336
- }
337
- }
338
- return message;
339
- }
340
- internalBinaryWrite(message, writer, options) {
341
- /* com.daml.ledger.api.v2.ReassignmentCommands reassignment_commands = 1; */
342
- if (message.reassignmentCommands)
343
- ReassignmentCommands.internalBinaryWrite(message.reassignmentCommands, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
344
- /* com.daml.ledger.api.v2.EventFormat event_format = 2; */
345
- if (message.eventFormat)
346
- EventFormat.internalBinaryWrite(message.eventFormat, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
347
- let u = options.writeUnknownFields;
348
- if (u !== false)
349
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
350
- return writer;
351
- }
352
- }
353
- /**
354
- * @generated MessageType for protobuf message com.daml.ledger.api.v2.SubmitAndWaitForReassignmentRequest
355
- */
356
- export const SubmitAndWaitForReassignmentRequest = new SubmitAndWaitForReassignmentRequest$Type();
357
- // @generated message type with reflection information, may provide speed optimized methods
358
- class SubmitAndWaitForReassignmentResponse$Type extends MessageType {
359
- constructor() {
360
- super('com.daml.ledger.api.v2.SubmitAndWaitForReassignmentResponse', [
361
- {
362
- no: 1,
363
- name: 'reassignment',
364
- kind: 'message',
365
- T: () => Reassignment,
366
- },
367
- ]);
368
- }
369
- create(value) {
370
- const message = globalThis.Object.create(this.messagePrototype);
371
- if (value !== undefined)
372
- reflectionMergePartial(this, message, value);
373
- return message;
374
- }
375
- internalBinaryRead(reader, length, options, target) {
376
- let message = target ?? this.create(), end = reader.pos + length;
377
- while (reader.pos < end) {
378
- let [fieldNo, wireType] = reader.tag();
379
- switch (fieldNo) {
380
- case /* com.daml.ledger.api.v2.Reassignment reassignment */ 1:
381
- message.reassignment = Reassignment.internalBinaryRead(reader, reader.uint32(), options, message.reassignment);
382
- break;
383
- default:
384
- let u = options.readUnknownField;
385
- if (u === 'throw')
386
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
387
- let d = reader.skip(wireType);
388
- if (u !== false)
389
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
390
- }
391
- }
392
- return message;
393
- }
394
- internalBinaryWrite(message, writer, options) {
395
- /* com.daml.ledger.api.v2.Reassignment reassignment = 1; */
396
- if (message.reassignment)
397
- Reassignment.internalBinaryWrite(message.reassignment, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
398
- let u = options.writeUnknownFields;
399
- if (u !== false)
400
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
401
- return writer;
402
- }
403
- }
404
- /**
405
- * @generated MessageType for protobuf message com.daml.ledger.api.v2.SubmitAndWaitForReassignmentResponse
406
- */
407
- export const SubmitAndWaitForReassignmentResponse = new SubmitAndWaitForReassignmentResponse$Type();
408
- /**
409
- * @generated ServiceType for protobuf service com.daml.ledger.api.v2.CommandService
410
- */
411
- export const CommandService = new ServiceType('com.daml.ledger.api.v2.CommandService', [
412
- {
413
- name: 'SubmitAndWait',
414
- options: {},
415
- I: SubmitAndWaitRequest,
416
- O: SubmitAndWaitResponse,
417
- },
418
- {
419
- name: 'SubmitAndWaitForTransaction',
420
- options: {},
421
- I: SubmitAndWaitForTransactionRequest,
422
- O: SubmitAndWaitForTransactionResponse,
423
- },
424
- {
425
- name: 'SubmitAndWaitForTransactionTree',
426
- options: {},
427
- I: SubmitAndWaitRequest,
428
- O: SubmitAndWaitForTransactionTreeResponse,
429
- },
430
- {
431
- name: 'SubmitAndWaitForReassignment',
432
- options: {},
433
- I: SubmitAndWaitForReassignmentRequest,
434
- O: SubmitAndWaitForReassignmentResponse,
435
- },
436
- ]);