@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,252 @@
|
|
|
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 { Event } from './event.js';
|
|
8
|
+
import { TraceContext } from './trace_context.js';
|
|
9
|
+
import { Timestamp } from '../../../../../google/protobuf/timestamp.js';
|
|
10
|
+
import { ExercisedEvent } from './event.js';
|
|
11
|
+
import { CreatedEvent } from './event.js';
|
|
12
|
+
/**
|
|
13
|
+
* Provided for backwards compatibility, it will be removed in the Canton version 3.4.0.
|
|
14
|
+
* Each tree event message type below contains a ``witness_parties`` field which
|
|
15
|
+
* indicates the subset of the requested parties that can see the event
|
|
16
|
+
* in question.
|
|
17
|
+
*
|
|
18
|
+
* Note that transaction trees might contain events with
|
|
19
|
+
* _no_ witness parties, which were included simply because they were
|
|
20
|
+
* children of events which have witnesses.
|
|
21
|
+
*
|
|
22
|
+
* @generated from protobuf message com.daml.ledger.api.v2.TreeEvent
|
|
23
|
+
*/
|
|
24
|
+
export interface TreeEvent {
|
|
25
|
+
/**
|
|
26
|
+
* @generated from protobuf oneof: kind
|
|
27
|
+
*/
|
|
28
|
+
kind: {
|
|
29
|
+
oneofKind: 'created';
|
|
30
|
+
/**
|
|
31
|
+
* The event as it appeared in the context of its original daml transaction on this participant node.
|
|
32
|
+
* In particular, the offset, node_id pair of the daml transaction are preserved.
|
|
33
|
+
*
|
|
34
|
+
* @generated from protobuf field: com.daml.ledger.api.v2.CreatedEvent created = 1
|
|
35
|
+
*/
|
|
36
|
+
created: CreatedEvent;
|
|
37
|
+
} | {
|
|
38
|
+
oneofKind: 'exercised';
|
|
39
|
+
/**
|
|
40
|
+
* @generated from protobuf field: com.daml.ledger.api.v2.ExercisedEvent exercised = 2
|
|
41
|
+
*/
|
|
42
|
+
exercised: ExercisedEvent;
|
|
43
|
+
} | {
|
|
44
|
+
oneofKind: undefined;
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Provided for backwards compatibility, it will be removed in the Canton version 3.4.0.
|
|
49
|
+
* Complete view of an on-ledger transaction.
|
|
50
|
+
*
|
|
51
|
+
* @generated from protobuf message com.daml.ledger.api.v2.TransactionTree
|
|
52
|
+
*/
|
|
53
|
+
export interface TransactionTree {
|
|
54
|
+
/**
|
|
55
|
+
* Assigned by the server. Useful for correlating logs.
|
|
56
|
+
* Must be a valid LedgerString (as described in ``value.proto``).
|
|
57
|
+
* Required
|
|
58
|
+
*
|
|
59
|
+
* @generated from protobuf field: string update_id = 1
|
|
60
|
+
*/
|
|
61
|
+
updateId: string;
|
|
62
|
+
/**
|
|
63
|
+
* The ID of the command which resulted in this transaction. Missing for everyone except the submitting party.
|
|
64
|
+
* Must be a valid LedgerString (as described in ``value.proto``).
|
|
65
|
+
* Optional
|
|
66
|
+
*
|
|
67
|
+
* @generated from protobuf field: string command_id = 2
|
|
68
|
+
*/
|
|
69
|
+
commandId: string;
|
|
70
|
+
/**
|
|
71
|
+
* The workflow ID used in command submission. Only set if the ``workflow_id`` for the command was set.
|
|
72
|
+
* Must be a valid LedgerString (as described in ``value.proto``).
|
|
73
|
+
* Optional
|
|
74
|
+
*
|
|
75
|
+
* @generated from protobuf field: string workflow_id = 3
|
|
76
|
+
*/
|
|
77
|
+
workflowId: string;
|
|
78
|
+
/**
|
|
79
|
+
* Ledger effective time.
|
|
80
|
+
* Required
|
|
81
|
+
*
|
|
82
|
+
* @generated from protobuf field: google.protobuf.Timestamp effective_at = 4
|
|
83
|
+
*/
|
|
84
|
+
effectiveAt?: Timestamp;
|
|
85
|
+
/**
|
|
86
|
+
* The absolute offset. The details of this field are described in ``community/ledger-api/README.md``.
|
|
87
|
+
* Required, it is a valid absolute offset (positive integer).
|
|
88
|
+
*
|
|
89
|
+
* @generated from protobuf field: int64 offset = 5
|
|
90
|
+
*/
|
|
91
|
+
offset: bigint;
|
|
92
|
+
/**
|
|
93
|
+
* Changes to the ledger that were caused by this transaction. Nodes of the transaction tree.
|
|
94
|
+
* Each key must be a valid node ID (non-negative integer).
|
|
95
|
+
* Required
|
|
96
|
+
*
|
|
97
|
+
* @generated from protobuf field: map<int32, com.daml.ledger.api.v2.TreeEvent> events_by_id = 6
|
|
98
|
+
*/
|
|
99
|
+
eventsById: {
|
|
100
|
+
[key: number]: TreeEvent;
|
|
101
|
+
};
|
|
102
|
+
/**
|
|
103
|
+
* A valid synchronizer id.
|
|
104
|
+
* Identifies the synchronizer that synchronized the transaction.
|
|
105
|
+
* Required
|
|
106
|
+
*
|
|
107
|
+
* @generated from protobuf field: string synchronizer_id = 7
|
|
108
|
+
*/
|
|
109
|
+
synchronizerId: string;
|
|
110
|
+
/**
|
|
111
|
+
* Optional; ledger API trace context
|
|
112
|
+
*
|
|
113
|
+
* The trace context transported in this message corresponds to the trace context supplied
|
|
114
|
+
* by the client application in a HTTP2 header of the original command submission.
|
|
115
|
+
* We typically use a header to transfer this type of information. Here we use message
|
|
116
|
+
* body, because it is used in gRPC streams which do not support per message headers.
|
|
117
|
+
* This field will be populated with the trace context contained in the original submission.
|
|
118
|
+
* If that was not provided, a unique ledger-api-server generated trace context will be used
|
|
119
|
+
* instead.
|
|
120
|
+
*
|
|
121
|
+
* @generated from protobuf field: com.daml.ledger.api.v2.TraceContext trace_context = 8
|
|
122
|
+
*/
|
|
123
|
+
traceContext?: TraceContext;
|
|
124
|
+
/**
|
|
125
|
+
* The time at which the transaction was recorded. The record time refers to the synchronizer
|
|
126
|
+
* which synchronized the transaction.
|
|
127
|
+
* Required
|
|
128
|
+
*
|
|
129
|
+
* @generated from protobuf field: google.protobuf.Timestamp record_time = 9
|
|
130
|
+
*/
|
|
131
|
+
recordTime?: Timestamp;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Filtered view of an on-ledger transaction's create and archive events.
|
|
135
|
+
*
|
|
136
|
+
* @generated from protobuf message com.daml.ledger.api.v2.Transaction
|
|
137
|
+
*/
|
|
138
|
+
export interface Transaction {
|
|
139
|
+
/**
|
|
140
|
+
* Assigned by the server. Useful for correlating logs.
|
|
141
|
+
* Must be a valid LedgerString (as described in ``value.proto``).
|
|
142
|
+
* Required
|
|
143
|
+
*
|
|
144
|
+
* @generated from protobuf field: string update_id = 1
|
|
145
|
+
*/
|
|
146
|
+
updateId: string;
|
|
147
|
+
/**
|
|
148
|
+
* The ID of the command which resulted in this transaction. Missing for everyone except the submitting party.
|
|
149
|
+
* Must be a valid LedgerString (as described in ``value.proto``).
|
|
150
|
+
* Optional
|
|
151
|
+
*
|
|
152
|
+
* @generated from protobuf field: string command_id = 2
|
|
153
|
+
*/
|
|
154
|
+
commandId: string;
|
|
155
|
+
/**
|
|
156
|
+
* The workflow ID used in command submission.
|
|
157
|
+
* Must be a valid LedgerString (as described in ``value.proto``).
|
|
158
|
+
* Optional
|
|
159
|
+
*
|
|
160
|
+
* @generated from protobuf field: string workflow_id = 3
|
|
161
|
+
*/
|
|
162
|
+
workflowId: string;
|
|
163
|
+
/**
|
|
164
|
+
* Ledger effective time.
|
|
165
|
+
* Required
|
|
166
|
+
*
|
|
167
|
+
* @generated from protobuf field: google.protobuf.Timestamp effective_at = 4
|
|
168
|
+
*/
|
|
169
|
+
effectiveAt?: Timestamp;
|
|
170
|
+
/**
|
|
171
|
+
* The collection of events.
|
|
172
|
+
* Contains:
|
|
173
|
+
*
|
|
174
|
+
* - ``CreatedEvent`` or ``ArchivedEvent`` in case of ACS_DELTA transaction shape
|
|
175
|
+
* - ``CreatedEvent`` or ``ExercisedEvent`` in case of LEDGER_EFFECTS transaction shape
|
|
176
|
+
*
|
|
177
|
+
* Required
|
|
178
|
+
*
|
|
179
|
+
* @generated from protobuf field: repeated com.daml.ledger.api.v2.Event events = 5
|
|
180
|
+
*/
|
|
181
|
+
events: Event[];
|
|
182
|
+
/**
|
|
183
|
+
* The absolute offset. The details of this field are described in ``community/ledger-api/README.md``.
|
|
184
|
+
* Required, it is a valid absolute offset (positive integer).
|
|
185
|
+
*
|
|
186
|
+
* @generated from protobuf field: int64 offset = 6
|
|
187
|
+
*/
|
|
188
|
+
offset: bigint;
|
|
189
|
+
/**
|
|
190
|
+
* A valid synchronizer id.
|
|
191
|
+
* Identifies the synchronizer that synchronized the transaction.
|
|
192
|
+
* Required
|
|
193
|
+
*
|
|
194
|
+
* @generated from protobuf field: string synchronizer_id = 7
|
|
195
|
+
*/
|
|
196
|
+
synchronizerId: string;
|
|
197
|
+
/**
|
|
198
|
+
* Optional; ledger API trace context
|
|
199
|
+
*
|
|
200
|
+
* The trace context transported in this message corresponds to the trace context supplied
|
|
201
|
+
* by the client application in a HTTP2 header of the original command submission.
|
|
202
|
+
* We typically use a header to transfer this type of information. Here we use message
|
|
203
|
+
* body, because it is used in gRPC streams which do not support per message headers.
|
|
204
|
+
* This field will be populated with the trace context contained in the original submission.
|
|
205
|
+
* If that was not provided, a unique ledger-api-server generated trace context will be used
|
|
206
|
+
* instead.
|
|
207
|
+
*
|
|
208
|
+
* @generated from protobuf field: com.daml.ledger.api.v2.TraceContext trace_context = 8
|
|
209
|
+
*/
|
|
210
|
+
traceContext?: TraceContext;
|
|
211
|
+
/**
|
|
212
|
+
* The time at which the transaction was recorded. The record time refers to the synchronizer
|
|
213
|
+
* which synchronized the transaction.
|
|
214
|
+
* Required
|
|
215
|
+
*
|
|
216
|
+
* @generated from protobuf field: google.protobuf.Timestamp record_time = 9
|
|
217
|
+
*/
|
|
218
|
+
recordTime?: Timestamp;
|
|
219
|
+
}
|
|
220
|
+
declare class TreeEvent$Type extends MessageType<TreeEvent> {
|
|
221
|
+
constructor();
|
|
222
|
+
create(value?: PartialMessage<TreeEvent>): TreeEvent;
|
|
223
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TreeEvent): TreeEvent;
|
|
224
|
+
internalBinaryWrite(message: TreeEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* @generated MessageType for protobuf message com.daml.ledger.api.v2.TreeEvent
|
|
228
|
+
*/
|
|
229
|
+
export declare const TreeEvent: TreeEvent$Type;
|
|
230
|
+
declare class TransactionTree$Type extends MessageType<TransactionTree> {
|
|
231
|
+
constructor();
|
|
232
|
+
create(value?: PartialMessage<TransactionTree>): TransactionTree;
|
|
233
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TransactionTree): TransactionTree;
|
|
234
|
+
private binaryReadMap6;
|
|
235
|
+
internalBinaryWrite(message: TransactionTree, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
236
|
+
}
|
|
237
|
+
/**
|
|
238
|
+
* @generated MessageType for protobuf message com.daml.ledger.api.v2.TransactionTree
|
|
239
|
+
*/
|
|
240
|
+
export declare const TransactionTree: TransactionTree$Type;
|
|
241
|
+
declare class Transaction$Type extends MessageType<Transaction> {
|
|
242
|
+
constructor();
|
|
243
|
+
create(value?: PartialMessage<Transaction>): Transaction;
|
|
244
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Transaction): Transaction;
|
|
245
|
+
internalBinaryWrite(message: Transaction, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* @generated MessageType for protobuf message com.daml.ledger.api.v2.Transaction
|
|
249
|
+
*/
|
|
250
|
+
export declare const Transaction: Transaction$Type;
|
|
251
|
+
export {};
|
|
252
|
+
//# sourceMappingURL=transaction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transaction.d.ts","sourceRoot":"","sources":["../../../../../../../src/_proto/com/daml/ledger/api/v2/transaction.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,410 @@
|
|
|
1
|
+
import { WireType } from '@protobuf-ts/runtime';
|
|
2
|
+
import { UnknownFieldHandler } from '@protobuf-ts/runtime';
|
|
3
|
+
import { reflectionMergePartial } from '@protobuf-ts/runtime';
|
|
4
|
+
import { MessageType } from '@protobuf-ts/runtime';
|
|
5
|
+
import { Event } from './event.js';
|
|
6
|
+
import { TraceContext } from './trace_context.js';
|
|
7
|
+
import { Timestamp } from '../../../../../google/protobuf/timestamp.js';
|
|
8
|
+
import { ExercisedEvent } from './event.js';
|
|
9
|
+
import { CreatedEvent } from './event.js';
|
|
10
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
11
|
+
class TreeEvent$Type extends MessageType {
|
|
12
|
+
constructor() {
|
|
13
|
+
super('com.daml.ledger.api.v2.TreeEvent', [
|
|
14
|
+
{
|
|
15
|
+
no: 1,
|
|
16
|
+
name: 'created',
|
|
17
|
+
kind: 'message',
|
|
18
|
+
oneof: 'kind',
|
|
19
|
+
T: () => CreatedEvent,
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
no: 2,
|
|
23
|
+
name: 'exercised',
|
|
24
|
+
kind: 'message',
|
|
25
|
+
oneof: 'kind',
|
|
26
|
+
T: () => ExercisedEvent,
|
|
27
|
+
},
|
|
28
|
+
]);
|
|
29
|
+
}
|
|
30
|
+
create(value) {
|
|
31
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
32
|
+
message.kind = { oneofKind: undefined };
|
|
33
|
+
if (value !== undefined)
|
|
34
|
+
reflectionMergePartial(this, message, value);
|
|
35
|
+
return message;
|
|
36
|
+
}
|
|
37
|
+
internalBinaryRead(reader, length, options, target) {
|
|
38
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
39
|
+
while (reader.pos < end) {
|
|
40
|
+
let [fieldNo, wireType] = reader.tag();
|
|
41
|
+
switch (fieldNo) {
|
|
42
|
+
case /* com.daml.ledger.api.v2.CreatedEvent created */ 1:
|
|
43
|
+
message.kind = {
|
|
44
|
+
oneofKind: 'created',
|
|
45
|
+
created: CreatedEvent.internalBinaryRead(reader, reader.uint32(), options, message.kind.created),
|
|
46
|
+
};
|
|
47
|
+
break;
|
|
48
|
+
case /* com.daml.ledger.api.v2.ExercisedEvent exercised */ 2:
|
|
49
|
+
message.kind = {
|
|
50
|
+
oneofKind: 'exercised',
|
|
51
|
+
exercised: ExercisedEvent.internalBinaryRead(reader, reader.uint32(), options, message.kind.exercised),
|
|
52
|
+
};
|
|
53
|
+
break;
|
|
54
|
+
default:
|
|
55
|
+
let u = options.readUnknownField;
|
|
56
|
+
if (u === 'throw')
|
|
57
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
58
|
+
let d = reader.skip(wireType);
|
|
59
|
+
if (u !== false)
|
|
60
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
return message;
|
|
64
|
+
}
|
|
65
|
+
internalBinaryWrite(message, writer, options) {
|
|
66
|
+
/* com.daml.ledger.api.v2.CreatedEvent created = 1; */
|
|
67
|
+
if (message.kind.oneofKind === 'created')
|
|
68
|
+
CreatedEvent.internalBinaryWrite(message.kind.created, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
69
|
+
/* com.daml.ledger.api.v2.ExercisedEvent exercised = 2; */
|
|
70
|
+
if (message.kind.oneofKind === 'exercised')
|
|
71
|
+
ExercisedEvent.internalBinaryWrite(message.kind.exercised, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
72
|
+
let u = options.writeUnknownFields;
|
|
73
|
+
if (u !== false)
|
|
74
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
75
|
+
return writer;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* @generated MessageType for protobuf message com.daml.ledger.api.v2.TreeEvent
|
|
80
|
+
*/
|
|
81
|
+
export const TreeEvent = new TreeEvent$Type();
|
|
82
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
83
|
+
class TransactionTree$Type extends MessageType {
|
|
84
|
+
constructor() {
|
|
85
|
+
super('com.daml.ledger.api.v2.TransactionTree', [
|
|
86
|
+
{
|
|
87
|
+
no: 1,
|
|
88
|
+
name: 'update_id',
|
|
89
|
+
kind: 'scalar',
|
|
90
|
+
T: 9 /*ScalarType.STRING*/,
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
no: 2,
|
|
94
|
+
name: 'command_id',
|
|
95
|
+
kind: 'scalar',
|
|
96
|
+
T: 9 /*ScalarType.STRING*/,
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
no: 3,
|
|
100
|
+
name: 'workflow_id',
|
|
101
|
+
kind: 'scalar',
|
|
102
|
+
T: 9 /*ScalarType.STRING*/,
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
no: 4,
|
|
106
|
+
name: 'effective_at',
|
|
107
|
+
kind: 'message',
|
|
108
|
+
T: () => Timestamp,
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
no: 5,
|
|
112
|
+
name: 'offset',
|
|
113
|
+
kind: 'scalar',
|
|
114
|
+
T: 3 /*ScalarType.INT64*/,
|
|
115
|
+
L: 0 /*LongType.BIGINT*/,
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
no: 6,
|
|
119
|
+
name: 'events_by_id',
|
|
120
|
+
kind: 'map',
|
|
121
|
+
K: 5 /*ScalarType.INT32*/,
|
|
122
|
+
V: { kind: 'message', T: () => TreeEvent },
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
no: 7,
|
|
126
|
+
name: 'synchronizer_id',
|
|
127
|
+
kind: 'scalar',
|
|
128
|
+
T: 9 /*ScalarType.STRING*/,
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
no: 8,
|
|
132
|
+
name: 'trace_context',
|
|
133
|
+
kind: 'message',
|
|
134
|
+
T: () => TraceContext,
|
|
135
|
+
},
|
|
136
|
+
{ no: 9, name: 'record_time', kind: 'message', T: () => Timestamp },
|
|
137
|
+
]);
|
|
138
|
+
}
|
|
139
|
+
create(value) {
|
|
140
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
141
|
+
message.updateId = '';
|
|
142
|
+
message.commandId = '';
|
|
143
|
+
message.workflowId = '';
|
|
144
|
+
message.offset = 0n;
|
|
145
|
+
message.eventsById = {};
|
|
146
|
+
message.synchronizerId = '';
|
|
147
|
+
if (value !== undefined)
|
|
148
|
+
reflectionMergePartial(this, message, value);
|
|
149
|
+
return message;
|
|
150
|
+
}
|
|
151
|
+
internalBinaryRead(reader, length, options, target) {
|
|
152
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
153
|
+
while (reader.pos < end) {
|
|
154
|
+
let [fieldNo, wireType] = reader.tag();
|
|
155
|
+
switch (fieldNo) {
|
|
156
|
+
case /* string update_id */ 1:
|
|
157
|
+
message.updateId = reader.string();
|
|
158
|
+
break;
|
|
159
|
+
case /* string command_id */ 2:
|
|
160
|
+
message.commandId = reader.string();
|
|
161
|
+
break;
|
|
162
|
+
case /* string workflow_id */ 3:
|
|
163
|
+
message.workflowId = reader.string();
|
|
164
|
+
break;
|
|
165
|
+
case /* google.protobuf.Timestamp effective_at */ 4:
|
|
166
|
+
message.effectiveAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.effectiveAt);
|
|
167
|
+
break;
|
|
168
|
+
case /* int64 offset */ 5:
|
|
169
|
+
message.offset = reader.int64().toBigInt();
|
|
170
|
+
break;
|
|
171
|
+
case /* map<int32, com.daml.ledger.api.v2.TreeEvent> events_by_id */ 6:
|
|
172
|
+
this.binaryReadMap6(message.eventsById, reader, options);
|
|
173
|
+
break;
|
|
174
|
+
case /* string synchronizer_id */ 7:
|
|
175
|
+
message.synchronizerId = reader.string();
|
|
176
|
+
break;
|
|
177
|
+
case /* com.daml.ledger.api.v2.TraceContext trace_context */ 8:
|
|
178
|
+
message.traceContext = TraceContext.internalBinaryRead(reader, reader.uint32(), options, message.traceContext);
|
|
179
|
+
break;
|
|
180
|
+
case /* google.protobuf.Timestamp record_time */ 9:
|
|
181
|
+
message.recordTime = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.recordTime);
|
|
182
|
+
break;
|
|
183
|
+
default:
|
|
184
|
+
let u = options.readUnknownField;
|
|
185
|
+
if (u === 'throw')
|
|
186
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
187
|
+
let d = reader.skip(wireType);
|
|
188
|
+
if (u !== false)
|
|
189
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
return message;
|
|
193
|
+
}
|
|
194
|
+
binaryReadMap6(map, reader, options) {
|
|
195
|
+
let len = reader.uint32(), end = reader.pos + len, key, val;
|
|
196
|
+
while (reader.pos < end) {
|
|
197
|
+
let [fieldNo, wireType] = reader.tag();
|
|
198
|
+
switch (fieldNo) {
|
|
199
|
+
case 1:
|
|
200
|
+
key = reader.int32();
|
|
201
|
+
break;
|
|
202
|
+
case 2:
|
|
203
|
+
val = TreeEvent.internalBinaryRead(reader, reader.uint32(), options);
|
|
204
|
+
break;
|
|
205
|
+
default:
|
|
206
|
+
throw new globalThis.Error('unknown map entry field for com.daml.ledger.api.v2.TransactionTree.events_by_id');
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
map[key ?? 0] = val ?? TreeEvent.create();
|
|
210
|
+
}
|
|
211
|
+
internalBinaryWrite(message, writer, options) {
|
|
212
|
+
/* string update_id = 1; */
|
|
213
|
+
if (message.updateId !== '')
|
|
214
|
+
writer.tag(1, WireType.LengthDelimited).string(message.updateId);
|
|
215
|
+
/* string command_id = 2; */
|
|
216
|
+
if (message.commandId !== '')
|
|
217
|
+
writer.tag(2, WireType.LengthDelimited).string(message.commandId);
|
|
218
|
+
/* string workflow_id = 3; */
|
|
219
|
+
if (message.workflowId !== '')
|
|
220
|
+
writer.tag(3, WireType.LengthDelimited).string(message.workflowId);
|
|
221
|
+
/* google.protobuf.Timestamp effective_at = 4; */
|
|
222
|
+
if (message.effectiveAt)
|
|
223
|
+
Timestamp.internalBinaryWrite(message.effectiveAt, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
224
|
+
/* int64 offset = 5; */
|
|
225
|
+
if (message.offset !== 0n)
|
|
226
|
+
writer.tag(5, WireType.Varint).int64(message.offset);
|
|
227
|
+
/* map<int32, com.daml.ledger.api.v2.TreeEvent> events_by_id = 6; */
|
|
228
|
+
for (let k of globalThis.Object.keys(message.eventsById)) {
|
|
229
|
+
writer
|
|
230
|
+
.tag(6, WireType.LengthDelimited)
|
|
231
|
+
.fork()
|
|
232
|
+
.tag(1, WireType.Varint)
|
|
233
|
+
.int32(parseInt(k));
|
|
234
|
+
writer.tag(2, WireType.LengthDelimited).fork();
|
|
235
|
+
TreeEvent.internalBinaryWrite(message.eventsById[k], writer, options);
|
|
236
|
+
writer.join().join();
|
|
237
|
+
}
|
|
238
|
+
/* string synchronizer_id = 7; */
|
|
239
|
+
if (message.synchronizerId !== '')
|
|
240
|
+
writer
|
|
241
|
+
.tag(7, WireType.LengthDelimited)
|
|
242
|
+
.string(message.synchronizerId);
|
|
243
|
+
/* com.daml.ledger.api.v2.TraceContext trace_context = 8; */
|
|
244
|
+
if (message.traceContext)
|
|
245
|
+
TraceContext.internalBinaryWrite(message.traceContext, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
|
246
|
+
/* google.protobuf.Timestamp record_time = 9; */
|
|
247
|
+
if (message.recordTime)
|
|
248
|
+
Timestamp.internalBinaryWrite(message.recordTime, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
|
249
|
+
let u = options.writeUnknownFields;
|
|
250
|
+
if (u !== false)
|
|
251
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
252
|
+
return writer;
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* @generated MessageType for protobuf message com.daml.ledger.api.v2.TransactionTree
|
|
257
|
+
*/
|
|
258
|
+
export const TransactionTree = new TransactionTree$Type();
|
|
259
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
260
|
+
class Transaction$Type extends MessageType {
|
|
261
|
+
constructor() {
|
|
262
|
+
super('com.daml.ledger.api.v2.Transaction', [
|
|
263
|
+
{
|
|
264
|
+
no: 1,
|
|
265
|
+
name: 'update_id',
|
|
266
|
+
kind: 'scalar',
|
|
267
|
+
T: 9 /*ScalarType.STRING*/,
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
no: 2,
|
|
271
|
+
name: 'command_id',
|
|
272
|
+
kind: 'scalar',
|
|
273
|
+
T: 9 /*ScalarType.STRING*/,
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
no: 3,
|
|
277
|
+
name: 'workflow_id',
|
|
278
|
+
kind: 'scalar',
|
|
279
|
+
T: 9 /*ScalarType.STRING*/,
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
no: 4,
|
|
283
|
+
name: 'effective_at',
|
|
284
|
+
kind: 'message',
|
|
285
|
+
T: () => Timestamp,
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
no: 5,
|
|
289
|
+
name: 'events',
|
|
290
|
+
kind: 'message',
|
|
291
|
+
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
292
|
+
T: () => Event,
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
no: 6,
|
|
296
|
+
name: 'offset',
|
|
297
|
+
kind: 'scalar',
|
|
298
|
+
T: 3 /*ScalarType.INT64*/,
|
|
299
|
+
L: 0 /*LongType.BIGINT*/,
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
no: 7,
|
|
303
|
+
name: 'synchronizer_id',
|
|
304
|
+
kind: 'scalar',
|
|
305
|
+
T: 9 /*ScalarType.STRING*/,
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
no: 8,
|
|
309
|
+
name: 'trace_context',
|
|
310
|
+
kind: 'message',
|
|
311
|
+
T: () => TraceContext,
|
|
312
|
+
},
|
|
313
|
+
{ no: 9, name: 'record_time', kind: 'message', T: () => Timestamp },
|
|
314
|
+
]);
|
|
315
|
+
}
|
|
316
|
+
create(value) {
|
|
317
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
318
|
+
message.updateId = '';
|
|
319
|
+
message.commandId = '';
|
|
320
|
+
message.workflowId = '';
|
|
321
|
+
message.events = [];
|
|
322
|
+
message.offset = 0n;
|
|
323
|
+
message.synchronizerId = '';
|
|
324
|
+
if (value !== undefined)
|
|
325
|
+
reflectionMergePartial(this, message, value);
|
|
326
|
+
return message;
|
|
327
|
+
}
|
|
328
|
+
internalBinaryRead(reader, length, options, target) {
|
|
329
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
330
|
+
while (reader.pos < end) {
|
|
331
|
+
let [fieldNo, wireType] = reader.tag();
|
|
332
|
+
switch (fieldNo) {
|
|
333
|
+
case /* string update_id */ 1:
|
|
334
|
+
message.updateId = reader.string();
|
|
335
|
+
break;
|
|
336
|
+
case /* string command_id */ 2:
|
|
337
|
+
message.commandId = reader.string();
|
|
338
|
+
break;
|
|
339
|
+
case /* string workflow_id */ 3:
|
|
340
|
+
message.workflowId = reader.string();
|
|
341
|
+
break;
|
|
342
|
+
case /* google.protobuf.Timestamp effective_at */ 4:
|
|
343
|
+
message.effectiveAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.effectiveAt);
|
|
344
|
+
break;
|
|
345
|
+
case /* repeated com.daml.ledger.api.v2.Event events */ 5:
|
|
346
|
+
message.events.push(Event.internalBinaryRead(reader, reader.uint32(), options));
|
|
347
|
+
break;
|
|
348
|
+
case /* int64 offset */ 6:
|
|
349
|
+
message.offset = reader.int64().toBigInt();
|
|
350
|
+
break;
|
|
351
|
+
case /* string synchronizer_id */ 7:
|
|
352
|
+
message.synchronizerId = reader.string();
|
|
353
|
+
break;
|
|
354
|
+
case /* com.daml.ledger.api.v2.TraceContext trace_context */ 8:
|
|
355
|
+
message.traceContext = TraceContext.internalBinaryRead(reader, reader.uint32(), options, message.traceContext);
|
|
356
|
+
break;
|
|
357
|
+
case /* google.protobuf.Timestamp record_time */ 9:
|
|
358
|
+
message.recordTime = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.recordTime);
|
|
359
|
+
break;
|
|
360
|
+
default:
|
|
361
|
+
let u = options.readUnknownField;
|
|
362
|
+
if (u === 'throw')
|
|
363
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
364
|
+
let d = reader.skip(wireType);
|
|
365
|
+
if (u !== false)
|
|
366
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
return message;
|
|
370
|
+
}
|
|
371
|
+
internalBinaryWrite(message, writer, options) {
|
|
372
|
+
/* string update_id = 1; */
|
|
373
|
+
if (message.updateId !== '')
|
|
374
|
+
writer.tag(1, WireType.LengthDelimited).string(message.updateId);
|
|
375
|
+
/* string command_id = 2; */
|
|
376
|
+
if (message.commandId !== '')
|
|
377
|
+
writer.tag(2, WireType.LengthDelimited).string(message.commandId);
|
|
378
|
+
/* string workflow_id = 3; */
|
|
379
|
+
if (message.workflowId !== '')
|
|
380
|
+
writer.tag(3, WireType.LengthDelimited).string(message.workflowId);
|
|
381
|
+
/* google.protobuf.Timestamp effective_at = 4; */
|
|
382
|
+
if (message.effectiveAt)
|
|
383
|
+
Timestamp.internalBinaryWrite(message.effectiveAt, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
384
|
+
/* repeated com.daml.ledger.api.v2.Event events = 5; */
|
|
385
|
+
for (let i = 0; i < message.events.length; i++)
|
|
386
|
+
Event.internalBinaryWrite(message.events[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
387
|
+
/* int64 offset = 6; */
|
|
388
|
+
if (message.offset !== 0n)
|
|
389
|
+
writer.tag(6, WireType.Varint).int64(message.offset);
|
|
390
|
+
/* string synchronizer_id = 7; */
|
|
391
|
+
if (message.synchronizerId !== '')
|
|
392
|
+
writer
|
|
393
|
+
.tag(7, WireType.LengthDelimited)
|
|
394
|
+
.string(message.synchronizerId);
|
|
395
|
+
/* com.daml.ledger.api.v2.TraceContext trace_context = 8; */
|
|
396
|
+
if (message.traceContext)
|
|
397
|
+
TraceContext.internalBinaryWrite(message.traceContext, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
|
398
|
+
/* google.protobuf.Timestamp record_time = 9; */
|
|
399
|
+
if (message.recordTime)
|
|
400
|
+
Timestamp.internalBinaryWrite(message.recordTime, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
|
401
|
+
let u = options.writeUnknownFields;
|
|
402
|
+
if (u !== false)
|
|
403
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
404
|
+
return writer;
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
/**
|
|
408
|
+
* @generated MessageType for protobuf message com.daml.ledger.api.v2.Transaction
|
|
409
|
+
*/
|
|
410
|
+
export const Transaction = new Transaction$Type();
|