@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,193 +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
- /**
8
- * @generated from protobuf message com.daml.ledger.api.v2.ReassignmentCommands
9
- */
10
- export interface ReassignmentCommands {
11
- /**
12
- * Identifier of the on-ledger workflow that this command is a part of.
13
- * Must be a valid LedgerString (as described in ``value.proto``).
14
- * Optional
15
- *
16
- * @generated from protobuf field: string workflow_id = 1
17
- */
18
- workflowId: string;
19
- /**
20
- * Uniquely identifies the participant user that issued the command.
21
- * Must be a valid UserIdString (as described in ``value.proto``).
22
- * Required unless authentication is used with a user token.
23
- * In that case, the token's user-id will be used for the request's user_id.
24
- *
25
- * @generated from protobuf field: string user_id = 2
26
- */
27
- userId: string;
28
- /**
29
- * Uniquely identifies the command.
30
- * The triple (user_id, submitter, command_id) constitutes the change ID for the intended ledger change.
31
- * The change ID can be used for matching the intended ledger changes with all their completions.
32
- * Must be a valid LedgerString (as described in ``value.proto``).
33
- * Required
34
- *
35
- * @generated from protobuf field: string command_id = 3
36
- */
37
- commandId: string;
38
- /**
39
- * Party on whose behalf the command should be executed.
40
- * If ledger API authorization is enabled, then the authorization metadata must authorize the sender of the request
41
- * to act on behalf of the given party.
42
- * Must be a valid PartyIdString (as described in ``value.proto``).
43
- * Required
44
- *
45
- * @generated from protobuf field: string submitter = 4
46
- */
47
- submitter: string;
48
- /**
49
- * A unique identifier to distinguish completions for different submissions with the same change ID.
50
- * Typically a random UUID. Applications are expected to use a different UUID for each retry of a submission
51
- * with the same change ID.
52
- * Must be a valid LedgerString (as described in ``value.proto``).
53
- *
54
- * If omitted, the participant or the committer may set a value of their choice.
55
- * Optional
56
- *
57
- * @generated from protobuf field: string submission_id = 5
58
- */
59
- submissionId: string;
60
- /**
61
- * Individual elements of this reassignment. Must be non-empty.
62
- *
63
- * @generated from protobuf field: repeated com.daml.ledger.api.v2.ReassignmentCommand commands = 6
64
- */
65
- commands: ReassignmentCommand[];
66
- }
67
- /**
68
- * @generated from protobuf message com.daml.ledger.api.v2.ReassignmentCommand
69
- */
70
- export interface ReassignmentCommand {
71
- /**
72
- * @generated from protobuf oneof: command
73
- */
74
- command: {
75
- oneofKind: 'unassignCommand';
76
- /**
77
- * @generated from protobuf field: com.daml.ledger.api.v2.UnassignCommand unassign_command = 1
78
- */
79
- unassignCommand: UnassignCommand;
80
- } | {
81
- oneofKind: 'assignCommand';
82
- /**
83
- * @generated from protobuf field: com.daml.ledger.api.v2.AssignCommand assign_command = 2
84
- */
85
- assignCommand: AssignCommand;
86
- } | {
87
- oneofKind: undefined;
88
- };
89
- }
90
- /**
91
- * Unassign a contract
92
- *
93
- * @generated from protobuf message com.daml.ledger.api.v2.UnassignCommand
94
- */
95
- export interface UnassignCommand {
96
- /**
97
- * The ID of the contract the client wants to unassign.
98
- * Must be a valid LedgerString (as described in ``value.proto``).
99
- * Required
100
- *
101
- * @generated from protobuf field: string contract_id = 1
102
- */
103
- contractId: string;
104
- /**
105
- * The ID of the source synchronizer
106
- * Must be a valid synchronizer id
107
- * Required
108
- *
109
- * @generated from protobuf field: string source = 2
110
- */
111
- source: string;
112
- /**
113
- * The ID of the target synchronizer
114
- * Must be a valid synchronizer id
115
- * Required
116
- *
117
- * @generated from protobuf field: string target = 3
118
- */
119
- target: string;
120
- }
121
- /**
122
- * Assign a contract
123
- *
124
- * @generated from protobuf message com.daml.ledger.api.v2.AssignCommand
125
- */
126
- export interface AssignCommand {
127
- /**
128
- * The ID from the unassigned event to be completed by this assignment.
129
- * Must be a valid LedgerString (as described in ``value.proto``).
130
- * Required
131
- *
132
- * @generated from protobuf field: string unassign_id = 1
133
- */
134
- unassignId: string;
135
- /**
136
- * The ID of the source synchronizer
137
- * Must be a valid synchronizer id
138
- * Required
139
- *
140
- * @generated from protobuf field: string source = 2
141
- */
142
- source: string;
143
- /**
144
- * The ID of the target synchronizer
145
- * Must be a valid synchronizer id
146
- * Required
147
- *
148
- * @generated from protobuf field: string target = 3
149
- */
150
- target: string;
151
- }
152
- declare class ReassignmentCommands$Type extends MessageType<ReassignmentCommands> {
153
- constructor();
154
- create(value?: PartialMessage<ReassignmentCommands>): ReassignmentCommands;
155
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ReassignmentCommands): ReassignmentCommands;
156
- internalBinaryWrite(message: ReassignmentCommands, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
157
- }
158
- /**
159
- * @generated MessageType for protobuf message com.daml.ledger.api.v2.ReassignmentCommands
160
- */
161
- export declare const ReassignmentCommands: ReassignmentCommands$Type;
162
- declare class ReassignmentCommand$Type extends MessageType<ReassignmentCommand> {
163
- constructor();
164
- create(value?: PartialMessage<ReassignmentCommand>): ReassignmentCommand;
165
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ReassignmentCommand): ReassignmentCommand;
166
- internalBinaryWrite(message: ReassignmentCommand, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
167
- }
168
- /**
169
- * @generated MessageType for protobuf message com.daml.ledger.api.v2.ReassignmentCommand
170
- */
171
- export declare const ReassignmentCommand: ReassignmentCommand$Type;
172
- declare class UnassignCommand$Type extends MessageType<UnassignCommand> {
173
- constructor();
174
- create(value?: PartialMessage<UnassignCommand>): UnassignCommand;
175
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UnassignCommand): UnassignCommand;
176
- internalBinaryWrite(message: UnassignCommand, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
177
- }
178
- /**
179
- * @generated MessageType for protobuf message com.daml.ledger.api.v2.UnassignCommand
180
- */
181
- export declare const UnassignCommand: UnassignCommand$Type;
182
- declare class AssignCommand$Type extends MessageType<AssignCommand> {
183
- constructor();
184
- create(value?: PartialMessage<AssignCommand>): AssignCommand;
185
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AssignCommand): AssignCommand;
186
- internalBinaryWrite(message: AssignCommand, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
187
- }
188
- /**
189
- * @generated MessageType for protobuf message com.daml.ledger.api.v2.AssignCommand
190
- */
191
- export declare const AssignCommand: AssignCommand$Type;
192
- export {};
193
- //# sourceMappingURL=reassignment_commands.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"reassignment_commands.d.ts","sourceRoot":"","sources":["../../../../../../../src/_proto/com/daml/ledger/api/v2/reassignment_commands.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAE1D,OAAO,EAAE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kB,CACd,MAAM,EAAE,aAAa,EACrB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,iBAAiB,EAC1B,MAAM,CAAC,EAAE,aAAa,GACvB,aAAa;IAkChB,mBAAmB,CACf,OAAO,EAAE,aAAa,EACtB,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,kBAAkB,GAC5B,aAAa;CAmBnB;AACD;;GAEG;AACH,eAAO,MAAM,aAAa,oBAA2B,CAAA"}
@@ -1,350 +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
- // @generated message type with reflection information, may provide speed optimized methods
6
- class ReassignmentCommands$Type extends MessageType {
7
- constructor() {
8
- super('com.daml.ledger.api.v2.ReassignmentCommands', [
9
- {
10
- no: 1,
11
- name: 'workflow_id',
12
- kind: 'scalar',
13
- T: 9 /*ScalarType.STRING*/,
14
- },
15
- {
16
- no: 2,
17
- name: 'user_id',
18
- kind: 'scalar',
19
- T: 9 /*ScalarType.STRING*/,
20
- },
21
- {
22
- no: 3,
23
- name: 'command_id',
24
- kind: 'scalar',
25
- T: 9 /*ScalarType.STRING*/,
26
- },
27
- {
28
- no: 4,
29
- name: 'submitter',
30
- kind: 'scalar',
31
- T: 9 /*ScalarType.STRING*/,
32
- },
33
- {
34
- no: 5,
35
- name: 'submission_id',
36
- kind: 'scalar',
37
- T: 9 /*ScalarType.STRING*/,
38
- },
39
- {
40
- no: 6,
41
- name: 'commands',
42
- kind: 'message',
43
- repeat: 2 /*RepeatType.UNPACKED*/,
44
- T: () => ReassignmentCommand,
45
- },
46
- ]);
47
- }
48
- create(value) {
49
- const message = globalThis.Object.create(this.messagePrototype);
50
- message.workflowId = '';
51
- message.userId = '';
52
- message.commandId = '';
53
- message.submitter = '';
54
- message.submissionId = '';
55
- message.commands = [];
56
- if (value !== undefined)
57
- reflectionMergePartial(this, message, value);
58
- return message;
59
- }
60
- internalBinaryRead(reader, length, options, target) {
61
- let message = target ?? this.create(), end = reader.pos + length;
62
- while (reader.pos < end) {
63
- let [fieldNo, wireType] = reader.tag();
64
- switch (fieldNo) {
65
- case /* string workflow_id */ 1:
66
- message.workflowId = reader.string();
67
- break;
68
- case /* string user_id */ 2:
69
- message.userId = reader.string();
70
- break;
71
- case /* string command_id */ 3:
72
- message.commandId = reader.string();
73
- break;
74
- case /* string submitter */ 4:
75
- message.submitter = reader.string();
76
- break;
77
- case /* string submission_id */ 5:
78
- message.submissionId = reader.string();
79
- break;
80
- case /* repeated com.daml.ledger.api.v2.ReassignmentCommand commands */ 6:
81
- message.commands.push(ReassignmentCommand.internalBinaryRead(reader, reader.uint32(), options));
82
- break;
83
- default:
84
- let u = options.readUnknownField;
85
- if (u === 'throw')
86
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
87
- let d = reader.skip(wireType);
88
- if (u !== false)
89
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
90
- }
91
- }
92
- return message;
93
- }
94
- internalBinaryWrite(message, writer, options) {
95
- /* string workflow_id = 1; */
96
- if (message.workflowId !== '')
97
- writer.tag(1, WireType.LengthDelimited).string(message.workflowId);
98
- /* string user_id = 2; */
99
- if (message.userId !== '')
100
- writer.tag(2, WireType.LengthDelimited).string(message.userId);
101
- /* string command_id = 3; */
102
- if (message.commandId !== '')
103
- writer.tag(3, WireType.LengthDelimited).string(message.commandId);
104
- /* string submitter = 4; */
105
- if (message.submitter !== '')
106
- writer.tag(4, WireType.LengthDelimited).string(message.submitter);
107
- /* string submission_id = 5; */
108
- if (message.submissionId !== '')
109
- writer.tag(5, WireType.LengthDelimited).string(message.submissionId);
110
- /* repeated com.daml.ledger.api.v2.ReassignmentCommand commands = 6; */
111
- for (let i = 0; i < message.commands.length; i++)
112
- ReassignmentCommand.internalBinaryWrite(message.commands[i], writer.tag(6, WireType.LengthDelimited).fork(), options).join();
113
- let u = options.writeUnknownFields;
114
- if (u !== false)
115
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
116
- return writer;
117
- }
118
- }
119
- /**
120
- * @generated MessageType for protobuf message com.daml.ledger.api.v2.ReassignmentCommands
121
- */
122
- export const ReassignmentCommands = new ReassignmentCommands$Type();
123
- // @generated message type with reflection information, may provide speed optimized methods
124
- class ReassignmentCommand$Type extends MessageType {
125
- constructor() {
126
- super('com.daml.ledger.api.v2.ReassignmentCommand', [
127
- {
128
- no: 1,
129
- name: 'unassign_command',
130
- kind: 'message',
131
- oneof: 'command',
132
- T: () => UnassignCommand,
133
- },
134
- {
135
- no: 2,
136
- name: 'assign_command',
137
- kind: 'message',
138
- oneof: 'command',
139
- T: () => AssignCommand,
140
- },
141
- ]);
142
- }
143
- create(value) {
144
- const message = globalThis.Object.create(this.messagePrototype);
145
- message.command = { oneofKind: undefined };
146
- if (value !== undefined)
147
- reflectionMergePartial(this, message, value);
148
- return message;
149
- }
150
- internalBinaryRead(reader, length, options, target) {
151
- let message = target ?? this.create(), end = reader.pos + length;
152
- while (reader.pos < end) {
153
- let [fieldNo, wireType] = reader.tag();
154
- switch (fieldNo) {
155
- case /* com.daml.ledger.api.v2.UnassignCommand unassign_command */ 1:
156
- message.command = {
157
- oneofKind: 'unassignCommand',
158
- unassignCommand: UnassignCommand.internalBinaryRead(reader, reader.uint32(), options, message.command.unassignCommand),
159
- };
160
- break;
161
- case /* com.daml.ledger.api.v2.AssignCommand assign_command */ 2:
162
- message.command = {
163
- oneofKind: 'assignCommand',
164
- assignCommand: AssignCommand.internalBinaryRead(reader, reader.uint32(), options, message.command.assignCommand),
165
- };
166
- break;
167
- default:
168
- let u = options.readUnknownField;
169
- if (u === 'throw')
170
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
171
- let d = reader.skip(wireType);
172
- if (u !== false)
173
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
174
- }
175
- }
176
- return message;
177
- }
178
- internalBinaryWrite(message, writer, options) {
179
- /* com.daml.ledger.api.v2.UnassignCommand unassign_command = 1; */
180
- if (message.command.oneofKind === 'unassignCommand')
181
- UnassignCommand.internalBinaryWrite(message.command.unassignCommand, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
182
- /* com.daml.ledger.api.v2.AssignCommand assign_command = 2; */
183
- if (message.command.oneofKind === 'assignCommand')
184
- AssignCommand.internalBinaryWrite(message.command.assignCommand, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
185
- let u = options.writeUnknownFields;
186
- if (u !== false)
187
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
188
- return writer;
189
- }
190
- }
191
- /**
192
- * @generated MessageType for protobuf message com.daml.ledger.api.v2.ReassignmentCommand
193
- */
194
- export const ReassignmentCommand = new ReassignmentCommand$Type();
195
- // @generated message type with reflection information, may provide speed optimized methods
196
- class UnassignCommand$Type extends MessageType {
197
- constructor() {
198
- super('com.daml.ledger.api.v2.UnassignCommand', [
199
- {
200
- no: 1,
201
- name: 'contract_id',
202
- kind: 'scalar',
203
- T: 9 /*ScalarType.STRING*/,
204
- },
205
- {
206
- no: 2,
207
- name: 'source',
208
- kind: 'scalar',
209
- T: 9 /*ScalarType.STRING*/,
210
- },
211
- {
212
- no: 3,
213
- name: 'target',
214
- kind: 'scalar',
215
- T: 9 /*ScalarType.STRING*/,
216
- },
217
- ]);
218
- }
219
- create(value) {
220
- const message = globalThis.Object.create(this.messagePrototype);
221
- message.contractId = '';
222
- message.source = '';
223
- message.target = '';
224
- if (value !== undefined)
225
- reflectionMergePartial(this, message, value);
226
- return message;
227
- }
228
- internalBinaryRead(reader, length, options, target) {
229
- let message = target ?? this.create(), end = reader.pos + length;
230
- while (reader.pos < end) {
231
- let [fieldNo, wireType] = reader.tag();
232
- switch (fieldNo) {
233
- case /* string contract_id */ 1:
234
- message.contractId = reader.string();
235
- break;
236
- case /* string source */ 2:
237
- message.source = reader.string();
238
- break;
239
- case /* string target */ 3:
240
- message.target = reader.string();
241
- break;
242
- default:
243
- let u = options.readUnknownField;
244
- if (u === 'throw')
245
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
246
- let d = reader.skip(wireType);
247
- if (u !== false)
248
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
249
- }
250
- }
251
- return message;
252
- }
253
- internalBinaryWrite(message, writer, options) {
254
- /* string contract_id = 1; */
255
- if (message.contractId !== '')
256
- writer.tag(1, WireType.LengthDelimited).string(message.contractId);
257
- /* string source = 2; */
258
- if (message.source !== '')
259
- writer.tag(2, WireType.LengthDelimited).string(message.source);
260
- /* string target = 3; */
261
- if (message.target !== '')
262
- writer.tag(3, WireType.LengthDelimited).string(message.target);
263
- let u = options.writeUnknownFields;
264
- if (u !== false)
265
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
266
- return writer;
267
- }
268
- }
269
- /**
270
- * @generated MessageType for protobuf message com.daml.ledger.api.v2.UnassignCommand
271
- */
272
- export const UnassignCommand = new UnassignCommand$Type();
273
- // @generated message type with reflection information, may provide speed optimized methods
274
- class AssignCommand$Type extends MessageType {
275
- constructor() {
276
- super('com.daml.ledger.api.v2.AssignCommand', [
277
- {
278
- no: 1,
279
- name: 'unassign_id',
280
- kind: 'scalar',
281
- T: 9 /*ScalarType.STRING*/,
282
- },
283
- {
284
- no: 2,
285
- name: 'source',
286
- kind: 'scalar',
287
- T: 9 /*ScalarType.STRING*/,
288
- },
289
- {
290
- no: 3,
291
- name: 'target',
292
- kind: 'scalar',
293
- T: 9 /*ScalarType.STRING*/,
294
- },
295
- ]);
296
- }
297
- create(value) {
298
- const message = globalThis.Object.create(this.messagePrototype);
299
- message.unassignId = '';
300
- message.source = '';
301
- message.target = '';
302
- if (value !== undefined)
303
- reflectionMergePartial(this, message, value);
304
- return message;
305
- }
306
- internalBinaryRead(reader, length, options, target) {
307
- let message = target ?? this.create(), end = reader.pos + length;
308
- while (reader.pos < end) {
309
- let [fieldNo, wireType] = reader.tag();
310
- switch (fieldNo) {
311
- case /* string unassign_id */ 1:
312
- message.unassignId = reader.string();
313
- break;
314
- case /* string source */ 2:
315
- message.source = reader.string();
316
- break;
317
- case /* string target */ 3:
318
- message.target = reader.string();
319
- break;
320
- default:
321
- let u = options.readUnknownField;
322
- if (u === 'throw')
323
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
324
- let d = reader.skip(wireType);
325
- if (u !== false)
326
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
327
- }
328
- }
329
- return message;
330
- }
331
- internalBinaryWrite(message, writer, options) {
332
- /* string unassign_id = 1; */
333
- if (message.unassignId !== '')
334
- writer.tag(1, WireType.LengthDelimited).string(message.unassignId);
335
- /* string source = 2; */
336
- if (message.source !== '')
337
- writer.tag(2, WireType.LengthDelimited).string(message.source);
338
- /* string target = 3; */
339
- if (message.target !== '')
340
- writer.tag(3, WireType.LengthDelimited).string(message.target);
341
- let u = options.writeUnknownFields;
342
- if (u !== false)
343
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
344
- return writer;
345
- }
346
- }
347
- /**
348
- * @generated MessageType for protobuf message com.daml.ledger.api.v2.AssignCommand
349
- */
350
- export const AssignCommand = new AssignCommand$Type();
@@ -1,91 +0,0 @@
1
- import type { RpcTransport } from '@protobuf-ts/runtime-rpc';
2
- import type { ServiceInfo } from '@protobuf-ts/runtime-rpc';
3
- import type { GetLatestPrunedOffsetsResponse } from './state_service.js';
4
- import type { GetLatestPrunedOffsetsRequest } from './state_service.js';
5
- import type { GetLedgerEndResponse } from './state_service.js';
6
- import type { GetLedgerEndRequest } from './state_service.js';
7
- import type { GetConnectedSynchronizersResponse } from './state_service.js';
8
- import type { GetConnectedSynchronizersRequest } from './state_service.js';
9
- import type { UnaryCall } from '@protobuf-ts/runtime-rpc';
10
- import type { GetActiveContractsResponse } from './state_service.js';
11
- import type { GetActiveContractsRequest } from './state_service.js';
12
- import type { ServerStreamingCall } from '@protobuf-ts/runtime-rpc';
13
- import type { RpcOptions } from '@protobuf-ts/runtime-rpc';
14
- /**
15
- * Allows clients to get state from the ledger.
16
- *
17
- * @generated from protobuf service com.daml.ledger.api.v2.StateService
18
- */
19
- export interface IStateServiceClient {
20
- /**
21
- * Returns a stream of the snapshot of the active contracts and incomplete (un)assignments at a ledger offset.
22
- * If there are no active contracts, the stream returns a single response message with the offset at which the snapshot has been taken.
23
- * Clients SHOULD use the offset in the last GetActiveContractsResponse message to continue streaming transactions with the update service.
24
- * Clients SHOULD NOT assume that the set of active contracts they receive reflects the state at the ledger end.
25
- *
26
- * @generated from protobuf rpc: GetActiveContracts
27
- */
28
- getActiveContracts(input: GetActiveContractsRequest, options?: RpcOptions): ServerStreamingCall<GetActiveContractsRequest, GetActiveContractsResponse>;
29
- /**
30
- * Get the list of connected synchronizers at the time of the query.
31
- *
32
- * @generated from protobuf rpc: GetConnectedSynchronizers
33
- */
34
- getConnectedSynchronizers(input: GetConnectedSynchronizersRequest, options?: RpcOptions): UnaryCall<GetConnectedSynchronizersRequest, GetConnectedSynchronizersResponse>;
35
- /**
36
- * Get the current ledger end.
37
- * Subscriptions started with the returned offset will serve events after this RPC was called.
38
- *
39
- * @generated from protobuf rpc: GetLedgerEnd
40
- */
41
- getLedgerEnd(input: GetLedgerEndRequest, options?: RpcOptions): UnaryCall<GetLedgerEndRequest, GetLedgerEndResponse>;
42
- /**
43
- * Get the latest successfully pruned ledger offsets
44
- *
45
- * @generated from protobuf rpc: GetLatestPrunedOffsets
46
- */
47
- getLatestPrunedOffsets(input: GetLatestPrunedOffsetsRequest, options?: RpcOptions): UnaryCall<GetLatestPrunedOffsetsRequest, GetLatestPrunedOffsetsResponse>;
48
- }
49
- /**
50
- * Allows clients to get state from the ledger.
51
- *
52
- * @generated from protobuf service com.daml.ledger.api.v2.StateService
53
- */
54
- export declare class StateServiceClient implements IStateServiceClient, ServiceInfo {
55
- private readonly _transport;
56
- typeName: string;
57
- methods: import("@protobuf-ts/runtime-rpc").MethodInfo<any, any>[];
58
- options: {
59
- [extensionName: string]: import("@protobuf-ts/runtime").JsonValue;
60
- };
61
- constructor(_transport: RpcTransport);
62
- /**
63
- * Returns a stream of the snapshot of the active contracts and incomplete (un)assignments at a ledger offset.
64
- * If there are no active contracts, the stream returns a single response message with the offset at which the snapshot has been taken.
65
- * Clients SHOULD use the offset in the last GetActiveContractsResponse message to continue streaming transactions with the update service.
66
- * Clients SHOULD NOT assume that the set of active contracts they receive reflects the state at the ledger end.
67
- *
68
- * @generated from protobuf rpc: GetActiveContracts
69
- */
70
- getActiveContracts(input: GetActiveContractsRequest, options?: RpcOptions): ServerStreamingCall<GetActiveContractsRequest, GetActiveContractsResponse>;
71
- /**
72
- * Get the list of connected synchronizers at the time of the query.
73
- *
74
- * @generated from protobuf rpc: GetConnectedSynchronizers
75
- */
76
- getConnectedSynchronizers(input: GetConnectedSynchronizersRequest, options?: RpcOptions): UnaryCall<GetConnectedSynchronizersRequest, GetConnectedSynchronizersResponse>;
77
- /**
78
- * Get the current ledger end.
79
- * Subscriptions started with the returned offset will serve events after this RPC was called.
80
- *
81
- * @generated from protobuf rpc: GetLedgerEnd
82
- */
83
- getLedgerEnd(input: GetLedgerEndRequest, options?: RpcOptions): UnaryCall<GetLedgerEndRequest, GetLedgerEndResponse>;
84
- /**
85
- * Get the latest successfully pruned ledger offsets
86
- *
87
- * @generated from protobuf rpc: GetLatestPrunedOffsets
88
- */
89
- getLatestPrunedOffsets(input: GetLatestPrunedOffsetsRequest, options?: RpcOptions): UnaryCall<GetLatestPrunedOffsetsRequest, GetLatestPrunedOffsetsResponse>;
90
- }
91
- //# sourceMappingURL=state_service.client.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"state_service.client.d.ts","sourceRoot":"","sources":["../../../../../../../src/_proto/com/daml/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