@fairmint/canton-node-sdk 0.0.265 → 0.0.267

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 (168) hide show
  1. package/README.md +12 -3
  2. package/build/src/clients/ledger-json-api/LedgerJsonApiClient.generated.d.ts +6 -21
  3. package/build/src/clients/ledger-json-api/LedgerJsonApiClient.generated.d.ts.map +1 -1
  4. package/build/src/clients/ledger-json-api/LedgerJsonApiClient.generated.js +2 -12
  5. package/build/src/clients/ledger-json-api/LedgerJsonApiClient.generated.js.map +1 -1
  6. package/build/src/clients/ledger-json-api/index.d.ts +6 -1
  7. package/build/src/clients/ledger-json-api/index.d.ts.map +1 -1
  8. package/build/src/clients/ledger-json-api/index.js +7 -1
  9. package/build/src/clients/ledger-json-api/index.js.map +1 -1
  10. package/build/src/clients/ledger-json-api/operations/v2/commands/async/submit.d.ts +52 -52
  11. package/build/src/clients/ledger-json-api/operations/v2/commands/index.d.ts +0 -1
  12. package/build/src/clients/ledger-json-api/operations/v2/commands/index.d.ts.map +1 -1
  13. package/build/src/clients/ledger-json-api/operations/v2/commands/index.js +0 -1
  14. package/build/src/clients/ledger-json-api/operations/v2/commands/index.js.map +1 -1
  15. package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-reassignment.d.ts +2 -2
  16. package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-transaction.d.ts +13 -0
  17. package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-transaction.d.ts.map +1 -1
  18. package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-transaction.js +29 -2
  19. package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-transaction.js.map +1 -1
  20. package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait.d.ts +52 -52
  21. package/build/src/clients/ledger-json-api/operations/v2/interactive-submission/index.d.ts +0 -1
  22. package/build/src/clients/ledger-json-api/operations/v2/interactive-submission/index.d.ts.map +1 -1
  23. package/build/src/clients/ledger-json-api/operations/v2/interactive-submission/index.js +0 -1
  24. package/build/src/clients/ledger-json-api/operations/v2/interactive-submission/index.js.map +1 -1
  25. package/build/src/clients/ledger-json-api/operations/v2/state/active-contracts-request.d.ts +49 -0
  26. package/build/src/clients/ledger-json-api/operations/v2/state/active-contracts-request.d.ts.map +1 -0
  27. package/build/src/clients/ledger-json-api/operations/v2/state/active-contracts-request.js +127 -0
  28. package/build/src/clients/ledger-json-api/operations/v2/state/active-contracts-request.js.map +1 -0
  29. package/build/src/clients/ledger-json-api/operations/v2/state/get-active-contracts.d.ts +10 -13
  30. package/build/src/clients/ledger-json-api/operations/v2/state/get-active-contracts.d.ts.map +1 -1
  31. package/build/src/clients/ledger-json-api/operations/v2/state/get-active-contracts.js +18 -106
  32. package/build/src/clients/ledger-json-api/operations/v2/state/get-active-contracts.js.map +1 -1
  33. package/build/src/clients/ledger-json-api/operations/v2/state/index.d.ts +1 -0
  34. package/build/src/clients/ledger-json-api/operations/v2/state/index.d.ts.map +1 -1
  35. package/build/src/clients/ledger-json-api/operations/v2/state/index.js +1 -0
  36. package/build/src/clients/ledger-json-api/operations/v2/state/index.js.map +1 -1
  37. package/build/src/clients/ledger-json-api/operations/v2/state/stream-active-contracts.d.ts +64 -0
  38. package/build/src/clients/ledger-json-api/operations/v2/state/stream-active-contracts.d.ts.map +1 -0
  39. package/build/src/clients/ledger-json-api/operations/v2/state/stream-active-contracts.js +211 -0
  40. package/build/src/clients/ledger-json-api/operations/v2/state/stream-active-contracts.js.map +1 -0
  41. package/build/src/clients/ledger-json-api/operations/v2/updates/get-update-by-id.d.ts +45 -7
  42. package/build/src/clients/ledger-json-api/operations/v2/updates/get-update-by-id.d.ts.map +1 -1
  43. package/build/src/clients/ledger-json-api/operations/v2/updates/get-update-by-id.js +64 -7
  44. package/build/src/clients/ledger-json-api/operations/v2/updates/get-update-by-id.js.map +1 -1
  45. package/build/src/clients/ledger-json-api/operations/v2/updates/get-update-by-offset.d.ts +17 -0
  46. package/build/src/clients/ledger-json-api/operations/v2/updates/get-update-by-offset.d.ts.map +1 -1
  47. package/build/src/clients/ledger-json-api/operations/v2/updates/get-update-by-offset.js +17 -0
  48. package/build/src/clients/ledger-json-api/operations/v2/updates/get-update-by-offset.js.map +1 -1
  49. package/build/src/clients/ledger-json-api/operations/v2/updates/index.d.ts +0 -4
  50. package/build/src/clients/ledger-json-api/operations/v2/updates/index.d.ts.map +1 -1
  51. package/build/src/clients/ledger-json-api/operations/v2/updates/index.js +0 -4
  52. package/build/src/clients/ledger-json-api/operations/v2/updates/index.js.map +1 -1
  53. package/build/src/clients/ledger-json-api/operations/v2/updates/subscribe-to-updates.d.ts +46 -8
  54. package/build/src/clients/ledger-json-api/operations/v2/updates/subscribe-to-updates.d.ts.map +1 -1
  55. package/build/src/clients/ledger-json-api/operations/v2/updates/subscribe-to-updates.js +12 -25
  56. package/build/src/clients/ledger-json-api/operations/v2/updates/subscribe-to-updates.js.map +1 -1
  57. package/build/src/clients/ledger-json-api/operations/v2/utils/event-format-builder.d.ts +29 -0
  58. package/build/src/clients/ledger-json-api/operations/v2/utils/event-format-builder.d.ts.map +1 -1
  59. package/build/src/clients/ledger-json-api/operations/v2/utils/event-format-builder.js +43 -0
  60. package/build/src/clients/ledger-json-api/operations/v2/utils/event-format-builder.js.map +1 -1
  61. package/build/src/clients/ledger-json-api/schemas/api/event-details.d.ts +22 -4
  62. package/build/src/clients/ledger-json-api/schemas/api/event-details.d.ts.map +1 -1
  63. package/build/src/clients/ledger-json-api/schemas/api/events.d.ts +44 -422
  64. package/build/src/clients/ledger-json-api/schemas/api/events.d.ts.map +1 -1
  65. package/build/src/clients/ledger-json-api/schemas/api/events.js +1 -111
  66. package/build/src/clients/ledger-json-api/schemas/api/events.js.map +1 -1
  67. package/build/src/clients/ledger-json-api/schemas/api/interface-view.d.ts +28 -5
  68. package/build/src/clients/ledger-json-api/schemas/api/interface-view.d.ts.map +1 -1
  69. package/build/src/clients/ledger-json-api/schemas/api/interface-view.js +16 -4
  70. package/build/src/clients/ledger-json-api/schemas/api/interface-view.js.map +1 -1
  71. package/build/src/clients/ledger-json-api/schemas/api/packages.d.ts +1 -43
  72. package/build/src/clients/ledger-json-api/schemas/api/packages.d.ts.map +1 -1
  73. package/build/src/clients/ledger-json-api/schemas/api/packages.js +2 -18
  74. package/build/src/clients/ledger-json-api/schemas/api/packages.js.map +1 -1
  75. package/build/src/clients/ledger-json-api/schemas/api/reassignment.d.ts +88 -16
  76. package/build/src/clients/ledger-json-api/schemas/api/reassignment.d.ts.map +1 -1
  77. package/build/src/clients/ledger-json-api/schemas/api/state.d.ts +176 -32
  78. package/build/src/clients/ledger-json-api/schemas/api/state.d.ts.map +1 -1
  79. package/build/src/clients/ledger-json-api/schemas/api/transactions.d.ts +0 -885
  80. package/build/src/clients/ledger-json-api/schemas/api/transactions.d.ts.map +1 -1
  81. package/build/src/clients/ledger-json-api/schemas/api/transactions.js +1 -61
  82. package/build/src/clients/ledger-json-api/schemas/api/transactions.js.map +1 -1
  83. package/build/src/clients/ledger-json-api/schemas/api/updates.d.ts +1162 -3688
  84. package/build/src/clients/ledger-json-api/schemas/api/updates.d.ts.map +1 -1
  85. package/build/src/clients/ledger-json-api/schemas/api/updates.js +13 -89
  86. package/build/src/clients/ledger-json-api/schemas/api/updates.js.map +1 -1
  87. package/build/src/clients/ledger-json-api/schemas/operations/commands.d.ts +0 -419
  88. package/build/src/clients/ledger-json-api/schemas/operations/commands.d.ts.map +1 -1
  89. package/build/src/clients/ledger-json-api/schemas/operations/commands.js +2 -6
  90. package/build/src/clients/ledger-json-api/schemas/operations/commands.js.map +1 -1
  91. package/build/src/clients/ledger-json-api/schemas/operations/interactive-submission.d.ts +0 -8
  92. package/build/src/clients/ledger-json-api/schemas/operations/interactive-submission.d.ts.map +1 -1
  93. package/build/src/clients/ledger-json-api/schemas/operations/interactive-submission.js +1 -12
  94. package/build/src/clients/ledger-json-api/schemas/operations/interactive-submission.js.map +1 -1
  95. package/build/src/clients/ledger-json-api/schemas/operations/packages.d.ts +0 -8
  96. package/build/src/clients/ledger-json-api/schemas/operations/packages.d.ts.map +1 -1
  97. package/build/src/clients/ledger-json-api/schemas/operations/packages.js +1 -12
  98. package/build/src/clients/ledger-json-api/schemas/operations/packages.js.map +1 -1
  99. package/build/src/clients/ledger-json-api/schemas/operations/updates.d.ts +0 -281
  100. package/build/src/clients/ledger-json-api/schemas/operations/updates.d.ts.map +1 -1
  101. package/build/src/clients/ledger-json-api/schemas/operations/updates.js +1 -31
  102. package/build/src/clients/ledger-json-api/schemas/operations/updates.js.map +1 -1
  103. package/build/src/core/ws/WebSocketClient.d.ts +8 -0
  104. package/build/src/core/ws/WebSocketClient.d.ts.map +1 -1
  105. package/build/src/core/ws/WebSocketClient.js +24 -1
  106. package/build/src/core/ws/WebSocketClient.js.map +1 -1
  107. package/build/src/utils/amulet/offers.d.ts +2 -2
  108. package/build/src/utils/amulet/offers.d.ts.map +1 -1
  109. package/build/src/utils/amulet/offers.js +2 -2
  110. package/build/src/utils/amulet/offers.js.map +1 -1
  111. package/build/src/utils/amulet/pre-approve-transfers.js +2 -2
  112. package/build/src/utils/amulet/pre-approve-transfers.js.map +1 -1
  113. package/build/src/utils/amulet/transfer-to-preapproved.d.ts +2 -2
  114. package/build/src/utils/amulet/transfer-to-preapproved.d.ts.map +1 -1
  115. package/build/src/utils/amulet/transfer-to-preapproved.js +1 -1
  116. package/build/src/utils/amulet/transfer-to-preapproved.js.map +1 -1
  117. package/build/src/utils/canton-response-utils.d.ts.map +1 -1
  118. package/build/src/utils/canton-response-utils.js +16 -1
  119. package/build/src/utils/canton-response-utils.js.map +1 -1
  120. package/build/src/utils/contracts/findCreatedEvent.d.ts +16 -26
  121. package/build/src/utils/contracts/findCreatedEvent.d.ts.map +1 -1
  122. package/build/src/utils/contracts/findCreatedEvent.js +28 -32
  123. package/build/src/utils/contracts/findCreatedEvent.js.map +1 -1
  124. package/build/src/utils/parsers/event-parser.d.ts +3 -2
  125. package/build/src/utils/parsers/event-parser.d.ts.map +1 -1
  126. package/build/src/utils/parsers/event-parser.js +17 -57
  127. package/build/src/utils/parsers/event-parser.js.map +1 -1
  128. package/build/src/utils/parsers/fee-parser.d.ts +20 -16
  129. package/build/src/utils/parsers/fee-parser.d.ts.map +1 -1
  130. package/build/src/utils/parsers/fee-parser.js +27 -48
  131. package/build/src/utils/parsers/fee-parser.js.map +1 -1
  132. package/build/src/utils/token-standard/v2/allocation.d.ts +4 -4
  133. package/build/src/utils/token-standard/v2/allocation.d.ts.map +1 -1
  134. package/build/src/utils/token-standard/v2/allocation.js +9 -9
  135. package/build/src/utils/token-standard/v2/allocation.js.map +1 -1
  136. package/build/src/utils/transactions/TransactionBatch.d.ts +5 -4
  137. package/build/src/utils/transactions/TransactionBatch.d.ts.map +1 -1
  138. package/build/src/utils/transactions/TransactionBatch.js +7 -6
  139. package/build/src/utils/transactions/TransactionBatch.js.map +1 -1
  140. package/build/src/utils/transactions/find-created-event.d.ts +8 -8
  141. package/build/src/utils/transactions/find-created-event.d.ts.map +1 -1
  142. package/build/src/utils/transactions/find-created-event.js +10 -16
  143. package/build/src/utils/transactions/find-created-event.js.map +1 -1
  144. package/package.json +1 -1
  145. package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-transaction-tree.d.ts +0 -512
  146. package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-transaction-tree.d.ts.map +0 -1
  147. package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-transaction-tree.js +0 -26
  148. package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-transaction-tree.js.map +0 -1
  149. package/build/src/clients/ledger-json-api/operations/v2/interactive-submission/get-preferred-package-version.d.ts +0 -36
  150. package/build/src/clients/ledger-json-api/operations/v2/interactive-submission/get-preferred-package-version.d.ts.map +0 -1
  151. package/build/src/clients/ledger-json-api/operations/v2/interactive-submission/get-preferred-package-version.js +0 -39
  152. package/build/src/clients/ledger-json-api/operations/v2/interactive-submission/get-preferred-package-version.js.map +0 -1
  153. package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-by-id.d.ts +0 -139
  154. package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-by-id.d.ts.map +0 -1
  155. package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-by-id.js +0 -14
  156. package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-by-id.js.map +0 -1
  157. package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-by-offset.d.ts +0 -139
  158. package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-by-offset.d.ts.map +0 -1
  159. package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-by-offset.js +0 -14
  160. package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-by-offset.js.map +0 -1
  161. package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-tree-by-id.d.ts +0 -37
  162. package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-tree-by-id.d.ts.map +0 -1
  163. package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-tree-by-id.js +0 -46
  164. package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-tree-by-id.js.map +0 -1
  165. package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-tree-by-offset.d.ts +0 -37
  166. package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-tree-by-offset.d.ts.map +0 -1
  167. package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-tree-by-offset.js +0 -46
  168. package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-tree-by-offset.js.map +0 -1
