@canton-network/core-ledger-client 0.1.0 → 0.2.1

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 (258) hide show
  1. package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.client.d.ts +58 -0
  2. package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.client.d.ts.map +1 -0
  3. package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.client.js +34 -0
  4. package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.d.ts +232 -0
  5. package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.d.ts.map +1 -0
  6. package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.js +560 -0
  7. package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.client.d.ts +144 -0
  8. package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.client.d.ts.map +1 -0
  9. package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.client.js +85 -0
  10. package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.d.ts +291 -0
  11. package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.d.ts.map +1 -0
  12. package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.js +663 -0
  13. package/dist/_proto/com/daml/ledger/api/v2/admin/object_meta.d.ts +76 -0
  14. package/dist/_proto/com/daml/ledger/api/v2/admin/object_meta.d.ts.map +1 -0
  15. package/dist/_proto/com/daml/ledger/api/v2/admin/object_meta.js +96 -0
  16. package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.client.d.ts +106 -0
  17. package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.client.d.ts.map +1 -0
  18. package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.client.js +62 -0
  19. package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.d.ts +199 -0
  20. package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.d.ts.map +1 -0
  21. package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.js +427 -0
  22. package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.client.d.ts +56 -0
  23. package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.client.d.ts.map +1 -0
  24. package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.client.js +35 -0
  25. package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.d.ts +81 -0
  26. package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.d.ts.map +1 -0
  27. package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.js +135 -0
  28. package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.client.d.ts +196 -0
  29. package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.client.d.ts.map +1 -0
  30. package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.client.js +113 -0
  31. package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.d.ts +413 -0
  32. package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.d.ts.map +1 -0
  33. package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.js +867 -0
  34. package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.client.d.ts +210 -0
  35. package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.client.d.ts.map +1 -0
  36. package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.client.js +126 -0
  37. package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.d.ts +758 -0
  38. package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.d.ts.map +1 -0
  39. package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.js +1580 -0
  40. package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.client.d.ts +66 -0
  41. package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.client.d.ts.map +1 -0
  42. package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.client.js +38 -0
  43. package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.d.ts +90 -0
  44. package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.d.ts.map +1 -0
  45. package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.js +178 -0
  46. package/dist/_proto/com/daml/ledger/api/v2/command_service.client.d.ts +99 -0
  47. package/dist/_proto/com/daml/ledger/api/v2/command_service.client.d.ts.map +1 -0
  48. package/dist/_proto/com/daml/ledger/api/v2/command_service.client.js +61 -0
  49. package/dist/_proto/com/daml/ledger/api/v2/command_service.d.ts +210 -0
  50. package/dist/_proto/com/daml/ledger/api/v2/command_service.d.ts.map +1 -0
  51. package/dist/_proto/com/daml/ledger/api/v2/command_service.js +436 -0
  52. package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.client.d.ts +80 -0
  53. package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.client.d.ts.map +1 -0
  54. package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.client.js +47 -0
  55. package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.d.ts +91 -0
  56. package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.d.ts.map +1 -0
  57. package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.js +200 -0
  58. package/dist/_proto/com/daml/ledger/api/v2/commands.d.ts +491 -0
  59. package/dist/_proto/com/daml/ledger/api/v2/commands.d.ts.map +1 -0
  60. package/dist/_proto/com/daml/ledger/api/v2/commands.js +828 -0
  61. package/dist/_proto/com/daml/ledger/api/v2/completion.d.ts +149 -0
  62. package/dist/_proto/com/daml/ledger/api/v2/completion.d.ts.map +1 -0
  63. package/dist/_proto/com/daml/ledger/api/v2/completion.js +196 -0
  64. package/dist/_proto/com/daml/ledger/api/v2/event.d.ts +495 -0
  65. package/dist/_proto/com/daml/ledger/api/v2/event.d.ts.map +1 -0
  66. package/dist/_proto/com/daml/ledger/api/v2/event.js +723 -0
  67. package/dist/_proto/com/daml/ledger/api/v2/event_query_service.client.d.ts +52 -0
  68. package/dist/_proto/com/daml/ledger/api/v2/event_query_service.client.d.ts.map +1 -0
  69. package/dist/_proto/com/daml/ledger/api/v2/event_query_service.client.js +31 -0
  70. package/dist/_proto/com/daml/ledger/api/v2/event_query_service.d.ts +150 -0
  71. package/dist/_proto/com/daml/ledger/api/v2/event_query_service.d.ts.map +1 -0
  72. package/dist/_proto/com/daml/ledger/api/v2/event_query_service.js +291 -0
  73. package/dist/_proto/com/daml/ledger/api/v2/experimental_features.d.ts +96 -0
  74. package/dist/_proto/com/daml/ledger/api/v2/experimental_features.d.ts.map +1 -0
  75. package/dist/_proto/com/daml/ledger/api/v2/experimental_features.js +225 -0
  76. package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_common_data.d.ts +43 -0
  77. package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_common_data.d.ts.map +1 -0
  78. package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_common_data.js +85 -0
  79. package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.client.d.ts +100 -0
  80. package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.client.d.ts.map +1 -0
  81. package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.client.js +59 -0
  82. package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.d.ts +877 -0
  83. package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.d.ts.map +1 -0
  84. package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.js +1768 -0
  85. package/dist/_proto/com/daml/ledger/api/v2/interactive/transaction/v1/interactive_submission_data.d.ts +259 -0
  86. package/dist/_proto/com/daml/ledger/api/v2/interactive/transaction/v1/interactive_submission_data.d.ts.map +1 -0
  87. package/dist/_proto/com/daml/ledger/api/v2/interactive/transaction/v1/interactive_submission_data.js +667 -0
  88. package/dist/_proto/com/daml/ledger/api/v2/offset_checkpoint.d.ts +69 -0
  89. package/dist/_proto/com/daml/ledger/api/v2/offset_checkpoint.d.ts.map +1 -0
  90. package/dist/_proto/com/daml/ledger/api/v2/offset_checkpoint.js +133 -0
  91. package/dist/_proto/com/daml/ledger/api/v2/package_reference.d.ts +41 -0
  92. package/dist/_proto/com/daml/ledger/api/v2/package_reference.d.ts.map +1 -0
  93. package/dist/_proto/com/daml/ledger/api/v2/package_reference.js +84 -0
  94. package/dist/_proto/com/daml/ledger/api/v2/package_service.client.d.ts +68 -0
  95. package/dist/_proto/com/daml/ledger/api/v2/package_service.client.d.ts.map +1 -0
  96. package/dist/_proto/com/daml/ledger/api/v2/package_service.client.js +43 -0
  97. package/dist/_proto/com/daml/ledger/api/v2/package_service.d.ts +181 -0
  98. package/dist/_proto/com/daml/ledger/api/v2/package_service.d.ts.map +1 -0
  99. package/dist/_proto/com/daml/ledger/api/v2/package_service.js +395 -0
  100. package/dist/_proto/com/daml/ledger/api/v2/reassignment.d.ts +308 -0
  101. package/dist/_proto/com/daml/ledger/api/v2/reassignment.d.ts.map +1 -0
  102. package/dist/_proto/com/daml/ledger/api/v2/reassignment.js +521 -0
  103. package/dist/_proto/com/daml/ledger/api/v2/reassignment_commands.d.ts +193 -0
  104. package/dist/_proto/com/daml/ledger/api/v2/reassignment_commands.d.ts.map +1 -0
  105. package/dist/_proto/com/daml/ledger/api/v2/reassignment_commands.js +350 -0
  106. package/dist/_proto/com/daml/ledger/api/v2/state_service.client.d.ts +91 -0
  107. package/dist/_proto/com/daml/ledger/api/v2/state_service.client.d.ts.map +1 -0
  108. package/dist/_proto/com/daml/ledger/api/v2/state_service.client.js +56 -0
  109. package/dist/_proto/com/daml/ledger/api/v2/state_service.d.ts +448 -0
  110. package/dist/_proto/com/daml/ledger/api/v2/state_service.d.ts.map +1 -0
  111. package/dist/_proto/com/daml/ledger/api/v2/state_service.js +874 -0
  112. package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.client.d.ts +54 -0
  113. package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.client.d.ts.map +1 -0
  114. package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.client.js +34 -0
  115. package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.d.ts +78 -0
  116. package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.d.ts.map +1 -0
  117. package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.js +168 -0
  118. package/dist/_proto/com/daml/ledger/api/v2/topology_transaction.d.ts +211 -0
  119. package/dist/_proto/com/daml/ledger/api/v2/topology_transaction.d.ts.map +1 -0
  120. package/dist/_proto/com/daml/ledger/api/v2/topology_transaction.js +447 -0
  121. package/dist/_proto/com/daml/ledger/api/v2/trace_context.d.ts +33 -0
  122. package/dist/_proto/com/daml/ledger/api/v2/trace_context.d.ts.map +1 -0
  123. package/dist/_proto/com/daml/ledger/api/v2/trace_context.js +69 -0
  124. package/dist/_proto/com/daml/ledger/api/v2/transaction.d.ts +252 -0
  125. package/dist/_proto/com/daml/ledger/api/v2/transaction.d.ts.map +1 -0
  126. package/dist/_proto/com/daml/ledger/api/v2/transaction.js +410 -0
  127. package/dist/_proto/com/daml/ledger/api/v2/transaction_filter.d.ts +453 -0
  128. package/dist/_proto/com/daml/ledger/api/v2/transaction_filter.d.ts.map +1 -0
  129. package/dist/_proto/com/daml/ledger/api/v2/transaction_filter.js +815 -0
  130. package/dist/_proto/com/daml/ledger/api/v2/update_service.client.d.ts +199 -0
  131. package/dist/_proto/com/daml/ledger/api/v2/update_service.client.d.ts.map +1 -0
  132. package/dist/_proto/com/daml/ledger/api/v2/update_service.client.js +121 -0
  133. package/dist/_proto/com/daml/ledger/api/v2/update_service.d.ts +424 -0
  134. package/dist/_proto/com/daml/ledger/api/v2/update_service.d.ts.map +1 -0
  135. package/dist/_proto/com/daml/ledger/api/v2/update_service.js +853 -0
  136. package/dist/_proto/com/daml/ledger/api/v2/value.d.ts +500 -0
  137. package/dist/_proto/com/daml/ledger/api/v2/value.d.ts.map +1 -0
  138. package/dist/_proto/com/daml/ledger/api/v2/value.js +937 -0
  139. package/dist/_proto/com/daml/ledger/api/v2/version_service.client.d.ts +40 -0
  140. package/dist/_proto/com/daml/ledger/api/v2/version_service.client.d.ts.map +1 -0
  141. package/dist/_proto/com/daml/ledger/api/v2/version_service.client.js +25 -0
  142. package/dist/_proto/com/daml/ledger/api/v2/version_service.d.ts +190 -0
  143. package/dist/_proto/com/daml/ledger/api/v2/version_service.d.ts.map +1 -0
  144. package/dist/_proto/com/daml/ledger/api/v2/version_service.js +400 -0
  145. package/dist/_proto/com/digitalasset/canton/crypto/v30/crypto.d.ts +1028 -0
  146. package/dist/_proto/com/digitalasset/canton/crypto/v30/crypto.d.ts.map +1 -0
  147. package/dist/_proto/com/digitalasset/canton/crypto/v30/crypto.js +2110 -0
  148. package/dist/_proto/com/digitalasset/canton/protocol/v30/sequencing_parameters.d.ts +30 -0
  149. package/dist/_proto/com/digitalasset/canton/protocol/v30/sequencing_parameters.d.ts.map +1 -0
  150. package/dist/_proto/com/digitalasset/canton/protocol/v30/sequencing_parameters.js +62 -0
  151. package/dist/_proto/com/digitalasset/canton/protocol/v30/synchronizer_parameters.d.ts +168 -0
  152. package/dist/_proto/com/digitalasset/canton/protocol/v30/synchronizer_parameters.d.ts.map +1 -0
  153. package/dist/_proto/com/digitalasset/canton/protocol/v30/synchronizer_parameters.js +395 -0
  154. package/dist/_proto/com/digitalasset/canton/protocol/v30/topology.d.ts +1105 -0
  155. package/dist/_proto/com/digitalasset/canton/protocol/v30/topology.d.ts.map +1 -0
  156. package/dist/_proto/com/digitalasset/canton/protocol/v30/topology.js +2294 -0
  157. package/dist/_proto/com/digitalasset/canton/protocol/v30/traffic_control_parameters.d.ts +278 -0
  158. package/dist/_proto/com/digitalasset/canton/protocol/v30/traffic_control_parameters.d.ts.map +1 -0
  159. package/dist/_proto/com/digitalasset/canton/protocol/v30/traffic_control_parameters.js +654 -0
  160. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/common.d.ts +166 -0
  161. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/common.d.ts.map +1 -0
  162. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/common.js +379 -0
  163. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.client.d.ts +199 -0
  164. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.client.d.ts.map +1 -0
  165. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.client.js +136 -0
  166. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.d.ts +1195 -0
  167. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.d.ts.map +1 -0
  168. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.js +3342 -0
  169. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.client.d.ts +119 -0
  170. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.client.d.ts.map +1 -0
  171. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.client.js +76 -0
  172. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.d.ts +607 -0
  173. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.d.ts.map +1 -0
  174. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.js +1292 -0
  175. package/dist/_proto/google/protobuf/any.d.ts +177 -0
  176. package/dist/_proto/google/protobuf/any.d.ts.map +1 -0
  177. package/dist/_proto/google/protobuf/any.js +175 -0
  178. package/dist/_proto/google/protobuf/descriptor.d.ts +1638 -0
  179. package/dist/_proto/google/protobuf/descriptor.d.ts.map +1 -0
  180. package/dist/_proto/google/protobuf/descriptor.js +2999 -0
  181. package/dist/_proto/google/protobuf/duration.d.ts +114 -0
  182. package/dist/_proto/google/protobuf/duration.d.ts.map +1 -0
  183. package/dist/_proto/google/protobuf/duration.js +113 -0
  184. package/dist/_proto/google/protobuf/empty.d.ts +33 -0
  185. package/dist/_proto/google/protobuf/empty.d.ts.map +1 -0
  186. package/dist/_proto/google/protobuf/empty.js +41 -0
  187. package/dist/_proto/google/protobuf/field_mask.d.ts +240 -0
  188. package/dist/_proto/google/protobuf/field_mask.d.ts.map +1 -0
  189. package/dist/_proto/google/protobuf/field_mask.js +95 -0
  190. package/dist/_proto/google/protobuf/struct.d.ts +187 -0
  191. package/dist/_proto/google/protobuf/struct.d.ts.map +1 -0
  192. package/dist/_proto/google/protobuf/struct.js +417 -0
  193. package/dist/_proto/google/protobuf/timestamp.d.ts +159 -0
  194. package/dist/_proto/google/protobuf/timestamp.d.ts.map +1 -0
  195. package/dist/_proto/google/protobuf/timestamp.js +157 -0
  196. package/dist/_proto/google/rpc/code.d.ts +219 -0
  197. package/dist/_proto/google/rpc/code.d.ts.map +1 -0
  198. package/dist/_proto/google/rpc/code.js +237 -0
  199. package/dist/_proto/google/rpc/context/attribute_context.d.ts +594 -0
  200. package/dist/_proto/google/rpc/context/attribute_context.d.ts.map +1 -0
  201. package/dist/_proto/google/rpc/context/attribute_context.js +1007 -0
  202. package/dist/_proto/google/rpc/context/audit_context.d.ts +62 -0
  203. package/dist/_proto/google/rpc/context/audit_context.d.ts.map +1 -0
  204. package/dist/_proto/google/rpc/context/audit_context.js +111 -0
  205. package/dist/_proto/google/rpc/error_details.d.ts +549 -0
  206. package/dist/_proto/google/rpc/error_details.d.ts.map +1 -0
  207. package/dist/_proto/google/rpc/error_details.js +918 -0
  208. package/dist/_proto/google/rpc/status.d.ts +55 -0
  209. package/dist/_proto/google/rpc/status.d.ts.map +1 -0
  210. package/dist/_proto/google/rpc/status.js +79 -0
  211. package/dist/_proto/scalapb/scalapb.d.ts +779 -0
  212. package/dist/_proto/scalapb/scalapb.d.ts.map +1 -0
  213. package/dist/_proto/scalapb/scalapb.js +1658 -0
  214. package/dist/constants.d.ts +17 -0
  215. package/dist/constants.d.ts.map +1 -0
  216. package/dist/constants.js +47 -0
  217. package/dist/generated-clients/openapi-3.3.0-SNAPSHOT.d.ts +4655 -0
  218. package/dist/generated-clients/openapi-3.3.0-SNAPSHOT.d.ts.map +1 -0
  219. package/dist/generated-clients/openapi-3.3.0-SNAPSHOT.js +5 -0
  220. package/dist/index.d.ts +4 -2
  221. package/dist/index.d.ts.map +1 -1
  222. package/dist/index.js +3 -2
  223. package/dist/ledger-api-utils.d.ts +47 -0
  224. package/dist/ledger-api-utils.d.ts.map +1 -0
  225. package/dist/ledger-api-utils.js +275 -0
  226. package/dist/{LedgerClient.d.ts → ledger-client.d.ts} +3 -2
  227. package/dist/ledger-client.d.ts.map +1 -0
  228. package/dist/token-standard-service.d.ts +25 -0
  229. package/dist/token-standard-service.d.ts.map +1 -0
  230. package/dist/token-standard-service.js +271 -0
  231. package/dist/{TopologyWriteService.d.ts → topology-write-service.d.ts} +2 -2
  232. package/dist/topology-write-service.d.ts.map +1 -0
  233. package/dist/txparse/parser.d.ts +25 -0
  234. package/dist/txparse/parser.d.ts.map +1 -0
  235. package/dist/txparse/parser.js +574 -0
  236. package/dist/txparse/parser.test.d.ts +2 -0
  237. package/dist/txparse/parser.test.d.ts.map +1 -0
  238. package/dist/txparse/parser.test.js +92 -0
  239. package/dist/txparse/strict.d.ts +3 -0
  240. package/dist/txparse/strict.d.ts.map +1 -0
  241. package/dist/txparse/strict.js +17 -0
  242. package/dist/txparse/test-data/expected/txs.d.ts +1143 -0
  243. package/dist/txparse/test-data/expected/txs.d.ts.map +1 -0
  244. package/dist/txparse/test-data/expected/txs.js +2301 -0
  245. package/dist/txparse/test-data/mock/eventsByContractIdResponses.d.ts +893 -0
  246. package/dist/txparse/test-data/mock/eventsByContractIdResponses.d.ts.map +1 -0
  247. package/dist/txparse/test-data/mock/eventsByContractIdResponses.js +2971 -0
  248. package/dist/txparse/test-data/mock/txs.d.ts +3304 -0
  249. package/dist/txparse/test-data/mock/txs.d.ts.map +1 -0
  250. package/dist/txparse/test-data/mock/txs.js +6786 -0
  251. package/dist/txparse/types.d.ts +133 -0
  252. package/dist/txparse/types.d.ts.map +1 -0
  253. package/dist/txparse/types.js +56 -0
  254. package/package.json +12 -7
  255. package/dist/LedgerClient.d.ts.map +0 -1
  256. package/dist/TopologyWriteService.d.ts.map +0 -1
  257. /package/dist/{LedgerClient.js → ledger-client.js} +0 -0
  258. /package/dist/{TopologyWriteService.js → topology-write-service.js} +0 -0
