@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,815 @@
|
|
|
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 { Identifier } from './value.js';
|
|
6
|
+
/**
|
|
7
|
+
* Event shape for Transactions.
|
|
8
|
+
* Shapes are exclusive and only one of them can be defined in queries.
|
|
9
|
+
*
|
|
10
|
+
* @generated from protobuf enum com.daml.ledger.api.v2.TransactionShape
|
|
11
|
+
*/
|
|
12
|
+
export var TransactionShape;
|
|
13
|
+
(function (TransactionShape) {
|
|
14
|
+
/**
|
|
15
|
+
* Following official proto3 convention, not intended for actual use.
|
|
16
|
+
*
|
|
17
|
+
* @generated from protobuf enum value: TRANSACTION_SHAPE_UNSPECIFIED = 0;
|
|
18
|
+
*/
|
|
19
|
+
TransactionShape[TransactionShape["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
20
|
+
/**
|
|
21
|
+
* Transaction shape that is sufficient to maintain an accurate ACS view.
|
|
22
|
+
* The field witness_parties in events are populated as stakeholders, transaction filter will apply accordingly.
|
|
23
|
+
* This translates to create and archive events.
|
|
24
|
+
*
|
|
25
|
+
* @generated from protobuf enum value: TRANSACTION_SHAPE_ACS_DELTA = 1;
|
|
26
|
+
*/
|
|
27
|
+
TransactionShape[TransactionShape["ACS_DELTA"] = 1] = "ACS_DELTA";
|
|
28
|
+
/**
|
|
29
|
+
* Transaction shape that allows maintaining an ACS and also conveys detailed information about
|
|
30
|
+
* all exercises.
|
|
31
|
+
* The field witness_parties in events are populated as cumulative informees, transaction filter will apply accordingly.
|
|
32
|
+
* This translates to create, consuming exercise and non-consuming exercise.
|
|
33
|
+
*
|
|
34
|
+
* @generated from protobuf enum value: TRANSACTION_SHAPE_LEDGER_EFFECTS = 2;
|
|
35
|
+
*/
|
|
36
|
+
TransactionShape[TransactionShape["LEDGER_EFFECTS"] = 2] = "LEDGER_EFFECTS";
|
|
37
|
+
})(TransactionShape || (TransactionShape = {}));
|
|
38
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
39
|
+
class Filters$Type extends MessageType {
|
|
40
|
+
constructor() {
|
|
41
|
+
super('com.daml.ledger.api.v2.Filters', [
|
|
42
|
+
{
|
|
43
|
+
no: 1,
|
|
44
|
+
name: 'cumulative',
|
|
45
|
+
kind: 'message',
|
|
46
|
+
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
47
|
+
T: () => CumulativeFilter,
|
|
48
|
+
},
|
|
49
|
+
]);
|
|
50
|
+
}
|
|
51
|
+
create(value) {
|
|
52
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
53
|
+
message.cumulative = [];
|
|
54
|
+
if (value !== undefined)
|
|
55
|
+
reflectionMergePartial(this, message, value);
|
|
56
|
+
return message;
|
|
57
|
+
}
|
|
58
|
+
internalBinaryRead(reader, length, options, target) {
|
|
59
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
60
|
+
while (reader.pos < end) {
|
|
61
|
+
let [fieldNo, wireType] = reader.tag();
|
|
62
|
+
switch (fieldNo) {
|
|
63
|
+
case /* repeated com.daml.ledger.api.v2.CumulativeFilter cumulative */ 1:
|
|
64
|
+
message.cumulative.push(CumulativeFilter.internalBinaryRead(reader, reader.uint32(), options));
|
|
65
|
+
break;
|
|
66
|
+
default:
|
|
67
|
+
let u = options.readUnknownField;
|
|
68
|
+
if (u === 'throw')
|
|
69
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
70
|
+
let d = reader.skip(wireType);
|
|
71
|
+
if (u !== false)
|
|
72
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
return message;
|
|
76
|
+
}
|
|
77
|
+
internalBinaryWrite(message, writer, options) {
|
|
78
|
+
/* repeated com.daml.ledger.api.v2.CumulativeFilter cumulative = 1; */
|
|
79
|
+
for (let i = 0; i < message.cumulative.length; i++)
|
|
80
|
+
CumulativeFilter.internalBinaryWrite(message.cumulative[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
81
|
+
let u = options.writeUnknownFields;
|
|
82
|
+
if (u !== false)
|
|
83
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
84
|
+
return writer;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* @generated MessageType for protobuf message com.daml.ledger.api.v2.Filters
|
|
89
|
+
*/
|
|
90
|
+
export const Filters = new Filters$Type();
|
|
91
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
92
|
+
class CumulativeFilter$Type extends MessageType {
|
|
93
|
+
constructor() {
|
|
94
|
+
super('com.daml.ledger.api.v2.CumulativeFilter', [
|
|
95
|
+
{
|
|
96
|
+
no: 1,
|
|
97
|
+
name: 'wildcard_filter',
|
|
98
|
+
kind: 'message',
|
|
99
|
+
oneof: 'identifierFilter',
|
|
100
|
+
T: () => WildcardFilter,
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
no: 2,
|
|
104
|
+
name: 'interface_filter',
|
|
105
|
+
kind: 'message',
|
|
106
|
+
oneof: 'identifierFilter',
|
|
107
|
+
T: () => InterfaceFilter,
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
no: 3,
|
|
111
|
+
name: 'template_filter',
|
|
112
|
+
kind: 'message',
|
|
113
|
+
oneof: 'identifierFilter',
|
|
114
|
+
T: () => TemplateFilter,
|
|
115
|
+
},
|
|
116
|
+
]);
|
|
117
|
+
}
|
|
118
|
+
create(value) {
|
|
119
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
120
|
+
message.identifierFilter = { oneofKind: undefined };
|
|
121
|
+
if (value !== undefined)
|
|
122
|
+
reflectionMergePartial(this, message, value);
|
|
123
|
+
return message;
|
|
124
|
+
}
|
|
125
|
+
internalBinaryRead(reader, length, options, target) {
|
|
126
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
127
|
+
while (reader.pos < end) {
|
|
128
|
+
let [fieldNo, wireType] = reader.tag();
|
|
129
|
+
switch (fieldNo) {
|
|
130
|
+
case /* com.daml.ledger.api.v2.WildcardFilter wildcard_filter */ 1:
|
|
131
|
+
message.identifierFilter = {
|
|
132
|
+
oneofKind: 'wildcardFilter',
|
|
133
|
+
wildcardFilter: WildcardFilter.internalBinaryRead(reader, reader.uint32(), options, message.identifierFilter.wildcardFilter),
|
|
134
|
+
};
|
|
135
|
+
break;
|
|
136
|
+
case /* com.daml.ledger.api.v2.InterfaceFilter interface_filter */ 2:
|
|
137
|
+
message.identifierFilter = {
|
|
138
|
+
oneofKind: 'interfaceFilter',
|
|
139
|
+
interfaceFilter: InterfaceFilter.internalBinaryRead(reader, reader.uint32(), options, message.identifierFilter.interfaceFilter),
|
|
140
|
+
};
|
|
141
|
+
break;
|
|
142
|
+
case /* com.daml.ledger.api.v2.TemplateFilter template_filter */ 3:
|
|
143
|
+
message.identifierFilter = {
|
|
144
|
+
oneofKind: 'templateFilter',
|
|
145
|
+
templateFilter: TemplateFilter.internalBinaryRead(reader, reader.uint32(), options, message.identifierFilter.templateFilter),
|
|
146
|
+
};
|
|
147
|
+
break;
|
|
148
|
+
default:
|
|
149
|
+
let u = options.readUnknownField;
|
|
150
|
+
if (u === 'throw')
|
|
151
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
152
|
+
let d = reader.skip(wireType);
|
|
153
|
+
if (u !== false)
|
|
154
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
return message;
|
|
158
|
+
}
|
|
159
|
+
internalBinaryWrite(message, writer, options) {
|
|
160
|
+
/* com.daml.ledger.api.v2.WildcardFilter wildcard_filter = 1; */
|
|
161
|
+
if (message.identifierFilter.oneofKind === 'wildcardFilter')
|
|
162
|
+
WildcardFilter.internalBinaryWrite(message.identifierFilter.wildcardFilter, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
163
|
+
/* com.daml.ledger.api.v2.InterfaceFilter interface_filter = 2; */
|
|
164
|
+
if (message.identifierFilter.oneofKind === 'interfaceFilter')
|
|
165
|
+
InterfaceFilter.internalBinaryWrite(message.identifierFilter.interfaceFilter, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
166
|
+
/* com.daml.ledger.api.v2.TemplateFilter template_filter = 3; */
|
|
167
|
+
if (message.identifierFilter.oneofKind === 'templateFilter')
|
|
168
|
+
TemplateFilter.internalBinaryWrite(message.identifierFilter.templateFilter, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
169
|
+
let u = options.writeUnknownFields;
|
|
170
|
+
if (u !== false)
|
|
171
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
172
|
+
return writer;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* @generated MessageType for protobuf message com.daml.ledger.api.v2.CumulativeFilter
|
|
177
|
+
*/
|
|
178
|
+
export const CumulativeFilter = new CumulativeFilter$Type();
|
|
179
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
180
|
+
class WildcardFilter$Type extends MessageType {
|
|
181
|
+
constructor() {
|
|
182
|
+
super('com.daml.ledger.api.v2.WildcardFilter', [
|
|
183
|
+
{
|
|
184
|
+
no: 1,
|
|
185
|
+
name: 'include_created_event_blob',
|
|
186
|
+
kind: 'scalar',
|
|
187
|
+
T: 8 /*ScalarType.BOOL*/,
|
|
188
|
+
},
|
|
189
|
+
]);
|
|
190
|
+
}
|
|
191
|
+
create(value) {
|
|
192
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
193
|
+
message.includeCreatedEventBlob = false;
|
|
194
|
+
if (value !== undefined)
|
|
195
|
+
reflectionMergePartial(this, message, value);
|
|
196
|
+
return message;
|
|
197
|
+
}
|
|
198
|
+
internalBinaryRead(reader, length, options, target) {
|
|
199
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
200
|
+
while (reader.pos < end) {
|
|
201
|
+
let [fieldNo, wireType] = reader.tag();
|
|
202
|
+
switch (fieldNo) {
|
|
203
|
+
case /* bool include_created_event_blob */ 1:
|
|
204
|
+
message.includeCreatedEventBlob = reader.bool();
|
|
205
|
+
break;
|
|
206
|
+
default:
|
|
207
|
+
let u = options.readUnknownField;
|
|
208
|
+
if (u === 'throw')
|
|
209
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
210
|
+
let d = reader.skip(wireType);
|
|
211
|
+
if (u !== false)
|
|
212
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
return message;
|
|
216
|
+
}
|
|
217
|
+
internalBinaryWrite(message, writer, options) {
|
|
218
|
+
/* bool include_created_event_blob = 1; */
|
|
219
|
+
if (message.includeCreatedEventBlob !== false)
|
|
220
|
+
writer.tag(1, WireType.Varint).bool(message.includeCreatedEventBlob);
|
|
221
|
+
let u = options.writeUnknownFields;
|
|
222
|
+
if (u !== false)
|
|
223
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
224
|
+
return writer;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* @generated MessageType for protobuf message com.daml.ledger.api.v2.WildcardFilter
|
|
229
|
+
*/
|
|
230
|
+
export const WildcardFilter = new WildcardFilter$Type();
|
|
231
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
232
|
+
class InterfaceFilter$Type extends MessageType {
|
|
233
|
+
constructor() {
|
|
234
|
+
super('com.daml.ledger.api.v2.InterfaceFilter', [
|
|
235
|
+
{
|
|
236
|
+
no: 1,
|
|
237
|
+
name: 'interface_id',
|
|
238
|
+
kind: 'message',
|
|
239
|
+
T: () => Identifier,
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
no: 2,
|
|
243
|
+
name: 'include_interface_view',
|
|
244
|
+
kind: 'scalar',
|
|
245
|
+
T: 8 /*ScalarType.BOOL*/,
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
no: 3,
|
|
249
|
+
name: 'include_created_event_blob',
|
|
250
|
+
kind: 'scalar',
|
|
251
|
+
T: 8 /*ScalarType.BOOL*/,
|
|
252
|
+
},
|
|
253
|
+
]);
|
|
254
|
+
}
|
|
255
|
+
create(value) {
|
|
256
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
257
|
+
message.includeInterfaceView = false;
|
|
258
|
+
message.includeCreatedEventBlob = false;
|
|
259
|
+
if (value !== undefined)
|
|
260
|
+
reflectionMergePartial(this, message, value);
|
|
261
|
+
return message;
|
|
262
|
+
}
|
|
263
|
+
internalBinaryRead(reader, length, options, target) {
|
|
264
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
265
|
+
while (reader.pos < end) {
|
|
266
|
+
let [fieldNo, wireType] = reader.tag();
|
|
267
|
+
switch (fieldNo) {
|
|
268
|
+
case /* com.daml.ledger.api.v2.Identifier interface_id */ 1:
|
|
269
|
+
message.interfaceId = Identifier.internalBinaryRead(reader, reader.uint32(), options, message.interfaceId);
|
|
270
|
+
break;
|
|
271
|
+
case /* bool include_interface_view */ 2:
|
|
272
|
+
message.includeInterfaceView = reader.bool();
|
|
273
|
+
break;
|
|
274
|
+
case /* bool include_created_event_blob */ 3:
|
|
275
|
+
message.includeCreatedEventBlob = reader.bool();
|
|
276
|
+
break;
|
|
277
|
+
default:
|
|
278
|
+
let u = options.readUnknownField;
|
|
279
|
+
if (u === 'throw')
|
|
280
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
281
|
+
let d = reader.skip(wireType);
|
|
282
|
+
if (u !== false)
|
|
283
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
return message;
|
|
287
|
+
}
|
|
288
|
+
internalBinaryWrite(message, writer, options) {
|
|
289
|
+
/* com.daml.ledger.api.v2.Identifier interface_id = 1; */
|
|
290
|
+
if (message.interfaceId)
|
|
291
|
+
Identifier.internalBinaryWrite(message.interfaceId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
292
|
+
/* bool include_interface_view = 2; */
|
|
293
|
+
if (message.includeInterfaceView !== false)
|
|
294
|
+
writer.tag(2, WireType.Varint).bool(message.includeInterfaceView);
|
|
295
|
+
/* bool include_created_event_blob = 3; */
|
|
296
|
+
if (message.includeCreatedEventBlob !== false)
|
|
297
|
+
writer.tag(3, WireType.Varint).bool(message.includeCreatedEventBlob);
|
|
298
|
+
let u = options.writeUnknownFields;
|
|
299
|
+
if (u !== false)
|
|
300
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
301
|
+
return writer;
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
/**
|
|
305
|
+
* @generated MessageType for protobuf message com.daml.ledger.api.v2.InterfaceFilter
|
|
306
|
+
*/
|
|
307
|
+
export const InterfaceFilter = new InterfaceFilter$Type();
|
|
308
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
309
|
+
class TemplateFilter$Type extends MessageType {
|
|
310
|
+
constructor() {
|
|
311
|
+
super('com.daml.ledger.api.v2.TemplateFilter', [
|
|
312
|
+
{
|
|
313
|
+
no: 1,
|
|
314
|
+
name: 'template_id',
|
|
315
|
+
kind: 'message',
|
|
316
|
+
T: () => Identifier,
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
no: 2,
|
|
320
|
+
name: 'include_created_event_blob',
|
|
321
|
+
kind: 'scalar',
|
|
322
|
+
T: 8 /*ScalarType.BOOL*/,
|
|
323
|
+
},
|
|
324
|
+
]);
|
|
325
|
+
}
|
|
326
|
+
create(value) {
|
|
327
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
328
|
+
message.includeCreatedEventBlob = false;
|
|
329
|
+
if (value !== undefined)
|
|
330
|
+
reflectionMergePartial(this, message, value);
|
|
331
|
+
return message;
|
|
332
|
+
}
|
|
333
|
+
internalBinaryRead(reader, length, options, target) {
|
|
334
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
335
|
+
while (reader.pos < end) {
|
|
336
|
+
let [fieldNo, wireType] = reader.tag();
|
|
337
|
+
switch (fieldNo) {
|
|
338
|
+
case /* com.daml.ledger.api.v2.Identifier template_id */ 1:
|
|
339
|
+
message.templateId = Identifier.internalBinaryRead(reader, reader.uint32(), options, message.templateId);
|
|
340
|
+
break;
|
|
341
|
+
case /* bool include_created_event_blob */ 2:
|
|
342
|
+
message.includeCreatedEventBlob = reader.bool();
|
|
343
|
+
break;
|
|
344
|
+
default:
|
|
345
|
+
let u = options.readUnknownField;
|
|
346
|
+
if (u === 'throw')
|
|
347
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
348
|
+
let d = reader.skip(wireType);
|
|
349
|
+
if (u !== false)
|
|
350
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
return message;
|
|
354
|
+
}
|
|
355
|
+
internalBinaryWrite(message, writer, options) {
|
|
356
|
+
/* com.daml.ledger.api.v2.Identifier template_id = 1; */
|
|
357
|
+
if (message.templateId)
|
|
358
|
+
Identifier.internalBinaryWrite(message.templateId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
359
|
+
/* bool include_created_event_blob = 2; */
|
|
360
|
+
if (message.includeCreatedEventBlob !== false)
|
|
361
|
+
writer.tag(2, WireType.Varint).bool(message.includeCreatedEventBlob);
|
|
362
|
+
let u = options.writeUnknownFields;
|
|
363
|
+
if (u !== false)
|
|
364
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
365
|
+
return writer;
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
/**
|
|
369
|
+
* @generated MessageType for protobuf message com.daml.ledger.api.v2.TemplateFilter
|
|
370
|
+
*/
|
|
371
|
+
export const TemplateFilter = new TemplateFilter$Type();
|
|
372
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
373
|
+
class TransactionFilter$Type extends MessageType {
|
|
374
|
+
constructor() {
|
|
375
|
+
super('com.daml.ledger.api.v2.TransactionFilter', [
|
|
376
|
+
{
|
|
377
|
+
no: 1,
|
|
378
|
+
name: 'filters_by_party',
|
|
379
|
+
kind: 'map',
|
|
380
|
+
K: 9 /*ScalarType.STRING*/,
|
|
381
|
+
V: { kind: 'message', T: () => Filters },
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
no: 2,
|
|
385
|
+
name: 'filters_for_any_party',
|
|
386
|
+
kind: 'message',
|
|
387
|
+
T: () => Filters,
|
|
388
|
+
},
|
|
389
|
+
]);
|
|
390
|
+
}
|
|
391
|
+
create(value) {
|
|
392
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
393
|
+
message.filtersByParty = {};
|
|
394
|
+
if (value !== undefined)
|
|
395
|
+
reflectionMergePartial(this, message, value);
|
|
396
|
+
return message;
|
|
397
|
+
}
|
|
398
|
+
internalBinaryRead(reader, length, options, target) {
|
|
399
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
400
|
+
while (reader.pos < end) {
|
|
401
|
+
let [fieldNo, wireType] = reader.tag();
|
|
402
|
+
switch (fieldNo) {
|
|
403
|
+
case /* map<string, com.daml.ledger.api.v2.Filters> filters_by_party */ 1:
|
|
404
|
+
this.binaryReadMap1(message.filtersByParty, reader, options);
|
|
405
|
+
break;
|
|
406
|
+
case /* com.daml.ledger.api.v2.Filters filters_for_any_party */ 2:
|
|
407
|
+
message.filtersForAnyParty = Filters.internalBinaryRead(reader, reader.uint32(), options, message.filtersForAnyParty);
|
|
408
|
+
break;
|
|
409
|
+
default:
|
|
410
|
+
let u = options.readUnknownField;
|
|
411
|
+
if (u === 'throw')
|
|
412
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
413
|
+
let d = reader.skip(wireType);
|
|
414
|
+
if (u !== false)
|
|
415
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
return message;
|
|
419
|
+
}
|
|
420
|
+
binaryReadMap1(map, reader, options) {
|
|
421
|
+
let len = reader.uint32(), end = reader.pos + len, key, val;
|
|
422
|
+
while (reader.pos < end) {
|
|
423
|
+
let [fieldNo, wireType] = reader.tag();
|
|
424
|
+
switch (fieldNo) {
|
|
425
|
+
case 1:
|
|
426
|
+
key = reader.string();
|
|
427
|
+
break;
|
|
428
|
+
case 2:
|
|
429
|
+
val = Filters.internalBinaryRead(reader, reader.uint32(), options);
|
|
430
|
+
break;
|
|
431
|
+
default:
|
|
432
|
+
throw new globalThis.Error('unknown map entry field for com.daml.ledger.api.v2.TransactionFilter.filters_by_party');
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
map[key ?? ''] = val ?? Filters.create();
|
|
436
|
+
}
|
|
437
|
+
internalBinaryWrite(message, writer, options) {
|
|
438
|
+
/* map<string, com.daml.ledger.api.v2.Filters> filters_by_party = 1; */
|
|
439
|
+
for (let k of globalThis.Object.keys(message.filtersByParty)) {
|
|
440
|
+
writer
|
|
441
|
+
.tag(1, WireType.LengthDelimited)
|
|
442
|
+
.fork()
|
|
443
|
+
.tag(1, WireType.LengthDelimited)
|
|
444
|
+
.string(k);
|
|
445
|
+
writer.tag(2, WireType.LengthDelimited).fork();
|
|
446
|
+
Filters.internalBinaryWrite(message.filtersByParty[k], writer, options);
|
|
447
|
+
writer.join().join();
|
|
448
|
+
}
|
|
449
|
+
/* com.daml.ledger.api.v2.Filters filters_for_any_party = 2; */
|
|
450
|
+
if (message.filtersForAnyParty)
|
|
451
|
+
Filters.internalBinaryWrite(message.filtersForAnyParty, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
452
|
+
let u = options.writeUnknownFields;
|
|
453
|
+
if (u !== false)
|
|
454
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
455
|
+
return writer;
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
/**
|
|
459
|
+
* @generated MessageType for protobuf message com.daml.ledger.api.v2.TransactionFilter
|
|
460
|
+
*/
|
|
461
|
+
export const TransactionFilter = new TransactionFilter$Type();
|
|
462
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
463
|
+
class EventFormat$Type extends MessageType {
|
|
464
|
+
constructor() {
|
|
465
|
+
super('com.daml.ledger.api.v2.EventFormat', [
|
|
466
|
+
{
|
|
467
|
+
no: 1,
|
|
468
|
+
name: 'filters_by_party',
|
|
469
|
+
kind: 'map',
|
|
470
|
+
K: 9 /*ScalarType.STRING*/,
|
|
471
|
+
V: { kind: 'message', T: () => Filters },
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
no: 2,
|
|
475
|
+
name: 'filters_for_any_party',
|
|
476
|
+
kind: 'message',
|
|
477
|
+
T: () => Filters,
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
no: 3,
|
|
481
|
+
name: 'verbose',
|
|
482
|
+
kind: 'scalar',
|
|
483
|
+
T: 8 /*ScalarType.BOOL*/,
|
|
484
|
+
},
|
|
485
|
+
]);
|
|
486
|
+
}
|
|
487
|
+
create(value) {
|
|
488
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
489
|
+
message.filtersByParty = {};
|
|
490
|
+
message.verbose = false;
|
|
491
|
+
if (value !== undefined)
|
|
492
|
+
reflectionMergePartial(this, message, value);
|
|
493
|
+
return message;
|
|
494
|
+
}
|
|
495
|
+
internalBinaryRead(reader, length, options, target) {
|
|
496
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
497
|
+
while (reader.pos < end) {
|
|
498
|
+
let [fieldNo, wireType] = reader.tag();
|
|
499
|
+
switch (fieldNo) {
|
|
500
|
+
case /* map<string, com.daml.ledger.api.v2.Filters> filters_by_party */ 1:
|
|
501
|
+
this.binaryReadMap1(message.filtersByParty, reader, options);
|
|
502
|
+
break;
|
|
503
|
+
case /* com.daml.ledger.api.v2.Filters filters_for_any_party */ 2:
|
|
504
|
+
message.filtersForAnyParty = Filters.internalBinaryRead(reader, reader.uint32(), options, message.filtersForAnyParty);
|
|
505
|
+
break;
|
|
506
|
+
case /* bool verbose */ 3:
|
|
507
|
+
message.verbose = reader.bool();
|
|
508
|
+
break;
|
|
509
|
+
default:
|
|
510
|
+
let u = options.readUnknownField;
|
|
511
|
+
if (u === 'throw')
|
|
512
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
513
|
+
let d = reader.skip(wireType);
|
|
514
|
+
if (u !== false)
|
|
515
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
return message;
|
|
519
|
+
}
|
|
520
|
+
binaryReadMap1(map, reader, options) {
|
|
521
|
+
let len = reader.uint32(), end = reader.pos + len, key, val;
|
|
522
|
+
while (reader.pos < end) {
|
|
523
|
+
let [fieldNo, wireType] = reader.tag();
|
|
524
|
+
switch (fieldNo) {
|
|
525
|
+
case 1:
|
|
526
|
+
key = reader.string();
|
|
527
|
+
break;
|
|
528
|
+
case 2:
|
|
529
|
+
val = Filters.internalBinaryRead(reader, reader.uint32(), options);
|
|
530
|
+
break;
|
|
531
|
+
default:
|
|
532
|
+
throw new globalThis.Error('unknown map entry field for com.daml.ledger.api.v2.EventFormat.filters_by_party');
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
map[key ?? ''] = val ?? Filters.create();
|
|
536
|
+
}
|
|
537
|
+
internalBinaryWrite(message, writer, options) {
|
|
538
|
+
/* map<string, com.daml.ledger.api.v2.Filters> filters_by_party = 1; */
|
|
539
|
+
for (let k of globalThis.Object.keys(message.filtersByParty)) {
|
|
540
|
+
writer
|
|
541
|
+
.tag(1, WireType.LengthDelimited)
|
|
542
|
+
.fork()
|
|
543
|
+
.tag(1, WireType.LengthDelimited)
|
|
544
|
+
.string(k);
|
|
545
|
+
writer.tag(2, WireType.LengthDelimited).fork();
|
|
546
|
+
Filters.internalBinaryWrite(message.filtersByParty[k], writer, options);
|
|
547
|
+
writer.join().join();
|
|
548
|
+
}
|
|
549
|
+
/* com.daml.ledger.api.v2.Filters filters_for_any_party = 2; */
|
|
550
|
+
if (message.filtersForAnyParty)
|
|
551
|
+
Filters.internalBinaryWrite(message.filtersForAnyParty, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
552
|
+
/* bool verbose = 3; */
|
|
553
|
+
if (message.verbose !== false)
|
|
554
|
+
writer.tag(3, WireType.Varint).bool(message.verbose);
|
|
555
|
+
let u = options.writeUnknownFields;
|
|
556
|
+
if (u !== false)
|
|
557
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
558
|
+
return writer;
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
/**
|
|
562
|
+
* @generated MessageType for protobuf message com.daml.ledger.api.v2.EventFormat
|
|
563
|
+
*/
|
|
564
|
+
export const EventFormat = new EventFormat$Type();
|
|
565
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
566
|
+
class TransactionFormat$Type extends MessageType {
|
|
567
|
+
constructor() {
|
|
568
|
+
super('com.daml.ledger.api.v2.TransactionFormat', [
|
|
569
|
+
{
|
|
570
|
+
no: 1,
|
|
571
|
+
name: 'event_format',
|
|
572
|
+
kind: 'message',
|
|
573
|
+
T: () => EventFormat,
|
|
574
|
+
},
|
|
575
|
+
{
|
|
576
|
+
no: 2,
|
|
577
|
+
name: 'transaction_shape',
|
|
578
|
+
kind: 'enum',
|
|
579
|
+
T: () => [
|
|
580
|
+
'com.daml.ledger.api.v2.TransactionShape',
|
|
581
|
+
TransactionShape,
|
|
582
|
+
'TRANSACTION_SHAPE_',
|
|
583
|
+
],
|
|
584
|
+
},
|
|
585
|
+
]);
|
|
586
|
+
}
|
|
587
|
+
create(value) {
|
|
588
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
589
|
+
message.transactionShape = 0;
|
|
590
|
+
if (value !== undefined)
|
|
591
|
+
reflectionMergePartial(this, message, value);
|
|
592
|
+
return message;
|
|
593
|
+
}
|
|
594
|
+
internalBinaryRead(reader, length, options, target) {
|
|
595
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
596
|
+
while (reader.pos < end) {
|
|
597
|
+
let [fieldNo, wireType] = reader.tag();
|
|
598
|
+
switch (fieldNo) {
|
|
599
|
+
case /* com.daml.ledger.api.v2.EventFormat event_format */ 1:
|
|
600
|
+
message.eventFormat = EventFormat.internalBinaryRead(reader, reader.uint32(), options, message.eventFormat);
|
|
601
|
+
break;
|
|
602
|
+
case /* com.daml.ledger.api.v2.TransactionShape transaction_shape */ 2:
|
|
603
|
+
message.transactionShape = reader.int32();
|
|
604
|
+
break;
|
|
605
|
+
default:
|
|
606
|
+
let u = options.readUnknownField;
|
|
607
|
+
if (u === 'throw')
|
|
608
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
609
|
+
let d = reader.skip(wireType);
|
|
610
|
+
if (u !== false)
|
|
611
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
return message;
|
|
615
|
+
}
|
|
616
|
+
internalBinaryWrite(message, writer, options) {
|
|
617
|
+
/* com.daml.ledger.api.v2.EventFormat event_format = 1; */
|
|
618
|
+
if (message.eventFormat)
|
|
619
|
+
EventFormat.internalBinaryWrite(message.eventFormat, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
620
|
+
/* com.daml.ledger.api.v2.TransactionShape transaction_shape = 2; */
|
|
621
|
+
if (message.transactionShape !== 0)
|
|
622
|
+
writer.tag(2, WireType.Varint).int32(message.transactionShape);
|
|
623
|
+
let u = options.writeUnknownFields;
|
|
624
|
+
if (u !== false)
|
|
625
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
626
|
+
return writer;
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
/**
|
|
630
|
+
* @generated MessageType for protobuf message com.daml.ledger.api.v2.TransactionFormat
|
|
631
|
+
*/
|
|
632
|
+
export const TransactionFormat = new TransactionFormat$Type();
|
|
633
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
634
|
+
class TopologyFormat$Type extends MessageType {
|
|
635
|
+
constructor() {
|
|
636
|
+
super('com.daml.ledger.api.v2.TopologyFormat', [
|
|
637
|
+
{
|
|
638
|
+
no: 1,
|
|
639
|
+
name: 'include_participant_authorization_events',
|
|
640
|
+
kind: 'message',
|
|
641
|
+
T: () => ParticipantAuthorizationTopologyFormat,
|
|
642
|
+
},
|
|
643
|
+
]);
|
|
644
|
+
}
|
|
645
|
+
create(value) {
|
|
646
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
647
|
+
if (value !== undefined)
|
|
648
|
+
reflectionMergePartial(this, message, value);
|
|
649
|
+
return message;
|
|
650
|
+
}
|
|
651
|
+
internalBinaryRead(reader, length, options, target) {
|
|
652
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
653
|
+
while (reader.pos < end) {
|
|
654
|
+
let [fieldNo, wireType] = reader.tag();
|
|
655
|
+
switch (fieldNo) {
|
|
656
|
+
case /* com.daml.ledger.api.v2.ParticipantAuthorizationTopologyFormat include_participant_authorization_events */ 1:
|
|
657
|
+
message.includeParticipantAuthorizationEvents =
|
|
658
|
+
ParticipantAuthorizationTopologyFormat.internalBinaryRead(reader, reader.uint32(), options, message.includeParticipantAuthorizationEvents);
|
|
659
|
+
break;
|
|
660
|
+
default:
|
|
661
|
+
let u = options.readUnknownField;
|
|
662
|
+
if (u === 'throw')
|
|
663
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
664
|
+
let d = reader.skip(wireType);
|
|
665
|
+
if (u !== false)
|
|
666
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
return message;
|
|
670
|
+
}
|
|
671
|
+
internalBinaryWrite(message, writer, options) {
|
|
672
|
+
/* com.daml.ledger.api.v2.ParticipantAuthorizationTopologyFormat include_participant_authorization_events = 1; */
|
|
673
|
+
if (message.includeParticipantAuthorizationEvents)
|
|
674
|
+
ParticipantAuthorizationTopologyFormat.internalBinaryWrite(message.includeParticipantAuthorizationEvents, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
675
|
+
let u = options.writeUnknownFields;
|
|
676
|
+
if (u !== false)
|
|
677
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
678
|
+
return writer;
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
/**
|
|
682
|
+
* @generated MessageType for protobuf message com.daml.ledger.api.v2.TopologyFormat
|
|
683
|
+
*/
|
|
684
|
+
export const TopologyFormat = new TopologyFormat$Type();
|
|
685
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
686
|
+
class ParticipantAuthorizationTopologyFormat$Type extends MessageType {
|
|
687
|
+
constructor() {
|
|
688
|
+
super('com.daml.ledger.api.v2.ParticipantAuthorizationTopologyFormat', [
|
|
689
|
+
{
|
|
690
|
+
no: 1,
|
|
691
|
+
name: 'parties',
|
|
692
|
+
kind: 'scalar',
|
|
693
|
+
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
694
|
+
T: 9 /*ScalarType.STRING*/,
|
|
695
|
+
},
|
|
696
|
+
]);
|
|
697
|
+
}
|
|
698
|
+
create(value) {
|
|
699
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
700
|
+
message.parties = [];
|
|
701
|
+
if (value !== undefined)
|
|
702
|
+
reflectionMergePartial(this, message, value);
|
|
703
|
+
return message;
|
|
704
|
+
}
|
|
705
|
+
internalBinaryRead(reader, length, options, target) {
|
|
706
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
707
|
+
while (reader.pos < end) {
|
|
708
|
+
let [fieldNo, wireType] = reader.tag();
|
|
709
|
+
switch (fieldNo) {
|
|
710
|
+
case /* repeated string parties */ 1:
|
|
711
|
+
message.parties.push(reader.string());
|
|
712
|
+
break;
|
|
713
|
+
default:
|
|
714
|
+
let u = options.readUnknownField;
|
|
715
|
+
if (u === 'throw')
|
|
716
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
717
|
+
let d = reader.skip(wireType);
|
|
718
|
+
if (u !== false)
|
|
719
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
return message;
|
|
723
|
+
}
|
|
724
|
+
internalBinaryWrite(message, writer, options) {
|
|
725
|
+
/* repeated string parties = 1; */
|
|
726
|
+
for (let i = 0; i < message.parties.length; i++)
|
|
727
|
+
writer.tag(1, WireType.LengthDelimited).string(message.parties[i]);
|
|
728
|
+
let u = options.writeUnknownFields;
|
|
729
|
+
if (u !== false)
|
|
730
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
731
|
+
return writer;
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
/**
|
|
735
|
+
* @generated MessageType for protobuf message com.daml.ledger.api.v2.ParticipantAuthorizationTopologyFormat
|
|
736
|
+
*/
|
|
737
|
+
export const ParticipantAuthorizationTopologyFormat = new ParticipantAuthorizationTopologyFormat$Type();
|
|
738
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
739
|
+
class UpdateFormat$Type extends MessageType {
|
|
740
|
+
constructor() {
|
|
741
|
+
super('com.daml.ledger.api.v2.UpdateFormat', [
|
|
742
|
+
{
|
|
743
|
+
no: 1,
|
|
744
|
+
name: 'include_transactions',
|
|
745
|
+
kind: 'message',
|
|
746
|
+
T: () => TransactionFormat,
|
|
747
|
+
},
|
|
748
|
+
{
|
|
749
|
+
no: 2,
|
|
750
|
+
name: 'include_reassignments',
|
|
751
|
+
kind: 'message',
|
|
752
|
+
T: () => EventFormat,
|
|
753
|
+
},
|
|
754
|
+
{
|
|
755
|
+
no: 3,
|
|
756
|
+
name: 'include_topology_events',
|
|
757
|
+
kind: 'message',
|
|
758
|
+
T: () => TopologyFormat,
|
|
759
|
+
},
|
|
760
|
+
]);
|
|
761
|
+
}
|
|
762
|
+
create(value) {
|
|
763
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
764
|
+
if (value !== undefined)
|
|
765
|
+
reflectionMergePartial(this, message, value);
|
|
766
|
+
return message;
|
|
767
|
+
}
|
|
768
|
+
internalBinaryRead(reader, length, options, target) {
|
|
769
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
770
|
+
while (reader.pos < end) {
|
|
771
|
+
let [fieldNo, wireType] = reader.tag();
|
|
772
|
+
switch (fieldNo) {
|
|
773
|
+
case /* com.daml.ledger.api.v2.TransactionFormat include_transactions */ 1:
|
|
774
|
+
message.includeTransactions =
|
|
775
|
+
TransactionFormat.internalBinaryRead(reader, reader.uint32(), options, message.includeTransactions);
|
|
776
|
+
break;
|
|
777
|
+
case /* com.daml.ledger.api.v2.EventFormat include_reassignments */ 2:
|
|
778
|
+
message.includeReassignments =
|
|
779
|
+
EventFormat.internalBinaryRead(reader, reader.uint32(), options, message.includeReassignments);
|
|
780
|
+
break;
|
|
781
|
+
case /* com.daml.ledger.api.v2.TopologyFormat include_topology_events */ 3:
|
|
782
|
+
message.includeTopologyEvents =
|
|
783
|
+
TopologyFormat.internalBinaryRead(reader, reader.uint32(), options, message.includeTopologyEvents);
|
|
784
|
+
break;
|
|
785
|
+
default:
|
|
786
|
+
let u = options.readUnknownField;
|
|
787
|
+
if (u === 'throw')
|
|
788
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
789
|
+
let d = reader.skip(wireType);
|
|
790
|
+
if (u !== false)
|
|
791
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
return message;
|
|
795
|
+
}
|
|
796
|
+
internalBinaryWrite(message, writer, options) {
|
|
797
|
+
/* com.daml.ledger.api.v2.TransactionFormat include_transactions = 1; */
|
|
798
|
+
if (message.includeTransactions)
|
|
799
|
+
TransactionFormat.internalBinaryWrite(message.includeTransactions, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
800
|
+
/* com.daml.ledger.api.v2.EventFormat include_reassignments = 2; */
|
|
801
|
+
if (message.includeReassignments)
|
|
802
|
+
EventFormat.internalBinaryWrite(message.includeReassignments, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
803
|
+
/* com.daml.ledger.api.v2.TopologyFormat include_topology_events = 3; */
|
|
804
|
+
if (message.includeTopologyEvents)
|
|
805
|
+
TopologyFormat.internalBinaryWrite(message.includeTopologyEvents, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
806
|
+
let u = options.writeUnknownFields;
|
|
807
|
+
if (u !== false)
|
|
808
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
809
|
+
return writer;
|
|
810
|
+
}
|
|
811
|
+
}
|
|
812
|
+
/**
|
|
813
|
+
* @generated MessageType for protobuf message com.daml.ledger.api.v2.UpdateFormat
|
|
814
|
+
*/
|
|
815
|
+
export const UpdateFormat = new UpdateFormat$Type();
|