@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,395 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter generate_dependencies
|
|
2
|
+
// @generated from protobuf file "com/daml/ledger/api/v2/package_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
|
+
/**
|
|
14
|
+
* @generated from protobuf enum com.daml.ledger.api.v2.PackageStatus
|
|
15
|
+
*/
|
|
16
|
+
export var PackageStatus;
|
|
17
|
+
(function (PackageStatus) {
|
|
18
|
+
/**
|
|
19
|
+
* The server is not aware of such a package.
|
|
20
|
+
*
|
|
21
|
+
* @generated from protobuf enum value: PACKAGE_STATUS_UNSPECIFIED = 0;
|
|
22
|
+
*/
|
|
23
|
+
PackageStatus[PackageStatus["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
24
|
+
/**
|
|
25
|
+
* The server is able to execute Daml commands operating on this package.
|
|
26
|
+
*
|
|
27
|
+
* @generated from protobuf enum value: PACKAGE_STATUS_REGISTERED = 1;
|
|
28
|
+
*/
|
|
29
|
+
PackageStatus[PackageStatus["REGISTERED"] = 1] = "REGISTERED";
|
|
30
|
+
})(PackageStatus || (PackageStatus = {}));
|
|
31
|
+
/**
|
|
32
|
+
* @generated from protobuf enum com.daml.ledger.api.v2.HashFunction
|
|
33
|
+
*/
|
|
34
|
+
export var HashFunction;
|
|
35
|
+
(function (HashFunction) {
|
|
36
|
+
/**
|
|
37
|
+
* @generated from protobuf enum value: HASH_FUNCTION_SHA256 = 0;
|
|
38
|
+
*/
|
|
39
|
+
HashFunction[HashFunction["SHA256"] = 0] = "SHA256";
|
|
40
|
+
})(HashFunction || (HashFunction = {}));
|
|
41
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
42
|
+
class ListPackagesResponse$Type extends MessageType {
|
|
43
|
+
constructor() {
|
|
44
|
+
super('com.daml.ledger.api.v2.ListPackagesResponse', [
|
|
45
|
+
{
|
|
46
|
+
no: 1,
|
|
47
|
+
name: 'package_ids',
|
|
48
|
+
kind: 'scalar',
|
|
49
|
+
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
50
|
+
T: 9 /*ScalarType.STRING*/,
|
|
51
|
+
},
|
|
52
|
+
]);
|
|
53
|
+
}
|
|
54
|
+
create(value) {
|
|
55
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
56
|
+
message.packageIds = [];
|
|
57
|
+
if (value !== undefined)
|
|
58
|
+
reflectionMergePartial(this, message, value);
|
|
59
|
+
return message;
|
|
60
|
+
}
|
|
61
|
+
internalBinaryRead(reader, length, options, target) {
|
|
62
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
63
|
+
while (reader.pos < end) {
|
|
64
|
+
let [fieldNo, wireType] = reader.tag();
|
|
65
|
+
switch (fieldNo) {
|
|
66
|
+
case /* repeated string package_ids */ 1:
|
|
67
|
+
message.packageIds.push(reader.string());
|
|
68
|
+
break;
|
|
69
|
+
default:
|
|
70
|
+
let u = options.readUnknownField;
|
|
71
|
+
if (u === 'throw')
|
|
72
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
73
|
+
let d = reader.skip(wireType);
|
|
74
|
+
if (u !== false)
|
|
75
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
return message;
|
|
79
|
+
}
|
|
80
|
+
internalBinaryWrite(message, writer, options) {
|
|
81
|
+
/* repeated string package_ids = 1; */
|
|
82
|
+
for (let i = 0; i < message.packageIds.length; i++)
|
|
83
|
+
writer
|
|
84
|
+
.tag(1, WireType.LengthDelimited)
|
|
85
|
+
.string(message.packageIds[i]);
|
|
86
|
+
let u = options.writeUnknownFields;
|
|
87
|
+
if (u !== false)
|
|
88
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
89
|
+
return writer;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* @generated MessageType for protobuf message com.daml.ledger.api.v2.ListPackagesResponse
|
|
94
|
+
*/
|
|
95
|
+
export const ListPackagesResponse = new ListPackagesResponse$Type();
|
|
96
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
97
|
+
class GetPackageResponse$Type extends MessageType {
|
|
98
|
+
constructor() {
|
|
99
|
+
super('com.daml.ledger.api.v2.GetPackageResponse', [
|
|
100
|
+
{
|
|
101
|
+
no: 1,
|
|
102
|
+
name: 'hash_function',
|
|
103
|
+
kind: 'enum',
|
|
104
|
+
T: () => [
|
|
105
|
+
'com.daml.ledger.api.v2.HashFunction',
|
|
106
|
+
HashFunction,
|
|
107
|
+
'HASH_FUNCTION_',
|
|
108
|
+
],
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
no: 2,
|
|
112
|
+
name: 'archive_payload',
|
|
113
|
+
kind: 'scalar',
|
|
114
|
+
T: 12 /*ScalarType.BYTES*/,
|
|
115
|
+
},
|
|
116
|
+
{ no: 3, name: 'hash', kind: 'scalar', T: 9 /*ScalarType.STRING*/ },
|
|
117
|
+
]);
|
|
118
|
+
}
|
|
119
|
+
create(value) {
|
|
120
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
121
|
+
message.hashFunction = 0;
|
|
122
|
+
message.archivePayload = new Uint8Array(0);
|
|
123
|
+
message.hash = '';
|
|
124
|
+
if (value !== undefined)
|
|
125
|
+
reflectionMergePartial(this, message, value);
|
|
126
|
+
return message;
|
|
127
|
+
}
|
|
128
|
+
internalBinaryRead(reader, length, options, target) {
|
|
129
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
130
|
+
while (reader.pos < end) {
|
|
131
|
+
let [fieldNo, wireType] = reader.tag();
|
|
132
|
+
switch (fieldNo) {
|
|
133
|
+
case /* com.daml.ledger.api.v2.HashFunction hash_function */ 1:
|
|
134
|
+
message.hashFunction = reader.int32();
|
|
135
|
+
break;
|
|
136
|
+
case /* bytes archive_payload */ 2:
|
|
137
|
+
message.archivePayload = reader.bytes();
|
|
138
|
+
break;
|
|
139
|
+
case /* string hash */ 3:
|
|
140
|
+
message.hash = reader.string();
|
|
141
|
+
break;
|
|
142
|
+
default:
|
|
143
|
+
let u = options.readUnknownField;
|
|
144
|
+
if (u === 'throw')
|
|
145
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
146
|
+
let d = reader.skip(wireType);
|
|
147
|
+
if (u !== false)
|
|
148
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
return message;
|
|
152
|
+
}
|
|
153
|
+
internalBinaryWrite(message, writer, options) {
|
|
154
|
+
/* com.daml.ledger.api.v2.HashFunction hash_function = 1; */
|
|
155
|
+
if (message.hashFunction !== 0)
|
|
156
|
+
writer.tag(1, WireType.Varint).int32(message.hashFunction);
|
|
157
|
+
/* bytes archive_payload = 2; */
|
|
158
|
+
if (message.archivePayload.length)
|
|
159
|
+
writer
|
|
160
|
+
.tag(2, WireType.LengthDelimited)
|
|
161
|
+
.bytes(message.archivePayload);
|
|
162
|
+
/* string hash = 3; */
|
|
163
|
+
if (message.hash !== '')
|
|
164
|
+
writer.tag(3, WireType.LengthDelimited).string(message.hash);
|
|
165
|
+
let u = options.writeUnknownFields;
|
|
166
|
+
if (u !== false)
|
|
167
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
168
|
+
return writer;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* @generated MessageType for protobuf message com.daml.ledger.api.v2.GetPackageResponse
|
|
173
|
+
*/
|
|
174
|
+
export const GetPackageResponse = new GetPackageResponse$Type();
|
|
175
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
176
|
+
class GetPackageStatusResponse$Type extends MessageType {
|
|
177
|
+
constructor() {
|
|
178
|
+
super('com.daml.ledger.api.v2.GetPackageStatusResponse', [
|
|
179
|
+
{
|
|
180
|
+
no: 1,
|
|
181
|
+
name: 'package_status',
|
|
182
|
+
kind: 'enum',
|
|
183
|
+
T: () => [
|
|
184
|
+
'com.daml.ledger.api.v2.PackageStatus',
|
|
185
|
+
PackageStatus,
|
|
186
|
+
'PACKAGE_STATUS_',
|
|
187
|
+
],
|
|
188
|
+
},
|
|
189
|
+
]);
|
|
190
|
+
}
|
|
191
|
+
create(value) {
|
|
192
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
193
|
+
message.packageStatus = 0;
|
|
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 /* com.daml.ledger.api.v2.PackageStatus package_status */ 1:
|
|
204
|
+
message.packageStatus = reader.int32();
|
|
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
|
+
/* com.daml.ledger.api.v2.PackageStatus package_status = 1; */
|
|
219
|
+
if (message.packageStatus !== 0)
|
|
220
|
+
writer.tag(1, WireType.Varint).int32(message.packageStatus);
|
|
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.GetPackageStatusResponse
|
|
229
|
+
*/
|
|
230
|
+
export const GetPackageStatusResponse = new GetPackageStatusResponse$Type();
|
|
231
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
232
|
+
class ListPackagesRequest$Type extends MessageType {
|
|
233
|
+
constructor() {
|
|
234
|
+
super('com.daml.ledger.api.v2.ListPackagesRequest', []);
|
|
235
|
+
}
|
|
236
|
+
create(value) {
|
|
237
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
238
|
+
if (value !== undefined)
|
|
239
|
+
reflectionMergePartial(this, message, value);
|
|
240
|
+
return message;
|
|
241
|
+
}
|
|
242
|
+
internalBinaryRead(reader, length, options, target) {
|
|
243
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
244
|
+
while (reader.pos < end) {
|
|
245
|
+
let [fieldNo, wireType] = reader.tag();
|
|
246
|
+
switch (fieldNo) {
|
|
247
|
+
default:
|
|
248
|
+
let u = options.readUnknownField;
|
|
249
|
+
if (u === 'throw')
|
|
250
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
251
|
+
let d = reader.skip(wireType);
|
|
252
|
+
if (u !== false)
|
|
253
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
return message;
|
|
257
|
+
}
|
|
258
|
+
internalBinaryWrite(message, writer, options) {
|
|
259
|
+
let u = options.writeUnknownFields;
|
|
260
|
+
if (u !== false)
|
|
261
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
262
|
+
return writer;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* @generated MessageType for protobuf message com.daml.ledger.api.v2.ListPackagesRequest
|
|
267
|
+
*/
|
|
268
|
+
export const ListPackagesRequest = new ListPackagesRequest$Type();
|
|
269
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
270
|
+
class GetPackageRequest$Type extends MessageType {
|
|
271
|
+
constructor() {
|
|
272
|
+
super('com.daml.ledger.api.v2.GetPackageRequest', [
|
|
273
|
+
{
|
|
274
|
+
no: 1,
|
|
275
|
+
name: 'package_id',
|
|
276
|
+
kind: 'scalar',
|
|
277
|
+
T: 9 /*ScalarType.STRING*/,
|
|
278
|
+
},
|
|
279
|
+
]);
|
|
280
|
+
}
|
|
281
|
+
create(value) {
|
|
282
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
283
|
+
message.packageId = '';
|
|
284
|
+
if (value !== undefined)
|
|
285
|
+
reflectionMergePartial(this, message, value);
|
|
286
|
+
return message;
|
|
287
|
+
}
|
|
288
|
+
internalBinaryRead(reader, length, options, target) {
|
|
289
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
290
|
+
while (reader.pos < end) {
|
|
291
|
+
let [fieldNo, wireType] = reader.tag();
|
|
292
|
+
switch (fieldNo) {
|
|
293
|
+
case /* string package_id */ 1:
|
|
294
|
+
message.packageId = reader.string();
|
|
295
|
+
break;
|
|
296
|
+
default:
|
|
297
|
+
let u = options.readUnknownField;
|
|
298
|
+
if (u === 'throw')
|
|
299
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
300
|
+
let d = reader.skip(wireType);
|
|
301
|
+
if (u !== false)
|
|
302
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
return message;
|
|
306
|
+
}
|
|
307
|
+
internalBinaryWrite(message, writer, options) {
|
|
308
|
+
/* string package_id = 1; */
|
|
309
|
+
if (message.packageId !== '')
|
|
310
|
+
writer.tag(1, WireType.LengthDelimited).string(message.packageId);
|
|
311
|
+
let u = options.writeUnknownFields;
|
|
312
|
+
if (u !== false)
|
|
313
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
314
|
+
return writer;
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
/**
|
|
318
|
+
* @generated MessageType for protobuf message com.daml.ledger.api.v2.GetPackageRequest
|
|
319
|
+
*/
|
|
320
|
+
export const GetPackageRequest = new GetPackageRequest$Type();
|
|
321
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
322
|
+
class GetPackageStatusRequest$Type extends MessageType {
|
|
323
|
+
constructor() {
|
|
324
|
+
super('com.daml.ledger.api.v2.GetPackageStatusRequest', [
|
|
325
|
+
{
|
|
326
|
+
no: 1,
|
|
327
|
+
name: 'package_id',
|
|
328
|
+
kind: 'scalar',
|
|
329
|
+
T: 9 /*ScalarType.STRING*/,
|
|
330
|
+
},
|
|
331
|
+
]);
|
|
332
|
+
}
|
|
333
|
+
create(value) {
|
|
334
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
335
|
+
message.packageId = '';
|
|
336
|
+
if (value !== undefined)
|
|
337
|
+
reflectionMergePartial(this, message, value);
|
|
338
|
+
return message;
|
|
339
|
+
}
|
|
340
|
+
internalBinaryRead(reader, length, options, target) {
|
|
341
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
342
|
+
while (reader.pos < end) {
|
|
343
|
+
let [fieldNo, wireType] = reader.tag();
|
|
344
|
+
switch (fieldNo) {
|
|
345
|
+
case /* string package_id */ 1:
|
|
346
|
+
message.packageId = reader.string();
|
|
347
|
+
break;
|
|
348
|
+
default:
|
|
349
|
+
let u = options.readUnknownField;
|
|
350
|
+
if (u === 'throw')
|
|
351
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
352
|
+
let d = reader.skip(wireType);
|
|
353
|
+
if (u !== false)
|
|
354
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
return message;
|
|
358
|
+
}
|
|
359
|
+
internalBinaryWrite(message, writer, options) {
|
|
360
|
+
/* string package_id = 1; */
|
|
361
|
+
if (message.packageId !== '')
|
|
362
|
+
writer.tag(1, WireType.LengthDelimited).string(message.packageId);
|
|
363
|
+
let u = options.writeUnknownFields;
|
|
364
|
+
if (u !== false)
|
|
365
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
366
|
+
return writer;
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
/**
|
|
370
|
+
* @generated MessageType for protobuf message com.daml.ledger.api.v2.GetPackageStatusRequest
|
|
371
|
+
*/
|
|
372
|
+
export const GetPackageStatusRequest = new GetPackageStatusRequest$Type();
|
|
373
|
+
/**
|
|
374
|
+
* @generated ServiceType for protobuf service com.daml.ledger.api.v2.PackageService
|
|
375
|
+
*/
|
|
376
|
+
export const PackageService = new ServiceType('com.daml.ledger.api.v2.PackageService', [
|
|
377
|
+
{
|
|
378
|
+
name: 'ListPackages',
|
|
379
|
+
options: {},
|
|
380
|
+
I: ListPackagesRequest,
|
|
381
|
+
O: ListPackagesResponse,
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
name: 'GetPackage',
|
|
385
|
+
options: {},
|
|
386
|
+
I: GetPackageRequest,
|
|
387
|
+
O: GetPackageResponse,
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
name: 'GetPackageStatus',
|
|
391
|
+
options: {},
|
|
392
|
+
I: GetPackageStatusRequest,
|
|
393
|
+
O: GetPackageStatusResponse,
|
|
394
|
+
},
|
|
395
|
+
]);
|
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
import type { BinaryWriteOptions } from '@protobuf-ts/runtime';
|
|
2
|
+
import type { IBinaryWriter } from '@protobuf-ts/runtime';
|
|
3
|
+
import type { BinaryReadOptions } from '@protobuf-ts/runtime';
|
|
4
|
+
import type { IBinaryReader } from '@protobuf-ts/runtime';
|
|
5
|
+
import type { PartialMessage } from '@protobuf-ts/runtime';
|
|
6
|
+
import { MessageType } from '@protobuf-ts/runtime';
|
|
7
|
+
import { CreatedEvent } from './event.js';
|
|
8
|
+
import { Identifier } from './value.js';
|
|
9
|
+
import { Timestamp } from '../../../../../google/protobuf/timestamp.js';
|
|
10
|
+
import { TraceContext } from './trace_context.js';
|
|
11
|
+
/**
|
|
12
|
+
* Complete view of an on-ledger reassignment.
|
|
13
|
+
*
|
|
14
|
+
* @generated from protobuf message com.daml.ledger.api.v2.Reassignment
|
|
15
|
+
*/
|
|
16
|
+
export interface Reassignment {
|
|
17
|
+
/**
|
|
18
|
+
* Assigned by the server. Useful for correlating logs.
|
|
19
|
+
* Must be a valid LedgerString (as described in ``value.proto``).
|
|
20
|
+
* Required
|
|
21
|
+
*
|
|
22
|
+
* @generated from protobuf field: string update_id = 1
|
|
23
|
+
*/
|
|
24
|
+
updateId: string;
|
|
25
|
+
/**
|
|
26
|
+
* The ID of the command which resulted in this reassignment. Missing for everyone except the submitting party on the submitting participant.
|
|
27
|
+
* Must be a valid LedgerString (as described in ``value.proto``).
|
|
28
|
+
* Optional
|
|
29
|
+
*
|
|
30
|
+
* @generated from protobuf field: string command_id = 2
|
|
31
|
+
*/
|
|
32
|
+
commandId: string;
|
|
33
|
+
/**
|
|
34
|
+
* The workflow ID used in reassignment command submission. Only set if the ``workflow_id`` for the command was set.
|
|
35
|
+
* Must be a valid LedgerString (as described in ``value.proto``).
|
|
36
|
+
* Optional
|
|
37
|
+
*
|
|
38
|
+
* @generated from protobuf field: string workflow_id = 3
|
|
39
|
+
*/
|
|
40
|
+
workflowId: string;
|
|
41
|
+
/**
|
|
42
|
+
* The participant's offset. The details of this field are described in ``community/ledger-api/README.md``.
|
|
43
|
+
* Required, must be a valid absolute offset (positive integer).
|
|
44
|
+
*
|
|
45
|
+
* @generated from protobuf field: int64 offset = 4
|
|
46
|
+
*/
|
|
47
|
+
offset: bigint;
|
|
48
|
+
/**
|
|
49
|
+
* The collection of reassignment events. Required.
|
|
50
|
+
*
|
|
51
|
+
* @generated from protobuf field: repeated com.daml.ledger.api.v2.ReassignmentEvent events = 5
|
|
52
|
+
*/
|
|
53
|
+
events: ReassignmentEvent[];
|
|
54
|
+
/**
|
|
55
|
+
* Optional; ledger API trace context
|
|
56
|
+
*
|
|
57
|
+
* The trace context transported in this message corresponds to the trace context supplied
|
|
58
|
+
* by the client application in a HTTP2 header of the original command submission.
|
|
59
|
+
* We typically use a header to transfer this type of information. Here we use message
|
|
60
|
+
* body, because it is used in gRPC streams which do not support per message headers.
|
|
61
|
+
* This field will be populated with the trace context contained in the original submission.
|
|
62
|
+
* If that was not provided, a unique ledger-api-server generated trace context will be used
|
|
63
|
+
* instead.
|
|
64
|
+
*
|
|
65
|
+
* @generated from protobuf field: com.daml.ledger.api.v2.TraceContext trace_context = 6
|
|
66
|
+
*/
|
|
67
|
+
traceContext?: TraceContext;
|
|
68
|
+
/**
|
|
69
|
+
* The time at which the reassignment was recorded. The record time refers to the source/target
|
|
70
|
+
* synchronizer for an unassign/assign event respectively.
|
|
71
|
+
* Required
|
|
72
|
+
*
|
|
73
|
+
* @generated from protobuf field: google.protobuf.Timestamp record_time = 7
|
|
74
|
+
*/
|
|
75
|
+
recordTime?: Timestamp;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* @generated from protobuf message com.daml.ledger.api.v2.ReassignmentEvent
|
|
79
|
+
*/
|
|
80
|
+
export interface ReassignmentEvent {
|
|
81
|
+
/**
|
|
82
|
+
* @generated from protobuf oneof: event
|
|
83
|
+
*/
|
|
84
|
+
event: {
|
|
85
|
+
oneofKind: 'unassigned';
|
|
86
|
+
/**
|
|
87
|
+
* @generated from protobuf field: com.daml.ledger.api.v2.UnassignedEvent unassigned = 1
|
|
88
|
+
*/
|
|
89
|
+
unassigned: UnassignedEvent;
|
|
90
|
+
} | {
|
|
91
|
+
oneofKind: 'assigned';
|
|
92
|
+
/**
|
|
93
|
+
* @generated from protobuf field: com.daml.ledger.api.v2.AssignedEvent assigned = 2
|
|
94
|
+
*/
|
|
95
|
+
assigned: AssignedEvent;
|
|
96
|
+
} | {
|
|
97
|
+
oneofKind: undefined;
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Records that a contract has been unassigned, and it becomes unusable on the source synchronizer
|
|
102
|
+
*
|
|
103
|
+
* @generated from protobuf message com.daml.ledger.api.v2.UnassignedEvent
|
|
104
|
+
*/
|
|
105
|
+
export interface UnassignedEvent {
|
|
106
|
+
/**
|
|
107
|
+
* The ID of the unassignment. This needs to be used as an input for a assign ReassignmentCommand.
|
|
108
|
+
* For one contract the (unassign_id, source synchronizer) pair is unique.
|
|
109
|
+
* Must be a valid LedgerString (as described in ``value.proto``).
|
|
110
|
+
* Required
|
|
111
|
+
*
|
|
112
|
+
* @generated from protobuf field: string unassign_id = 1
|
|
113
|
+
*/
|
|
114
|
+
unassignId: string;
|
|
115
|
+
/**
|
|
116
|
+
* The ID of the reassigned contract.
|
|
117
|
+
* Must be a valid LedgerString (as described in ``value.proto``).
|
|
118
|
+
* Required
|
|
119
|
+
*
|
|
120
|
+
* @generated from protobuf field: string contract_id = 2
|
|
121
|
+
*/
|
|
122
|
+
contractId: string;
|
|
123
|
+
/**
|
|
124
|
+
* The template of the reassigned contract.
|
|
125
|
+
* The identifier uses the package-id reference format.
|
|
126
|
+
*
|
|
127
|
+
* Required
|
|
128
|
+
*
|
|
129
|
+
* @generated from protobuf field: com.daml.ledger.api.v2.Identifier template_id = 3
|
|
130
|
+
*/
|
|
131
|
+
templateId?: Identifier;
|
|
132
|
+
/**
|
|
133
|
+
* The ID of the source synchronizer
|
|
134
|
+
* Must be a valid synchronizer id
|
|
135
|
+
* Required
|
|
136
|
+
*
|
|
137
|
+
* @generated from protobuf field: string source = 4
|
|
138
|
+
*/
|
|
139
|
+
source: string;
|
|
140
|
+
/**
|
|
141
|
+
* The ID of the target synchronizer
|
|
142
|
+
* Must be a valid synchronizer id
|
|
143
|
+
* Required
|
|
144
|
+
*
|
|
145
|
+
* @generated from protobuf field: string target = 5
|
|
146
|
+
*/
|
|
147
|
+
target: string;
|
|
148
|
+
/**
|
|
149
|
+
* Party on whose behalf the unassign command was executed.
|
|
150
|
+
* Empty if the unassignment happened offline via the repair service.
|
|
151
|
+
* Must be a valid PartyIdString (as described in ``value.proto``).
|
|
152
|
+
* Optional
|
|
153
|
+
*
|
|
154
|
+
* @generated from protobuf field: string submitter = 6
|
|
155
|
+
*/
|
|
156
|
+
submitter: string;
|
|
157
|
+
/**
|
|
158
|
+
* Each corresponding assigned and unassigned event has the same reassignment_counter. This strictly increases
|
|
159
|
+
* with each unassign command for the same contract. Creation of the contract corresponds to reassignment_counter
|
|
160
|
+
* equals zero.
|
|
161
|
+
* Required
|
|
162
|
+
*
|
|
163
|
+
* @generated from protobuf field: uint64 reassignment_counter = 7
|
|
164
|
+
*/
|
|
165
|
+
reassignmentCounter: bigint;
|
|
166
|
+
/**
|
|
167
|
+
* Assignment exclusivity
|
|
168
|
+
* Before this time (measured on the target synchronizer), only the submitter of the unassignment can initiate the assignment
|
|
169
|
+
* Defined for reassigning participants.
|
|
170
|
+
* Optional
|
|
171
|
+
*
|
|
172
|
+
* @generated from protobuf field: google.protobuf.Timestamp assignment_exclusivity = 8
|
|
173
|
+
*/
|
|
174
|
+
assignmentExclusivity?: Timestamp;
|
|
175
|
+
/**
|
|
176
|
+
* The parties that are notified of this event.
|
|
177
|
+
* Required
|
|
178
|
+
*
|
|
179
|
+
* @generated from protobuf field: repeated string witness_parties = 9
|
|
180
|
+
*/
|
|
181
|
+
witnessParties: string[];
|
|
182
|
+
/**
|
|
183
|
+
* The package name of the contract.
|
|
184
|
+
* Required
|
|
185
|
+
*
|
|
186
|
+
* @generated from protobuf field: string package_name = 10
|
|
187
|
+
*/
|
|
188
|
+
packageName: string;
|
|
189
|
+
/**
|
|
190
|
+
* The offset of origin.
|
|
191
|
+
* Offsets are managed by the participant nodes.
|
|
192
|
+
* Reassignments can thus NOT be assumed to have the same offsets on different participant nodes.
|
|
193
|
+
* Required, it is a valid absolute offset (positive integer)
|
|
194
|
+
*
|
|
195
|
+
* @generated from protobuf field: int64 offset = 11
|
|
196
|
+
*/
|
|
197
|
+
offset: bigint;
|
|
198
|
+
/**
|
|
199
|
+
* The position of this event in the originating reassignment.
|
|
200
|
+
* Node IDs are not necessarily equal across participants,
|
|
201
|
+
* as these may see different projections/parts of reassignments.
|
|
202
|
+
* Required, must be valid node ID (non-negative integer)
|
|
203
|
+
*
|
|
204
|
+
* @generated from protobuf field: int32 node_id = 12
|
|
205
|
+
*/
|
|
206
|
+
nodeId: number;
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* Records that a contract has been assigned, and it can be used on the target synchronizer.
|
|
210
|
+
*
|
|
211
|
+
* @generated from protobuf message com.daml.ledger.api.v2.AssignedEvent
|
|
212
|
+
*/
|
|
213
|
+
export interface AssignedEvent {
|
|
214
|
+
/**
|
|
215
|
+
* The ID of the source synchronizer.
|
|
216
|
+
* Must be a valid synchronizer id.
|
|
217
|
+
* Required
|
|
218
|
+
*
|
|
219
|
+
* @generated from protobuf field: string source = 1
|
|
220
|
+
*/
|
|
221
|
+
source: string;
|
|
222
|
+
/**
|
|
223
|
+
* The ID of the target synchronizer.
|
|
224
|
+
* Must be a valid synchronizer id.
|
|
225
|
+
* Required
|
|
226
|
+
*
|
|
227
|
+
* @generated from protobuf field: string target = 2
|
|
228
|
+
*/
|
|
229
|
+
target: string;
|
|
230
|
+
/**
|
|
231
|
+
* The ID from the unassigned event.
|
|
232
|
+
* For correlation capabilities.
|
|
233
|
+
* For one contract the (unassign_id, source synchronizer) pair is unique.
|
|
234
|
+
* Must be a valid LedgerString (as described in ``value.proto``).
|
|
235
|
+
* Required
|
|
236
|
+
*
|
|
237
|
+
* @generated from protobuf field: string unassign_id = 3
|
|
238
|
+
*/
|
|
239
|
+
unassignId: string;
|
|
240
|
+
/**
|
|
241
|
+
* Party on whose behalf the assign command was executed.
|
|
242
|
+
* Empty if the assignment happened offline via the repair service.
|
|
243
|
+
* Must be a valid PartyIdString (as described in ``value.proto``).
|
|
244
|
+
* Optional
|
|
245
|
+
*
|
|
246
|
+
* @generated from protobuf field: string submitter = 4
|
|
247
|
+
*/
|
|
248
|
+
submitter: string;
|
|
249
|
+
/**
|
|
250
|
+
* Each corresponding assigned and unassigned event has the same reassignment_counter. This strictly increases
|
|
251
|
+
* with each unassign command for the same contract. Creation of the contract corresponds to reassignment_counter
|
|
252
|
+
* equals zero.
|
|
253
|
+
* Required
|
|
254
|
+
*
|
|
255
|
+
* @generated from protobuf field: uint64 reassignment_counter = 5
|
|
256
|
+
*/
|
|
257
|
+
reassignmentCounter: bigint;
|
|
258
|
+
/**
|
|
259
|
+
* Required
|
|
260
|
+
* The offset of this event refers to the offset of the assignment,
|
|
261
|
+
* while the node_id is the index of within the batch.
|
|
262
|
+
*
|
|
263
|
+
* @generated from protobuf field: com.daml.ledger.api.v2.CreatedEvent created_event = 6
|
|
264
|
+
*/
|
|
265
|
+
createdEvent?: CreatedEvent;
|
|
266
|
+
}
|
|
267
|
+
declare class Reassignment$Type extends MessageType<Reassignment> {
|
|
268
|
+
constructor();
|
|
269
|
+
create(value?: PartialMessage<Reassignment>): Reassignment;
|
|
270
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Reassignment): Reassignment;
|
|
271
|
+
internalBinaryWrite(message: Reassignment, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
272
|
+
}
|
|
273
|
+
/**
|
|
274
|
+
* @generated MessageType for protobuf message com.daml.ledger.api.v2.Reassignment
|
|
275
|
+
*/
|
|
276
|
+
export declare const Reassignment: Reassignment$Type;
|
|
277
|
+
declare class ReassignmentEvent$Type extends MessageType<ReassignmentEvent> {
|
|
278
|
+
constructor();
|
|
279
|
+
create(value?: PartialMessage<ReassignmentEvent>): ReassignmentEvent;
|
|
280
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ReassignmentEvent): ReassignmentEvent;
|
|
281
|
+
internalBinaryWrite(message: ReassignmentEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
282
|
+
}
|
|
283
|
+
/**
|
|
284
|
+
* @generated MessageType for protobuf message com.daml.ledger.api.v2.ReassignmentEvent
|
|
285
|
+
*/
|
|
286
|
+
export declare const ReassignmentEvent: ReassignmentEvent$Type;
|
|
287
|
+
declare class UnassignedEvent$Type extends MessageType<UnassignedEvent> {
|
|
288
|
+
constructor();
|
|
289
|
+
create(value?: PartialMessage<UnassignedEvent>): UnassignedEvent;
|
|
290
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UnassignedEvent): UnassignedEvent;
|
|
291
|
+
internalBinaryWrite(message: UnassignedEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* @generated MessageType for protobuf message com.daml.ledger.api.v2.UnassignedEvent
|
|
295
|
+
*/
|
|
296
|
+
export declare const UnassignedEvent: UnassignedEvent$Type;
|
|
297
|
+
declare class AssignedEvent$Type extends MessageType<AssignedEvent> {
|
|
298
|
+
constructor();
|
|
299
|
+
create(value?: PartialMessage<AssignedEvent>): AssignedEvent;
|
|
300
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AssignedEvent): AssignedEvent;
|
|
301
|
+
internalBinaryWrite(message: AssignedEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
302
|
+
}
|
|
303
|
+
/**
|
|
304
|
+
* @generated MessageType for protobuf message com.daml.ledger.api.v2.AssignedEvent
|
|
305
|
+
*/
|
|
306
|
+
export declare const AssignedEvent: AssignedEvent$Type;
|
|
307
|
+
export {};
|
|
308
|
+
//# sourceMappingURL=reassignment.d.ts.map
|