@@ -3,25 +3,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.findCreatedEventByTemplateName = findCreatedEventByTemplateName;
4
4
  const findCreatedEvent_1 = require("../contracts/findCreatedEvent");
5
5
  /**
6
- * Finds a CreatedTreeEvent for a given template name from a transaction tree response. The template name search
7
- * excludes the templateId prefix and matches the template name portion.
6
+ * Finds the first contract created by a transaction whose template name (the part after the last colon, e.g.
7
+ * `FeaturedAppActivityMarker`) equals `templateName`.
8
8
  *
9
- * @param response - The SubmitAndWaitForTransactionTreeResponse containing the transaction tree
10
- * @param templateName - The template name to search for (e.g., "Splice.Amulet:FeaturedAppActivityMarker")
11
- * @returns The CreatedTreeEvent if found, undefined otherwise
9
+ * @param response - The submit-and-wait-for-transaction response
10
+ * @param templateName - The template name to search for, without module or package
11
+ * @returns The created event if found, undefined otherwise
12
12
  */
13
13
  function findCreatedEventByTemplateName(response, templateName) {
14
- const { transactionTree } = response;
15
- // Iterate through all events in the transaction tree
16
- for (const event of Object.values(transactionTree.eventsById)) {
17
- // Check if this is a CreatedTreeEvent using type guard
18
- if ((0, findCreatedEvent_1.isCreatedTreeEventWrapper)(event)) {
19
- const fullTemplateId = event.CreatedTreeEvent.value.templateId;
20
- // Extract the template name part (after the last colon)
21
- const templateNamePart = fullTemplateId.split(':').pop();
22
- if (templateNamePart === templateName) {
23
- return event;
24
- }
14
+ for (const event of response.transaction.events) {
15
+ if (!(0, findCreatedEvent_1.isCreatedEventEntry)(event))
16
+ continue;
17
+ if (event.CreatedEvent.templateId.split(':').pop() === templateName) {
18
+ return event.CreatedEvent;
25
19
  }
26
20
  }
27
21
  return undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"find-created-event.js","sourceRoot":"","sources":["../../../../src/utils/transactions/find-created-event.ts"],"names":[],"mappings":";;;AACA,oEAAwG;AAExG;;;;;;;GAOG;AACH,wCACE,QAAiD,EACjD,YAAoB;IAEpB,MAAM,EAAE,eAAe,EAAE,GAAG,QAAQ,CAAC;IAErC,qDAAqD;IACrD,KAAK,MAAM,KAAK,IAAI,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC,UAAU,CAAC,EAAE,CAAC;QAC9D,uDAAuD;QACvD,IAAI,IAAA,4CAAyB,EAAC,KAAK,CAAC,EAAE,CAAC;YACrC,MAAM,cAAc,GAAG,KAAK,CAAC,gBAAgB,CAAC,KAAK,CAAC,UAAU,CAAC;YAE/D,wDAAwD;YACxD,MAAM,gBAAgB,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC;YAEzD,IAAI,gBAAgB,KAAK,YAAY,EAAE,CAAC;gBACtC,OAAO,KAAK,CAAC;YACf,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,SAAS,CAAC;AACnB,CAAC"}
1
+ {"version":3,"file":"find-created-event.js","sourceRoot":"","sources":["../../../../src/utils/transactions/find-created-event.ts"],"names":[],"mappings":";;;AACA,oEAAkG;AAElG;;;;;;;GAOG;AACH,wCACE,QAA6C,EAC7C,YAAoB;IAEpB,KAAK,MAAM,KAAK,IAAI,QAAQ,CAAC,WAAW,CAAC,MAAM,EAAE,CAAC;QAChD,IAAI,CAAC,IAAA,sCAAmB,EAAC,KAAK,CAAC;YAAE,SAAS;QAC1C,IAAI,KAAK,CAAC,YAAY,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,KAAK,YAAY,EAAE,CAAC;YACpE,OAAO,KAAK,CAAC,YAAY,CAAC;QAC5B,CAAC;IACH,CAAC;IAED,OAAO,SAAS,CAAC;AACnB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fairmint/canton-node-sdk",
3
- "version": "0.0.265",
3
+ "version": "0.0.267",
4
4
  "description": "Canton Node SDK",
5
5
  "keywords": [
6
6
  "canton",
@@ -1,512 +0,0 @@
1
- import { type z } from 'zod';
2
- import type { paths } from '../../../../../generated/canton/community/ledger/ledger-json-api/src/test/resources/json-api-docs/openapi';
3
- import { SubmitAndWaitForTransactionTreeParamsSchema } from '../../../schemas/operations';
4
- declare const endpoint: '/v2/commands/submit-and-wait-for-transaction-tree';
5
- export type SubmitAndWaitForTransactionTreeParams = z.infer<typeof SubmitAndWaitForTransactionTreeParamsSchema>;
6
- type GeneratedResponse = paths[typeof endpoint]['post']['responses']['200']['content']['application/json'];
7
- export type SubmitAndWaitForTransactionTreeResponse = GeneratedResponse & {
8
- readonly transactionTree: NonNullable<GeneratedResponse['transactionTree']>;
9
- };
10
- export declare const SubmitAndWaitForTransactionTree: new (client: import("../../../../..").BaseClient) => import("../../../../..").ApiOperation<{
11
- commands: ({
12
- CreateAndExerciseCommand: {
13
- templateId: string;
14
- createArguments: Record<string, string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
15
- [key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
16
- } | null)[] | {
17
- [key: string]: string | number | boolean | any | any | null;
18
- } | null)[] | {
19
- [key: string]: string | number | boolean | any | any | null;
20
- } | null)[] | {
21
- [key: string]: string | number | boolean | any | any | null;
22
- } | null)[] | {
23
- [key: string]: string | number | boolean | any | any | null;
24
- } | null)[] | {
25
- [key: string]: string | number | boolean | any | any | null;
26
- } | null)[] | {
27
- [key: string]: string | number | boolean | any | any | null;
28
- } | null)[] | {
29
- [key: string]: string | number | boolean | any | any | null;
30
- } | null)[] | {
31
- [key: string]: string | number | boolean | any | any | null;
32
- } | null)[] | {
33
- [key: string]: string | number | boolean | any | any | null;
34
- } | null)[] | {
35
- [key: string]: string | number | boolean | any | any | null;
36
- } | null)[] | {
37
- [key: string]: string | number | boolean | any | any | null;
38
- } | null>;
39
- choice: string;
40
- choiceArgument: Record<string, string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
41
- [key: string]: string | number | boolean | any | any | null;
42
- } | null)[] | {
43
- [key: string]: string | number | boolean | any | any | null;
44
- } | null)[] | {
45
- [key: string]: string | number | boolean | any | any | null;
46
- } | null)[] | {
47
- [key: string]: string | number | boolean | any | any | null;
48
- } | null)[] | {
49
- [key: string]: string | number | boolean | any | any | null;
50
- } | null)[] | {
51
- [key: string]: string | number | boolean | any | any | null;
52
- } | null)[] | {
53
- [key: string]: string | number | boolean | any | any | null;
54
- } | null)[] | {
55
- [key: string]: string | number | boolean | any | any | null;
56
- } | null)[] | {
57
- [key: string]: string | number | boolean | any | any | null;
58
- } | null)[] | {
59
- [key: string]: string | number | boolean | any | any | null;
60
- } | null)[] | {
61
- [key: string]: string | number | boolean | any | any | null;
62
- } | null)[] | {
63
- [key: string]: string | number | boolean | any | any | null;
64
- } | null>;
65
- };
66
- } | {
67
- CreateCommand: {
68
- templateId: string;
69
- createArguments: Record<string, string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
70
- [key: string]: string | number | boolean | any | any | null;
71
- } | null)[] | {
72
- [key: string]: string | number | boolean | any | any | null;
73
- } | null)[] | {
74
- [key: string]: string | number | boolean | any | any | null;
75
- } | null)[] | {
76
- [key: string]: string | number | boolean | any | any | null;
77
- } | null)[] | {
78
- [key: string]: string | number | boolean | any | any | null;
79
- } | null)[] | {
80
- [key: string]: string | number | boolean | any | any | null;
81
- } | null)[] | {
82
- [key: string]: string | number | boolean | any | any | null;
83
- } | null)[] | {
84
- [key: string]: string | number | boolean | any | any | null;
85
- } | null)[] | {
86
- [key: string]: string | number | boolean | any | any | null;
87
- } | null)[] | {
88
- [key: string]: string | number | boolean | any | any | null;
89
- } | null)[] | {
90
- [key: string]: string | number | boolean | any | any | null;
91
- } | null)[] | {
92
- [key: string]: string | number | boolean | any | any | null;
93
- } | null>;
94
- };
95
- } | {
96
- ExerciseByKeyCommand: {
97
- templateId: string;
98
- contractKey: Record<string, string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
99
- [key: string]: string | number | boolean | any | any | null;
100
- } | null)[] | {
101
- [key: string]: string | number | boolean | any | any | null;
102
- } | null)[] | {
103
- [key: string]: string | number | boolean | any | any | null;
104
- } | null)[] | {
105
- [key: string]: string | number | boolean | any | any | null;
106
- } | null)[] | {
107
- [key: string]: string | number | boolean | any | any | null;
108
- } | null)[] | {
109
- [key: string]: string | number | boolean | any | any | null;
110
- } | null)[] | {
111
- [key: string]: string | number | boolean | any | any | null;
112
- } | null)[] | {
113
- [key: string]: string | number | boolean | any | any | null;
114
- } | null)[] | {
115
- [key: string]: string | number | boolean | any | any | null;
116
- } | null)[] | {
117
- [key: string]: string | number | boolean | any | any | null;
118
- } | null)[] | {
119
- [key: string]: string | number | boolean | any | any | null;
120
- } | null)[] | {
121
- [key: string]: string | number | boolean | any | any | null;
122
- } | null>;
123
- choice: string;
124
- choiceArgument: Record<string, string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
125
- [key: string]: string | number | boolean | any | any | null;
126
- } | null)[] | {
127
- [key: string]: string | number | boolean | any | any | null;
128
- } | null)[] | {
129
- [key: string]: string | number | boolean | any | any | null;
130
- } | null)[] | {
131
- [key: string]: string | number | boolean | any | any | null;
132
- } | null)[] | {
133
- [key: string]: string | number | boolean | any | any | null;
134
- } | null)[] | {
135
- [key: string]: string | number | boolean | any | any | null;
136
- } | null)[] | {
137
- [key: string]: string | number | boolean | any | any | null;
138
- } | null)[] | {
139
- [key: string]: string | number | boolean | any | any | null;
140
- } | null)[] | {
141
- [key: string]: string | number | boolean | any | any | null;
142
- } | null)[] | {
143
- [key: string]: string | number | boolean | any | any | null;
144
- } | null)[] | {
145
- [key: string]: string | number | boolean | any | any | null;
146
- } | null)[] | {
147
- [key: string]: string | number | boolean | any | any | null;
148
- } | null>;
149
- };
150
- } | {
151
- ExerciseCommand: {
152
- templateId: string;
153
- contractId: string;
154
- choice: string;
155
- choiceArgument: Record<string, string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
156
- [key: string]: string | number | boolean | any | any | null;
157
- } | null)[] | {
158
- [key: string]: string | number | boolean | any | any | null;
159
- } | null)[] | {
160
- [key: string]: string | number | boolean | any | any | null;
161
- } | null)[] | {
162
- [key: string]: string | number | boolean | any | any | null;
163
- } | null)[] | {
164
- [key: string]: string | number | boolean | any | any | null;
165
- } | null)[] | {
166
- [key: string]: string | number | boolean | any | any | null;
167
- } | null)[] | {
168
- [key: string]: string | number | boolean | any | any | null;
169
- } | null)[] | {
170
- [key: string]: string | number | boolean | any | any | null;
171
- } | null)[] | {
172
- [key: string]: string | number | boolean | any | any | null;
173
- } | null)[] | {
174
- [key: string]: string | number | boolean | any | any | null;
175
- } | null)[] | {
176
- [key: string]: string | number | boolean | any | any | null;
177
- } | null)[] | {
178
- [key: string]: string | number | boolean | any | any | null;
179
- } | null>;
180
- };
181
- } | {
182
- AssignCommand: {
183
- reassignmentId: string;
184
- source: string;
185
- target: string;
186
- };
187
- } | {
188
- UnassignCommand: {
189
- contractId: string;
190
- source: string;
191
- target: string;
192
- };
193
- })[];
194
- commandId?: string | undefined;
195
- actAs?: string[] | undefined;
196
- userId?: string | undefined;
197
- readAs?: string[] | undefined;
198
- workflowId?: string | undefined;
199
- deduplicationPeriod?: {
200
- DeduplicationDuration: {
201
- seconds: number;
202
- };
203
- } | {
204
- DeduplicationOffset: {
205
- offset: number;
206
- };
207
- } | {
208
- Empty: Record<string, never>;
209
- } | undefined;
210
- minLedgerTimeAbs?: string | undefined;
211
- minLedgerTimeRel?: {
212
- seconds: number;
213
- } | undefined;
214
- submissionId?: string | undefined;
215
- traceContext?: {
216
- [x: string]: unknown;
217
- traceparent?: string | undefined;
218
- tracestate?: string | undefined;
219
- traceId?: string | undefined;
220
- spanId?: string | undefined;
221
- parentSpanId?: string | undefined;
222
- metadata?: Record<string, string> | undefined;
223
- } | undefined;
224
- disclosedContracts?: {
225
- templateId: string;
226
- contractId: string;
227
- createdEventBlob: string;
228
- synchronizerId: string;
229
- }[] | undefined;
230
- synchronizerId?: string | undefined;
231
- packageIdSelectionPreference?: string[] | undefined;
232
- prefetchContractKeys?: {
233
- templateId: string;
234
- contractKey: Record<string, string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
235
- [key: string]: string | number | boolean | any | any | null;
236
- } | null)[] | {
237
- [key: string]: string | number | boolean | any | any | null;
238
- } | null)[] | {
239
- [key: string]: string | number | boolean | any | any | null;
240
- } | null)[] | {
241
- [key: string]: string | number | boolean | any | any | null;
242
- } | null)[] | {
243
- [key: string]: string | number | boolean | any | any | null;
244
- } | null)[] | {
245
- [key: string]: string | number | boolean | any | any | null;
246
- } | null)[] | {
247
- [key: string]: string | number | boolean | any | any | null;
248
- } | null)[] | {
249
- [key: string]: string | number | boolean | any | any | null;
250
- } | null)[] | {
251
- [key: string]: string | number | boolean | any | any | null;
252
- } | null)[] | {
253
- [key: string]: string | number | boolean | any | any | null;
254
- } | null)[] | {
255
- [key: string]: string | number | boolean | any | any | null;
256
- } | null)[] | {
257
- [key: string]: string | number | boolean | any | any | null;
258
- } | null>;
259
- }[] | undefined;
260
- }, SubmitAndWaitForTransactionTreeResponse, import("../../../../..").OperationExecuteOptions<{
261
- commands: ({
262
- CreateAndExerciseCommand: {
263
- templateId: string;
264
- createArguments: Record<string, string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
265
- [key: string]: string | number | boolean | any | any | null;
266
- } | null)[] | {
267
- [key: string]: string | number | boolean | any | any | null;
268
- } | null)[] | {
269
- [key: string]: string | number | boolean | any | any | null;
270
- } | null)[] | {
271
- [key: string]: string | number | boolean | any | any | null;
272
- } | null)[] | {
273
- [key: string]: string | number | boolean | any | any | null;
274
- } | null)[] | {
275
- [key: string]: string | number | boolean | any | any | null;
276
- } | null)[] | {
277
- [key: string]: string | number | boolean | any | any | null;
278
- } | null)[] | {
279
- [key: string]: string | number | boolean | any | any | null;
280
- } | null)[] | {
281
- [key: string]: string | number | boolean | any | any | null;
282
- } | null)[] | {
283
- [key: string]: string | number | boolean | any | any | null;
284
- } | null)[] | {
285
- [key: string]: string | number | boolean | any | any | null;
286
- } | null)[] | {
287
- [key: string]: string | number | boolean | any | any | null;
288
- } | null>;
289
- choice: string;
290
- choiceArgument: Record<string, string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
291
- [key: string]: string | number | boolean | any | any | null;
292
- } | null)[] | {
293
- [key: string]: string | number | boolean | any | any | null;
294
- } | null)[] | {
295
- [key: string]: string | number | boolean | any | any | null;
296
- } | null)[] | {
297
- [key: string]: string | number | boolean | any | any | null;
298
- } | null)[] | {
299
- [key: string]: string | number | boolean | any | any | null;
300
- } | null)[] | {
301
- [key: string]: string | number | boolean | any | any | null;
302
- } | null)[] | {
303
- [key: string]: string | number | boolean | any | any | null;
304
- } | null)[] | {
305
- [key: string]: string | number | boolean | any | any | null;
306
- } | null)[] | {
307
- [key: string]: string | number | boolean | any | any | null;
308
- } | null)[] | {
309
- [key: string]: string | number | boolean | any | any | null;
310
- } | null)[] | {
311
- [key: string]: string | number | boolean | any | any | null;
312
- } | null)[] | {
313
- [key: string]: string | number | boolean | any | any | null;
314
- } | null>;
315
- };
316
- } | {
317
- CreateCommand: {
318
- templateId: string;
319
- createArguments: Record<string, string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
320
- [key: string]: string | number | boolean | any | any | null;
321
- } | null)[] | {
322
- [key: string]: string | number | boolean | any | any | null;
323
- } | null)[] | {
324
- [key: string]: string | number | boolean | any | any | null;
325
- } | null)[] | {
326
- [key: string]: string | number | boolean | any | any | null;
327
- } | null)[] | {
328
- [key: string]: string | number | boolean | any | any | null;
329
- } | null)[] | {
330
- [key: string]: string | number | boolean | any | any | null;
331
- } | null)[] | {
332
- [key: string]: string | number | boolean | any | any | null;
333
- } | null)[] | {
334
- [key: string]: string | number | boolean | any | any | null;
335
- } | null)[] | {
336
- [key: string]: string | number | boolean | any | any | null;
337
- } | null)[] | {
338
- [key: string]: string | number | boolean | any | any | null;
339
- } | null)[] | {
340
- [key: string]: string | number | boolean | any | any | null;
341
- } | null)[] | {
342
- [key: string]: string | number | boolean | any | any | null;
343
- } | null>;
344
- };
345
- } | {
346
- ExerciseByKeyCommand: {
347
- templateId: string;
348
- contractKey: Record<string, string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
349
- [key: string]: string | number | boolean | any | any | null;
350
- } | null)[] | {
351
- [key: string]: string | number | boolean | any | any | null;
352
- } | null)[] | {
353
- [key: string]: string | number | boolean | any | any | null;
354
- } | null)[] | {
355
- [key: string]: string | number | boolean | any | any | null;
356
- } | null)[] | {
357
- [key: string]: string | number | boolean | any | any | null;
358
- } | null)[] | {
359
- [key: string]: string | number | boolean | any | any | null;
360
- } | null)[] | {
361
- [key: string]: string | number | boolean | any | any | null;
362
- } | null)[] | {
363
- [key: string]: string | number | boolean | any | any | null;
364
- } | null)[] | {
365
- [key: string]: string | number | boolean | any | any | null;
366
- } | null)[] | {
367
- [key: string]: string | number | boolean | any | any | null;
368
- } | null)[] | {
369
- [key: string]: string | number | boolean | any | any | null;
370
- } | null)[] | {
371
- [key: string]: string | number | boolean | any | any | null;
372
- } | null>;
373
- choice: string;
374
- choiceArgument: Record<string, string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
375
- [key: string]: string | number | boolean | any | any | null;
376
- } | null)[] | {
377
- [key: string]: string | number | boolean | any | any | null;
378
- } | null)[] | {
379
- [key: string]: string | number | boolean | any | any | null;
380
- } | null)[] | {
381
- [key: string]: string | number | boolean | any | any | null;
382
- } | null)[] | {
383
- [key: string]: string | number | boolean | any | any | null;
384
- } | null)[] | {
385
- [key: string]: string | number | boolean | any | any | null;
386
- } | null)[] | {
387
- [key: string]: string | number | boolean | any | any | null;
388
- } | null)[] | {
389
- [key: string]: string | number | boolean | any | any | null;
390
- } | null)[] | {
391
- [key: string]: string | number | boolean | any | any | null;
392
- } | null)[] | {
393
- [key: string]: string | number | boolean | any | any | null;
394
- } | null)[] | {
395
- [key: string]: string | number | boolean | any | any | null;
396
- } | null)[] | {
397
- [key: string]: string | number | boolean | any | any | null;
398
- } | null>;
399
- };
400
- } | {
401
- ExerciseCommand: {
402
- templateId: string;
403
- contractId: string;
404
- choice: string;
405
- choiceArgument: Record<string, string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
406
- [key: string]: string | number | boolean | any | any | null;
407
- } | null)[] | {
408
- [key: string]: string | number | boolean | any | any | null;
409
- } | null)[] | {
410
- [key: string]: string | number | boolean | any | any | null;
411
- } | null)[] | {
412
- [key: string]: string | number | boolean | any | any | null;
413
- } | null)[] | {
414
- [key: string]: string | number | boolean | any | any | null;
415
- } | null)[] | {
416
- [key: string]: string | number | boolean | any | any | null;
417
- } | null)[] | {
418
- [key: string]: string | number | boolean | any | any | null;
419
- } | null)[] | {
420
- [key: string]: string | number | boolean | any | any | null;
421
- } | null)[] | {
422
- [key: string]: string | number | boolean | any | any | null;
423
- } | null)[] | {
424
- [key: string]: string | number | boolean | any | any | null;
425
- } | null)[] | {
426
- [key: string]: string | number | boolean | any | any | null;
427
- } | null)[] | {
428
- [key: string]: string | number | boolean | any | any | null;
429
- } | null>;
430
- };
431
- } | {
432
- AssignCommand: {
433
- reassignmentId: string;
434
- source: string;
435
- target: string;
436
- };
437
- } | {
438
- UnassignCommand: {
439
- contractId: string;
440
- source: string;
441
- target: string;
442
- };
443
- })[];
444
- commandId?: string | undefined;
445
- actAs?: string[] | undefined;
446
- userId?: string | undefined;
447
- readAs?: string[] | undefined;
448
- workflowId?: string | undefined;
449
- deduplicationPeriod?: {
450
- DeduplicationDuration: {
451
- seconds: number;
452
- };
453
- } | {
454
- DeduplicationOffset: {
455
- offset: number;
456
- };
457
- } | {
458
- Empty: Record<string, never>;
459
- } | undefined;
460
- minLedgerTimeAbs?: string | undefined;
461
- minLedgerTimeRel?: {
462
- seconds: number;
463
- } | undefined;
464
- submissionId?: string | undefined;
465
- traceContext?: {
466
- [x: string]: unknown;
467
- traceparent?: string | undefined;
468
- tracestate?: string | undefined;
469
- traceId?: string | undefined;
470
- spanId?: string | undefined;
471
- parentSpanId?: string | undefined;
472
- metadata?: Record<string, string> | undefined;
473
- } | undefined;
474
- disclosedContracts?: {
475
- templateId: string;
476
- contractId: string;
477
- createdEventBlob: string;
478
- synchronizerId: string;
479
- }[] | undefined;
480
- synchronizerId?: string | undefined;
481
- packageIdSelectionPreference?: string[] | undefined;
482
- prefetchContractKeys?: {
483
- templateId: string;
484
- contractKey: Record<string, string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
485
- [key: string]: string | number | boolean | any | any | null;
486
- } | null)[] | {
487
- [key: string]: string | number | boolean | any | any | null;
488
- } | null)[] | {
489
- [key: string]: string | number | boolean | any | any | null;
490
- } | null)[] | {
491
- [key: string]: string | number | boolean | any | any | null;
492
- } | null)[] | {
493
- [key: string]: string | number | boolean | any | any | null;
494
- } | null)[] | {
495
- [key: string]: string | number | boolean | any | any | null;
496
- } | null)[] | {
497
- [key: string]: string | number | boolean | any | any | null;
498
- } | null)[] | {
499
- [key: string]: string | number | boolean | any | any | null;
500
- } | null)[] | {
501
- [key: string]: string | number | boolean | any | any | null;
502
- } | null)[] | {
503
- [key: string]: string | number | boolean | any | any | null;
504
- } | null)[] | {
505
- [key: string]: string | number | boolean | any | any | null;
506
- } | null)[] | {
507
- [key: string]: string | number | boolean | any | any | null;
508
- } | null>;
509
- }[] | undefined;
510
- }>>;
511
- export {};
512
- //# sourceMappingURL=submit-and-wait-for-transaction-tree.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"submit-and-wait-for-transaction-tree.d.ts","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-transaction-tree.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,CAAC;AAG7B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2GAA2G,CAAC;AACvI,OAAO,EAAE,2CAA2C,EAAE,MAAM,6BAA6B,CAAC;AAE1F,QAAA,MAAM,QAAQ,EAAG,mDAA4D,CAAC;AAE9E,MAAM,MAAM,qCAAqC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2CAA2C,CAAC,CAAC;AAEhH,KAAK,iBAAiB,GAAG,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC;AAE3G,MAAM,MAAM,uCAAuC,GAAG,iBAAiB,GAAG;IACxE,QAAQ,CAAC,eAAe,EAAE,WAAW,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC,CAAC;CAC7E,CAAC;AAEF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqB1C,CAAC"}
@@ -1,26 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SubmitAndWaitForTransactionTree = void 0;
4
- const core_1 = require("../../../../../core");
5
- const errors_1 = require("../../../../../core/errors");
6
- const operations_1 = require("../../../schemas/operations");
7
- const endpoint = '/v2/commands/submit-and-wait-for-transaction-tree';
8
- exports.SubmitAndWaitForTransactionTree = (0, core_1.createApiOperation)({
9
- paramsSchema: operations_1.SubmitAndWaitForTransactionTreeParamsSchema,
10
- method: 'POST',
11
- buildUrl: (_params, apiUrl) => `${apiUrl}${endpoint}`,
12
- buildRequestData: (params, client) => ({
13
- ...params,
14
- commandId: params.commandId ??
15
- `submit-and-wait-for-transaction-tree-${Date.now()}-${Math.random().toString(36).substring(2, 8)}`,
16
- actAs: params.actAs ?? [client.getPartyId()],
17
- }),
18
- transformResponse: (response) => {
19
- const generatedResponse = response;
20
- if (generatedResponse.transactionTree === undefined || generatedResponse.transactionTree === null) {
21
- throw new errors_1.ApiError('Submit-and-wait-for-transaction-tree response did not include a transaction tree');
22
- }
23
- return response;
24
- },
25
- });
26
- //# sourceMappingURL=submit-and-wait-for-transaction-tree.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"submit-and-wait-for-transaction-tree.js","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-transaction-tree.ts"],"names":[],"mappings":";;;AACA,8CAAyD;AACzD,uDAAsD;AAEtD,4DAA0F;AAE1F,MAAM,QAAQ,GAAG,mDAA4D,CAAC;AAUjE,QAAA,+BAA+B,GAAG,IAAA,yBAAkB,EAG/D;IACA,YAAY,EAAE,wDAA2C;IACzD,MAAM,EAAE,MAAM;IACd,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC,GAAG,MAAM,GAAG,QAAQ,EAAE;IACrD,gBAAgB,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC;QACrC,GAAG,MAAM;QACT,SAAS,EACP,MAAM,CAAC,SAAS;YAChB,wCAAwC,IAAI,CAAC,GAAG,EAAE,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE;QACpG,KAAK,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC;KAC7C,CAAC;IACF,iBAAiB,EAAE,CAAC,QAAQ,EAA2C,EAAE;QACvE,MAAM,iBAAiB,GAAG,QAA6D,CAAC;QACxF,IAAI,iBAAiB,CAAC,eAAe,KAAK,SAAS,IAAI,iBAAiB,CAAC,eAAe,KAAK,IAAI,EAAE,CAAC;YAClG,MAAM,IAAI,iBAAQ,CAAC,kFAAkF,CAAC,CAAC;QACzG,CAAC;QACD,OAAO,QAAQ,CAAC;IAClB,CAAC;CACF,CAAC,CAAC"}
@@ -1,36 +0,0 @@
1
- /**
2
- * Get the preferred package version for constructing a command submission
3
- *
4
- * @example
5
- * ```typescript
6
- * const result = await client.interactiveSubmissionGetPreferredPackageVersion({
7
- * packageName: 'my-package',
8
- * parties: ['Alice', 'Bob'],
9
- * synchronizerId: 'sync-123'
10
- * });
11
- *
12
- * ```;
13
- */
14
- export declare const InteractiveSubmissionGetPreferredPackageVersion: new (client: import("../../../../..").BaseClient) => import("../../../../..").ApiOperation<{
15
- parties?: string[] | undefined;
16
- packageName: string;
17
- vettingValidAt?: string | undefined;
18
- synchronizerId?: string | undefined;
19
- }, {
20
- packagePreference?: never;
21
- } | {
22
- packagePreference: {
23
- packageReference: {
24
- packageId: string;
25
- packageName: string;
26
- packageVersion: string;
27
- };
28
- synchronizerId: string;
29
- };
30
- }, import("../../../../..").OperationExecuteOptions<{
31
- parties?: string[] | undefined;
32
- packageName: string;
33
- vettingValidAt?: string | undefined;
34
- synchronizerId?: string | undefined;
35
- }>>;
36
- //# sourceMappingURL=get-preferred-package-version.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-preferred-package-version.d.ts","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/interactive-submission/get-preferred-package-version.ts"],"names":[],"mappings":"AAUA;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,+CAA+C;;;;;;;;;;;;;;;;;;;;;GA0B1D,CAAC"}