@ledgerhq/coin-canton 0.9.0-nightly.1 → 0.9.0-nightly.20251030160608

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 (205) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/.unimportedrc.json +2 -1
  3. package/CHANGELOG.md +26 -9
  4. package/README.md +75 -0
  5. package/lib/bridge/deviceTransactionConfig.d.ts +1 -1
  6. package/lib/bridge/deviceTransactionConfig.d.ts.map +1 -1
  7. package/lib/bridge/deviceTransactionConfig.js +1 -1
  8. package/lib/bridge/deviceTransactionConfig.js.map +1 -1
  9. package/lib/bridge/estimateMaxSpendable.d.ts +2 -2
  10. package/lib/bridge/estimateMaxSpendable.d.ts.map +1 -1
  11. package/lib/bridge/estimateMaxSpendable.js +2 -3
  12. package/lib/bridge/estimateMaxSpendable.js.map +1 -1
  13. package/lib/bridge/getTransactionStatus.d.ts +5 -3
  14. package/lib/bridge/getTransactionStatus.d.ts.map +1 -1
  15. package/lib/bridge/getTransactionStatus.js +27 -10
  16. package/lib/bridge/getTransactionStatus.js.map +1 -1
  17. package/lib/bridge/index.d.ts +2 -2
  18. package/lib/bridge/index.d.ts.map +1 -1
  19. package/lib/bridge/index.js +3 -3
  20. package/lib/bridge/index.js.map +1 -1
  21. package/lib/bridge/onboard.d.ts.map +1 -1
  22. package/lib/bridge/onboard.js +48 -22
  23. package/lib/bridge/onboard.js.map +1 -1
  24. package/lib/bridge/prepareTransaction.js +1 -1
  25. package/lib/bridge/prepareTransaction.js.map +1 -1
  26. package/lib/bridge/serialization.d.ts +4 -0
  27. package/lib/bridge/serialization.d.ts.map +1 -0
  28. package/lib/bridge/serialization.js +36 -0
  29. package/lib/bridge/serialization.js.map +1 -0
  30. package/lib/bridge/signOperation.d.ts.map +1 -1
  31. package/lib/bridge/signOperation.js +11 -4
  32. package/lib/bridge/signOperation.js.map +1 -1
  33. package/lib/bridge/sync.d.ts.map +1 -1
  34. package/lib/bridge/sync.js +14 -6
  35. package/lib/bridge/sync.js.map +1 -1
  36. package/lib/bridge/transaction.js +1 -1
  37. package/lib/bridge/transaction.js.map +1 -1
  38. package/lib/common-logic/account/getBalance.d.ts +5 -1
  39. package/lib/common-logic/account/getBalance.d.ts.map +1 -1
  40. package/lib/common-logic/account/getBalance.js +2 -0
  41. package/lib/common-logic/account/getBalance.js.map +1 -1
  42. package/lib/common-logic/index.d.ts +1 -0
  43. package/lib/common-logic/index.d.ts.map +1 -1
  44. package/lib/common-logic/index.js +3 -1
  45. package/lib/common-logic/index.js.map +1 -1
  46. package/lib/common-logic/transaction/craftTransaction.js +1 -1
  47. package/lib/common-logic/transaction/craftTransaction.js.map +1 -1
  48. package/lib/common-logic/transaction/estimateFees.js +1 -1
  49. package/lib/common-logic/transaction/estimateFees.js.map +1 -1
  50. package/lib/common-logic/transaction/sign.d.ts +8 -0
  51. package/lib/common-logic/transaction/sign.d.ts.map +1 -0
  52. package/lib/common-logic/transaction/sign.js +45 -0
  53. package/lib/common-logic/transaction/sign.js.map +1 -0
  54. package/lib/common-logic/transaction/split.d.ts +9 -0
  55. package/lib/common-logic/transaction/split.d.ts.map +1 -0
  56. package/lib/common-logic/transaction/split.js +119 -0
  57. package/lib/common-logic/transaction/split.js.map +1 -0
  58. package/lib/common-logic/utils.js +2 -2
  59. package/lib/common-logic/utils.js.map +1 -1
  60. package/lib/network/gateway.d.ts +6 -1
  61. package/lib/network/gateway.d.ts.map +1 -1
  62. package/lib/network/gateway.js +6 -9
  63. package/lib/network/gateway.js.map +1 -1
  64. package/lib/test/cantonTestUtils.d.ts +4 -9
  65. package/lib/test/cantonTestUtils.d.ts.map +1 -1
  66. package/lib/test/cantonTestUtils.js +736 -27
  67. package/lib/test/cantonTestUtils.js.map +1 -1
  68. package/lib/test/fixtures.d.ts +5 -0
  69. package/lib/test/fixtures.d.ts.map +1 -0
  70. package/lib/test/fixtures.js +57 -0
  71. package/lib/test/fixtures.js.map +1 -0
  72. package/lib/types/bridge.d.ts +14 -2
  73. package/lib/types/bridge.d.ts.map +1 -1
  74. package/lib/types/errors.d.ts +6 -0
  75. package/lib/types/errors.d.ts.map +1 -1
  76. package/lib/types/errors.js +3 -1
  77. package/lib/types/errors.js.map +1 -1
  78. package/lib/types/index.d.ts +1 -0
  79. package/lib/types/index.d.ts.map +1 -1
  80. package/lib/types/index.js +1 -0
  81. package/lib/types/index.js.map +1 -1
  82. package/lib/types/signer.d.ts +15 -2
  83. package/lib/types/signer.d.ts.map +1 -1
  84. package/lib/types/transaction-proto.json +1238 -0
  85. package/lib-es/bridge/deviceTransactionConfig.d.ts +1 -1
  86. package/lib-es/bridge/deviceTransactionConfig.d.ts.map +1 -1
  87. package/lib-es/bridge/deviceTransactionConfig.js +1 -1
  88. package/lib-es/bridge/deviceTransactionConfig.js.map +1 -1
  89. package/lib-es/bridge/estimateMaxSpendable.d.ts +2 -2
  90. package/lib-es/bridge/estimateMaxSpendable.d.ts.map +1 -1
  91. package/lib-es/bridge/estimateMaxSpendable.js +2 -3
  92. package/lib-es/bridge/estimateMaxSpendable.js.map +1 -1
  93. package/lib-es/bridge/getTransactionStatus.d.ts +5 -3
  94. package/lib-es/bridge/getTransactionStatus.d.ts.map +1 -1
  95. package/lib-es/bridge/getTransactionStatus.js +27 -10
  96. package/lib-es/bridge/getTransactionStatus.js.map +1 -1
  97. package/lib-es/bridge/index.d.ts +2 -2
  98. package/lib-es/bridge/index.d.ts.map +1 -1
  99. package/lib-es/bridge/index.js +3 -3
  100. package/lib-es/bridge/index.js.map +1 -1
  101. package/lib-es/bridge/onboard.d.ts.map +1 -1
  102. package/lib-es/bridge/onboard.js +49 -23
  103. package/lib-es/bridge/onboard.js.map +1 -1
  104. package/lib-es/bridge/prepareTransaction.js +1 -1
  105. package/lib-es/bridge/prepareTransaction.js.map +1 -1
  106. package/lib-es/bridge/serialization.d.ts +4 -0
  107. package/lib-es/bridge/serialization.d.ts.map +1 -0
  108. package/lib-es/bridge/serialization.js +32 -0
  109. package/lib-es/bridge/serialization.js.map +1 -0
  110. package/lib-es/bridge/signOperation.d.ts.map +1 -1
  111. package/lib-es/bridge/signOperation.js +11 -4
  112. package/lib-es/bridge/signOperation.js.map +1 -1
  113. package/lib-es/bridge/sync.d.ts.map +1 -1
  114. package/lib-es/bridge/sync.js +14 -6
  115. package/lib-es/bridge/sync.js.map +1 -1
  116. package/lib-es/bridge/transaction.js +1 -1
  117. package/lib-es/bridge/transaction.js.map +1 -1
  118. package/lib-es/common-logic/account/getBalance.d.ts +5 -1
  119. package/lib-es/common-logic/account/getBalance.d.ts.map +1 -1
  120. package/lib-es/common-logic/account/getBalance.js +2 -0
  121. package/lib-es/common-logic/account/getBalance.js.map +1 -1
  122. package/lib-es/common-logic/index.d.ts +1 -0
  123. package/lib-es/common-logic/index.d.ts.map +1 -1
  124. package/lib-es/common-logic/index.js +1 -0
  125. package/lib-es/common-logic/index.js.map +1 -1
  126. package/lib-es/common-logic/transaction/craftTransaction.js +1 -1
  127. package/lib-es/common-logic/transaction/craftTransaction.js.map +1 -1
  128. package/lib-es/common-logic/transaction/estimateFees.js +1 -1
  129. package/lib-es/common-logic/transaction/estimateFees.js.map +1 -1
  130. package/lib-es/common-logic/transaction/sign.d.ts +8 -0
  131. package/lib-es/common-logic/transaction/sign.d.ts.map +1 -0
  132. package/lib-es/common-logic/transaction/sign.js +42 -0
  133. package/lib-es/common-logic/transaction/sign.js.map +1 -0
  134. package/lib-es/common-logic/transaction/split.d.ts +9 -0
  135. package/lib-es/common-logic/transaction/split.d.ts.map +1 -0
  136. package/lib-es/common-logic/transaction/split.js +83 -0
  137. package/lib-es/common-logic/transaction/split.js.map +1 -0
  138. package/lib-es/common-logic/utils.js +2 -2
  139. package/lib-es/common-logic/utils.js.map +1 -1
  140. package/lib-es/network/gateway.d.ts +6 -1
  141. package/lib-es/network/gateway.d.ts.map +1 -1
  142. package/lib-es/network/gateway.js +5 -10
  143. package/lib-es/network/gateway.js.map +1 -1
  144. package/lib-es/test/cantonTestUtils.d.ts +4 -9
  145. package/lib-es/test/cantonTestUtils.d.ts.map +1 -1
  146. package/lib-es/test/cantonTestUtils.js +697 -21
  147. package/lib-es/test/cantonTestUtils.js.map +1 -1
  148. package/lib-es/test/fixtures.d.ts +5 -0
  149. package/lib-es/test/fixtures.d.ts.map +1 -0
  150. package/lib-es/test/fixtures.js +49 -0
  151. package/lib-es/test/fixtures.js.map +1 -0
  152. package/lib-es/types/bridge.d.ts +14 -2
  153. package/lib-es/types/bridge.d.ts.map +1 -1
  154. package/lib-es/types/errors.d.ts +6 -0
  155. package/lib-es/types/errors.d.ts.map +1 -1
  156. package/lib-es/types/errors.js +2 -0
  157. package/lib-es/types/errors.js.map +1 -1
  158. package/lib-es/types/index.d.ts +1 -0
  159. package/lib-es/types/index.d.ts.map +1 -1
  160. package/lib-es/types/index.js +1 -0
  161. package/lib-es/types/index.js.map +1 -1
  162. package/lib-es/types/signer.d.ts +15 -2
  163. package/lib-es/types/signer.d.ts.map +1 -1
  164. package/lib-es/types/transaction-proto.json +1238 -0
  165. package/package.json +13 -10
  166. package/scripts/generate.js +261 -0
  167. package/src/bridge/deviceTransactionConfig.test.ts +14 -10
  168. package/src/bridge/deviceTransactionConfig.ts +2 -2
  169. package/src/bridge/estimateMaxSpendable.ts +6 -8
  170. package/src/bridge/getTransactionStatus.test.ts +103 -165
  171. package/src/bridge/getTransactionStatus.ts +43 -11
  172. package/src/bridge/index.ts +6 -5
  173. package/src/bridge/onboard.integ.test.ts +8 -51
  174. package/src/bridge/onboard.ts +58 -33
  175. package/src/bridge/prepareTransaction.ts +1 -1
  176. package/src/bridge/serialization.ts +44 -0
  177. package/src/bridge/signOperation.test.ts +123 -0
  178. package/src/bridge/signOperation.ts +13 -6
  179. package/src/bridge/sync.integ.test.ts +157 -132
  180. package/src/bridge/sync.test.ts +5 -1
  181. package/src/bridge/sync.ts +18 -7
  182. package/src/bridge/transaction.ts +1 -1
  183. package/src/common-logic/account/getBalance.ts +12 -2
  184. package/src/common-logic/account/getBalance.unit.test.ts +7 -1
  185. package/src/common-logic/index.ts +1 -0
  186. package/src/common-logic/transaction/craftTransaction.ts +1 -1
  187. package/src/common-logic/transaction/estimateFees.test.ts +10 -0
  188. package/src/common-logic/transaction/estimateFees.ts +1 -1
  189. package/src/common-logic/transaction/sign.test.ts +389 -0
  190. package/src/common-logic/transaction/sign.ts +59 -0
  191. package/src/common-logic/transaction/split.test.ts +50 -0
  192. package/src/common-logic/transaction/split.ts +101 -0
  193. package/src/common-logic/utils.test.ts +22 -30
  194. package/src/common-logic/utils.ts +2 -2
  195. package/src/network/gateway.integ.test.ts +5 -6
  196. package/src/network/gateway.ts +13 -10
  197. package/src/test/cantonTestUtils.ts +789 -24
  198. package/src/test/fixtures.ts +53 -0
  199. package/src/test/prepare-transfer-serialized.json +26 -0
  200. package/src/test/prepare-transfer.json +3298 -0
  201. package/src/types/bridge.ts +15 -2
  202. package/src/types/errors.ts +3 -0
  203. package/src/types/index.ts +1 -0
  204. package/src/types/signer.ts +21 -3
  205. package/src/types/transaction-proto.json +1238 -0
