@canton-network/core-ledger-proto 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.client.d.ts +58 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.client.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.client.js +34 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.d.ts +232 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.js +560 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.client.d.ts +144 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.client.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.client.js +85 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.d.ts +291 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.js +663 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/object_meta.d.ts +76 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/object_meta.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/object_meta.js +96 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.client.d.ts +106 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.client.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.client.js +62 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.d.ts +199 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.js +427 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.client.d.ts +56 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.client.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.client.js +35 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.d.ts +81 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.js +135 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.client.d.ts +196 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.client.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.client.js +113 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.d.ts +413 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.js +867 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.client.d.ts +210 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.client.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.client.js +126 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.d.ts +758 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.js +1580 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.client.d.ts +66 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.client.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.client.js +38 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.d.ts +90 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.js +178 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_service.client.d.ts +99 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_service.client.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_service.client.js +61 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_service.d.ts +210 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_service.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_service.js +436 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.client.d.ts +80 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.client.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.client.js +47 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.d.ts +91 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.js +200 -0
- package/dist/_proto/com/daml/ledger/api/v2/commands.d.ts +491 -0
- package/dist/_proto/com/daml/ledger/api/v2/commands.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/commands.js +828 -0
- package/dist/_proto/com/daml/ledger/api/v2/completion.d.ts +149 -0
- package/dist/_proto/com/daml/ledger/api/v2/completion.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/completion.js +196 -0
- package/dist/_proto/com/daml/ledger/api/v2/event.d.ts +495 -0
- package/dist/_proto/com/daml/ledger/api/v2/event.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/event.js +723 -0
- package/dist/_proto/com/daml/ledger/api/v2/event_query_service.client.d.ts +52 -0
- package/dist/_proto/com/daml/ledger/api/v2/event_query_service.client.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/event_query_service.client.js +31 -0
- package/dist/_proto/com/daml/ledger/api/v2/event_query_service.d.ts +150 -0
- package/dist/_proto/com/daml/ledger/api/v2/event_query_service.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/event_query_service.js +291 -0
- package/dist/_proto/com/daml/ledger/api/v2/experimental_features.d.ts +96 -0
- package/dist/_proto/com/daml/ledger/api/v2/experimental_features.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/experimental_features.js +225 -0
- package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_common_data.d.ts +43 -0
- package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_common_data.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_common_data.js +85 -0
- package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.client.d.ts +100 -0
- package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.client.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.client.js +59 -0
- package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.d.ts +877 -0
- package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.js +1768 -0
- package/dist/_proto/com/daml/ledger/api/v2/interactive/transaction/v1/interactive_submission_data.d.ts +259 -0
- package/dist/_proto/com/daml/ledger/api/v2/interactive/transaction/v1/interactive_submission_data.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/interactive/transaction/v1/interactive_submission_data.js +667 -0
- package/dist/_proto/com/daml/ledger/api/v2/offset_checkpoint.d.ts +69 -0
- package/dist/_proto/com/daml/ledger/api/v2/offset_checkpoint.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/offset_checkpoint.js +133 -0
- package/dist/_proto/com/daml/ledger/api/v2/package_reference.d.ts +41 -0
- package/dist/_proto/com/daml/ledger/api/v2/package_reference.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/package_reference.js +84 -0
- package/dist/_proto/com/daml/ledger/api/v2/package_service.client.d.ts +68 -0
- package/dist/_proto/com/daml/ledger/api/v2/package_service.client.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/package_service.client.js +43 -0
- package/dist/_proto/com/daml/ledger/api/v2/package_service.d.ts +181 -0
- package/dist/_proto/com/daml/ledger/api/v2/package_service.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/package_service.js +395 -0
- package/dist/_proto/com/daml/ledger/api/v2/reassignment.d.ts +308 -0
- package/dist/_proto/com/daml/ledger/api/v2/reassignment.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/reassignment.js +521 -0
- package/dist/_proto/com/daml/ledger/api/v2/reassignment_commands.d.ts +193 -0
- package/dist/_proto/com/daml/ledger/api/v2/reassignment_commands.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/reassignment_commands.js +350 -0
- package/dist/_proto/com/daml/ledger/api/v2/state_service.client.d.ts +91 -0
- package/dist/_proto/com/daml/ledger/api/v2/state_service.client.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/state_service.client.js +56 -0
- package/dist/_proto/com/daml/ledger/api/v2/state_service.d.ts +448 -0
- package/dist/_proto/com/daml/ledger/api/v2/state_service.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/state_service.js +874 -0
- package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.client.d.ts +54 -0
- package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.client.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.client.js +34 -0
- package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.d.ts +78 -0
- package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.js +168 -0
- package/dist/_proto/com/daml/ledger/api/v2/topology_transaction.d.ts +211 -0
- package/dist/_proto/com/daml/ledger/api/v2/topology_transaction.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/topology_transaction.js +447 -0
- package/dist/_proto/com/daml/ledger/api/v2/trace_context.d.ts +33 -0
- package/dist/_proto/com/daml/ledger/api/v2/trace_context.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/trace_context.js +69 -0
- package/dist/_proto/com/daml/ledger/api/v2/transaction.d.ts +252 -0
- package/dist/_proto/com/daml/ledger/api/v2/transaction.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/transaction.js +410 -0
- package/dist/_proto/com/daml/ledger/api/v2/transaction_filter.d.ts +453 -0
- package/dist/_proto/com/daml/ledger/api/v2/transaction_filter.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/transaction_filter.js +815 -0
- package/dist/_proto/com/daml/ledger/api/v2/update_service.client.d.ts +199 -0
- package/dist/_proto/com/daml/ledger/api/v2/update_service.client.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/update_service.client.js +121 -0
- package/dist/_proto/com/daml/ledger/api/v2/update_service.d.ts +424 -0
- package/dist/_proto/com/daml/ledger/api/v2/update_service.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/update_service.js +853 -0
- package/dist/_proto/com/daml/ledger/api/v2/value.d.ts +500 -0
- package/dist/_proto/com/daml/ledger/api/v2/value.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/value.js +937 -0
- package/dist/_proto/com/daml/ledger/api/v2/version_service.client.d.ts +40 -0
- package/dist/_proto/com/daml/ledger/api/v2/version_service.client.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/version_service.client.js +25 -0
- package/dist/_proto/com/daml/ledger/api/v2/version_service.d.ts +190 -0
- package/dist/_proto/com/daml/ledger/api/v2/version_service.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/version_service.js +400 -0
- package/dist/_proto/com/digitalasset/canton/crypto/v30/crypto.d.ts +1028 -0
- package/dist/_proto/com/digitalasset/canton/crypto/v30/crypto.d.ts.map +1 -0
- package/dist/_proto/com/digitalasset/canton/crypto/v30/crypto.js +2110 -0
- package/dist/_proto/com/digitalasset/canton/protocol/v30/sequencing_parameters.d.ts +30 -0
- package/dist/_proto/com/digitalasset/canton/protocol/v30/sequencing_parameters.d.ts.map +1 -0
- package/dist/_proto/com/digitalasset/canton/protocol/v30/sequencing_parameters.js +62 -0
- package/dist/_proto/com/digitalasset/canton/protocol/v30/synchronizer_parameters.d.ts +168 -0
- package/dist/_proto/com/digitalasset/canton/protocol/v30/synchronizer_parameters.d.ts.map +1 -0
- package/dist/_proto/com/digitalasset/canton/protocol/v30/synchronizer_parameters.js +395 -0
- package/dist/_proto/com/digitalasset/canton/protocol/v30/topology.d.ts +1105 -0
- package/dist/_proto/com/digitalasset/canton/protocol/v30/topology.d.ts.map +1 -0
- package/dist/_proto/com/digitalasset/canton/protocol/v30/topology.js +2294 -0
- package/dist/_proto/com/digitalasset/canton/protocol/v30/traffic_control_parameters.d.ts +278 -0
- package/dist/_proto/com/digitalasset/canton/protocol/v30/traffic_control_parameters.d.ts.map +1 -0
- package/dist/_proto/com/digitalasset/canton/protocol/v30/traffic_control_parameters.js +654 -0
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/common.d.ts +166 -0
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/common.d.ts.map +1 -0
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/common.js +379 -0
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.client.d.ts +199 -0
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.client.d.ts.map +1 -0
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.client.js +136 -0
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.d.ts +1195 -0
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.d.ts.map +1 -0
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.js +3342 -0
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.client.d.ts +119 -0
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.client.d.ts.map +1 -0
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.client.js +76 -0
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.d.ts +607 -0
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.d.ts.map +1 -0
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.js +1292 -0
- package/dist/_proto/google/protobuf/any.d.ts +177 -0
- package/dist/_proto/google/protobuf/any.d.ts.map +1 -0
- package/dist/_proto/google/protobuf/any.js +175 -0
- package/dist/_proto/google/protobuf/descriptor.d.ts +1638 -0
- package/dist/_proto/google/protobuf/descriptor.d.ts.map +1 -0
- package/dist/_proto/google/protobuf/descriptor.js +2999 -0
- package/dist/_proto/google/protobuf/duration.d.ts +114 -0
- package/dist/_proto/google/protobuf/duration.d.ts.map +1 -0
- package/dist/_proto/google/protobuf/duration.js +113 -0
- package/dist/_proto/google/protobuf/empty.d.ts +33 -0
- package/dist/_proto/google/protobuf/empty.d.ts.map +1 -0
- package/dist/_proto/google/protobuf/empty.js +41 -0
- package/dist/_proto/google/protobuf/field_mask.d.ts +240 -0
- package/dist/_proto/google/protobuf/field_mask.d.ts.map +1 -0
- package/dist/_proto/google/protobuf/field_mask.js +95 -0
- package/dist/_proto/google/protobuf/struct.d.ts +187 -0
- package/dist/_proto/google/protobuf/struct.d.ts.map +1 -0
- package/dist/_proto/google/protobuf/struct.js +417 -0
- package/dist/_proto/google/protobuf/timestamp.d.ts +159 -0
- package/dist/_proto/google/protobuf/timestamp.d.ts.map +1 -0
- package/dist/_proto/google/protobuf/timestamp.js +157 -0
- package/dist/_proto/google/rpc/code.d.ts +219 -0
- package/dist/_proto/google/rpc/code.d.ts.map +1 -0
- package/dist/_proto/google/rpc/code.js +237 -0
- package/dist/_proto/google/rpc/context/attribute_context.d.ts +594 -0
- package/dist/_proto/google/rpc/context/attribute_context.d.ts.map +1 -0
- package/dist/_proto/google/rpc/context/attribute_context.js +1007 -0
- package/dist/_proto/google/rpc/context/audit_context.d.ts +62 -0
- package/dist/_proto/google/rpc/context/audit_context.d.ts.map +1 -0
- package/dist/_proto/google/rpc/context/audit_context.js +111 -0
- package/dist/_proto/google/rpc/error_details.d.ts +549 -0
- package/dist/_proto/google/rpc/error_details.d.ts.map +1 -0
- package/dist/_proto/google/rpc/error_details.js +918 -0
- package/dist/_proto/google/rpc/status.d.ts +55 -0
- package/dist/_proto/google/rpc/status.d.ts.map +1 -0
- package/dist/_proto/google/rpc/status.js +79 -0
- package/dist/_proto/scalapb/scalapb.d.ts +779 -0
- package/dist/_proto/scalapb/scalapb.d.ts.map +1 -0
- package/dist/_proto/scalapb/scalapb.js +1658 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +12 -0
- package/package.json +29 -0
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
import { WireType } from '@protobuf-ts/runtime';
|
|
2
|
+
import { UnknownFieldHandler } from '@protobuf-ts/runtime';
|
|
3
|
+
import { reflectionMergePartial } from '@protobuf-ts/runtime';
|
|
4
|
+
import { MessageType } from '@protobuf-ts/runtime';
|
|
5
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
6
|
+
class ExperimentalFeatures$Type extends MessageType {
|
|
7
|
+
constructor() {
|
|
8
|
+
super('com.daml.ledger.api.v2.ExperimentalFeatures', [
|
|
9
|
+
{
|
|
10
|
+
no: 1,
|
|
11
|
+
name: 'static_time',
|
|
12
|
+
kind: 'message',
|
|
13
|
+
T: () => ExperimentalStaticTime,
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
no: 2,
|
|
17
|
+
name: 'command_inspection_service',
|
|
18
|
+
kind: 'message',
|
|
19
|
+
T: () => ExperimentalCommandInspectionService,
|
|
20
|
+
},
|
|
21
|
+
]);
|
|
22
|
+
}
|
|
23
|
+
create(value) {
|
|
24
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
25
|
+
if (value !== undefined)
|
|
26
|
+
reflectionMergePartial(this, message, value);
|
|
27
|
+
return message;
|
|
28
|
+
}
|
|
29
|
+
internalBinaryRead(reader, length, options, target) {
|
|
30
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
31
|
+
while (reader.pos < end) {
|
|
32
|
+
let [fieldNo, wireType] = reader.tag();
|
|
33
|
+
switch (fieldNo) {
|
|
34
|
+
case /* com.daml.ledger.api.v2.ExperimentalStaticTime static_time */ 1:
|
|
35
|
+
message.staticTime =
|
|
36
|
+
ExperimentalStaticTime.internalBinaryRead(reader, reader.uint32(), options, message.staticTime);
|
|
37
|
+
break;
|
|
38
|
+
case /* com.daml.ledger.api.v2.ExperimentalCommandInspectionService command_inspection_service */ 2:
|
|
39
|
+
message.commandInspectionService =
|
|
40
|
+
ExperimentalCommandInspectionService.internalBinaryRead(reader, reader.uint32(), options, message.commandInspectionService);
|
|
41
|
+
break;
|
|
42
|
+
default:
|
|
43
|
+
let u = options.readUnknownField;
|
|
44
|
+
if (u === 'throw')
|
|
45
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
46
|
+
let d = reader.skip(wireType);
|
|
47
|
+
if (u !== false)
|
|
48
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
return message;
|
|
52
|
+
}
|
|
53
|
+
internalBinaryWrite(message, writer, options) {
|
|
54
|
+
/* com.daml.ledger.api.v2.ExperimentalStaticTime static_time = 1; */
|
|
55
|
+
if (message.staticTime)
|
|
56
|
+
ExperimentalStaticTime.internalBinaryWrite(message.staticTime, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
57
|
+
/* com.daml.ledger.api.v2.ExperimentalCommandInspectionService command_inspection_service = 2; */
|
|
58
|
+
if (message.commandInspectionService)
|
|
59
|
+
ExperimentalCommandInspectionService.internalBinaryWrite(message.commandInspectionService, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
60
|
+
let u = options.writeUnknownFields;
|
|
61
|
+
if (u !== false)
|
|
62
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
63
|
+
return writer;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* @generated MessageType for protobuf message com.daml.ledger.api.v2.ExperimentalFeatures
|
|
68
|
+
*/
|
|
69
|
+
export const ExperimentalFeatures = new ExperimentalFeatures$Type();
|
|
70
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
71
|
+
class ExperimentalStaticTime$Type extends MessageType {
|
|
72
|
+
constructor() {
|
|
73
|
+
super('com.daml.ledger.api.v2.ExperimentalStaticTime', [
|
|
74
|
+
{
|
|
75
|
+
no: 1,
|
|
76
|
+
name: 'supported',
|
|
77
|
+
kind: 'scalar',
|
|
78
|
+
T: 8 /*ScalarType.BOOL*/,
|
|
79
|
+
},
|
|
80
|
+
]);
|
|
81
|
+
}
|
|
82
|
+
create(value) {
|
|
83
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
84
|
+
message.supported = false;
|
|
85
|
+
if (value !== undefined)
|
|
86
|
+
reflectionMergePartial(this, message, value);
|
|
87
|
+
return message;
|
|
88
|
+
}
|
|
89
|
+
internalBinaryRead(reader, length, options, target) {
|
|
90
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
91
|
+
while (reader.pos < end) {
|
|
92
|
+
let [fieldNo, wireType] = reader.tag();
|
|
93
|
+
switch (fieldNo) {
|
|
94
|
+
case /* bool supported */ 1:
|
|
95
|
+
message.supported = reader.bool();
|
|
96
|
+
break;
|
|
97
|
+
default:
|
|
98
|
+
let u = options.readUnknownField;
|
|
99
|
+
if (u === 'throw')
|
|
100
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
101
|
+
let d = reader.skip(wireType);
|
|
102
|
+
if (u !== false)
|
|
103
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
return message;
|
|
107
|
+
}
|
|
108
|
+
internalBinaryWrite(message, writer, options) {
|
|
109
|
+
/* bool supported = 1; */
|
|
110
|
+
if (message.supported !== false)
|
|
111
|
+
writer.tag(1, WireType.Varint).bool(message.supported);
|
|
112
|
+
let u = options.writeUnknownFields;
|
|
113
|
+
if (u !== false)
|
|
114
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
115
|
+
return writer;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* @generated MessageType for protobuf message com.daml.ledger.api.v2.ExperimentalStaticTime
|
|
120
|
+
*/
|
|
121
|
+
export const ExperimentalStaticTime = new ExperimentalStaticTime$Type();
|
|
122
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
123
|
+
class ExperimentalCommandInspectionService$Type extends MessageType {
|
|
124
|
+
constructor() {
|
|
125
|
+
super('com.daml.ledger.api.v2.ExperimentalCommandInspectionService', [
|
|
126
|
+
{
|
|
127
|
+
no: 1,
|
|
128
|
+
name: 'supported',
|
|
129
|
+
kind: 'scalar',
|
|
130
|
+
T: 8 /*ScalarType.BOOL*/,
|
|
131
|
+
},
|
|
132
|
+
]);
|
|
133
|
+
}
|
|
134
|
+
create(value) {
|
|
135
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
136
|
+
message.supported = false;
|
|
137
|
+
if (value !== undefined)
|
|
138
|
+
reflectionMergePartial(this, message, value);
|
|
139
|
+
return message;
|
|
140
|
+
}
|
|
141
|
+
internalBinaryRead(reader, length, options, target) {
|
|
142
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
143
|
+
while (reader.pos < end) {
|
|
144
|
+
let [fieldNo, wireType] = reader.tag();
|
|
145
|
+
switch (fieldNo) {
|
|
146
|
+
case /* bool supported */ 1:
|
|
147
|
+
message.supported = reader.bool();
|
|
148
|
+
break;
|
|
149
|
+
default:
|
|
150
|
+
let u = options.readUnknownField;
|
|
151
|
+
if (u === 'throw')
|
|
152
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
153
|
+
let d = reader.skip(wireType);
|
|
154
|
+
if (u !== false)
|
|
155
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
return message;
|
|
159
|
+
}
|
|
160
|
+
internalBinaryWrite(message, writer, options) {
|
|
161
|
+
/* bool supported = 1; */
|
|
162
|
+
if (message.supported !== false)
|
|
163
|
+
writer.tag(1, WireType.Varint).bool(message.supported);
|
|
164
|
+
let u = options.writeUnknownFields;
|
|
165
|
+
if (u !== false)
|
|
166
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
167
|
+
return writer;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* @generated MessageType for protobuf message com.daml.ledger.api.v2.ExperimentalCommandInspectionService
|
|
172
|
+
*/
|
|
173
|
+
export const ExperimentalCommandInspectionService = new ExperimentalCommandInspectionService$Type();
|
|
174
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
175
|
+
class ExperimentalPartyTopologyEvents$Type extends MessageType {
|
|
176
|
+
constructor() {
|
|
177
|
+
super('com.daml.ledger.api.v2.ExperimentalPartyTopologyEvents', [
|
|
178
|
+
{
|
|
179
|
+
no: 1,
|
|
180
|
+
name: 'supported',
|
|
181
|
+
kind: 'scalar',
|
|
182
|
+
T: 8 /*ScalarType.BOOL*/,
|
|
183
|
+
},
|
|
184
|
+
]);
|
|
185
|
+
}
|
|
186
|
+
create(value) {
|
|
187
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
188
|
+
message.supported = false;
|
|
189
|
+
if (value !== undefined)
|
|
190
|
+
reflectionMergePartial(this, message, value);
|
|
191
|
+
return message;
|
|
192
|
+
}
|
|
193
|
+
internalBinaryRead(reader, length, options, target) {
|
|
194
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
195
|
+
while (reader.pos < end) {
|
|
196
|
+
let [fieldNo, wireType] = reader.tag();
|
|
197
|
+
switch (fieldNo) {
|
|
198
|
+
case /* bool supported */ 1:
|
|
199
|
+
message.supported = reader.bool();
|
|
200
|
+
break;
|
|
201
|
+
default:
|
|
202
|
+
let u = options.readUnknownField;
|
|
203
|
+
if (u === 'throw')
|
|
204
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
205
|
+
let d = reader.skip(wireType);
|
|
206
|
+
if (u !== false)
|
|
207
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
return message;
|
|
211
|
+
}
|
|
212
|
+
internalBinaryWrite(message, writer, options) {
|
|
213
|
+
/* bool supported = 1; */
|
|
214
|
+
if (message.supported !== false)
|
|
215
|
+
writer.tag(1, WireType.Varint).bool(message.supported);
|
|
216
|
+
let u = options.writeUnknownFields;
|
|
217
|
+
if (u !== false)
|
|
218
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
219
|
+
return writer;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* @generated MessageType for protobuf message com.daml.ledger.api.v2.ExperimentalPartyTopologyEvents
|
|
224
|
+
*/
|
|
225
|
+
export const ExperimentalPartyTopologyEvents = new ExperimentalPartyTopologyEvents$Type();
|
package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_common_data.d.ts
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { BinaryWriteOptions } from '@protobuf-ts/runtime';
|
|
2
|
+
import type { IBinaryWriter } from '@protobuf-ts/runtime';
|
|
3
|
+
import type { BinaryReadOptions } from '@protobuf-ts/runtime';
|
|
4
|
+
import type { IBinaryReader } from '@protobuf-ts/runtime';
|
|
5
|
+
import type { PartialMessage } from '@protobuf-ts/runtime';
|
|
6
|
+
import { MessageType } from '@protobuf-ts/runtime';
|
|
7
|
+
import { Value } from '../value.js';
|
|
8
|
+
import { Identifier } from '../value.js';
|
|
9
|
+
/**
|
|
10
|
+
* @generated from protobuf message com.daml.ledger.api.v2.interactive.GlobalKey
|
|
11
|
+
*/
|
|
12
|
+
export interface GlobalKey {
|
|
13
|
+
/**
|
|
14
|
+
* The identifier uses the package-id reference format.
|
|
15
|
+
*
|
|
16
|
+
* @generated from protobuf field: com.daml.ledger.api.v2.Identifier template_id = 1
|
|
17
|
+
*/
|
|
18
|
+
templateId?: Identifier;
|
|
19
|
+
/**
|
|
20
|
+
* @generated from protobuf field: string package_name = 2
|
|
21
|
+
*/
|
|
22
|
+
packageName: string;
|
|
23
|
+
/**
|
|
24
|
+
* @generated from protobuf field: com.daml.ledger.api.v2.Value key = 3
|
|
25
|
+
*/
|
|
26
|
+
key?: Value;
|
|
27
|
+
/**
|
|
28
|
+
* @generated from protobuf field: bytes hash = 4
|
|
29
|
+
*/
|
|
30
|
+
hash: Uint8Array;
|
|
31
|
+
}
|
|
32
|
+
declare class GlobalKey$Type extends MessageType<GlobalKey> {
|
|
33
|
+
constructor();
|
|
34
|
+
create(value?: PartialMessage<GlobalKey>): GlobalKey;
|
|
35
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GlobalKey): GlobalKey;
|
|
36
|
+
internalBinaryWrite(message: GlobalKey, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* @generated MessageType for protobuf message com.daml.ledger.api.v2.interactive.GlobalKey
|
|
40
|
+
*/
|
|
41
|
+
export declare const GlobalKey: GlobalKey$Type;
|
|
42
|
+
export {};
|
|
43
|
+
//# sourceMappingURL=interactive_submission_common_data.d.ts.map
|
package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_common_data.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interactive_submission_common_data.d.ts","sourceRoot":"","sources":["../../../../../../../../src/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_common_data.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAE1D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AACxC;;GAEG;AACH,MAAM,WAAW,SAAS;IACtB;;;;OAIG;IACH,UAAU,CAAC,EAAE,UAAU,CAAA;IACvB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAA;IACnB;;OAEG;IACH,GAAG,CAAC,EAAE,KAAK,CAAA;IACX;;OAEG;IACH,IAAI,EAAE,UAAU,CAAA;CACnB;AAED,cAAM,cAAe,SAAQ,WAAW,CAAC,SAAS,CAAC;;IAmB/C,MAAM,CAAC,KAAK,CAAC,EAAE,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS;IAQpD,kBAAkB,CACd,MAAM,EAAE,aAAa,EACrB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,iBAAiB,EAC1B,MAAM,CAAC,EAAE,SAAS,GACnB,SAAS;IA+CZ,mBAAmB,CACf,OAAO,EAAE,SAAS,EAClB,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,kBAAkB,GAC5B,aAAa;CA8BnB;AACD;;GAEG;AACH,eAAO,MAAM,SAAS,gBAAuB,CAAA"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { WireType } from '@protobuf-ts/runtime';
|
|
2
|
+
import { UnknownFieldHandler } from '@protobuf-ts/runtime';
|
|
3
|
+
import { reflectionMergePartial } from '@protobuf-ts/runtime';
|
|
4
|
+
import { MessageType } from '@protobuf-ts/runtime';
|
|
5
|
+
import { Value } from '../value.js';
|
|
6
|
+
import { Identifier } from '../value.js';
|
|
7
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
8
|
+
class GlobalKey$Type extends MessageType {
|
|
9
|
+
constructor() {
|
|
10
|
+
super('com.daml.ledger.api.v2.interactive.GlobalKey', [
|
|
11
|
+
{
|
|
12
|
+
no: 1,
|
|
13
|
+
name: 'template_id',
|
|
14
|
+
kind: 'message',
|
|
15
|
+
T: () => Identifier,
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
no: 2,
|
|
19
|
+
name: 'package_name',
|
|
20
|
+
kind: 'scalar',
|
|
21
|
+
T: 9 /*ScalarType.STRING*/,
|
|
22
|
+
},
|
|
23
|
+
{ no: 3, name: 'key', kind: 'message', T: () => Value },
|
|
24
|
+
{ no: 4, name: 'hash', kind: 'scalar', T: 12 /*ScalarType.BYTES*/ },
|
|
25
|
+
]);
|
|
26
|
+
}
|
|
27
|
+
create(value) {
|
|
28
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
29
|
+
message.packageName = '';
|
|
30
|
+
message.hash = new Uint8Array(0);
|
|
31
|
+
if (value !== undefined)
|
|
32
|
+
reflectionMergePartial(this, message, value);
|
|
33
|
+
return message;
|
|
34
|
+
}
|
|
35
|
+
internalBinaryRead(reader, length, options, target) {
|
|
36
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
37
|
+
while (reader.pos < end) {
|
|
38
|
+
let [fieldNo, wireType] = reader.tag();
|
|
39
|
+
switch (fieldNo) {
|
|
40
|
+
case /* com.daml.ledger.api.v2.Identifier template_id */ 1:
|
|
41
|
+
message.templateId = Identifier.internalBinaryRead(reader, reader.uint32(), options, message.templateId);
|
|
42
|
+
break;
|
|
43
|
+
case /* string package_name */ 2:
|
|
44
|
+
message.packageName = reader.string();
|
|
45
|
+
break;
|
|
46
|
+
case /* com.daml.ledger.api.v2.Value key */ 3:
|
|
47
|
+
message.key = Value.internalBinaryRead(reader, reader.uint32(), options, message.key);
|
|
48
|
+
break;
|
|
49
|
+
case /* bytes hash */ 4:
|
|
50
|
+
message.hash = reader.bytes();
|
|
51
|
+
break;
|
|
52
|
+
default:
|
|
53
|
+
let u = options.readUnknownField;
|
|
54
|
+
if (u === 'throw')
|
|
55
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
56
|
+
let d = reader.skip(wireType);
|
|
57
|
+
if (u !== false)
|
|
58
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
return message;
|
|
62
|
+
}
|
|
63
|
+
internalBinaryWrite(message, writer, options) {
|
|
64
|
+
/* com.daml.ledger.api.v2.Identifier template_id = 1; */
|
|
65
|
+
if (message.templateId)
|
|
66
|
+
Identifier.internalBinaryWrite(message.templateId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
67
|
+
/* string package_name = 2; */
|
|
68
|
+
if (message.packageName !== '')
|
|
69
|
+
writer.tag(2, WireType.LengthDelimited).string(message.packageName);
|
|
70
|
+
/* com.daml.ledger.api.v2.Value key = 3; */
|
|
71
|
+
if (message.key)
|
|
72
|
+
Value.internalBinaryWrite(message.key, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
73
|
+
/* bytes hash = 4; */
|
|
74
|
+
if (message.hash.length)
|
|
75
|
+
writer.tag(4, WireType.LengthDelimited).bytes(message.hash);
|
|
76
|
+
let u = options.writeUnknownFields;
|
|
77
|
+
if (u !== false)
|
|
78
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
79
|
+
return writer;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* @generated MessageType for protobuf message com.daml.ledger.api.v2.interactive.GlobalKey
|
|
84
|
+
*/
|
|
85
|
+
export const GlobalKey = new GlobalKey$Type();
|
package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.client.d.ts
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import type { RpcTransport } from '@protobuf-ts/runtime-rpc';
|
|
2
|
+
import type { ServiceInfo } from '@protobuf-ts/runtime-rpc';
|
|
3
|
+
import type { GetPreferredPackageVersionResponse } from './interactive_submission_service.js';
|
|
4
|
+
import type { GetPreferredPackageVersionRequest } from './interactive_submission_service.js';
|
|
5
|
+
import type { ExecuteSubmissionResponse } from './interactive_submission_service.js';
|
|
6
|
+
import type { ExecuteSubmissionRequest } from './interactive_submission_service.js';
|
|
7
|
+
import type { PrepareSubmissionResponse } from './interactive_submission_service.js';
|
|
8
|
+
import type { PrepareSubmissionRequest } from './interactive_submission_service.js';
|
|
9
|
+
import type { UnaryCall } from '@protobuf-ts/runtime-rpc';
|
|
10
|
+
import type { RpcOptions } from '@protobuf-ts/runtime-rpc';
|
|
11
|
+
/**
|
|
12
|
+
* Service allowing interactive construction of command submissions
|
|
13
|
+
*
|
|
14
|
+
* The prepare and execute endpoints allow to submit commands in 2-steps:
|
|
15
|
+
*
|
|
16
|
+
* 1. prepare transaction from commands,
|
|
17
|
+
* 2. submit the prepared transaction
|
|
18
|
+
*
|
|
19
|
+
* This gives callers the ability to sign the daml transaction with their own signing keys
|
|
20
|
+
*
|
|
21
|
+
* @generated from protobuf service com.daml.ledger.api.v2.interactive.InteractiveSubmissionService
|
|
22
|
+
*/
|
|
23
|
+
export interface IInteractiveSubmissionServiceClient {
|
|
24
|
+
/**
|
|
25
|
+
* Requires `readAs` scope for the submitting party when LAPI User authorization is enabled
|
|
26
|
+
*
|
|
27
|
+
* @generated from protobuf rpc: PrepareSubmission
|
|
28
|
+
*/
|
|
29
|
+
prepareSubmission(input: PrepareSubmissionRequest, options?: RpcOptions): UnaryCall<PrepareSubmissionRequest, PrepareSubmissionResponse>;
|
|
30
|
+
/**
|
|
31
|
+
* @generated from protobuf rpc: ExecuteSubmission
|
|
32
|
+
*/
|
|
33
|
+
executeSubmission(input: ExecuteSubmissionRequest, options?: RpcOptions): UnaryCall<ExecuteSubmissionRequest, ExecuteSubmissionResponse>;
|
|
34
|
+
/**
|
|
35
|
+
* A preferred package is the highest-versioned package for a provided package-name
|
|
36
|
+
* that is vetted by all the participants hosting the provided parties.
|
|
37
|
+
*
|
|
38
|
+
* Ledger API clients should use this endpoint for constructing command submissions
|
|
39
|
+
* that are compatible with the provided preferred package, by making informed decisions on:
|
|
40
|
+
* - which are the compatible packages that can be used to create contracts
|
|
41
|
+
* - which contract or exercise choice argument version can be used in the command
|
|
42
|
+
* - which choices can be executed on a template or interface of a contract
|
|
43
|
+
*
|
|
44
|
+
* Can be accessed by any Ledger API client with a valid token when Ledger API authorization is enabled.
|
|
45
|
+
*
|
|
46
|
+
* Experimental API: this endpoint is not guaranteed to provide backwards compatibility in future releases
|
|
47
|
+
*
|
|
48
|
+
* @generated from protobuf rpc: GetPreferredPackageVersion
|
|
49
|
+
*/
|
|
50
|
+
getPreferredPackageVersion(input: GetPreferredPackageVersionRequest, options?: RpcOptions): UnaryCall<GetPreferredPackageVersionRequest, GetPreferredPackageVersionResponse>;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Service allowing interactive construction of command submissions
|
|
54
|
+
*
|
|
55
|
+
* The prepare and execute endpoints allow to submit commands in 2-steps:
|
|
56
|
+
*
|
|
57
|
+
* 1. prepare transaction from commands,
|
|
58
|
+
* 2. submit the prepared transaction
|
|
59
|
+
*
|
|
60
|
+
* This gives callers the ability to sign the daml transaction with their own signing keys
|
|
61
|
+
*
|
|
62
|
+
* @generated from protobuf service com.daml.ledger.api.v2.interactive.InteractiveSubmissionService
|
|
63
|
+
*/
|
|
64
|
+
export declare class InteractiveSubmissionServiceClient implements IInteractiveSubmissionServiceClient, ServiceInfo {
|
|
65
|
+
private readonly _transport;
|
|
66
|
+
typeName: string;
|
|
67
|
+
methods: import("@protobuf-ts/runtime-rpc").MethodInfo<any, any>[];
|
|
68
|
+
options: {
|
|
69
|
+
[extensionName: string]: import("@protobuf-ts/runtime").JsonValue;
|
|
70
|
+
};
|
|
71
|
+
constructor(_transport: RpcTransport);
|
|
72
|
+
/**
|
|
73
|
+
* Requires `readAs` scope for the submitting party when LAPI User authorization is enabled
|
|
74
|
+
*
|
|
75
|
+
* @generated from protobuf rpc: PrepareSubmission
|
|
76
|
+
*/
|
|
77
|
+
prepareSubmission(input: PrepareSubmissionRequest, options?: RpcOptions): UnaryCall<PrepareSubmissionRequest, PrepareSubmissionResponse>;
|
|
78
|
+
/**
|
|
79
|
+
* @generated from protobuf rpc: ExecuteSubmission
|
|
80
|
+
*/
|
|
81
|
+
executeSubmission(input: ExecuteSubmissionRequest, options?: RpcOptions): UnaryCall<ExecuteSubmissionRequest, ExecuteSubmissionResponse>;
|
|
82
|
+
/**
|
|
83
|
+
* A preferred package is the highest-versioned package for a provided package-name
|
|
84
|
+
* that is vetted by all the participants hosting the provided parties.
|
|
85
|
+
*
|
|
86
|
+
* Ledger API clients should use this endpoint for constructing command submissions
|
|
87
|
+
* that are compatible with the provided preferred package, by making informed decisions on:
|
|
88
|
+
* - which are the compatible packages that can be used to create contracts
|
|
89
|
+
* - which contract or exercise choice argument version can be used in the command
|
|
90
|
+
* - which choices can be executed on a template or interface of a contract
|
|
91
|
+
*
|
|
92
|
+
* Can be accessed by any Ledger API client with a valid token when Ledger API authorization is enabled.
|
|
93
|
+
*
|
|
94
|
+
* Experimental API: this endpoint is not guaranteed to provide backwards compatibility in future releases
|
|
95
|
+
*
|
|
96
|
+
* @generated from protobuf rpc: GetPreferredPackageVersion
|
|
97
|
+
*/
|
|
98
|
+
getPreferredPackageVersion(input: GetPreferredPackageVersionRequest, options?: RpcOptions): UnaryCall<GetPreferredPackageVersionRequest, GetPreferredPackageVersionResponse>;
|
|
99
|
+
}
|
|
100
|
+
//# sourceMappingURL=interactive_submission_service.client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interactive_submission_service.client.d.ts","sourceRoot":"","sources":["../../../../../../../../src/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.client.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAC5D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AAE3D,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,qCAAqC,CAAA;AAC7F,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,qCAAqC,CAAA;AAC5F,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,qCAAqC,CAAA;AACpF,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAA;AAEnF,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,qCAAqC,CAAA;AACpF,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAA;AACnF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AACzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAC1D;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,mCAAmC;IAChD;;;;OAIG;IACH,iBAAiB,CACb,KAAK,EAAE,wBAAwB,EAC/B,OAAO,CAAC,EAAE,UAAU,GACrB,SAAS,CAAC,wBAAwB,EAAE,yBAAyB,CAAC,CAAA;IACjE;;OAEG;IACH,iBAAiB,CACb,KAAK,EAAE,wBAAwB,EAC/B,OAAO,CAAC,EAAE,UAAU,GACrB,SAAS,CAAC,wBAAwB,EAAE,yBAAyB,CAAC,CAAA;IACjE;;;;;;;;;;;;;;;OAeG;IACH,0BAA0B,CACtB,KAAK,EAAE,iCAAiC,EACxC,OAAO,CAAC,EAAE,UAAU,GACrB,SAAS,CACR,iCAAiC,EACjC,kCAAkC,CACrC,CAAA;CACJ;AACD;;;;;;;;;;;GAWG;AACH,qBAAa,kCACT,YAAW,mCAAmC,EAAE,WAAW;IAK/C,OAAO,CAAC,QAAQ,CAAC,UAAU;IAHvC,QAAQ,SAAwC;IAChD,OAAO,4DAAuC;IAC9C,OAAO;;MAAuC;gBACjB,UAAU,EAAE,YAAY;IACrD;;;;OAIG;IACH,iBAAiB,CACb,KAAK,EAAE,wBAAwB,EAC/B,OAAO,CAAC,EAAE,UAAU,GACrB,SAAS,CAAC,wBAAwB,EAAE,yBAAyB,CAAC;IAQjE;;OAEG;IACH,iBAAiB,CACb,KAAK,EAAE,wBAAwB,EAC/B,OAAO,CAAC,EAAE,UAAU,GACrB,SAAS,CAAC,wBAAwB,EAAE,yBAAyB,CAAC;IAQjE;;;;;;;;;;;;;;;OAeG;IACH,0BAA0B,CACtB,KAAK,EAAE,iCAAiC,EACxC,OAAO,CAAC,EAAE,UAAU,GACrB,SAAS,CACR,iCAAiC,EACjC,kCAAkC,CACrC;CAQJ"}
|
package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.client.js
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { InteractiveSubmissionService } from './interactive_submission_service.js';
|
|
2
|
+
import { stackIntercept } from '@protobuf-ts/runtime-rpc';
|
|
3
|
+
/**
|
|
4
|
+
* Service allowing interactive construction of command submissions
|
|
5
|
+
*
|
|
6
|
+
* The prepare and execute endpoints allow to submit commands in 2-steps:
|
|
7
|
+
*
|
|
8
|
+
* 1. prepare transaction from commands,
|
|
9
|
+
* 2. submit the prepared transaction
|
|
10
|
+
*
|
|
11
|
+
* This gives callers the ability to sign the daml transaction with their own signing keys
|
|
12
|
+
*
|
|
13
|
+
* @generated from protobuf service com.daml.ledger.api.v2.interactive.InteractiveSubmissionService
|
|
14
|
+
*/
|
|
15
|
+
export class InteractiveSubmissionServiceClient {
|
|
16
|
+
_transport;
|
|
17
|
+
typeName = InteractiveSubmissionService.typeName;
|
|
18
|
+
methods = InteractiveSubmissionService.methods;
|
|
19
|
+
options = InteractiveSubmissionService.options;
|
|
20
|
+
constructor(_transport) {
|
|
21
|
+
this._transport = _transport;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Requires `readAs` scope for the submitting party when LAPI User authorization is enabled
|
|
25
|
+
*
|
|
26
|
+
* @generated from protobuf rpc: PrepareSubmission
|
|
27
|
+
*/
|
|
28
|
+
prepareSubmission(input, options) {
|
|
29
|
+
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
30
|
+
return stackIntercept('unary', this._transport, method, opt, input);
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* @generated from protobuf rpc: ExecuteSubmission
|
|
34
|
+
*/
|
|
35
|
+
executeSubmission(input, options) {
|
|
36
|
+
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
37
|
+
return stackIntercept('unary', this._transport, method, opt, input);
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* A preferred package is the highest-versioned package for a provided package-name
|
|
41
|
+
* that is vetted by all the participants hosting the provided parties.
|
|
42
|
+
*
|
|
43
|
+
* Ledger API clients should use this endpoint for constructing command submissions
|
|
44
|
+
* that are compatible with the provided preferred package, by making informed decisions on:
|
|
45
|
+
* - which are the compatible packages that can be used to create contracts
|
|
46
|
+
* - which contract or exercise choice argument version can be used in the command
|
|
47
|
+
* - which choices can be executed on a template or interface of a contract
|
|
48
|
+
*
|
|
49
|
+
* Can be accessed by any Ledger API client with a valid token when Ledger API authorization is enabled.
|
|
50
|
+
*
|
|
51
|
+
* Experimental API: this endpoint is not guaranteed to provide backwards compatibility in future releases
|
|
52
|
+
*
|
|
53
|
+
* @generated from protobuf rpc: GetPreferredPackageVersion
|
|
54
|
+
*/
|
|
55
|
+
getPreferredPackageVersion(input, options) {
|
|
56
|
+
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
|
57
|
+
return stackIntercept('unary', this._transport, method, opt, input);
|
|
58
|
+
}
|
|
59
|
+
}
|