@canton-network/core-ledger-client 0.8.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 (231) hide show
  1. package/dist/generated-clients/openapi-3.4.0-SNAPSHOT.d.ts +5563 -0
  2. package/dist/generated-clients/openapi-3.4.0-SNAPSHOT.d.ts.map +1 -0
  3. package/dist/generated-clients/openapi-3.4.0-SNAPSHOT.js +5 -0
  4. package/dist/index.d.ts +2 -10
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +1 -9
  7. package/dist/ledger-client.d.ts +22 -12
  8. package/dist/ledger-client.d.ts.map +1 -1
  9. package/dist/ledger-client.js +68 -24
  10. package/dist/token-standard-service.d.ts +8 -0
  11. package/dist/token-standard-service.d.ts.map +1 -1
  12. package/dist/token-standard-service.js +28 -0
  13. package/dist/txparse/parser.d.ts.map +1 -1
  14. package/dist/txparse/parser.js +7 -4
  15. package/dist/txparse/parser.test.js +2 -1
  16. package/dist/txparse/types.d.ts +9 -9
  17. package/dist/txparse/types.d.ts.map +1 -1
  18. package/package.json +5 -5
  19. package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.client.d.ts +0 -58
  20. package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.client.d.ts.map +0 -1
  21. package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.client.js +0 -34
  22. package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.d.ts +0 -232
  23. package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.d.ts.map +0 -1
  24. package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.js +0 -560
  25. package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.client.d.ts +0 -144
  26. package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.client.d.ts.map +0 -1
  27. package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.client.js +0 -85
  28. package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.d.ts +0 -291
  29. package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.d.ts.map +0 -1
  30. package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.js +0 -663
  31. package/dist/_proto/com/daml/ledger/api/v2/admin/object_meta.d.ts +0 -76
  32. package/dist/_proto/com/daml/ledger/api/v2/admin/object_meta.d.ts.map +0 -1
  33. package/dist/_proto/com/daml/ledger/api/v2/admin/object_meta.js +0 -96
  34. package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.client.d.ts +0 -106
  35. package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.client.d.ts.map +0 -1
  36. package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.client.js +0 -62
  37. package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.d.ts +0 -199
  38. package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.d.ts.map +0 -1
  39. package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.js +0 -427
  40. package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.client.d.ts +0 -56
  41. package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.client.d.ts.map +0 -1
  42. package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.client.js +0 -35
  43. package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.d.ts +0 -81
  44. package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.d.ts.map +0 -1
  45. package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.js +0 -135
  46. package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.client.d.ts +0 -196
  47. package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.client.d.ts.map +0 -1
  48. package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.client.js +0 -113
  49. package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.d.ts +0 -413
  50. package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.d.ts.map +0 -1
  51. package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.js +0 -867
  52. package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.client.d.ts +0 -210
  53. package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.client.d.ts.map +0 -1
  54. package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.client.js +0 -126
  55. package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.d.ts +0 -758
  56. package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.d.ts.map +0 -1
  57. package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.js +0 -1580
  58. package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.client.d.ts +0 -66
  59. package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.client.d.ts.map +0 -1
  60. package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.client.js +0 -38
  61. package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.d.ts +0 -90
  62. package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.d.ts.map +0 -1
  63. package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.js +0 -178
  64. package/dist/_proto/com/daml/ledger/api/v2/command_service.client.d.ts +0 -99
  65. package/dist/_proto/com/daml/ledger/api/v2/command_service.client.d.ts.map +0 -1
  66. package/dist/_proto/com/daml/ledger/api/v2/command_service.client.js +0 -61
  67. package/dist/_proto/com/daml/ledger/api/v2/command_service.d.ts +0 -210
  68. package/dist/_proto/com/daml/ledger/api/v2/command_service.d.ts.map +0 -1
  69. package/dist/_proto/com/daml/ledger/api/v2/command_service.js +0 -436
  70. package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.client.d.ts +0 -80
  71. package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.client.d.ts.map +0 -1
  72. package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.client.js +0 -47
  73. package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.d.ts +0 -91
  74. package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.d.ts.map +0 -1
  75. package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.js +0 -200
  76. package/dist/_proto/com/daml/ledger/api/v2/commands.d.ts +0 -491
  77. package/dist/_proto/com/daml/ledger/api/v2/commands.d.ts.map +0 -1
  78. package/dist/_proto/com/daml/ledger/api/v2/commands.js +0 -828
  79. package/dist/_proto/com/daml/ledger/api/v2/completion.d.ts +0 -149
  80. package/dist/_proto/com/daml/ledger/api/v2/completion.d.ts.map +0 -1
  81. package/dist/_proto/com/daml/ledger/api/v2/completion.js +0 -196
  82. package/dist/_proto/com/daml/ledger/api/v2/event.d.ts +0 -495
  83. package/dist/_proto/com/daml/ledger/api/v2/event.d.ts.map +0 -1
  84. package/dist/_proto/com/daml/ledger/api/v2/event.js +0 -723
  85. package/dist/_proto/com/daml/ledger/api/v2/event_query_service.client.d.ts +0 -52
  86. package/dist/_proto/com/daml/ledger/api/v2/event_query_service.client.d.ts.map +0 -1
  87. package/dist/_proto/com/daml/ledger/api/v2/event_query_service.client.js +0 -31
  88. package/dist/_proto/com/daml/ledger/api/v2/event_query_service.d.ts +0 -150
  89. package/dist/_proto/com/daml/ledger/api/v2/event_query_service.d.ts.map +0 -1
  90. package/dist/_proto/com/daml/ledger/api/v2/event_query_service.js +0 -291
  91. package/dist/_proto/com/daml/ledger/api/v2/experimental_features.d.ts +0 -96
  92. package/dist/_proto/com/daml/ledger/api/v2/experimental_features.d.ts.map +0 -1
  93. package/dist/_proto/com/daml/ledger/api/v2/experimental_features.js +0 -225
  94. package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_common_data.d.ts +0 -43
  95. package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_common_data.d.ts.map +0 -1
  96. package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_common_data.js +0 -85
  97. package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.client.d.ts +0 -100
  98. package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.client.d.ts.map +0 -1
  99. package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.client.js +0 -59
  100. package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.d.ts +0 -877
  101. package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.d.ts.map +0 -1
  102. package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.js +0 -1768
  103. package/dist/_proto/com/daml/ledger/api/v2/interactive/transaction/v1/interactive_submission_data.d.ts +0 -259
  104. package/dist/_proto/com/daml/ledger/api/v2/interactive/transaction/v1/interactive_submission_data.d.ts.map +0 -1
  105. package/dist/_proto/com/daml/ledger/api/v2/interactive/transaction/v1/interactive_submission_data.js +0 -667
  106. package/dist/_proto/com/daml/ledger/api/v2/offset_checkpoint.d.ts +0 -69
  107. package/dist/_proto/com/daml/ledger/api/v2/offset_checkpoint.d.ts.map +0 -1
  108. package/dist/_proto/com/daml/ledger/api/v2/offset_checkpoint.js +0 -133
  109. package/dist/_proto/com/daml/ledger/api/v2/package_reference.d.ts +0 -41
  110. package/dist/_proto/com/daml/ledger/api/v2/package_reference.d.ts.map +0 -1
  111. package/dist/_proto/com/daml/ledger/api/v2/package_reference.js +0 -84
  112. package/dist/_proto/com/daml/ledger/api/v2/package_service.client.d.ts +0 -68
  113. package/dist/_proto/com/daml/ledger/api/v2/package_service.client.d.ts.map +0 -1
  114. package/dist/_proto/com/daml/ledger/api/v2/package_service.client.js +0 -43
  115. package/dist/_proto/com/daml/ledger/api/v2/package_service.d.ts +0 -181
  116. package/dist/_proto/com/daml/ledger/api/v2/package_service.d.ts.map +0 -1
  117. package/dist/_proto/com/daml/ledger/api/v2/package_service.js +0 -395
  118. package/dist/_proto/com/daml/ledger/api/v2/reassignment.d.ts +0 -308
  119. package/dist/_proto/com/daml/ledger/api/v2/reassignment.d.ts.map +0 -1
  120. package/dist/_proto/com/daml/ledger/api/v2/reassignment.js +0 -521
  121. package/dist/_proto/com/daml/ledger/api/v2/reassignment_commands.d.ts +0 -193
  122. package/dist/_proto/com/daml/ledger/api/v2/reassignment_commands.d.ts.map +0 -1
  123. package/dist/_proto/com/daml/ledger/api/v2/reassignment_commands.js +0 -350
  124. package/dist/_proto/com/daml/ledger/api/v2/state_service.client.d.ts +0 -91
  125. package/dist/_proto/com/daml/ledger/api/v2/state_service.client.d.ts.map +0 -1
  126. package/dist/_proto/com/daml/ledger/api/v2/state_service.client.js +0 -56
  127. package/dist/_proto/com/daml/ledger/api/v2/state_service.d.ts +0 -448
  128. package/dist/_proto/com/daml/ledger/api/v2/state_service.d.ts.map +0 -1
  129. package/dist/_proto/com/daml/ledger/api/v2/state_service.js +0 -874
  130. package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.client.d.ts +0 -54
  131. package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.client.d.ts.map +0 -1
  132. package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.client.js +0 -34
  133. package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.d.ts +0 -78
  134. package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.d.ts.map +0 -1
  135. package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.js +0 -168
  136. package/dist/_proto/com/daml/ledger/api/v2/topology_transaction.d.ts +0 -211
  137. package/dist/_proto/com/daml/ledger/api/v2/topology_transaction.d.ts.map +0 -1
  138. package/dist/_proto/com/daml/ledger/api/v2/topology_transaction.js +0 -447
  139. package/dist/_proto/com/daml/ledger/api/v2/trace_context.d.ts +0 -33
  140. package/dist/_proto/com/daml/ledger/api/v2/trace_context.d.ts.map +0 -1
  141. package/dist/_proto/com/daml/ledger/api/v2/trace_context.js +0 -69
  142. package/dist/_proto/com/daml/ledger/api/v2/transaction.d.ts +0 -252
  143. package/dist/_proto/com/daml/ledger/api/v2/transaction.d.ts.map +0 -1
  144. package/dist/_proto/com/daml/ledger/api/v2/transaction.js +0 -410
  145. package/dist/_proto/com/daml/ledger/api/v2/transaction_filter.d.ts +0 -453
  146. package/dist/_proto/com/daml/ledger/api/v2/transaction_filter.d.ts.map +0 -1
  147. package/dist/_proto/com/daml/ledger/api/v2/transaction_filter.js +0 -815
  148. package/dist/_proto/com/daml/ledger/api/v2/update_service.client.d.ts +0 -199
  149. package/dist/_proto/com/daml/ledger/api/v2/update_service.client.d.ts.map +0 -1
  150. package/dist/_proto/com/daml/ledger/api/v2/update_service.client.js +0 -121
  151. package/dist/_proto/com/daml/ledger/api/v2/update_service.d.ts +0 -424
  152. package/dist/_proto/com/daml/ledger/api/v2/update_service.d.ts.map +0 -1
  153. package/dist/_proto/com/daml/ledger/api/v2/update_service.js +0 -853
  154. package/dist/_proto/com/daml/ledger/api/v2/value.d.ts +0 -500
  155. package/dist/_proto/com/daml/ledger/api/v2/value.d.ts.map +0 -1
  156. package/dist/_proto/com/daml/ledger/api/v2/value.js +0 -937
  157. package/dist/_proto/com/daml/ledger/api/v2/version_service.client.d.ts +0 -40
  158. package/dist/_proto/com/daml/ledger/api/v2/version_service.client.d.ts.map +0 -1
  159. package/dist/_proto/com/daml/ledger/api/v2/version_service.client.js +0 -25
  160. package/dist/_proto/com/daml/ledger/api/v2/version_service.d.ts +0 -190
  161. package/dist/_proto/com/daml/ledger/api/v2/version_service.d.ts.map +0 -1
  162. package/dist/_proto/com/daml/ledger/api/v2/version_service.js +0 -400
  163. package/dist/_proto/com/digitalasset/canton/crypto/v30/crypto.d.ts +0 -1028
  164. package/dist/_proto/com/digitalasset/canton/crypto/v30/crypto.d.ts.map +0 -1
  165. package/dist/_proto/com/digitalasset/canton/crypto/v30/crypto.js +0 -2110
  166. package/dist/_proto/com/digitalasset/canton/protocol/v30/sequencing_parameters.d.ts +0 -30
  167. package/dist/_proto/com/digitalasset/canton/protocol/v30/sequencing_parameters.d.ts.map +0 -1
  168. package/dist/_proto/com/digitalasset/canton/protocol/v30/sequencing_parameters.js +0 -62
  169. package/dist/_proto/com/digitalasset/canton/protocol/v30/synchronizer_parameters.d.ts +0 -168
  170. package/dist/_proto/com/digitalasset/canton/protocol/v30/synchronizer_parameters.d.ts.map +0 -1
  171. package/dist/_proto/com/digitalasset/canton/protocol/v30/synchronizer_parameters.js +0 -395
  172. package/dist/_proto/com/digitalasset/canton/protocol/v30/topology.d.ts +0 -1105
  173. package/dist/_proto/com/digitalasset/canton/protocol/v30/topology.d.ts.map +0 -1
  174. package/dist/_proto/com/digitalasset/canton/protocol/v30/topology.js +0 -2294
  175. package/dist/_proto/com/digitalasset/canton/protocol/v30/traffic_control_parameters.d.ts +0 -278
  176. package/dist/_proto/com/digitalasset/canton/protocol/v30/traffic_control_parameters.d.ts.map +0 -1
  177. package/dist/_proto/com/digitalasset/canton/protocol/v30/traffic_control_parameters.js +0 -654
  178. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/common.d.ts +0 -166
  179. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/common.d.ts.map +0 -1
  180. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/common.js +0 -379
  181. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.client.d.ts +0 -199
  182. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.client.d.ts.map +0 -1
  183. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.client.js +0 -136
  184. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.d.ts +0 -1195
  185. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.d.ts.map +0 -1
  186. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.js +0 -3342
  187. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.client.d.ts +0 -119
  188. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.client.d.ts.map +0 -1
  189. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.client.js +0 -76
  190. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.d.ts +0 -607
  191. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.d.ts.map +0 -1
  192. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.js +0 -1292
  193. package/dist/_proto/google/protobuf/any.d.ts +0 -177
  194. package/dist/_proto/google/protobuf/any.d.ts.map +0 -1
  195. package/dist/_proto/google/protobuf/any.js +0 -175
  196. package/dist/_proto/google/protobuf/descriptor.d.ts +0 -1638
  197. package/dist/_proto/google/protobuf/descriptor.d.ts.map +0 -1
  198. package/dist/_proto/google/protobuf/descriptor.js +0 -2999
  199. package/dist/_proto/google/protobuf/duration.d.ts +0 -114
  200. package/dist/_proto/google/protobuf/duration.d.ts.map +0 -1
  201. package/dist/_proto/google/protobuf/duration.js +0 -113
  202. package/dist/_proto/google/protobuf/empty.d.ts +0 -33
  203. package/dist/_proto/google/protobuf/empty.d.ts.map +0 -1
  204. package/dist/_proto/google/protobuf/empty.js +0 -41
  205. package/dist/_proto/google/protobuf/field_mask.d.ts +0 -240
  206. package/dist/_proto/google/protobuf/field_mask.d.ts.map +0 -1
  207. package/dist/_proto/google/protobuf/field_mask.js +0 -95
  208. package/dist/_proto/google/protobuf/struct.d.ts +0 -187
  209. package/dist/_proto/google/protobuf/struct.d.ts.map +0 -1
  210. package/dist/_proto/google/protobuf/struct.js +0 -417
  211. package/dist/_proto/google/protobuf/timestamp.d.ts +0 -159
  212. package/dist/_proto/google/protobuf/timestamp.d.ts.map +0 -1
  213. package/dist/_proto/google/protobuf/timestamp.js +0 -157
  214. package/dist/_proto/google/rpc/code.d.ts +0 -219
  215. package/dist/_proto/google/rpc/code.d.ts.map +0 -1
  216. package/dist/_proto/google/rpc/code.js +0 -237
  217. package/dist/_proto/google/rpc/context/attribute_context.d.ts +0 -594
  218. package/dist/_proto/google/rpc/context/attribute_context.d.ts.map +0 -1
  219. package/dist/_proto/google/rpc/context/attribute_context.js +0 -1007
  220. package/dist/_proto/google/rpc/context/audit_context.d.ts +0 -62
  221. package/dist/_proto/google/rpc/context/audit_context.d.ts.map +0 -1
  222. package/dist/_proto/google/rpc/context/audit_context.js +0 -111
  223. package/dist/_proto/google/rpc/error_details.d.ts +0 -549
  224. package/dist/_proto/google/rpc/error_details.d.ts.map +0 -1
  225. package/dist/_proto/google/rpc/error_details.js +0 -918
  226. package/dist/_proto/google/rpc/status.d.ts +0 -55
  227. package/dist/_proto/google/rpc/status.d.ts.map +0 -1
  228. package/dist/_proto/google/rpc/status.js +0 -79
  229. package/dist/_proto/scalapb/scalapb.d.ts +0 -779
  230. package/dist/_proto/scalapb/scalapb.d.ts.map +0 -1
  231. package/dist/_proto/scalapb/scalapb.js +0 -1658
