@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,874 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter generate_dependencies
|
|
2
|
+
// @generated from protobuf file "com/daml/ledger/api/v2/state_service.proto" (package "com.daml.ledger.api.v2", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2025 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
|
|
6
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
7
|
+
//
|
|
8
|
+
import { ServiceType } from '@protobuf-ts/runtime-rpc';
|
|
9
|
+
import { WireType } from '@protobuf-ts/runtime';
|
|
10
|
+
import { UnknownFieldHandler } from '@protobuf-ts/runtime';
|
|
11
|
+
import { reflectionMergePartial } from '@protobuf-ts/runtime';
|
|
12
|
+
import { MessageType } from '@protobuf-ts/runtime';
|
|
13
|
+
import { AssignedEvent } from './reassignment.js';
|
|
14
|
+
import { UnassignedEvent } from './reassignment.js';
|
|
15
|
+
import { CreatedEvent } from './event.js';
|
|
16
|
+
import { EventFormat } from './transaction_filter.js';
|
|
17
|
+
import { TransactionFilter } from './transaction_filter.js';
|
|
18
|
+
/**
|
|
19
|
+
* Enum indicating the permission level that the participant has for the party
|
|
20
|
+
* whose connected synchronizers are being listed.
|
|
21
|
+
*
|
|
22
|
+
* @generated from protobuf enum com.daml.ledger.api.v2.ParticipantPermission
|
|
23
|
+
*/
|
|
24
|
+
export var ParticipantPermission;
|
|
25
|
+
(function (ParticipantPermission) {
|
|
26
|
+
/**
|
|
27
|
+
* @generated from protobuf enum value: PARTICIPANT_PERMISSION_UNSPECIFIED = 0;
|
|
28
|
+
*/
|
|
29
|
+
ParticipantPermission[ParticipantPermission["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
30
|
+
/**
|
|
31
|
+
* @generated from protobuf enum value: PARTICIPANT_PERMISSION_SUBMISSION = 1;
|
|
32
|
+
*/
|
|
33
|
+
ParticipantPermission[ParticipantPermission["SUBMISSION"] = 1] = "SUBMISSION";
|
|
34
|
+
/**
|
|
35
|
+
* participant can only confirm transactions
|
|
36
|
+
*
|
|
37
|
+
* @generated from protobuf enum value: PARTICIPANT_PERMISSION_CONFIRMATION = 2;
|
|
38
|
+
*/
|
|
39
|
+
ParticipantPermission[ParticipantPermission["CONFIRMATION"] = 2] = "CONFIRMATION";
|
|
40
|
+
/**
|
|
41
|
+
* participant can only observe transactions
|
|
42
|
+
*
|
|
43
|
+
* @generated from protobuf enum value: PARTICIPANT_PERMISSION_OBSERVATION = 3;
|
|
44
|
+
*/
|
|
45
|
+
ParticipantPermission[ParticipantPermission["OBSERVATION"] = 3] = "OBSERVATION";
|
|
46
|
+
})(ParticipantPermission || (ParticipantPermission = {}));
|
|
47
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
48
|
+
class GetActiveContractsRequest$Type extends MessageType {
|
|
49
|
+
constructor() {
|
|
50
|
+
super('com.daml.ledger.api.v2.GetActiveContractsRequest', [
|
|
51
|
+
{
|
|
52
|
+
no: 1,
|
|
53
|
+
name: 'filter',
|
|
54
|
+
kind: 'message',
|
|
55
|
+
T: () => TransactionFilter,
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
no: 2,
|
|
59
|
+
name: 'verbose',
|
|
60
|
+
kind: 'scalar',
|
|
61
|
+
T: 8 /*ScalarType.BOOL*/,
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
no: 3,
|
|
65
|
+
name: 'active_at_offset',
|
|
66
|
+
kind: 'scalar',
|
|
67
|
+
T: 3 /*ScalarType.INT64*/,
|
|
68
|
+
L: 0 /*LongType.BIGINT*/,
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
no: 4,
|
|
72
|
+
name: 'event_format',
|
|
73
|
+
kind: 'message',
|
|
74
|
+
T: () => EventFormat,
|
|
75
|
+
},
|
|
76
|
+
]);
|
|
77
|
+
}
|
|
78
|
+
create(value) {
|
|
79
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
80
|
+
message.verbose = false;
|
|
81
|
+
message.activeAtOffset = 0n;
|
|
82
|
+
if (value !== undefined)
|
|
83
|
+
reflectionMergePartial(this, message, value);
|
|
84
|
+
return message;
|
|
85
|
+
}
|
|
86
|
+
internalBinaryRead(reader, length, options, target) {
|
|
87
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
88
|
+
while (reader.pos < end) {
|
|
89
|
+
let [fieldNo, wireType] = reader.tag();
|
|
90
|
+
switch (fieldNo) {
|
|
91
|
+
case /* com.daml.ledger.api.v2.TransactionFilter filter */ 1:
|
|
92
|
+
message.filter = TransactionFilter.internalBinaryRead(reader, reader.uint32(), options, message.filter);
|
|
93
|
+
break;
|
|
94
|
+
case /* bool verbose */ 2:
|
|
95
|
+
message.verbose = reader.bool();
|
|
96
|
+
break;
|
|
97
|
+
case /* int64 active_at_offset */ 3:
|
|
98
|
+
message.activeAtOffset = reader.int64().toBigInt();
|
|
99
|
+
break;
|
|
100
|
+
case /* com.daml.ledger.api.v2.EventFormat event_format */ 4:
|
|
101
|
+
message.eventFormat = EventFormat.internalBinaryRead(reader, reader.uint32(), options, message.eventFormat);
|
|
102
|
+
break;
|
|
103
|
+
default:
|
|
104
|
+
let u = options.readUnknownField;
|
|
105
|
+
if (u === 'throw')
|
|
106
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
107
|
+
let d = reader.skip(wireType);
|
|
108
|
+
if (u !== false)
|
|
109
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
return message;
|
|
113
|
+
}
|
|
114
|
+
internalBinaryWrite(message, writer, options) {
|
|
115
|
+
/* com.daml.ledger.api.v2.TransactionFilter filter = 1; */
|
|
116
|
+
if (message.filter)
|
|
117
|
+
TransactionFilter.internalBinaryWrite(message.filter, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
118
|
+
/* bool verbose = 2; */
|
|
119
|
+
if (message.verbose !== false)
|
|
120
|
+
writer.tag(2, WireType.Varint).bool(message.verbose);
|
|
121
|
+
/* int64 active_at_offset = 3; */
|
|
122
|
+
if (message.activeAtOffset !== 0n)
|
|
123
|
+
writer.tag(3, WireType.Varint).int64(message.activeAtOffset);
|
|
124
|
+
/* com.daml.ledger.api.v2.EventFormat event_format = 4; */
|
|
125
|
+
if (message.eventFormat)
|
|
126
|
+
EventFormat.internalBinaryWrite(message.eventFormat, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
127
|
+
let u = options.writeUnknownFields;
|
|
128
|
+
if (u !== false)
|
|
129
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
130
|
+
return writer;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* @generated MessageType for protobuf message com.daml.ledger.api.v2.GetActiveContractsRequest
|
|
135
|
+
*/
|
|
136
|
+
export const GetActiveContractsRequest = new GetActiveContractsRequest$Type();
|
|
137
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
138
|
+
class GetActiveContractsResponse$Type extends MessageType {
|
|
139
|
+
constructor() {
|
|
140
|
+
super('com.daml.ledger.api.v2.GetActiveContractsResponse', [
|
|
141
|
+
{
|
|
142
|
+
no: 1,
|
|
143
|
+
name: 'workflow_id',
|
|
144
|
+
kind: 'scalar',
|
|
145
|
+
T: 9 /*ScalarType.STRING*/,
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
no: 2,
|
|
149
|
+
name: 'active_contract',
|
|
150
|
+
kind: 'message',
|
|
151
|
+
oneof: 'contractEntry',
|
|
152
|
+
T: () => ActiveContract,
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
no: 3,
|
|
156
|
+
name: 'incomplete_unassigned',
|
|
157
|
+
kind: 'message',
|
|
158
|
+
oneof: 'contractEntry',
|
|
159
|
+
T: () => IncompleteUnassigned,
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
no: 4,
|
|
163
|
+
name: 'incomplete_assigned',
|
|
164
|
+
kind: 'message',
|
|
165
|
+
oneof: 'contractEntry',
|
|
166
|
+
T: () => IncompleteAssigned,
|
|
167
|
+
},
|
|
168
|
+
]);
|
|
169
|
+
}
|
|
170
|
+
create(value) {
|
|
171
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
172
|
+
message.workflowId = '';
|
|
173
|
+
message.contractEntry = { oneofKind: undefined };
|
|
174
|
+
if (value !== undefined)
|
|
175
|
+
reflectionMergePartial(this, message, value);
|
|
176
|
+
return message;
|
|
177
|
+
}
|
|
178
|
+
internalBinaryRead(reader, length, options, target) {
|
|
179
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
180
|
+
while (reader.pos < end) {
|
|
181
|
+
let [fieldNo, wireType] = reader.tag();
|
|
182
|
+
switch (fieldNo) {
|
|
183
|
+
case /* string workflow_id */ 1:
|
|
184
|
+
message.workflowId = reader.string();
|
|
185
|
+
break;
|
|
186
|
+
case /* com.daml.ledger.api.v2.ActiveContract active_contract */ 2:
|
|
187
|
+
message.contractEntry = {
|
|
188
|
+
oneofKind: 'activeContract',
|
|
189
|
+
activeContract: ActiveContract.internalBinaryRead(reader, reader.uint32(), options, message.contractEntry.activeContract),
|
|
190
|
+
};
|
|
191
|
+
break;
|
|
192
|
+
case /* com.daml.ledger.api.v2.IncompleteUnassigned incomplete_unassigned */ 3:
|
|
193
|
+
message.contractEntry = {
|
|
194
|
+
oneofKind: 'incompleteUnassigned',
|
|
195
|
+
incompleteUnassigned: IncompleteUnassigned.internalBinaryRead(reader, reader.uint32(), options, message.contractEntry
|
|
196
|
+
.incompleteUnassigned),
|
|
197
|
+
};
|
|
198
|
+
break;
|
|
199
|
+
case /* com.daml.ledger.api.v2.IncompleteAssigned incomplete_assigned */ 4:
|
|
200
|
+
message.contractEntry = {
|
|
201
|
+
oneofKind: 'incompleteAssigned',
|
|
202
|
+
incompleteAssigned: IncompleteAssigned.internalBinaryRead(reader, reader.uint32(), options, message.contractEntry
|
|
203
|
+
.incompleteAssigned),
|
|
204
|
+
};
|
|
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
|
+
/* string workflow_id = 1; */
|
|
219
|
+
if (message.workflowId !== '')
|
|
220
|
+
writer.tag(1, WireType.LengthDelimited).string(message.workflowId);
|
|
221
|
+
/* com.daml.ledger.api.v2.ActiveContract active_contract = 2; */
|
|
222
|
+
if (message.contractEntry.oneofKind === 'activeContract')
|
|
223
|
+
ActiveContract.internalBinaryWrite(message.contractEntry.activeContract, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
224
|
+
/* com.daml.ledger.api.v2.IncompleteUnassigned incomplete_unassigned = 3; */
|
|
225
|
+
if (message.contractEntry.oneofKind === 'incompleteUnassigned')
|
|
226
|
+
IncompleteUnassigned.internalBinaryWrite(message.contractEntry.incompleteUnassigned, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
227
|
+
/* com.daml.ledger.api.v2.IncompleteAssigned incomplete_assigned = 4; */
|
|
228
|
+
if (message.contractEntry.oneofKind === 'incompleteAssigned')
|
|
229
|
+
IncompleteAssigned.internalBinaryWrite(message.contractEntry.incompleteAssigned, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
230
|
+
let u = options.writeUnknownFields;
|
|
231
|
+
if (u !== false)
|
|
232
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
233
|
+
return writer;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
/**
|
|
237
|
+
* @generated MessageType for protobuf message com.daml.ledger.api.v2.GetActiveContractsResponse
|
|
238
|
+
*/
|
|
239
|
+
export const GetActiveContractsResponse = new GetActiveContractsResponse$Type();
|
|
240
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
241
|
+
class ActiveContract$Type extends MessageType {
|
|
242
|
+
constructor() {
|
|
243
|
+
super('com.daml.ledger.api.v2.ActiveContract', [
|
|
244
|
+
{
|
|
245
|
+
no: 1,
|
|
246
|
+
name: 'created_event',
|
|
247
|
+
kind: 'message',
|
|
248
|
+
T: () => CreatedEvent,
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
no: 2,
|
|
252
|
+
name: 'synchronizer_id',
|
|
253
|
+
kind: 'scalar',
|
|
254
|
+
T: 9 /*ScalarType.STRING*/,
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
no: 3,
|
|
258
|
+
name: 'reassignment_counter',
|
|
259
|
+
kind: 'scalar',
|
|
260
|
+
T: 4 /*ScalarType.UINT64*/,
|
|
261
|
+
L: 0 /*LongType.BIGINT*/,
|
|
262
|
+
},
|
|
263
|
+
]);
|
|
264
|
+
}
|
|
265
|
+
create(value) {
|
|
266
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
267
|
+
message.synchronizerId = '';
|
|
268
|
+
message.reassignmentCounter = 0n;
|
|
269
|
+
if (value !== undefined)
|
|
270
|
+
reflectionMergePartial(this, message, value);
|
|
271
|
+
return message;
|
|
272
|
+
}
|
|
273
|
+
internalBinaryRead(reader, length, options, target) {
|
|
274
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
275
|
+
while (reader.pos < end) {
|
|
276
|
+
let [fieldNo, wireType] = reader.tag();
|
|
277
|
+
switch (fieldNo) {
|
|
278
|
+
case /* com.daml.ledger.api.v2.CreatedEvent created_event */ 1:
|
|
279
|
+
message.createdEvent = CreatedEvent.internalBinaryRead(reader, reader.uint32(), options, message.createdEvent);
|
|
280
|
+
break;
|
|
281
|
+
case /* string synchronizer_id */ 2:
|
|
282
|
+
message.synchronizerId = reader.string();
|
|
283
|
+
break;
|
|
284
|
+
case /* uint64 reassignment_counter */ 3:
|
|
285
|
+
message.reassignmentCounter = reader.uint64().toBigInt();
|
|
286
|
+
break;
|
|
287
|
+
default:
|
|
288
|
+
let u = options.readUnknownField;
|
|
289
|
+
if (u === 'throw')
|
|
290
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
291
|
+
let d = reader.skip(wireType);
|
|
292
|
+
if (u !== false)
|
|
293
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
return message;
|
|
297
|
+
}
|
|
298
|
+
internalBinaryWrite(message, writer, options) {
|
|
299
|
+
/* com.daml.ledger.api.v2.CreatedEvent created_event = 1; */
|
|
300
|
+
if (message.createdEvent)
|
|
301
|
+
CreatedEvent.internalBinaryWrite(message.createdEvent, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
302
|
+
/* string synchronizer_id = 2; */
|
|
303
|
+
if (message.synchronizerId !== '')
|
|
304
|
+
writer
|
|
305
|
+
.tag(2, WireType.LengthDelimited)
|
|
306
|
+
.string(message.synchronizerId);
|
|
307
|
+
/* uint64 reassignment_counter = 3; */
|
|
308
|
+
if (message.reassignmentCounter !== 0n)
|
|
309
|
+
writer.tag(3, WireType.Varint).uint64(message.reassignmentCounter);
|
|
310
|
+
let u = options.writeUnknownFields;
|
|
311
|
+
if (u !== false)
|
|
312
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
313
|
+
return writer;
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
/**
|
|
317
|
+
* @generated MessageType for protobuf message com.daml.ledger.api.v2.ActiveContract
|
|
318
|
+
*/
|
|
319
|
+
export const ActiveContract = new ActiveContract$Type();
|
|
320
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
321
|
+
class IncompleteUnassigned$Type extends MessageType {
|
|
322
|
+
constructor() {
|
|
323
|
+
super('com.daml.ledger.api.v2.IncompleteUnassigned', [
|
|
324
|
+
{
|
|
325
|
+
no: 1,
|
|
326
|
+
name: 'created_event',
|
|
327
|
+
kind: 'message',
|
|
328
|
+
T: () => CreatedEvent,
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
no: 2,
|
|
332
|
+
name: 'unassigned_event',
|
|
333
|
+
kind: 'message',
|
|
334
|
+
T: () => UnassignedEvent,
|
|
335
|
+
},
|
|
336
|
+
]);
|
|
337
|
+
}
|
|
338
|
+
create(value) {
|
|
339
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
340
|
+
if (value !== undefined)
|
|
341
|
+
reflectionMergePartial(this, message, value);
|
|
342
|
+
return message;
|
|
343
|
+
}
|
|
344
|
+
internalBinaryRead(reader, length, options, target) {
|
|
345
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
346
|
+
while (reader.pos < end) {
|
|
347
|
+
let [fieldNo, wireType] = reader.tag();
|
|
348
|
+
switch (fieldNo) {
|
|
349
|
+
case /* com.daml.ledger.api.v2.CreatedEvent created_event */ 1:
|
|
350
|
+
message.createdEvent = CreatedEvent.internalBinaryRead(reader, reader.uint32(), options, message.createdEvent);
|
|
351
|
+
break;
|
|
352
|
+
case /* com.daml.ledger.api.v2.UnassignedEvent unassigned_event */ 2:
|
|
353
|
+
message.unassignedEvent =
|
|
354
|
+
UnassignedEvent.internalBinaryRead(reader, reader.uint32(), options, message.unassignedEvent);
|
|
355
|
+
break;
|
|
356
|
+
default:
|
|
357
|
+
let u = options.readUnknownField;
|
|
358
|
+
if (u === 'throw')
|
|
359
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
360
|
+
let d = reader.skip(wireType);
|
|
361
|
+
if (u !== false)
|
|
362
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
return message;
|
|
366
|
+
}
|
|
367
|
+
internalBinaryWrite(message, writer, options) {
|
|
368
|
+
/* com.daml.ledger.api.v2.CreatedEvent created_event = 1; */
|
|
369
|
+
if (message.createdEvent)
|
|
370
|
+
CreatedEvent.internalBinaryWrite(message.createdEvent, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
371
|
+
/* com.daml.ledger.api.v2.UnassignedEvent unassigned_event = 2; */
|
|
372
|
+
if (message.unassignedEvent)
|
|
373
|
+
UnassignedEvent.internalBinaryWrite(message.unassignedEvent, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
374
|
+
let u = options.writeUnknownFields;
|
|
375
|
+
if (u !== false)
|
|
376
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
377
|
+
return writer;
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
/**
|
|
381
|
+
* @generated MessageType for protobuf message com.daml.ledger.api.v2.IncompleteUnassigned
|
|
382
|
+
*/
|
|
383
|
+
export const IncompleteUnassigned = new IncompleteUnassigned$Type();
|
|
384
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
385
|
+
class IncompleteAssigned$Type extends MessageType {
|
|
386
|
+
constructor() {
|
|
387
|
+
super('com.daml.ledger.api.v2.IncompleteAssigned', [
|
|
388
|
+
{
|
|
389
|
+
no: 1,
|
|
390
|
+
name: 'assigned_event',
|
|
391
|
+
kind: 'message',
|
|
392
|
+
T: () => AssignedEvent,
|
|
393
|
+
},
|
|
394
|
+
]);
|
|
395
|
+
}
|
|
396
|
+
create(value) {
|
|
397
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
398
|
+
if (value !== undefined)
|
|
399
|
+
reflectionMergePartial(this, message, value);
|
|
400
|
+
return message;
|
|
401
|
+
}
|
|
402
|
+
internalBinaryRead(reader, length, options, target) {
|
|
403
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
404
|
+
while (reader.pos < end) {
|
|
405
|
+
let [fieldNo, wireType] = reader.tag();
|
|
406
|
+
switch (fieldNo) {
|
|
407
|
+
case /* com.daml.ledger.api.v2.AssignedEvent assigned_event */ 1:
|
|
408
|
+
message.assignedEvent = AssignedEvent.internalBinaryRead(reader, reader.uint32(), options, message.assignedEvent);
|
|
409
|
+
break;
|
|
410
|
+
default:
|
|
411
|
+
let u = options.readUnknownField;
|
|
412
|
+
if (u === 'throw')
|
|
413
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
414
|
+
let d = reader.skip(wireType);
|
|
415
|
+
if (u !== false)
|
|
416
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
return message;
|
|
420
|
+
}
|
|
421
|
+
internalBinaryWrite(message, writer, options) {
|
|
422
|
+
/* com.daml.ledger.api.v2.AssignedEvent assigned_event = 1; */
|
|
423
|
+
if (message.assignedEvent)
|
|
424
|
+
AssignedEvent.internalBinaryWrite(message.assignedEvent, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
425
|
+
let u = options.writeUnknownFields;
|
|
426
|
+
if (u !== false)
|
|
427
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
428
|
+
return writer;
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
/**
|
|
432
|
+
* @generated MessageType for protobuf message com.daml.ledger.api.v2.IncompleteAssigned
|
|
433
|
+
*/
|
|
434
|
+
export const IncompleteAssigned = new IncompleteAssigned$Type();
|
|
435
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
436
|
+
class GetConnectedSynchronizersRequest$Type extends MessageType {
|
|
437
|
+
constructor() {
|
|
438
|
+
super('com.daml.ledger.api.v2.GetConnectedSynchronizersRequest', [
|
|
439
|
+
{
|
|
440
|
+
no: 1,
|
|
441
|
+
name: 'party',
|
|
442
|
+
kind: 'scalar',
|
|
443
|
+
T: 9 /*ScalarType.STRING*/,
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
no: 2,
|
|
447
|
+
name: 'participant_id',
|
|
448
|
+
kind: 'scalar',
|
|
449
|
+
T: 9 /*ScalarType.STRING*/,
|
|
450
|
+
},
|
|
451
|
+
]);
|
|
452
|
+
}
|
|
453
|
+
create(value) {
|
|
454
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
455
|
+
message.party = '';
|
|
456
|
+
message.participantId = '';
|
|
457
|
+
if (value !== undefined)
|
|
458
|
+
reflectionMergePartial(this, message, value);
|
|
459
|
+
return message;
|
|
460
|
+
}
|
|
461
|
+
internalBinaryRead(reader, length, options, target) {
|
|
462
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
463
|
+
while (reader.pos < end) {
|
|
464
|
+
let [fieldNo, wireType] = reader.tag();
|
|
465
|
+
switch (fieldNo) {
|
|
466
|
+
case /* string party */ 1:
|
|
467
|
+
message.party = reader.string();
|
|
468
|
+
break;
|
|
469
|
+
case /* string participant_id */ 2:
|
|
470
|
+
message.participantId = reader.string();
|
|
471
|
+
break;
|
|
472
|
+
default:
|
|
473
|
+
let u = options.readUnknownField;
|
|
474
|
+
if (u === 'throw')
|
|
475
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
476
|
+
let d = reader.skip(wireType);
|
|
477
|
+
if (u !== false)
|
|
478
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
return message;
|
|
482
|
+
}
|
|
483
|
+
internalBinaryWrite(message, writer, options) {
|
|
484
|
+
/* string party = 1; */
|
|
485
|
+
if (message.party !== '')
|
|
486
|
+
writer.tag(1, WireType.LengthDelimited).string(message.party);
|
|
487
|
+
/* string participant_id = 2; */
|
|
488
|
+
if (message.participantId !== '')
|
|
489
|
+
writer
|
|
490
|
+
.tag(2, WireType.LengthDelimited)
|
|
491
|
+
.string(message.participantId);
|
|
492
|
+
let u = options.writeUnknownFields;
|
|
493
|
+
if (u !== false)
|
|
494
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
495
|
+
return writer;
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
/**
|
|
499
|
+
* @generated MessageType for protobuf message com.daml.ledger.api.v2.GetConnectedSynchronizersRequest
|
|
500
|
+
*/
|
|
501
|
+
export const GetConnectedSynchronizersRequest = new GetConnectedSynchronizersRequest$Type();
|
|
502
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
503
|
+
class GetConnectedSynchronizersResponse$Type extends MessageType {
|
|
504
|
+
constructor() {
|
|
505
|
+
super('com.daml.ledger.api.v2.GetConnectedSynchronizersResponse', [
|
|
506
|
+
{
|
|
507
|
+
no: 1,
|
|
508
|
+
name: 'connected_synchronizers',
|
|
509
|
+
kind: 'message',
|
|
510
|
+
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
511
|
+
T: () => GetConnectedSynchronizersResponse_ConnectedSynchronizer,
|
|
512
|
+
},
|
|
513
|
+
]);
|
|
514
|
+
}
|
|
515
|
+
create(value) {
|
|
516
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
517
|
+
message.connectedSynchronizers = [];
|
|
518
|
+
if (value !== undefined)
|
|
519
|
+
reflectionMergePartial(this, message, value);
|
|
520
|
+
return message;
|
|
521
|
+
}
|
|
522
|
+
internalBinaryRead(reader, length, options, target) {
|
|
523
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
524
|
+
while (reader.pos < end) {
|
|
525
|
+
let [fieldNo, wireType] = reader.tag();
|
|
526
|
+
switch (fieldNo) {
|
|
527
|
+
case /* repeated com.daml.ledger.api.v2.GetConnectedSynchronizersResponse.ConnectedSynchronizer connected_synchronizers */ 1:
|
|
528
|
+
message.connectedSynchronizers.push(GetConnectedSynchronizersResponse_ConnectedSynchronizer.internalBinaryRead(reader, reader.uint32(), options));
|
|
529
|
+
break;
|
|
530
|
+
default:
|
|
531
|
+
let u = options.readUnknownField;
|
|
532
|
+
if (u === 'throw')
|
|
533
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
534
|
+
let d = reader.skip(wireType);
|
|
535
|
+
if (u !== false)
|
|
536
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
return message;
|
|
540
|
+
}
|
|
541
|
+
internalBinaryWrite(message, writer, options) {
|
|
542
|
+
/* repeated com.daml.ledger.api.v2.GetConnectedSynchronizersResponse.ConnectedSynchronizer connected_synchronizers = 1; */
|
|
543
|
+
for (let i = 0; i < message.connectedSynchronizers.length; i++)
|
|
544
|
+
GetConnectedSynchronizersResponse_ConnectedSynchronizer.internalBinaryWrite(message.connectedSynchronizers[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
545
|
+
let u = options.writeUnknownFields;
|
|
546
|
+
if (u !== false)
|
|
547
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
548
|
+
return writer;
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
/**
|
|
552
|
+
* @generated MessageType for protobuf message com.daml.ledger.api.v2.GetConnectedSynchronizersResponse
|
|
553
|
+
*/
|
|
554
|
+
export const GetConnectedSynchronizersResponse = new GetConnectedSynchronizersResponse$Type();
|
|
555
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
556
|
+
class GetConnectedSynchronizersResponse_ConnectedSynchronizer$Type extends MessageType {
|
|
557
|
+
constructor() {
|
|
558
|
+
super('com.daml.ledger.api.v2.GetConnectedSynchronizersResponse.ConnectedSynchronizer', [
|
|
559
|
+
{
|
|
560
|
+
no: 1,
|
|
561
|
+
name: 'synchronizer_alias',
|
|
562
|
+
kind: 'scalar',
|
|
563
|
+
T: 9 /*ScalarType.STRING*/,
|
|
564
|
+
},
|
|
565
|
+
{
|
|
566
|
+
no: 2,
|
|
567
|
+
name: 'synchronizer_id',
|
|
568
|
+
kind: 'scalar',
|
|
569
|
+
T: 9 /*ScalarType.STRING*/,
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
no: 3,
|
|
573
|
+
name: 'permission',
|
|
574
|
+
kind: 'enum',
|
|
575
|
+
T: () => [
|
|
576
|
+
'com.daml.ledger.api.v2.ParticipantPermission',
|
|
577
|
+
ParticipantPermission,
|
|
578
|
+
'PARTICIPANT_PERMISSION_',
|
|
579
|
+
],
|
|
580
|
+
},
|
|
581
|
+
]);
|
|
582
|
+
}
|
|
583
|
+
create(value) {
|
|
584
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
585
|
+
message.synchronizerAlias = '';
|
|
586
|
+
message.synchronizerId = '';
|
|
587
|
+
message.permission = 0;
|
|
588
|
+
if (value !== undefined)
|
|
589
|
+
reflectionMergePartial(this, message, value);
|
|
590
|
+
return message;
|
|
591
|
+
}
|
|
592
|
+
internalBinaryRead(reader, length, options, target) {
|
|
593
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
594
|
+
while (reader.pos < end) {
|
|
595
|
+
let [fieldNo, wireType] = reader.tag();
|
|
596
|
+
switch (fieldNo) {
|
|
597
|
+
case /* string synchronizer_alias */ 1:
|
|
598
|
+
message.synchronizerAlias = reader.string();
|
|
599
|
+
break;
|
|
600
|
+
case /* string synchronizer_id */ 2:
|
|
601
|
+
message.synchronizerId = reader.string();
|
|
602
|
+
break;
|
|
603
|
+
case /* com.daml.ledger.api.v2.ParticipantPermission permission */ 3:
|
|
604
|
+
message.permission = reader.int32();
|
|
605
|
+
break;
|
|
606
|
+
default:
|
|
607
|
+
let u = options.readUnknownField;
|
|
608
|
+
if (u === 'throw')
|
|
609
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
610
|
+
let d = reader.skip(wireType);
|
|
611
|
+
if (u !== false)
|
|
612
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
return message;
|
|
616
|
+
}
|
|
617
|
+
internalBinaryWrite(message, writer, options) {
|
|
618
|
+
/* string synchronizer_alias = 1; */
|
|
619
|
+
if (message.synchronizerAlias !== '')
|
|
620
|
+
writer
|
|
621
|
+
.tag(1, WireType.LengthDelimited)
|
|
622
|
+
.string(message.synchronizerAlias);
|
|
623
|
+
/* string synchronizer_id = 2; */
|
|
624
|
+
if (message.synchronizerId !== '')
|
|
625
|
+
writer
|
|
626
|
+
.tag(2, WireType.LengthDelimited)
|
|
627
|
+
.string(message.synchronizerId);
|
|
628
|
+
/* com.daml.ledger.api.v2.ParticipantPermission permission = 3; */
|
|
629
|
+
if (message.permission !== 0)
|
|
630
|
+
writer.tag(3, WireType.Varint).int32(message.permission);
|
|
631
|
+
let u = options.writeUnknownFields;
|
|
632
|
+
if (u !== false)
|
|
633
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
634
|
+
return writer;
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
/**
|
|
638
|
+
* @generated MessageType for protobuf message com.daml.ledger.api.v2.GetConnectedSynchronizersResponse.ConnectedSynchronizer
|
|
639
|
+
*/
|
|
640
|
+
export const GetConnectedSynchronizersResponse_ConnectedSynchronizer = new GetConnectedSynchronizersResponse_ConnectedSynchronizer$Type();
|
|
641
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
642
|
+
class GetLedgerEndRequest$Type extends MessageType {
|
|
643
|
+
constructor() {
|
|
644
|
+
super('com.daml.ledger.api.v2.GetLedgerEndRequest', []);
|
|
645
|
+
}
|
|
646
|
+
create(value) {
|
|
647
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
648
|
+
if (value !== undefined)
|
|
649
|
+
reflectionMergePartial(this, message, value);
|
|
650
|
+
return message;
|
|
651
|
+
}
|
|
652
|
+
internalBinaryRead(reader, length, options, target) {
|
|
653
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
654
|
+
while (reader.pos < end) {
|
|
655
|
+
let [fieldNo, wireType] = reader.tag();
|
|
656
|
+
switch (fieldNo) {
|
|
657
|
+
default:
|
|
658
|
+
let u = options.readUnknownField;
|
|
659
|
+
if (u === 'throw')
|
|
660
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
661
|
+
let d = reader.skip(wireType);
|
|
662
|
+
if (u !== false)
|
|
663
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
return message;
|
|
667
|
+
}
|
|
668
|
+
internalBinaryWrite(message, writer, options) {
|
|
669
|
+
let u = options.writeUnknownFields;
|
|
670
|
+
if (u !== false)
|
|
671
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
672
|
+
return writer;
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
/**
|
|
676
|
+
* @generated MessageType for protobuf message com.daml.ledger.api.v2.GetLedgerEndRequest
|
|
677
|
+
*/
|
|
678
|
+
export const GetLedgerEndRequest = new GetLedgerEndRequest$Type();
|
|
679
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
680
|
+
class GetLedgerEndResponse$Type extends MessageType {
|
|
681
|
+
constructor() {
|
|
682
|
+
super('com.daml.ledger.api.v2.GetLedgerEndResponse', [
|
|
683
|
+
{
|
|
684
|
+
no: 1,
|
|
685
|
+
name: 'offset',
|
|
686
|
+
kind: 'scalar',
|
|
687
|
+
T: 3 /*ScalarType.INT64*/,
|
|
688
|
+
L: 0 /*LongType.BIGINT*/,
|
|
689
|
+
},
|
|
690
|
+
]);
|
|
691
|
+
}
|
|
692
|
+
create(value) {
|
|
693
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
694
|
+
message.offset = 0n;
|
|
695
|
+
if (value !== undefined)
|
|
696
|
+
reflectionMergePartial(this, message, value);
|
|
697
|
+
return message;
|
|
698
|
+
}
|
|
699
|
+
internalBinaryRead(reader, length, options, target) {
|
|
700
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
701
|
+
while (reader.pos < end) {
|
|
702
|
+
let [fieldNo, wireType] = reader.tag();
|
|
703
|
+
switch (fieldNo) {
|
|
704
|
+
case /* int64 offset */ 1:
|
|
705
|
+
message.offset = reader.int64().toBigInt();
|
|
706
|
+
break;
|
|
707
|
+
default:
|
|
708
|
+
let u = options.readUnknownField;
|
|
709
|
+
if (u === 'throw')
|
|
710
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
711
|
+
let d = reader.skip(wireType);
|
|
712
|
+
if (u !== false)
|
|
713
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
714
|
+
}
|
|
715
|
+
}
|
|
716
|
+
return message;
|
|
717
|
+
}
|
|
718
|
+
internalBinaryWrite(message, writer, options) {
|
|
719
|
+
/* int64 offset = 1; */
|
|
720
|
+
if (message.offset !== 0n)
|
|
721
|
+
writer.tag(1, WireType.Varint).int64(message.offset);
|
|
722
|
+
let u = options.writeUnknownFields;
|
|
723
|
+
if (u !== false)
|
|
724
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
725
|
+
return writer;
|
|
726
|
+
}
|
|
727
|
+
}
|
|
728
|
+
/**
|
|
729
|
+
* @generated MessageType for protobuf message com.daml.ledger.api.v2.GetLedgerEndResponse
|
|
730
|
+
*/
|
|
731
|
+
export const GetLedgerEndResponse = new GetLedgerEndResponse$Type();
|
|
732
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
733
|
+
class GetLatestPrunedOffsetsRequest$Type extends MessageType {
|
|
734
|
+
constructor() {
|
|
735
|
+
super('com.daml.ledger.api.v2.GetLatestPrunedOffsetsRequest', []);
|
|
736
|
+
}
|
|
737
|
+
create(value) {
|
|
738
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
739
|
+
if (value !== undefined)
|
|
740
|
+
reflectionMergePartial(this, message, value);
|
|
741
|
+
return message;
|
|
742
|
+
}
|
|
743
|
+
internalBinaryRead(reader, length, options, target) {
|
|
744
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
745
|
+
while (reader.pos < end) {
|
|
746
|
+
let [fieldNo, wireType] = reader.tag();
|
|
747
|
+
switch (fieldNo) {
|
|
748
|
+
default:
|
|
749
|
+
let u = options.readUnknownField;
|
|
750
|
+
if (u === 'throw')
|
|
751
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
752
|
+
let d = reader.skip(wireType);
|
|
753
|
+
if (u !== false)
|
|
754
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
return message;
|
|
758
|
+
}
|
|
759
|
+
internalBinaryWrite(message, writer, options) {
|
|
760
|
+
let u = options.writeUnknownFields;
|
|
761
|
+
if (u !== false)
|
|
762
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
763
|
+
return writer;
|
|
764
|
+
}
|
|
765
|
+
}
|
|
766
|
+
/**
|
|
767
|
+
* @generated MessageType for protobuf message com.daml.ledger.api.v2.GetLatestPrunedOffsetsRequest
|
|
768
|
+
*/
|
|
769
|
+
export const GetLatestPrunedOffsetsRequest = new GetLatestPrunedOffsetsRequest$Type();
|
|
770
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
771
|
+
class GetLatestPrunedOffsetsResponse$Type extends MessageType {
|
|
772
|
+
constructor() {
|
|
773
|
+
super('com.daml.ledger.api.v2.GetLatestPrunedOffsetsResponse', [
|
|
774
|
+
{
|
|
775
|
+
no: 1,
|
|
776
|
+
name: 'participant_pruned_up_to_inclusive',
|
|
777
|
+
kind: 'scalar',
|
|
778
|
+
T: 3 /*ScalarType.INT64*/,
|
|
779
|
+
L: 0 /*LongType.BIGINT*/,
|
|
780
|
+
},
|
|
781
|
+
{
|
|
782
|
+
no: 2,
|
|
783
|
+
name: 'all_divulged_contracts_pruned_up_to_inclusive',
|
|
784
|
+
kind: 'scalar',
|
|
785
|
+
T: 3 /*ScalarType.INT64*/,
|
|
786
|
+
L: 0 /*LongType.BIGINT*/,
|
|
787
|
+
},
|
|
788
|
+
]);
|
|
789
|
+
}
|
|
790
|
+
create(value) {
|
|
791
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
792
|
+
message.participantPrunedUpToInclusive = 0n;
|
|
793
|
+
message.allDivulgedContractsPrunedUpToInclusive = 0n;
|
|
794
|
+
if (value !== undefined)
|
|
795
|
+
reflectionMergePartial(this, message, value);
|
|
796
|
+
return message;
|
|
797
|
+
}
|
|
798
|
+
internalBinaryRead(reader, length, options, target) {
|
|
799
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
800
|
+
while (reader.pos < end) {
|
|
801
|
+
let [fieldNo, wireType] = reader.tag();
|
|
802
|
+
switch (fieldNo) {
|
|
803
|
+
case /* int64 participant_pruned_up_to_inclusive */ 1:
|
|
804
|
+
message.participantPrunedUpToInclusive = reader
|
|
805
|
+
.int64()
|
|
806
|
+
.toBigInt();
|
|
807
|
+
break;
|
|
808
|
+
case /* int64 all_divulged_contracts_pruned_up_to_inclusive */ 2:
|
|
809
|
+
message.allDivulgedContractsPrunedUpToInclusive = reader
|
|
810
|
+
.int64()
|
|
811
|
+
.toBigInt();
|
|
812
|
+
break;
|
|
813
|
+
default:
|
|
814
|
+
let u = options.readUnknownField;
|
|
815
|
+
if (u === 'throw')
|
|
816
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
817
|
+
let d = reader.skip(wireType);
|
|
818
|
+
if (u !== false)
|
|
819
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
820
|
+
}
|
|
821
|
+
}
|
|
822
|
+
return message;
|
|
823
|
+
}
|
|
824
|
+
internalBinaryWrite(message, writer, options) {
|
|
825
|
+
/* int64 participant_pruned_up_to_inclusive = 1; */
|
|
826
|
+
if (message.participantPrunedUpToInclusive !== 0n)
|
|
827
|
+
writer
|
|
828
|
+
.tag(1, WireType.Varint)
|
|
829
|
+
.int64(message.participantPrunedUpToInclusive);
|
|
830
|
+
/* int64 all_divulged_contracts_pruned_up_to_inclusive = 2; */
|
|
831
|
+
if (message.allDivulgedContractsPrunedUpToInclusive !== 0n)
|
|
832
|
+
writer
|
|
833
|
+
.tag(2, WireType.Varint)
|
|
834
|
+
.int64(message.allDivulgedContractsPrunedUpToInclusive);
|
|
835
|
+
let u = options.writeUnknownFields;
|
|
836
|
+
if (u !== false)
|
|
837
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
838
|
+
return writer;
|
|
839
|
+
}
|
|
840
|
+
}
|
|
841
|
+
/**
|
|
842
|
+
* @generated MessageType for protobuf message com.daml.ledger.api.v2.GetLatestPrunedOffsetsResponse
|
|
843
|
+
*/
|
|
844
|
+
export const GetLatestPrunedOffsetsResponse = new GetLatestPrunedOffsetsResponse$Type();
|
|
845
|
+
/**
|
|
846
|
+
* @generated ServiceType for protobuf service com.daml.ledger.api.v2.StateService
|
|
847
|
+
*/
|
|
848
|
+
export const StateService = new ServiceType('com.daml.ledger.api.v2.StateService', [
|
|
849
|
+
{
|
|
850
|
+
name: 'GetActiveContracts',
|
|
851
|
+
serverStreaming: true,
|
|
852
|
+
options: {},
|
|
853
|
+
I: GetActiveContractsRequest,
|
|
854
|
+
O: GetActiveContractsResponse,
|
|
855
|
+
},
|
|
856
|
+
{
|
|
857
|
+
name: 'GetConnectedSynchronizers',
|
|
858
|
+
options: {},
|
|
859
|
+
I: GetConnectedSynchronizersRequest,
|
|
860
|
+
O: GetConnectedSynchronizersResponse,
|
|
861
|
+
},
|
|
862
|
+
{
|
|
863
|
+
name: 'GetLedgerEnd',
|
|
864
|
+
options: {},
|
|
865
|
+
I: GetLedgerEndRequest,
|
|
866
|
+
O: GetLedgerEndResponse,
|
|
867
|
+
},
|
|
868
|
+
{
|
|
869
|
+
name: 'GetLatestPrunedOffsets',
|
|
870
|
+
options: {},
|
|
871
|
+
I: GetLatestPrunedOffsetsRequest,
|
|
872
|
+
O: GetLatestPrunedOffsetsResponse,
|
|
873
|
+
},
|
|
874
|
+
]);
|