@@ -0,0 +1,17 @@
1
+ export interface InterfaceIdParts {
2
+ packageName: string;
3
+ moduleName: string;
4
+ entityName: string;
5
+ }
6
+ export declare function splitInterfaceId(interfaceId: string): InterfaceIdParts | null;
7
+ export declare function matchInterfaceIds(a: string, b: string): boolean;
8
+ export declare const HoldingInterface = "#splice-api-token-holding-v1:Splice.Api.Token.HoldingV1:Holding";
9
+ export declare const TransferFactoryInterface = "#splice-api-token-transfer-instruction-v1:Splice.Api.Token.TransferInstructionV1:TransferFactory";
10
+ export declare const TransferInstructionInterface = "#splice-api-token-transfer-instruction-v1:Splice.Api.Token.TransferInstructionV1:TransferInstruction";
11
+ export declare const TokenStandardTransactionInterfaces: string[];
12
+ export declare const TxKindMetaKey = "splice.lfdecentralizedtrust.org/tx-kind";
13
+ export declare const SenderMetaKey = "splice.lfdecentralizedtrust.org/sender";
14
+ export declare const ReasonMetaKey = "splice.lfdecentralizedtrust.org/reason";
15
+ export declare const BurnedMetaKey = "splice.lfdecentralizedtrust.org/burned";
16
+ export declare const AllKnownMetaKeys: string[];
17
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,gBAAgB;IAC7B,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;CACrB;AAED,wBAAgB,gBAAgB,CAAC,WAAW,EAAE,MAAM,GAAG,gBAAgB,GAAG,IAAI,CAc7E;AAED,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO,CAU/D;AAGD,eAAO,MAAM,gBAAgB,oEACwC,CAAA;AAErE,eAAO,MAAM,wBAAwB,qGACiE,CAAA;AAEtG,eAAO,MAAM,4BAA4B,yGACiE,CAAA;AAG1G,eAAO,MAAM,kCAAkC,UAI9C,CAAA;AAGD,eAAO,MAAM,aAAa,4CAAkC,CAAA;AAC5D,eAAO,MAAM,aAAa,2CAAiC,CAAA;AAC3D,eAAO,MAAM,aAAa,2CAAiC,CAAA;AAC3D,eAAO,MAAM,aAAa,2CAAiC,CAAA;AAC3D,eAAO,MAAM,gBAAgB,UAK5B,CAAA"}
@@ -0,0 +1,47 @@
1
+ // Copyright (c) 2024 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
3
+ export function splitInterfaceId(interfaceId) {
4
+ // Captures 3 groups: pkg, module and entity
5
+ // Note that prefix # is optional in regexp below,
6
+ // format without # is deprecated, but supported in canton 3.3 and will be removed in canton 3.4
7
+ // https://docs.digitalasset.com/build/3.3/reference/lapi-migration-guide.html#identifier-addressing-by-package-name
8
+ const regExp = /^#?([^:]+):([^:]+):([^:]+)$/;
9
+ const match = regExp.exec(interfaceId);
10
+ if (!match)
11
+ return null;
12
+ const [, packageName, moduleName, entityName] = match; // [0]=full, [1]=pkg, [2]=module, [3]=entity
13
+ return {
14
+ packageName,
15
+ moduleName,
16
+ entityName,
17
+ };
18
+ }
19
+ export function matchInterfaceIds(a, b) {
20
+ const aParts = splitInterfaceId(a);
21
+ const bParts = splitInterfaceId(b);
22
+ return (aParts !== null &&
23
+ bParts !== null &&
24
+ aParts.moduleName === bParts.moduleName &&
25
+ aParts.entityName === bParts.entityName);
26
+ }
27
+ // TODO import from token standard codegen
28
+ export const HoldingInterface = '#splice-api-token-holding-v1:Splice.Api.Token.HoldingV1:Holding';
29
+ export const TransferFactoryInterface = '#splice-api-token-transfer-instruction-v1:Splice.Api.Token.TransferInstructionV1:TransferFactory';
30
+ export const TransferInstructionInterface = '#splice-api-token-transfer-instruction-v1:Splice.Api.Token.TransferInstructionV1:TransferInstruction';
31
+ // TODO (#563): include allocations
32
+ export const TokenStandardTransactionInterfaces = [
33
+ HoldingInterface,
34
+ TransferFactoryInterface,
35
+ TransferInstructionInterface,
36
+ ];
37
+ const SpliceMetaKeyPrefix = 'splice.lfdecentralizedtrust.org/';
38
+ export const TxKindMetaKey = `${SpliceMetaKeyPrefix}tx-kind`;
39
+ export const SenderMetaKey = `${SpliceMetaKeyPrefix}sender`;
40
+ export const ReasonMetaKey = `${SpliceMetaKeyPrefix}reason`;
41
+ export const BurnedMetaKey = `${SpliceMetaKeyPrefix}burned`;
42
+ export const AllKnownMetaKeys = [
43
+ TxKindMetaKey,
44
+ SenderMetaKey,
45
+ ReasonMetaKey,
46
+ BurnedMetaKey,
47
+ ];