@@ -1,252 +0,0 @@
1
- import type { BinaryWriteOptions } from '@protobuf-ts/runtime';
2
- import type { IBinaryWriter } from '@protobuf-ts/runtime';
3
- import type { BinaryReadOptions } from '@protobuf-ts/runtime';
4
- import type { IBinaryReader } from '@protobuf-ts/runtime';
5
- import type { PartialMessage } from '@protobuf-ts/runtime';
6
- import { MessageType } from '@protobuf-ts/runtime';
7
- import { Event } from './event.js';
8
- import { TraceContext } from './trace_context.js';
9
- import { Timestamp } from '../../../../../google/protobuf/timestamp.js';
10
- import { ExercisedEvent } from './event.js';
11
- import { CreatedEvent } from './event.js';
12
- /**
13
- * Provided for backwards compatibility, it will be removed in the Canton version 3.4.0.
14
- * Each tree event message type below contains a ``witness_parties`` field which
15
- * indicates the subset of the requested parties that can see the event
16
- * in question.
17
- *
18
- * Note that transaction trees might contain events with
19
- * _no_ witness parties, which were included simply because they were
20
- * children of events which have witnesses.
21
- *
22
- * @generated from protobuf message com.daml.ledger.api.v2.TreeEvent
23
- */
24
- export interface TreeEvent {
25
- /**
26
- * @generated from protobuf oneof: kind
27
- */
28
- kind: {
29
- oneofKind: 'created';
30
- /**
31
- * The event as it appeared in the context of its original daml transaction on this participant node.
32
- * In particular, the offset, node_id pair of the daml transaction are preserved.
33
- *
34
- * @generated from protobuf field: com.daml.ledger.api.v2.CreatedEvent created = 1
35
- */
36
- created: CreatedEvent;
37
- } | {
38
- oneofKind: 'exercised';
39
- /**
40
- * @generated from protobuf field: com.daml.ledger.api.v2.ExercisedEvent exercised = 2
41
- */
42
- exercised: ExercisedEvent;
43
- } | {
44
- oneofKind: undefined;
45
- };
46
- }
47
- /**
48
- * Provided for backwards compatibility, it will be removed in the Canton version 3.4.0.
49
- * Complete view of an on-ledger transaction.
50
- *
51
- * @generated from protobuf message com.daml.ledger.api.v2.TransactionTree
52
- */
53
- export interface TransactionTree {
54
- /**
55
- * Assigned by the server. Useful for correlating logs.
56
- * Must be a valid LedgerString (as described in ``value.proto``).
57
- * Required
58
- *
59
- * @generated from protobuf field: string update_id = 1
60
- */
61
- updateId: string;
62
- /**
63
- * The ID of the command which resulted in this transaction. Missing for everyone except the submitting party.
64
- * Must be a valid LedgerString (as described in ``value.proto``).
65
- * Optional
66
- *
67
- * @generated from protobuf field: string command_id = 2
68
- */
69
- commandId: string;
70
- /**
71
- * The workflow ID used in command submission. Only set if the ``workflow_id`` for the command was set.
72
- * Must be a valid LedgerString (as described in ``value.proto``).
73
- * Optional
74
- *
75
- * @generated from protobuf field: string workflow_id = 3
76
- */
77
- workflowId: string;
78
- /**
79
- * Ledger effective time.
80
- * Required
81
- *
82
- * @generated from protobuf field: google.protobuf.Timestamp effective_at = 4
83
- */
84
- effectiveAt?: Timestamp;
85
- /**
86
- * The absolute offset. The details of this field are described in ``community/ledger-api/README.md``.
87
- * Required, it is a valid absolute offset (positive integer).
88
- *
89
- * @generated from protobuf field: int64 offset = 5
90
- */
91
- offset: bigint;
92
- /**
93
- * Changes to the ledger that were caused by this transaction. Nodes of the transaction tree.
94
- * Each key must be a valid node ID (non-negative integer).
95
- * Required
96
- *
97
- * @generated from protobuf field: map<int32, com.daml.ledger.api.v2.TreeEvent> events_by_id = 6
98
- */
99
- eventsById: {
100
- [key: number]: TreeEvent;
101
- };
102
- /**
103
- * A valid synchronizer id.
104
- * Identifies the synchronizer that synchronized the transaction.
105
- * Required
106
- *
107
- * @generated from protobuf field: string synchronizer_id = 7
108
- */
109
- synchronizerId: string;
110
- /**
111
- * Optional; ledger API trace context
112
- *
113
- * The trace context transported in this message corresponds to the trace context supplied
114
- * by the client application in a HTTP2 header of the original command submission.
115
- * We typically use a header to transfer this type of information. Here we use message
116
- * body, because it is used in gRPC streams which do not support per message headers.
117
- * This field will be populated with the trace context contained in the original submission.
118
- * If that was not provided, a unique ledger-api-server generated trace context will be used
119
- * instead.
120
- *
121
- * @generated from protobuf field: com.daml.ledger.api.v2.TraceContext trace_context = 8
122
- */
123
- traceContext?: TraceContext;
124
- /**
125
- * The time at which the transaction was recorded. The record time refers to the synchronizer
126
- * which synchronized the transaction.
127
- * Required
128
- *
129
- * @generated from protobuf field: google.protobuf.Timestamp record_time = 9
130
- */
131
- recordTime?: Timestamp;
132
- }
133
- /**
134
- * Filtered view of an on-ledger transaction's create and archive events.
135
- *
136
- * @generated from protobuf message com.daml.ledger.api.v2.Transaction
137
- */
138
- export interface Transaction {
139
- /**
140
- * Assigned by the server. Useful for correlating logs.
141
- * Must be a valid LedgerString (as described in ``value.proto``).
142
- * Required
143
- *
144
- * @generated from protobuf field: string update_id = 1
145
- */
146
- updateId: string;
147
- /**
148
- * The ID of the command which resulted in this transaction. Missing for everyone except the submitting party.
149
- * Must be a valid LedgerString (as described in ``value.proto``).
150
- * Optional
151
- *
152
- * @generated from protobuf field: string command_id = 2
153
- */
154
- commandId: string;
155
- /**
156
- * The workflow ID used in command submission.
157
- * Must be a valid LedgerString (as described in ``value.proto``).
158
- * Optional
159
- *
160
- * @generated from protobuf field: string workflow_id = 3
161
- */
162
- workflowId: string;
163
- /**
164
- * Ledger effective time.
165
- * Required
166
- *
167
- * @generated from protobuf field: google.protobuf.Timestamp effective_at = 4
168
- */
169
- effectiveAt?: Timestamp;
170
- /**
171
- * The collection of events.
172
- * Contains:
173
- *
174
- * - ``CreatedEvent`` or ``ArchivedEvent`` in case of ACS_DELTA transaction shape
175
- * - ``CreatedEvent`` or ``ExercisedEvent`` in case of LEDGER_EFFECTS transaction shape
176
- *
177
- * Required
178
- *
179
- * @generated from protobuf field: repeated com.daml.ledger.api.v2.Event events = 5
180
- */
181
- events: Event[];
182
- /**
183
- * The absolute offset. The details of this field are described in ``community/ledger-api/README.md``.
184
- * Required, it is a valid absolute offset (positive integer).
185
- *
186
- * @generated from protobuf field: int64 offset = 6
187
- */
188
- offset: bigint;
189
- /**
190
- * A valid synchronizer id.
191
- * Identifies the synchronizer that synchronized the transaction.
192
- * Required
193
- *
194
- * @generated from protobuf field: string synchronizer_id = 7
195
- */
196
- synchronizerId: string;
197
- /**
198
- * Optional; ledger API trace context
199
- *
200
- * The trace context transported in this message corresponds to the trace context supplied
201
- * by the client application in a HTTP2 header of the original command submission.
202
- * We typically use a header to transfer this type of information. Here we use message
203
- * body, because it is used in gRPC streams which do not support per message headers.
204
- * This field will be populated with the trace context contained in the original submission.
205
- * If that was not provided, a unique ledger-api-server generated trace context will be used
206
- * instead.
207
- *
208
- * @generated from protobuf field: com.daml.ledger.api.v2.TraceContext trace_context = 8
209
- */
210
- traceContext?: TraceContext;
211
- /**
212
- * The time at which the transaction was recorded. The record time refers to the synchronizer
213
- * which synchronized the transaction.
214
- * Required
215
- *
216
- * @generated from protobuf field: google.protobuf.Timestamp record_time = 9
217
- */
218
- recordTime?: Timestamp;
219
- }
220
- declare class TreeEvent$Type extends MessageType<TreeEvent> {
221
- constructor();
222
- create(value?: PartialMessage<TreeEvent>): TreeEvent;
223
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TreeEvent): TreeEvent;
224
- internalBinaryWrite(message: TreeEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
225
- }
226
- /**
227
- * @generated MessageType for protobuf message com.daml.ledger.api.v2.TreeEvent
228
- */
229
- export declare const TreeEvent: TreeEvent$Type;
230
- declare class TransactionTree$Type extends MessageType<TransactionTree> {
231
- constructor();
232
- create(value?: PartialMessage<TransactionTree>): TransactionTree;
233
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TransactionTree): TransactionTree;
234
- private binaryReadMap6;
235
- internalBinaryWrite(message: TransactionTree, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
236
- }
237
- /**
238
- * @generated MessageType for protobuf message com.daml.ledger.api.v2.TransactionTree
239
- */
240
- export declare const TransactionTree: TransactionTree$Type;
241
- declare class Transaction$Type extends MessageType<Transaction> {
242
- constructor();
243
- create(value?: PartialMessage<Transaction>): Transaction;
244
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Transaction): Transaction;
245
- internalBinaryWrite(message: Transaction, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
246
- }
247
- /**
248
- * @generated MessageType for protobuf message com.daml.ledger.api.v2.Transaction
249
- */
250
- export declare const Transaction: Transaction$Type;
251
- export {};
252
- //# sourceMappingURL=transaction.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"transaction.d.ts","sourceRoot":"","sources":["../../../../../../../src/_proto/com/daml/ledger/api/v2/transaction.ts"],"names":[],"mappings":"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"}
@@ -1,410 +0,0 @@
1
- import { WireType } from '@protobuf-ts/runtime';
2
- import { UnknownFieldHandler } from '@protobuf-ts/runtime';
3
- import { reflectionMergePartial } from '@protobuf-ts/runtime';
4
- import { MessageType } from '@protobuf-ts/runtime';
5
- import { Event } from './event.js';
6
- import { TraceContext } from './trace_context.js';
7
- import { Timestamp } from '../../../../../google/protobuf/timestamp.js';
8
- import { ExercisedEvent } from './event.js';
9
- import { CreatedEvent } from './event.js';
10
- // @generated message type with reflection information, may provide speed optimized methods
11
- class TreeEvent$Type extends MessageType {
12
- constructor() {
13
- super('com.daml.ledger.api.v2.TreeEvent', [
14
- {
15
- no: 1,
16
- name: 'created',
17
- kind: 'message',
18
- oneof: 'kind',
19
- T: () => CreatedEvent,
20
- },
21
- {
22
- no: 2,
23
- name: 'exercised',
24
- kind: 'message',
25
- oneof: 'kind',
26
- T: () => ExercisedEvent,
27
- },
28
- ]);
29
- }
30
- create(value) {
31
- const message = globalThis.Object.create(this.messagePrototype);
32
- message.kind = { oneofKind: undefined };
33
- if (value !== undefined)
34
- reflectionMergePartial(this, message, value);
35
- return message;
36
- }
37
- internalBinaryRead(reader, length, options, target) {
38
- let message = target ?? this.create(), end = reader.pos + length;
39
- while (reader.pos < end) {
40
- let [fieldNo, wireType] = reader.tag();
41
- switch (fieldNo) {
42
- case /* com.daml.ledger.api.v2.CreatedEvent created */ 1:
43
- message.kind = {
44
- oneofKind: 'created',
45
- created: CreatedEvent.internalBinaryRead(reader, reader.uint32(), options, message.kind.created),
46
- };
47
- break;
48
- case /* com.daml.ledger.api.v2.ExercisedEvent exercised */ 2:
49
- message.kind = {
50
- oneofKind: 'exercised',
51
- exercised: ExercisedEvent.internalBinaryRead(reader, reader.uint32(), options, message.kind.exercised),
52
- };
53
- break;
54
- default:
55
- let u = options.readUnknownField;
56
- if (u === 'throw')
57
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
58
- let d = reader.skip(wireType);
59
- if (u !== false)
60
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
61
- }
62
- }
63
- return message;
64
- }
65
- internalBinaryWrite(message, writer, options) {
66
- /* com.daml.ledger.api.v2.CreatedEvent created = 1; */
67
- if (message.kind.oneofKind === 'created')
68
- CreatedEvent.internalBinaryWrite(message.kind.created, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
69
- /* com.daml.ledger.api.v2.ExercisedEvent exercised = 2; */
70
- if (message.kind.oneofKind === 'exercised')
71
- ExercisedEvent.internalBinaryWrite(message.kind.exercised, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
72
- let u = options.writeUnknownFields;
73
- if (u !== false)
74
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
75
- return writer;
76
- }
77
- }
78
- /**
79
- * @generated MessageType for protobuf message com.daml.ledger.api.v2.TreeEvent
80
- */
81
- export const TreeEvent = new TreeEvent$Type();
82
- // @generated message type with reflection information, may provide speed optimized methods
83
- class TransactionTree$Type extends MessageType {
84
- constructor() {
85
- super('com.daml.ledger.api.v2.TransactionTree', [
86
- {
87
- no: 1,
88
- name: 'update_id',
89
- kind: 'scalar',
90
- T: 9 /*ScalarType.STRING*/,
91
- },
92
- {
93
- no: 2,
94
- name: 'command_id',
95
- kind: 'scalar',
96
- T: 9 /*ScalarType.STRING*/,
97
- },
98
- {
99
- no: 3,
100
- name: 'workflow_id',
101
- kind: 'scalar',
102
- T: 9 /*ScalarType.STRING*/,
103
- },
104
- {
105
- no: 4,
106
- name: 'effective_at',
107
- kind: 'message',
108
- T: () => Timestamp,
109
- },
110
- {
111
- no: 5,
112
- name: 'offset',
113
- kind: 'scalar',
114
- T: 3 /*ScalarType.INT64*/,
115
- L: 0 /*LongType.BIGINT*/,
116
- },
117
- {
118
- no: 6,
119
- name: 'events_by_id',
120
- kind: 'map',
121
- K: 5 /*ScalarType.INT32*/,
122
- V: { kind: 'message', T: () => TreeEvent },
123
- },
124
- {
125
- no: 7,
126
- name: 'synchronizer_id',
127
- kind: 'scalar',
128
- T: 9 /*ScalarType.STRING*/,
129
- },
130
- {
131
- no: 8,
132
- name: 'trace_context',
133
- kind: 'message',
134
- T: () => TraceContext,
135
- },
136
- { no: 9, name: 'record_time', kind: 'message', T: () => Timestamp },
137
- ]);
138
- }
139
- create(value) {
140
- const message = globalThis.Object.create(this.messagePrototype);
141
- message.updateId = '';
142
- message.commandId = '';
143
- message.workflowId = '';
144
- message.offset = 0n;
145
- message.eventsById = {};
146
- message.synchronizerId = '';
147
- if (value !== undefined)
148
- reflectionMergePartial(this, message, value);
149
- return message;
150
- }
151
- internalBinaryRead(reader, length, options, target) {
152
- let message = target ?? this.create(), end = reader.pos + length;
153
- while (reader.pos < end) {
154
- let [fieldNo, wireType] = reader.tag();
155
- switch (fieldNo) {
156
- case /* string update_id */ 1:
157
- message.updateId = reader.string();
158
- break;
159
- case /* string command_id */ 2:
160
- message.commandId = reader.string();
161
- break;
162
- case /* string workflow_id */ 3:
163
- message.workflowId = reader.string();
164
- break;
165
- case /* google.protobuf.Timestamp effective_at */ 4:
166
- message.effectiveAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.effectiveAt);
167
- break;
168
- case /* int64 offset */ 5:
169
- message.offset = reader.int64().toBigInt();
170
- break;
171
- case /* map<int32, com.daml.ledger.api.v2.TreeEvent> events_by_id */ 6:
172
- this.binaryReadMap6(message.eventsById, reader, options);
173
- break;
174
- case /* string synchronizer_id */ 7:
175
- message.synchronizerId = reader.string();
176
- break;
177
- case /* com.daml.ledger.api.v2.TraceContext trace_context */ 8:
178
- message.traceContext = TraceContext.internalBinaryRead(reader, reader.uint32(), options, message.traceContext);
179
- break;
180
- case /* google.protobuf.Timestamp record_time */ 9:
181
- message.recordTime = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.recordTime);
182
- break;
183
- default:
184
- let u = options.readUnknownField;
185
- if (u === 'throw')
186
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
187
- let d = reader.skip(wireType);
188
- if (u !== false)
189
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
190
- }
191
- }
192
- return message;
193
- }
194
- binaryReadMap6(map, reader, options) {
195
- let len = reader.uint32(), end = reader.pos + len, key, val;
196
- while (reader.pos < end) {
197
- let [fieldNo, wireType] = reader.tag();
198
- switch (fieldNo) {
199
- case 1:
200
- key = reader.int32();
201
- break;
202
- case 2:
203
- val = TreeEvent.internalBinaryRead(reader, reader.uint32(), options);
204
- break;
205
- default:
206
- throw new globalThis.Error('unknown map entry field for com.daml.ledger.api.v2.TransactionTree.events_by_id');
207
- }
208
- }
209
- map[key ?? 0] = val ?? TreeEvent.create();
210
- }
211
- internalBinaryWrite(message, writer, options) {
212
- /* string update_id = 1; */
213
- if (message.updateId !== '')
214
- writer.tag(1, WireType.LengthDelimited).string(message.updateId);
215
- /* string command_id = 2; */
216
- if (message.commandId !== '')
217
- writer.tag(2, WireType.LengthDelimited).string(message.commandId);
218
- /* string workflow_id = 3; */
219
- if (message.workflowId !== '')
220
- writer.tag(3, WireType.LengthDelimited).string(message.workflowId);
221
- /* google.protobuf.Timestamp effective_at = 4; */
222
- if (message.effectiveAt)
223
- Timestamp.internalBinaryWrite(message.effectiveAt, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
224
- /* int64 offset = 5; */
225
- if (message.offset !== 0n)
226
- writer.tag(5, WireType.Varint).int64(message.offset);
227
- /* map<int32, com.daml.ledger.api.v2.TreeEvent> events_by_id = 6; */
228
- for (let k of globalThis.Object.keys(message.eventsById)) {
229
- writer
230
- .tag(6, WireType.LengthDelimited)
231
- .fork()
232
- .tag(1, WireType.Varint)
233
- .int32(parseInt(k));
234
- writer.tag(2, WireType.LengthDelimited).fork();
235
- TreeEvent.internalBinaryWrite(message.eventsById[k], writer, options);
236
- writer.join().join();
237
- }
238
- /* string synchronizer_id = 7; */
239
- if (message.synchronizerId !== '')
240
- writer
241
- .tag(7, WireType.LengthDelimited)
242
- .string(message.synchronizerId);
243
- /* com.daml.ledger.api.v2.TraceContext trace_context = 8; */
244
- if (message.traceContext)
245
- TraceContext.internalBinaryWrite(message.traceContext, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
246
- /* google.protobuf.Timestamp record_time = 9; */
247
- if (message.recordTime)
248
- Timestamp.internalBinaryWrite(message.recordTime, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
249
- let u = options.writeUnknownFields;
250
- if (u !== false)
251
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
252
- return writer;
253
- }
254
- }
255
- /**
256
- * @generated MessageType for protobuf message com.daml.ledger.api.v2.TransactionTree
257
- */
258
- export const TransactionTree = new TransactionTree$Type();
259
- // @generated message type with reflection information, may provide speed optimized methods
260
- class Transaction$Type extends MessageType {
261
- constructor() {
262
- super('com.daml.ledger.api.v2.Transaction', [
263
- {
264
- no: 1,
265
- name: 'update_id',
266
- kind: 'scalar',
267
- T: 9 /*ScalarType.STRING*/,
268
- },
269
- {
270
- no: 2,
271
- name: 'command_id',
272
- kind: 'scalar',
273
- T: 9 /*ScalarType.STRING*/,
274
- },
275
- {
276
- no: 3,
277
- name: 'workflow_id',
278
- kind: 'scalar',
279
- T: 9 /*ScalarType.STRING*/,
280
- },
281
- {
282
- no: 4,
283
- name: 'effective_at',
284
- kind: 'message',
285
- T: () => Timestamp,
286
- },
287
- {
288
- no: 5,
289
- name: 'events',
290
- kind: 'message',
291
- repeat: 2 /*RepeatType.UNPACKED*/,
292
- T: () => Event,
293
- },
294
- {
295
- no: 6,
296
- name: 'offset',
297
- kind: 'scalar',
298
- T: 3 /*ScalarType.INT64*/,
299
- L: 0 /*LongType.BIGINT*/,
300
- },
301
- {
302
- no: 7,
303
- name: 'synchronizer_id',
304
- kind: 'scalar',
305
- T: 9 /*ScalarType.STRING*/,
306
- },
307
- {
308
- no: 8,
309
- name: 'trace_context',
310
- kind: 'message',
311
- T: () => TraceContext,
312
- },
313
- { no: 9, name: 'record_time', kind: 'message', T: () => Timestamp },
314
- ]);
315
- }
316
- create(value) {
317
- const message = globalThis.Object.create(this.messagePrototype);
318
- message.updateId = '';
319
- message.commandId = '';
320
- message.workflowId = '';
321
- message.events = [];
322
- message.offset = 0n;
323
- message.synchronizerId = '';
324
- if (value !== undefined)
325
- reflectionMergePartial(this, message, value);
326
- return message;
327
- }
328
- internalBinaryRead(reader, length, options, target) {
329
- let message = target ?? this.create(), end = reader.pos + length;
330
- while (reader.pos < end) {
331
- let [fieldNo, wireType] = reader.tag();
332
- switch (fieldNo) {
333
- case /* string update_id */ 1:
334
- message.updateId = reader.string();
335
- break;
336
- case /* string command_id */ 2:
337
- message.commandId = reader.string();
338
- break;
339
- case /* string workflow_id */ 3:
340
- message.workflowId = reader.string();
341
- break;
342
- case /* google.protobuf.Timestamp effective_at */ 4:
343
- message.effectiveAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.effectiveAt);
344
- break;
345
- case /* repeated com.daml.ledger.api.v2.Event events */ 5:
346
- message.events.push(Event.internalBinaryRead(reader, reader.uint32(), options));
347
- break;
348
- case /* int64 offset */ 6:
349
- message.offset = reader.int64().toBigInt();
350
- break;
351
- case /* string synchronizer_id */ 7:
352
- message.synchronizerId = reader.string();
353
- break;
354
- case /* com.daml.ledger.api.v2.TraceContext trace_context */ 8:
355
- message.traceContext = TraceContext.internalBinaryRead(reader, reader.uint32(), options, message.traceContext);
356
- break;
357
- case /* google.protobuf.Timestamp record_time */ 9:
358
- message.recordTime = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.recordTime);
359
- break;
360
- default:
361
- let u = options.readUnknownField;
362
- if (u === 'throw')
363
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
364
- let d = reader.skip(wireType);
365
- if (u !== false)
366
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
367
- }
368
- }
369
- return message;
370
- }
371
- internalBinaryWrite(message, writer, options) {
372
- /* string update_id = 1; */
373
- if (message.updateId !== '')
374
- writer.tag(1, WireType.LengthDelimited).string(message.updateId);
375
- /* string command_id = 2; */
376
- if (message.commandId !== '')
377
- writer.tag(2, WireType.LengthDelimited).string(message.commandId);
378
- /* string workflow_id = 3; */
379
- if (message.workflowId !== '')
380
- writer.tag(3, WireType.LengthDelimited).string(message.workflowId);
381
- /* google.protobuf.Timestamp effective_at = 4; */
382
- if (message.effectiveAt)
383
- Timestamp.internalBinaryWrite(message.effectiveAt, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
384
- /* repeated com.daml.ledger.api.v2.Event events = 5; */
385
- for (let i = 0; i < message.events.length; i++)
386
- Event.internalBinaryWrite(message.events[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
387
- /* int64 offset = 6; */
388
- if (message.offset !== 0n)
389
- writer.tag(6, WireType.Varint).int64(message.offset);
390
- /* string synchronizer_id = 7; */
391
- if (message.synchronizerId !== '')
392
- writer
393
- .tag(7, WireType.LengthDelimited)
394
- .string(message.synchronizerId);
395
- /* com.daml.ledger.api.v2.TraceContext trace_context = 8; */
396
- if (message.traceContext)
397
- TraceContext.internalBinaryWrite(message.traceContext, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
398
- /* google.protobuf.Timestamp record_time = 9; */
399
- if (message.recordTime)
400
- Timestamp.internalBinaryWrite(message.recordTime, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
401
- let u = options.writeUnknownFields;
402
- if (u !== false)
403
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
404
- return writer;
405
- }
406
- }
407
- /**
408
- * @generated MessageType for protobuf message com.daml.ledger.api.v2.Transaction
409
- */
410
- export const Transaction = new Transaction$Type();