@@ -0,0 +1,1238 @@
1
+ {
2
+ "nested": {
3
+ "com": {
4
+ "nested": {
5
+ "daml": {
6
+ "nested": {
7
+ "ledger": {
8
+ "nested": {
9
+ "api": {
10
+ "nested": {
11
+ "v2": {
12
+ "options": {
13
+ "csharp_namespace": "Com.Daml.Ledger.Api.V2",
14
+ "java_outer_classname": "ValueOuterClass",
15
+ "java_package": "com.daml.ledger.api.v2"
16
+ },
17
+ "nested": {
18
+ "interactive": {
19
+ "options": {
20
+ "csharp_namespace": "Com.Daml.Ledger.Api.V2.Interactive",
21
+ "java_outer_classname": "InteractiveSubmissionCommonDataOuterClass",
22
+ "java_package": "com.daml.ledger.api.v2.interactive"
23
+ },
24
+ "nested": {
25
+ "DeviceDamlTransaction": {
26
+ "fields": {
27
+ "version": {
28
+ "type": "string",
29
+ "id": 1
30
+ },
31
+ "roots": {
32
+ "rule": "repeated",
33
+ "type": "string",
34
+ "id": 2
35
+ },
36
+ "nodesCount": {
37
+ "type": "int32",
38
+ "id": 3
39
+ },
40
+ "nodeSeeds": {
41
+ "rule": "repeated",
42
+ "type": "NodeSeed",
43
+ "id": 4
44
+ }
45
+ },
46
+ "nested": {
47
+ "NodeSeed": {
48
+ "fields": {
49
+ "nodeId": {
50
+ "type": "int32",
51
+ "id": 1
52
+ },
53
+ "seed": {
54
+ "type": "bytes",
55
+ "id": 2
56
+ }
57
+ }
58
+ },
59
+ "Node": {
60
+ "oneofs": {
61
+ "versionedNode": {
62
+ "oneof": [
63
+ "v1"
64
+ ]
65
+ }
66
+ },
67
+ "fields": {
68
+ "nodeId": {
69
+ "type": "string",
70
+ "id": 1
71
+ },
72
+ "v1": {
73
+ "type": "interactive.transaction.v1.Node",
74
+ "id": 1000
75
+ }
76
+ }
77
+ }
78
+ }
79
+ },
80
+ "DeviceDamlTransactionDisplay": {
81
+ "fields": {
82
+ "version": {
83
+ "type": "string",
84
+ "id": 1
85
+ },
86
+ "roots": {
87
+ "rule": "repeated",
88
+ "type": "string",
89
+ "id": 2
90
+ },
91
+ "nodesCount": {
92
+ "type": "int32",
93
+ "id": 3
94
+ },
95
+ "nodeSeeds": {
96
+ "rule": "repeated",
97
+ "type": "NodeSeed",
98
+ "id": 4
99
+ }
100
+ },
101
+ "nested": {
102
+ "NodeSeed": {
103
+ "fields": {
104
+ "nodeId": {
105
+ "type": "int32",
106
+ "id": 1
107
+ },
108
+ "seed": {
109
+ "type": "bytes",
110
+ "id": 2
111
+ }
112
+ }
113
+ },
114
+ "Node": {
115
+ "oneofs": {
116
+ "versionedNode": {
117
+ "oneof": [
118
+ "v1"
119
+ ]
120
+ }
121
+ },
122
+ "fields": {
123
+ "nodeId": {
124
+ "type": "string",
125
+ "id": 1
126
+ },
127
+ "v1": {
128
+ "type": "interactive.transaction.v1.cb.NodeDisplay",
129
+ "id": 1000
130
+ }
131
+ }
132
+ }
133
+ }
134
+ },
135
+ "DeviceMetadata": {
136
+ "oneofs": {
137
+ "_minLedgerEffectiveTime": {
138
+ "oneof": [
139
+ "minLedgerEffectiveTime"
140
+ ]
141
+ },
142
+ "_maxLedgerEffectiveTime": {
143
+ "oneof": [
144
+ "maxLedgerEffectiveTime"
145
+ ]
146
+ }
147
+ },
148
+ "fields": {
149
+ "submitterInfo": {
150
+ "type": "SubmitterInfo",
151
+ "id": 2
152
+ },
153
+ "synchronizerId": {
154
+ "type": "string",
155
+ "id": 3
156
+ },
157
+ "mediatorGroup": {
158
+ "type": "uint32",
159
+ "id": 4
160
+ },
161
+ "transactionUuid": {
162
+ "type": "string",
163
+ "id": 5
164
+ },
165
+ "submissionTime": {
166
+ "type": "uint64",
167
+ "id": 6
168
+ },
169
+ "inputContractsCount": {
170
+ "type": "int32",
171
+ "id": 7
172
+ },
173
+ "minLedgerEffectiveTime": {
174
+ "type": "uint64",
175
+ "id": 9,
176
+ "options": {
177
+ "proto3_optional": true
178
+ }
179
+ },
180
+ "maxLedgerEffectiveTime": {
181
+ "type": "uint64",
182
+ "id": 10,
183
+ "options": {
184
+ "proto3_optional": true
185
+ }
186
+ }
187
+ },
188
+ "reserved": [
189
+ [
190
+ 1,
191
+ 1
192
+ ]
193
+ ],
194
+ "nested": {
195
+ "SubmitterInfo": {
196
+ "fields": {
197
+ "actAs": {
198
+ "rule": "repeated",
199
+ "type": "string",
200
+ "id": 1
201
+ },
202
+ "commandId": {
203
+ "type": "string",
204
+ "id": 2
205
+ }
206
+ }
207
+ },
208
+ "GlobalKeyMappingEntry": {
209
+ "oneofs": {
210
+ "_value": {
211
+ "oneof": [
212
+ "value"
213
+ ]
214
+ }
215
+ },
216
+ "fields": {
217
+ "key": {
218
+ "type": "interactive.GlobalKey",
219
+ "id": 1
220
+ },
221
+ "value": {
222
+ "type": "Value",
223
+ "id": 2,
224
+ "options": {
225
+ "proto3_optional": true
226
+ }
227
+ }
228
+ }
229
+ },
230
+ "InputContract": {
231
+ "oneofs": {
232
+ "contract": {
233
+ "oneof": [
234
+ "v1"
235
+ ]
236
+ }
237
+ },
238
+ "fields": {
239
+ "v1": {
240
+ "type": "interactive.transaction.v1.Create",
241
+ "id": 1
242
+ },
243
+ "createdAt": {
244
+ "type": "uint64",
245
+ "id": 1000
246
+ },
247
+ "driverMetadata": {
248
+ "type": "bytes",
249
+ "id": 1001
250
+ }
251
+ }
252
+ }
253
+ }
254
+ },
255
+ "GlobalKey": {
256
+ "fields": {
257
+ "templateId": {
258
+ "type": "Identifier",
259
+ "id": 1
260
+ },
261
+ "packageName": {
262
+ "type": "string",
263
+ "id": 2
264
+ },
265
+ "key": {
266
+ "type": "Value",
267
+ "id": 3
268
+ },
269
+ "hash": {
270
+ "type": "bytes",
271
+ "id": 4
272
+ }
273
+ }
274
+ },
275
+ "transaction": {
276
+ "nested": {
277
+ "v1": {
278
+ "options": {
279
+ "csharp_namespace": "Com.Daml.Ledger.Api.V2.Interactive.Transaction.V1",
280
+ "java_outer_classname": "InteractiveSubmissionDataOuterClass",
281
+ "java_package": "com.daml.ledger.api.v2.interactive.transaction.v1"
282
+ },
283
+ "nested": {
284
+ "Fetch": {
285
+ "fields": {
286
+ "lfVersion": {
287
+ "type": "string",
288
+ "id": 1
289
+ },
290
+ "contractId": {
291
+ "type": "string",
292
+ "id": 2
293
+ },
294
+ "packageName": {
295
+ "type": "string",
296
+ "id": 3
297
+ },
298
+ "templateId": {
299
+ "type": "Identifier",
300
+ "id": 4
301
+ },
302
+ "signatories": {
303
+ "rule": "repeated",
304
+ "type": "string",
305
+ "id": 5
306
+ },
307
+ "stakeholders": {
308
+ "rule": "repeated",
309
+ "type": "string",
310
+ "id": 6
311
+ },
312
+ "actingParties": {
313
+ "rule": "repeated",
314
+ "type": "string",
315
+ "id": 7
316
+ },
317
+ "interfaceId": {
318
+ "type": "Identifier",
319
+ "id": 8
320
+ }
321
+ }
322
+ },
323
+ "Exercise": {
324
+ "fields": {
325
+ "lfVersion": {
326
+ "type": "string",
327
+ "id": 1
328
+ },
329
+ "contractId": {
330
+ "type": "string",
331
+ "id": 2
332
+ },
333
+ "packageName": {
334
+ "type": "string",
335
+ "id": 3
336
+ },
337
+ "templateId": {
338
+ "type": "Identifier",
339
+ "id": 4
340
+ },
341
+ "signatories": {
342
+ "rule": "repeated",
343
+ "type": "string",
344
+ "id": 5
345
+ },
346
+ "stakeholders": {
347
+ "rule": "repeated",
348
+ "type": "string",
349
+ "id": 6
350
+ },
351
+ "actingParties": {
352
+ "rule": "repeated",
353
+ "type": "string",
354
+ "id": 7
355
+ },
356
+ "interfaceId": {
357
+ "type": "Identifier",
358
+ "id": 8
359
+ },
360
+ "choiceId": {
361
+ "type": "string",
362
+ "id": 9
363
+ },
364
+ "chosenValue": {
365
+ "type": "Value",
366
+ "id": 10
367
+ },
368
+ "consuming": {
369
+ "type": "bool",
370
+ "id": 11
371
+ },
372
+ "children": {
373
+ "rule": "repeated",
374
+ "type": "string",
375
+ "id": 12
376
+ },
377
+ "exerciseResult": {
378
+ "type": "Value",
379
+ "id": 13
380
+ },
381
+ "choiceObservers": {
382
+ "rule": "repeated",
383
+ "type": "string",
384
+ "id": 14
385
+ }
386
+ }
387
+ },
388
+ "Create": {
389
+ "fields": {
390
+ "lfVersion": {
391
+ "type": "string",
392
+ "id": 1
393
+ },
394
+ "contractId": {
395
+ "type": "string",
396
+ "id": 2
397
+ },
398
+ "packageName": {
399
+ "type": "string",
400
+ "id": 3
401
+ },
402
+ "templateId": {
403
+ "type": "Identifier",
404
+ "id": 4
405
+ },
406
+ "argument": {
407
+ "type": "Value",
408
+ "id": 5
409
+ },
410
+ "signatories": {
411
+ "rule": "repeated",
412
+ "type": "string",
413
+ "id": 6
414
+ },
415
+ "stakeholders": {
416
+ "rule": "repeated",
417
+ "type": "string",
418
+ "id": 7
419
+ }
420
+ }
421
+ },
422
+ "Rollback": {
423
+ "fields": {
424
+ "children": {
425
+ "rule": "repeated",
426
+ "type": "string",
427
+ "id": 1
428
+ }
429
+ }
430
+ },
431
+ "Node": {
432
+ "oneofs": {
433
+ "nodeType": {
434
+ "oneof": [
435
+ "create",
436
+ "fetch",
437
+ "exercise",
438
+ "rollback"
439
+ ]
440
+ }
441
+ },
442
+ "fields": {
443
+ "create": {
444
+ "type": "Create",
445
+ "id": 1
446
+ },
447
+ "fetch": {
448
+ "type": "Fetch",
449
+ "id": 2
450
+ },
451
+ "exercise": {
452
+ "type": "Exercise",
453
+ "id": 3
454
+ },
455
+ "rollback": {
456
+ "type": "Rollback",
457
+ "id": 4
458
+ }
459
+ }
460
+ },
461
+ "cb": {
462
+ "options": {
463
+ "csharp_namespace": "Com.Daml.Ledger.Api.V2.Interactive.Transaction.V1.CB",
464
+ "java_outer_classname": "InteractiveSubmissionDataOuterCbClass",
465
+ "java_package": "com.daml.ledger.api.v2.interactive.transaction.v1.cb"
466
+ },
467
+ "nested": {
468
+ "Fetch": {
469
+ "fields": {
470
+ "lfVersion": {
471
+ "type": "string",
472
+ "id": 1
473
+ },
474
+ "contractId": {
475
+ "type": "string",
476
+ "id": 2
477
+ },
478
+ "packageName": {
479
+ "type": "string",
480
+ "id": 3
481
+ },
482
+ "templateId": {
483
+ "type": "com.daml.ledger.api.v2.cb.Identifier",
484
+ "id": 4
485
+ },
486
+ "signatories": {
487
+ "rule": "repeated",
488
+ "type": "string",
489
+ "id": 5
490
+ },
491
+ "stakeholders": {
492
+ "rule": "repeated",
493
+ "type": "string",
494
+ "id": 6
495
+ },
496
+ "actingParties": {
497
+ "rule": "repeated",
498
+ "type": "string",
499
+ "id": 7
500
+ },
501
+ "interfaceId": {
502
+ "type": "com.daml.ledger.api.v2.cb.Identifier",
503
+ "id": 8
504
+ }
505
+ }
506
+ },
507
+ "Exercise": {
508
+ "fields": {
509
+ "lfVersion": {
510
+ "type": "string",
511
+ "id": 1
512
+ },
513
+ "contractId": {
514
+ "type": "string",
515
+ "id": 2
516
+ },
517
+ "packageName": {
518
+ "type": "string",
519
+ "id": 3
520
+ },
521
+ "templateId": {
522
+ "type": "com.daml.ledger.api.v2.cb.Identifier",
523
+ "id": 4
524
+ },
525
+ "signatories": {
526
+ "rule": "repeated",
527
+ "type": "string",
528
+ "id": 5
529
+ },
530
+ "stakeholders": {
531
+ "rule": "repeated",
532
+ "type": "string",
533
+ "id": 6
534
+ },
535
+ "actingParties": {
536
+ "rule": "repeated",
537
+ "type": "string",
538
+ "id": 7
539
+ },
540
+ "interfaceId": {
541
+ "type": "com.daml.ledger.api.v2.cb.Identifier",
542
+ "id": 8
543
+ },
544
+ "choiceId": {
545
+ "type": "string",
546
+ "id": 9
547
+ },
548
+ "chosenValue": {
549
+ "type": "com.daml.ledger.api.v2.cb.Value",
550
+ "id": 10
551
+ },
552
+ "consuming": {
553
+ "type": "bool",
554
+ "id": 11
555
+ },
556
+ "children": {
557
+ "rule": "repeated",
558
+ "type": "string",
559
+ "id": 12
560
+ },
561
+ "exerciseResult": {
562
+ "type": "com.daml.ledger.api.v2.cb.Value",
563
+ "id": 13
564
+ },
565
+ "choiceObservers": {
566
+ "rule": "repeated",
567
+ "type": "string",
568
+ "id": 14
569
+ }
570
+ }
571
+ },
572
+ "CreateDisplay": {
573
+ "fields": {
574
+ "lfVersion": {
575
+ "type": "string",
576
+ "id": 1
577
+ },
578
+ "contractId": {
579
+ "type": "string",
580
+ "id": 2
581
+ },
582
+ "packageName": {
583
+ "type": "string",
584
+ "id": 3
585
+ },
586
+ "templateId": {
587
+ "type": "com.daml.ledger.api.v2.cb.Identifier",
588
+ "id": 4
589
+ },
590
+ "argument": {
591
+ "type": "com.daml.ledger.api.v2.cb.Value",
592
+ "id": 5
593
+ },
594
+ "signatories": {
595
+ "rule": "repeated",
596
+ "type": "string",
597
+ "id": 6
598
+ },
599
+ "stakeholders": {
600
+ "rule": "repeated",
601
+ "type": "string",
602
+ "id": 7
603
+ }
604
+ }
605
+ },
606
+ "Create": {
607
+ "fields": {
608
+ "lfVersion": {
609
+ "type": "string",
610
+ "id": 1
611
+ },
612
+ "contractId": {
613
+ "type": "string",
614
+ "id": 2
615
+ },
616
+ "packageName": {
617
+ "type": "string",
618
+ "id": 3
619
+ },
620
+ "templateId": {
621
+ "type": "com.daml.ledger.api.v2.cb.Identifier",
622
+ "id": 4
623
+ },
624
+ "argument": {
625
+ "type": "com.daml.ledger.api.v2.cb.Value",
626
+ "id": 5
627
+ },
628
+ "signatories": {
629
+ "rule": "repeated",
630
+ "type": "string",
631
+ "id": 6
632
+ },
633
+ "stakeholders": {
634
+ "rule": "repeated",
635
+ "type": "string",
636
+ "id": 7
637
+ }
638
+ }
639
+ },
640
+ "CreateNoArg": {
641
+ "fields": {
642
+ "lfVersion": {
643
+ "type": "string",
644
+ "id": 1
645
+ },
646
+ "contractId": {
647
+ "type": "string",
648
+ "id": 2
649
+ },
650
+ "packageName": {
651
+ "type": "string",
652
+ "id": 3
653
+ },
654
+ "templateId": {
655
+ "type": "com.daml.ledger.api.v2.cb.Identifier",
656
+ "id": 4
657
+ },
658
+ "argument": {
659
+ "type": "com.daml.ledger.api.v2.cb.Value",
660
+ "id": 5
661
+ },
662
+ "signatories": {
663
+ "rule": "repeated",
664
+ "type": "string",
665
+ "id": 6
666
+ },
667
+ "stakeholders": {
668
+ "rule": "repeated",
669
+ "type": "string",
670
+ "id": 7
671
+ }
672
+ }
673
+ },
674
+ "Rollback": {
675
+ "fields": {
676
+ "children": {
677
+ "rule": "repeated",
678
+ "type": "string",
679
+ "id": 1
680
+ }
681
+ }
682
+ },
683
+ "Node": {
684
+ "oneofs": {
685
+ "nodeType": {
686
+ "oneof": [
687
+ "create",
688
+ "fetch",
689
+ "exercise",
690
+ "rollback"
691
+ ]
692
+ }
693
+ },
694
+ "fields": {
695
+ "create": {
696
+ "type": "Create",
697
+ "id": 1
698
+ },
699
+ "fetch": {
700
+ "type": "Fetch",
701
+ "id": 2
702
+ },
703
+ "exercise": {
704
+ "type": "Exercise",
705
+ "id": 3
706
+ },
707
+ "rollback": {
708
+ "type": "Rollback",
709
+ "id": 4
710
+ }
711
+ }
712
+ },
713
+ "NodeDisplay": {
714
+ "oneofs": {
715
+ "nodeType": {
716
+ "oneof": [
717
+ "create",
718
+ "fetch",
719
+ "exercise",
720
+ "rollback"
721
+ ]
722
+ }
723
+ },
724
+ "fields": {
725
+ "create": {
726
+ "type": "CreateDisplay",
727
+ "id": 1
728
+ },
729
+ "fetch": {
730
+ "type": "Fetch",
731
+ "id": 2
732
+ },
733
+ "exercise": {
734
+ "type": "Exercise",
735
+ "id": 3
736
+ },
737
+ "rollback": {
738
+ "type": "Rollback",
739
+ "id": 4
740
+ }
741
+ }
742
+ }
743
+ }
744
+ }
745
+ }
746
+ }
747
+ }
748
+ }
749
+ }
750
+ },
751
+ "Value": {
752
+ "oneofs": {
753
+ "sum": {
754
+ "oneof": [
755
+ "unit",
756
+ "bool_",
757
+ "int64",
758
+ "date",
759
+ "timestamp",
760
+ "numeric",
761
+ "party",
762
+ "text",
763
+ "contractId",
764
+ "optional",
765
+ "list",
766
+ "textMap",
767
+ "genMap",
768
+ "record",
769
+ "variant",
770
+ "enum_"
771
+ ]
772
+ }
773
+ },
774
+ "fields": {
775
+ "unit": {
776
+ "type": "google.protobuf.Empty",
777
+ "id": 1
778
+ },
779
+ "bool_": {
780
+ "type": "bool",
781
+ "id": 2
782
+ },
783
+ "int64": {
784
+ "type": "sint64",
785
+ "id": 3,
786
+ "options": {
787
+ "jstype": "JS_STRING"
788
+ }
789
+ },
790
+ "date": {
791
+ "type": "int32",
792
+ "id": 4
793
+ },
794
+ "timestamp": {
795
+ "type": "sfixed64",
796
+ "id": 5,
797
+ "options": {
798
+ "jstype": "JS_STRING"
799
+ }
800
+ },
801
+ "numeric": {
802
+ "type": "string",
803
+ "id": 6
804
+ },
805
+ "party": {
806
+ "type": "string",
807
+ "id": 7
808
+ },
809
+ "text": {
810
+ "type": "string",
811
+ "id": 8
812
+ },
813
+ "contractId": {
814
+ "type": "string",
815
+ "id": 9
816
+ },
817
+ "optional": {
818
+ "type": "Optional",
819
+ "id": 10
820
+ },
821
+ "list": {
822
+ "type": "List",
823
+ "id": 11
824
+ },
825
+ "textMap": {
826
+ "type": "TextMap",
827
+ "id": 12
828
+ },
829
+ "genMap": {
830
+ "type": "GenMap",
831
+ "id": 13
832
+ },
833
+ "record": {
834
+ "type": "Record",
835
+ "id": 14
836
+ },
837
+ "variant": {
838
+ "type": "Variant",
839
+ "id": 15
840
+ },
841
+ "enum_": {
842
+ "type": "Enum",
843
+ "id": 16
844
+ }
845
+ }
846
+ },
847
+ "Record": {
848
+ "fields": {
849
+ "recordId": {
850
+ "type": "Identifier",
851
+ "id": 1
852
+ },
853
+ "fields": {
854
+ "rule": "repeated",
855
+ "type": "RecordField",
856
+ "id": 2
857
+ }
858
+ }
859
+ },
860
+ "RecordField": {
861
+ "fields": {
862
+ "label": {
863
+ "type": "string",
864
+ "id": 1
865
+ },
866
+ "value": {
867
+ "type": "Value",
868
+ "id": 2
869
+ }
870
+ }
871
+ },
872
+ "Identifier": {
873
+ "fields": {
874
+ "packageId": {
875
+ "type": "string",
876
+ "id": 1
877
+ },
878
+ "moduleName": {
879
+ "type": "string",
880
+ "id": 2
881
+ },
882
+ "entityName": {
883
+ "type": "string",
884
+ "id": 3
885
+ }
886
+ }
887
+ },
888
+ "Variant": {
889
+ "fields": {
890
+ "variantId": {
891
+ "type": "Identifier",
892
+ "id": 1
893
+ },
894
+ "constructor_": {
895
+ "type": "string",
896
+ "id": 2
897
+ },
898
+ "value": {
899
+ "type": "Value",
900
+ "id": 3
901
+ }
902
+ }
903
+ },
904
+ "Enum": {
905
+ "fields": {
906
+ "enumId": {
907
+ "type": "Identifier",
908
+ "id": 1
909
+ },
910
+ "constructor_": {
911
+ "type": "string",
912
+ "id": 2
913
+ }
914
+ }
915
+ },
916
+ "List": {
917
+ "fields": {
918
+ "elements": {
919
+ "rule": "repeated",
920
+ "type": "Value",
921
+ "id": 1
922
+ }
923
+ }
924
+ },
925
+ "Optional": {
926
+ "fields": {
927
+ "value": {
928
+ "type": "Value",
929
+ "id": 1
930
+ }
931
+ }
932
+ },
933
+ "TextMap": {
934
+ "fields": {
935
+ "entries": {
936
+ "rule": "repeated",
937
+ "type": "Entry",
938
+ "id": 1
939
+ }
940
+ },
941
+ "nested": {
942
+ "Entry": {
943
+ "fields": {
944
+ "key": {
945
+ "type": "string",
946
+ "id": 1
947
+ },
948
+ "value": {
949
+ "type": "Value",
950
+ "id": 2
951
+ }
952
+ }
953
+ }
954
+ }
955
+ },
956
+ "GenMap": {
957
+ "fields": {
958
+ "entries": {
959
+ "rule": "repeated",
960
+ "type": "Entry",
961
+ "id": 1
962
+ }
963
+ },
964
+ "nested": {
965
+ "Entry": {
966
+ "fields": {
967
+ "key": {
968
+ "type": "Value",
969
+ "id": 1
970
+ },
971
+ "value": {
972
+ "type": "Value",
973
+ "id": 2
974
+ }
975
+ }
976
+ }
977
+ }
978
+ },
979
+ "cb": {
980
+ "options": {
981
+ "csharp_namespace": "Com.Daml.Ledger.Api.V2.CB",
982
+ "java_outer_classname": "ValueOuterCbClass",
983
+ "java_package": "com.daml.ledger.api.v2.cb"
984
+ },
985
+ "nested": {
986
+ "Value": {
987
+ "oneofs": {
988
+ "sum": {
989
+ "oneof": [
990
+ "unit",
991
+ "bool_",
992
+ "int64",
993
+ "date",
994
+ "timestamp",
995
+ "numeric",
996
+ "party",
997
+ "text",
998
+ "contractId",
999
+ "optional",
1000
+ "list",
1001
+ "textMap",
1002
+ "genMap",
1003
+ "record",
1004
+ "variant",
1005
+ "enum_"
1006
+ ]
1007
+ }
1008
+ },
1009
+ "fields": {
1010
+ "unit": {
1011
+ "type": "google.protobuf.Empty",
1012
+ "id": 1
1013
+ },
1014
+ "bool_": {
1015
+ "type": "bool",
1016
+ "id": 2
1017
+ },
1018
+ "int64": {
1019
+ "type": "sint64",
1020
+ "id": 3,
1021
+ "options": {
1022
+ "jstype": "JS_STRING"
1023
+ }
1024
+ },
1025
+ "date": {
1026
+ "type": "int32",
1027
+ "id": 4
1028
+ },
1029
+ "timestamp": {
1030
+ "type": "sfixed64",
1031
+ "id": 5,
1032
+ "options": {
1033
+ "jstype": "JS_STRING"
1034
+ }
1035
+ },
1036
+ "numeric": {
1037
+ "type": "string",
1038
+ "id": 6
1039
+ },
1040
+ "party": {
1041
+ "type": "string",
1042
+ "id": 7
1043
+ },
1044
+ "text": {
1045
+ "type": "string",
1046
+ "id": 8
1047
+ },
1048
+ "contractId": {
1049
+ "type": "string",
1050
+ "id": 9
1051
+ },
1052
+ "optional": {
1053
+ "type": "Optional",
1054
+ "id": 10
1055
+ },
1056
+ "list": {
1057
+ "type": "List",
1058
+ "id": 11
1059
+ },
1060
+ "textMap": {
1061
+ "type": "TextMap",
1062
+ "id": 12
1063
+ },
1064
+ "genMap": {
1065
+ "type": "GenMap",
1066
+ "id": 13
1067
+ },
1068
+ "record": {
1069
+ "type": "Record",
1070
+ "id": 14
1071
+ },
1072
+ "variant": {
1073
+ "type": "Variant",
1074
+ "id": 15
1075
+ },
1076
+ "enum_": {
1077
+ "type": "Enum",
1078
+ "id": 16
1079
+ }
1080
+ }
1081
+ },
1082
+ "Record": {
1083
+ "fields": {
1084
+ "recordId": {
1085
+ "type": "Identifier",
1086
+ "id": 1
1087
+ },
1088
+ "fields": {
1089
+ "rule": "repeated",
1090
+ "type": "RecordField",
1091
+ "id": 2
1092
+ }
1093
+ }
1094
+ },
1095
+ "RecordField": {
1096
+ "fields": {
1097
+ "label": {
1098
+ "type": "string",
1099
+ "id": 1
1100
+ },
1101
+ "value": {
1102
+ "type": "Value",
1103
+ "id": 2
1104
+ }
1105
+ }
1106
+ },
1107
+ "Identifier": {
1108
+ "fields": {
1109
+ "packageId": {
1110
+ "type": "string",
1111
+ "id": 1
1112
+ },
1113
+ "moduleName": {
1114
+ "type": "string",
1115
+ "id": 2
1116
+ },
1117
+ "entityName": {
1118
+ "type": "string",
1119
+ "id": 3
1120
+ }
1121
+ }
1122
+ },
1123
+ "Variant": {
1124
+ "fields": {
1125
+ "variantId": {
1126
+ "type": "Identifier",
1127
+ "id": 1
1128
+ },
1129
+ "constructor_": {
1130
+ "type": "string",
1131
+ "id": 2
1132
+ },
1133
+ "value": {
1134
+ "type": "Value",
1135
+ "id": 3
1136
+ }
1137
+ }
1138
+ },
1139
+ "Enum": {
1140
+ "fields": {
1141
+ "enumId": {
1142
+ "type": "Identifier",
1143
+ "id": 1
1144
+ },
1145
+ "constructor_": {
1146
+ "type": "string",
1147
+ "id": 2
1148
+ }
1149
+ }
1150
+ },
1151
+ "List": {
1152
+ "fields": {
1153
+ "elements": {
1154
+ "rule": "repeated",
1155
+ "type": "Value",
1156
+ "id": 1
1157
+ }
1158
+ }
1159
+ },
1160
+ "Optional": {
1161
+ "fields": {
1162
+ "value": {
1163
+ "type": "Value",
1164
+ "id": 1
1165
+ }
1166
+ }
1167
+ },
1168
+ "TextMap": {
1169
+ "fields": {
1170
+ "entries": {
1171
+ "rule": "repeated",
1172
+ "type": "Entry",
1173
+ "id": 1
1174
+ }
1175
+ },
1176
+ "nested": {
1177
+ "Entry": {
1178
+ "fields": {
1179
+ "key": {
1180
+ "type": "string",
1181
+ "id": 1
1182
+ },
1183
+ "value": {
1184
+ "type": "Value",
1185
+ "id": 2
1186
+ }
1187
+ }
1188
+ }
1189
+ }
1190
+ },
1191
+ "GenMap": {
1192
+ "fields": {
1193
+ "entries": {
1194
+ "rule": "repeated",
1195
+ "type": "Entry",
1196
+ "id": 1
1197
+ }
1198
+ },
1199
+ "nested": {
1200
+ "Entry": {
1201
+ "fields": {
1202
+ "key": {
1203
+ "type": "Value",
1204
+ "id": 1
1205
+ },
1206
+ "value": {
1207
+ "type": "Value",
1208
+ "id": 2
1209
+ }
1210
+ }
1211
+ }
1212
+ }
1213
+ }
1214
+ }
1215
+ }
1216
+ }
1217
+ }
1218
+ }
1219
+ }
1220
+ }
1221
+ }
1222
+ }
1223
+ }
1224
+ }
1225
+ },
1226
+ "google": {
1227
+ "nested": {
1228
+ "protobuf": {
1229
+ "nested": {
1230
+ "Empty": {
1231
+ "fields": {}
1232
+ }
1233
+ }
1234
+ }
1235
+ }
1236
+ }
1237
+ }
1238
+ }