@canton-network/core-ledger-client 0.8.0 → 0.10.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/dist/generated-clients/openapi-3.4.0-SNAPSHOT.d.ts +5563 -0
- package/dist/generated-clients/openapi-3.4.0-SNAPSHOT.d.ts.map +1 -0
- package/dist/generated-clients/openapi-3.4.0-SNAPSHOT.js +5 -0
- package/dist/index.d.ts +2 -10
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -9
- package/dist/ledger-client.d.ts +22 -12
- package/dist/ledger-client.d.ts.map +1 -1
- package/dist/ledger-client.js +68 -24
- package/dist/token-standard-service.d.ts +8 -0
- package/dist/token-standard-service.d.ts.map +1 -1
- package/dist/token-standard-service.js +28 -0
- package/dist/txparse/parser.d.ts.map +1 -1
- package/dist/txparse/parser.js +7 -4
- package/dist/txparse/parser.test.js +2 -1
- package/dist/txparse/types.d.ts +9 -9
- package/dist/txparse/types.d.ts.map +1 -1
- package/package.json +5 -5
- package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.client.d.ts +0 -58
- package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.client.d.ts.map +0 -1
- package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.client.js +0 -34
- package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.d.ts +0 -232
- package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.d.ts.map +0 -1
- package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.js +0 -560
- package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.client.d.ts +0 -144
- package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.client.d.ts.map +0 -1
- package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.client.js +0 -85
- package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.d.ts +0 -291
- package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.d.ts.map +0 -1
- package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.js +0 -663
- package/dist/_proto/com/daml/ledger/api/v2/admin/object_meta.d.ts +0 -76
- package/dist/_proto/com/daml/ledger/api/v2/admin/object_meta.d.ts.map +0 -1
- package/dist/_proto/com/daml/ledger/api/v2/admin/object_meta.js +0 -96
- package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.client.d.ts +0 -106
- package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.client.d.ts.map +0 -1
- package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.client.js +0 -62
- package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.d.ts +0 -199
- package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.d.ts.map +0 -1
- package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.js +0 -427
- package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.client.d.ts +0 -56
- package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.client.d.ts.map +0 -1
- package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.client.js +0 -35
- package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.d.ts +0 -81
- package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.d.ts.map +0 -1
- package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.js +0 -135
- package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.client.d.ts +0 -196
- package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.client.d.ts.map +0 -1
- package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.client.js +0 -113
- package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.d.ts +0 -413
- package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.d.ts.map +0 -1
- package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.js +0 -867
- package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.client.d.ts +0 -210
- package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.client.d.ts.map +0 -1
- package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.client.js +0 -126
- package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.d.ts +0 -758
- package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.d.ts.map +0 -1
- package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.js +0 -1580
- package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.client.d.ts +0 -66
- package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.client.d.ts.map +0 -1
- package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.client.js +0 -38
- package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.d.ts +0 -90
- package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.d.ts.map +0 -1
- package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.js +0 -178
- package/dist/_proto/com/daml/ledger/api/v2/command_service.client.d.ts +0 -99
- package/dist/_proto/com/daml/ledger/api/v2/command_service.client.d.ts.map +0 -1
- package/dist/_proto/com/daml/ledger/api/v2/command_service.client.js +0 -61
- package/dist/_proto/com/daml/ledger/api/v2/command_service.d.ts +0 -210
- package/dist/_proto/com/daml/ledger/api/v2/command_service.d.ts.map +0 -1
- package/dist/_proto/com/daml/ledger/api/v2/command_service.js +0 -436
- package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.client.d.ts +0 -80
- package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.client.d.ts.map +0 -1
- package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.client.js +0 -47
- package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.d.ts +0 -91
- package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.d.ts.map +0 -1
- package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.js +0 -200
- package/dist/_proto/com/daml/ledger/api/v2/commands.d.ts +0 -491
- package/dist/_proto/com/daml/ledger/api/v2/commands.d.ts.map +0 -1
- package/dist/_proto/com/daml/ledger/api/v2/commands.js +0 -828
- package/dist/_proto/com/daml/ledger/api/v2/completion.d.ts +0 -149
- package/dist/_proto/com/daml/ledger/api/v2/completion.d.ts.map +0 -1
- package/dist/_proto/com/daml/ledger/api/v2/completion.js +0 -196
- package/dist/_proto/com/daml/ledger/api/v2/event.d.ts +0 -495
- package/dist/_proto/com/daml/ledger/api/v2/event.d.ts.map +0 -1
- package/dist/_proto/com/daml/ledger/api/v2/event.js +0 -723
- package/dist/_proto/com/daml/ledger/api/v2/event_query_service.client.d.ts +0 -52
- package/dist/_proto/com/daml/ledger/api/v2/event_query_service.client.d.ts.map +0 -1
- package/dist/_proto/com/daml/ledger/api/v2/event_query_service.client.js +0 -31
- package/dist/_proto/com/daml/ledger/api/v2/event_query_service.d.ts +0 -150
- package/dist/_proto/com/daml/ledger/api/v2/event_query_service.d.ts.map +0 -1
- package/dist/_proto/com/daml/ledger/api/v2/event_query_service.js +0 -291
- package/dist/_proto/com/daml/ledger/api/v2/experimental_features.d.ts +0 -96
- package/dist/_proto/com/daml/ledger/api/v2/experimental_features.d.ts.map +0 -1
- package/dist/_proto/com/daml/ledger/api/v2/experimental_features.js +0 -225
- package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_common_data.d.ts +0 -43
- package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_common_data.d.ts.map +0 -1
- package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_common_data.js +0 -85
- package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.client.d.ts +0 -100
- package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.client.d.ts.map +0 -1
- package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.client.js +0 -59
- package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.d.ts +0 -877
- package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.d.ts.map +0 -1
- package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.js +0 -1768
- package/dist/_proto/com/daml/ledger/api/v2/interactive/transaction/v1/interactive_submission_data.d.ts +0 -259
- package/dist/_proto/com/daml/ledger/api/v2/interactive/transaction/v1/interactive_submission_data.d.ts.map +0 -1
- package/dist/_proto/com/daml/ledger/api/v2/interactive/transaction/v1/interactive_submission_data.js +0 -667
- package/dist/_proto/com/daml/ledger/api/v2/offset_checkpoint.d.ts +0 -69
- package/dist/_proto/com/daml/ledger/api/v2/offset_checkpoint.d.ts.map +0 -1
- package/dist/_proto/com/daml/ledger/api/v2/offset_checkpoint.js +0 -133
- package/dist/_proto/com/daml/ledger/api/v2/package_reference.d.ts +0 -41
- package/dist/_proto/com/daml/ledger/api/v2/package_reference.d.ts.map +0 -1
- package/dist/_proto/com/daml/ledger/api/v2/package_reference.js +0 -84
- package/dist/_proto/com/daml/ledger/api/v2/package_service.client.d.ts +0 -68
- package/dist/_proto/com/daml/ledger/api/v2/package_service.client.d.ts.map +0 -1
- package/dist/_proto/com/daml/ledger/api/v2/package_service.client.js +0 -43
- package/dist/_proto/com/daml/ledger/api/v2/package_service.d.ts +0 -181
- package/dist/_proto/com/daml/ledger/api/v2/package_service.d.ts.map +0 -1
- package/dist/_proto/com/daml/ledger/api/v2/package_service.js +0 -395
- package/dist/_proto/com/daml/ledger/api/v2/reassignment.d.ts +0 -308
- package/dist/_proto/com/daml/ledger/api/v2/reassignment.d.ts.map +0 -1
- package/dist/_proto/com/daml/ledger/api/v2/reassignment.js +0 -521
- package/dist/_proto/com/daml/ledger/api/v2/reassignment_commands.d.ts +0 -193
- package/dist/_proto/com/daml/ledger/api/v2/reassignment_commands.d.ts.map +0 -1
- package/dist/_proto/com/daml/ledger/api/v2/reassignment_commands.js +0 -350
- package/dist/_proto/com/daml/ledger/api/v2/state_service.client.d.ts +0 -91
- package/dist/_proto/com/daml/ledger/api/v2/state_service.client.d.ts.map +0 -1
- package/dist/_proto/com/daml/ledger/api/v2/state_service.client.js +0 -56
- package/dist/_proto/com/daml/ledger/api/v2/state_service.d.ts +0 -448
- package/dist/_proto/com/daml/ledger/api/v2/state_service.d.ts.map +0 -1
- package/dist/_proto/com/daml/ledger/api/v2/state_service.js +0 -874
- package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.client.d.ts +0 -54
- package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.client.d.ts.map +0 -1
- package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.client.js +0 -34
- package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.d.ts +0 -78
- package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.d.ts.map +0 -1
- package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.js +0 -168
- package/dist/_proto/com/daml/ledger/api/v2/topology_transaction.d.ts +0 -211
- package/dist/_proto/com/daml/ledger/api/v2/topology_transaction.d.ts.map +0 -1
- package/dist/_proto/com/daml/ledger/api/v2/topology_transaction.js +0 -447
- package/dist/_proto/com/daml/ledger/api/v2/trace_context.d.ts +0 -33
- package/dist/_proto/com/daml/ledger/api/v2/trace_context.d.ts.map +0 -1
- package/dist/_proto/com/daml/ledger/api/v2/trace_context.js +0 -69
- package/dist/_proto/com/daml/ledger/api/v2/transaction.d.ts +0 -252
- package/dist/_proto/com/daml/ledger/api/v2/transaction.d.ts.map +0 -1
- package/dist/_proto/com/daml/ledger/api/v2/transaction.js +0 -410
- package/dist/_proto/com/daml/ledger/api/v2/transaction_filter.d.ts +0 -453
- package/dist/_proto/com/daml/ledger/api/v2/transaction_filter.d.ts.map +0 -1
- package/dist/_proto/com/daml/ledger/api/v2/transaction_filter.js +0 -815
- package/dist/_proto/com/daml/ledger/api/v2/update_service.client.d.ts +0 -199
- package/dist/_proto/com/daml/ledger/api/v2/update_service.client.d.ts.map +0 -1
- package/dist/_proto/com/daml/ledger/api/v2/update_service.client.js +0 -121
- package/dist/_proto/com/daml/ledger/api/v2/update_service.d.ts +0 -424
- package/dist/_proto/com/daml/ledger/api/v2/update_service.d.ts.map +0 -1
- package/dist/_proto/com/daml/ledger/api/v2/update_service.js +0 -853
- package/dist/_proto/com/daml/ledger/api/v2/value.d.ts +0 -500
- package/dist/_proto/com/daml/ledger/api/v2/value.d.ts.map +0 -1
- package/dist/_proto/com/daml/ledger/api/v2/value.js +0 -937
- package/dist/_proto/com/daml/ledger/api/v2/version_service.client.d.ts +0 -40
- package/dist/_proto/com/daml/ledger/api/v2/version_service.client.d.ts.map +0 -1
- package/dist/_proto/com/daml/ledger/api/v2/version_service.client.js +0 -25
- package/dist/_proto/com/daml/ledger/api/v2/version_service.d.ts +0 -190
- package/dist/_proto/com/daml/ledger/api/v2/version_service.d.ts.map +0 -1
- package/dist/_proto/com/daml/ledger/api/v2/version_service.js +0 -400
- package/dist/_proto/com/digitalasset/canton/crypto/v30/crypto.d.ts +0 -1028
- package/dist/_proto/com/digitalasset/canton/crypto/v30/crypto.d.ts.map +0 -1
- package/dist/_proto/com/digitalasset/canton/crypto/v30/crypto.js +0 -2110
- package/dist/_proto/com/digitalasset/canton/protocol/v30/sequencing_parameters.d.ts +0 -30
- package/dist/_proto/com/digitalasset/canton/protocol/v30/sequencing_parameters.d.ts.map +0 -1
- package/dist/_proto/com/digitalasset/canton/protocol/v30/sequencing_parameters.js +0 -62
- package/dist/_proto/com/digitalasset/canton/protocol/v30/synchronizer_parameters.d.ts +0 -168
- package/dist/_proto/com/digitalasset/canton/protocol/v30/synchronizer_parameters.d.ts.map +0 -1
- package/dist/_proto/com/digitalasset/canton/protocol/v30/synchronizer_parameters.js +0 -395
- package/dist/_proto/com/digitalasset/canton/protocol/v30/topology.d.ts +0 -1105
- package/dist/_proto/com/digitalasset/canton/protocol/v30/topology.d.ts.map +0 -1
- package/dist/_proto/com/digitalasset/canton/protocol/v30/topology.js +0 -2294
- package/dist/_proto/com/digitalasset/canton/protocol/v30/traffic_control_parameters.d.ts +0 -278
- package/dist/_proto/com/digitalasset/canton/protocol/v30/traffic_control_parameters.d.ts.map +0 -1
- package/dist/_proto/com/digitalasset/canton/protocol/v30/traffic_control_parameters.js +0 -654
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/common.d.ts +0 -166
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/common.d.ts.map +0 -1
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/common.js +0 -379
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.client.d.ts +0 -199
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.client.d.ts.map +0 -1
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.client.js +0 -136
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.d.ts +0 -1195
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.d.ts.map +0 -1
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.js +0 -3342
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.client.d.ts +0 -119
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.client.d.ts.map +0 -1
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.client.js +0 -76
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.d.ts +0 -607
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.d.ts.map +0 -1
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.js +0 -1292
- package/dist/_proto/google/protobuf/any.d.ts +0 -177
- package/dist/_proto/google/protobuf/any.d.ts.map +0 -1
- package/dist/_proto/google/protobuf/any.js +0 -175
- package/dist/_proto/google/protobuf/descriptor.d.ts +0 -1638
- package/dist/_proto/google/protobuf/descriptor.d.ts.map +0 -1
- package/dist/_proto/google/protobuf/descriptor.js +0 -2999
- package/dist/_proto/google/protobuf/duration.d.ts +0 -114
- package/dist/_proto/google/protobuf/duration.d.ts.map +0 -1
- package/dist/_proto/google/protobuf/duration.js +0 -113
- package/dist/_proto/google/protobuf/empty.d.ts +0 -33
- package/dist/_proto/google/protobuf/empty.d.ts.map +0 -1
- package/dist/_proto/google/protobuf/empty.js +0 -41
- package/dist/_proto/google/protobuf/field_mask.d.ts +0 -240
- package/dist/_proto/google/protobuf/field_mask.d.ts.map +0 -1
- package/dist/_proto/google/protobuf/field_mask.js +0 -95
- package/dist/_proto/google/protobuf/struct.d.ts +0 -187
- package/dist/_proto/google/protobuf/struct.d.ts.map +0 -1
- package/dist/_proto/google/protobuf/struct.js +0 -417
- package/dist/_proto/google/protobuf/timestamp.d.ts +0 -159
- package/dist/_proto/google/protobuf/timestamp.d.ts.map +0 -1
- package/dist/_proto/google/protobuf/timestamp.js +0 -157
- package/dist/_proto/google/rpc/code.d.ts +0 -219
- package/dist/_proto/google/rpc/code.d.ts.map +0 -1
- package/dist/_proto/google/rpc/code.js +0 -237
- package/dist/_proto/google/rpc/context/attribute_context.d.ts +0 -594
- package/dist/_proto/google/rpc/context/attribute_context.d.ts.map +0 -1
- package/dist/_proto/google/rpc/context/attribute_context.js +0 -1007
- package/dist/_proto/google/rpc/context/audit_context.d.ts +0 -62
- package/dist/_proto/google/rpc/context/audit_context.d.ts.map +0 -1
- package/dist/_proto/google/rpc/context/audit_context.js +0 -111
- package/dist/_proto/google/rpc/error_details.d.ts +0 -549
- package/dist/_proto/google/rpc/error_details.d.ts.map +0 -1
- package/dist/_proto/google/rpc/error_details.js +0 -918
- package/dist/_proto/google/rpc/status.d.ts +0 -55
- package/dist/_proto/google/rpc/status.d.ts.map +0 -1
- package/dist/_proto/google/rpc/status.js +0 -79
- package/dist/_proto/scalapb/scalapb.d.ts +0 -779
- package/dist/_proto/scalapb/scalapb.d.ts.map +0 -1
- package/dist/_proto/scalapb/scalapb.js +0 -1658
|
@@ -1,447 +0,0 @@
|
|
|
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 { ParticipantPermission } from './state_service.js';
|
|
6
|
-
import { TraceContext } from './trace_context.js';
|
|
7
|
-
import { Timestamp } from '../../../../../google/protobuf/timestamp.js';
|
|
8
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
9
|
-
class TopologyTransaction$Type extends MessageType {
|
|
10
|
-
constructor() {
|
|
11
|
-
super('com.daml.ledger.api.v2.TopologyTransaction', [
|
|
12
|
-
{
|
|
13
|
-
no: 1,
|
|
14
|
-
name: 'update_id',
|
|
15
|
-
kind: 'scalar',
|
|
16
|
-
T: 9 /*ScalarType.STRING*/,
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
no: 2,
|
|
20
|
-
name: 'offset',
|
|
21
|
-
kind: 'scalar',
|
|
22
|
-
T: 3 /*ScalarType.INT64*/,
|
|
23
|
-
L: 0 /*LongType.BIGINT*/,
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
no: 3,
|
|
27
|
-
name: 'synchronizer_id',
|
|
28
|
-
kind: 'scalar',
|
|
29
|
-
T: 9 /*ScalarType.STRING*/,
|
|
30
|
-
},
|
|
31
|
-
{ no: 4, name: 'record_time', kind: 'message', T: () => Timestamp },
|
|
32
|
-
{
|
|
33
|
-
no: 5,
|
|
34
|
-
name: 'events',
|
|
35
|
-
kind: 'message',
|
|
36
|
-
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
37
|
-
T: () => TopologyEvent,
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
no: 6,
|
|
41
|
-
name: 'trace_context',
|
|
42
|
-
kind: 'message',
|
|
43
|
-
T: () => TraceContext,
|
|
44
|
-
},
|
|
45
|
-
]);
|
|
46
|
-
}
|
|
47
|
-
create(value) {
|
|
48
|
-
const message = globalThis.Object.create(this.messagePrototype);
|
|
49
|
-
message.updateId = '';
|
|
50
|
-
message.offset = 0n;
|
|
51
|
-
message.synchronizerId = '';
|
|
52
|
-
message.events = [];
|
|
53
|
-
if (value !== undefined)
|
|
54
|
-
reflectionMergePartial(this, message, value);
|
|
55
|
-
return message;
|
|
56
|
-
}
|
|
57
|
-
internalBinaryRead(reader, length, options, target) {
|
|
58
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
59
|
-
while (reader.pos < end) {
|
|
60
|
-
let [fieldNo, wireType] = reader.tag();
|
|
61
|
-
switch (fieldNo) {
|
|
62
|
-
case /* string update_id */ 1:
|
|
63
|
-
message.updateId = reader.string();
|
|
64
|
-
break;
|
|
65
|
-
case /* int64 offset */ 2:
|
|
66
|
-
message.offset = reader.int64().toBigInt();
|
|
67
|
-
break;
|
|
68
|
-
case /* string synchronizer_id */ 3:
|
|
69
|
-
message.synchronizerId = reader.string();
|
|
70
|
-
break;
|
|
71
|
-
case /* google.protobuf.Timestamp record_time */ 4:
|
|
72
|
-
message.recordTime = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.recordTime);
|
|
73
|
-
break;
|
|
74
|
-
case /* repeated com.daml.ledger.api.v2.TopologyEvent events */ 5:
|
|
75
|
-
message.events.push(TopologyEvent.internalBinaryRead(reader, reader.uint32(), options));
|
|
76
|
-
break;
|
|
77
|
-
case /* com.daml.ledger.api.v2.TraceContext trace_context */ 6:
|
|
78
|
-
message.traceContext = TraceContext.internalBinaryRead(reader, reader.uint32(), options, message.traceContext);
|
|
79
|
-
break;
|
|
80
|
-
default:
|
|
81
|
-
let u = options.readUnknownField;
|
|
82
|
-
if (u === 'throw')
|
|
83
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
84
|
-
let d = reader.skip(wireType);
|
|
85
|
-
if (u !== false)
|
|
86
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
return message;
|
|
90
|
-
}
|
|
91
|
-
internalBinaryWrite(message, writer, options) {
|
|
92
|
-
/* string update_id = 1; */
|
|
93
|
-
if (message.updateId !== '')
|
|
94
|
-
writer.tag(1, WireType.LengthDelimited).string(message.updateId);
|
|
95
|
-
/* int64 offset = 2; */
|
|
96
|
-
if (message.offset !== 0n)
|
|
97
|
-
writer.tag(2, WireType.Varint).int64(message.offset);
|
|
98
|
-
/* string synchronizer_id = 3; */
|
|
99
|
-
if (message.synchronizerId !== '')
|
|
100
|
-
writer
|
|
101
|
-
.tag(3, WireType.LengthDelimited)
|
|
102
|
-
.string(message.synchronizerId);
|
|
103
|
-
/* google.protobuf.Timestamp record_time = 4; */
|
|
104
|
-
if (message.recordTime)
|
|
105
|
-
Timestamp.internalBinaryWrite(message.recordTime, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
106
|
-
/* repeated com.daml.ledger.api.v2.TopologyEvent events = 5; */
|
|
107
|
-
for (let i = 0; i < message.events.length; i++)
|
|
108
|
-
TopologyEvent.internalBinaryWrite(message.events[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
109
|
-
/* com.daml.ledger.api.v2.TraceContext trace_context = 6; */
|
|
110
|
-
if (message.traceContext)
|
|
111
|
-
TraceContext.internalBinaryWrite(message.traceContext, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
112
|
-
let u = options.writeUnknownFields;
|
|
113
|
-
if (u !== false)
|
|
114
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
115
|
-
return writer;
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
/**
|
|
119
|
-
* @generated MessageType for protobuf message com.daml.ledger.api.v2.TopologyTransaction
|
|
120
|
-
*/
|
|
121
|
-
export const TopologyTransaction = new TopologyTransaction$Type();
|
|
122
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
123
|
-
class TopologyEvent$Type extends MessageType {
|
|
124
|
-
constructor() {
|
|
125
|
-
super('com.daml.ledger.api.v2.TopologyEvent', [
|
|
126
|
-
{
|
|
127
|
-
no: 1,
|
|
128
|
-
name: 'participant_authorization_changed',
|
|
129
|
-
kind: 'message',
|
|
130
|
-
oneof: 'event',
|
|
131
|
-
T: () => ParticipantAuthorizationChanged,
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
no: 2,
|
|
135
|
-
name: 'participant_authorization_revoked',
|
|
136
|
-
kind: 'message',
|
|
137
|
-
oneof: 'event',
|
|
138
|
-
T: () => ParticipantAuthorizationRevoked,
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
no: 3,
|
|
142
|
-
name: 'participant_authorization_added',
|
|
143
|
-
kind: 'message',
|
|
144
|
-
oneof: 'event',
|
|
145
|
-
T: () => ParticipantAuthorizationAdded,
|
|
146
|
-
},
|
|
147
|
-
]);
|
|
148
|
-
}
|
|
149
|
-
create(value) {
|
|
150
|
-
const message = globalThis.Object.create(this.messagePrototype);
|
|
151
|
-
message.event = { oneofKind: undefined };
|
|
152
|
-
if (value !== undefined)
|
|
153
|
-
reflectionMergePartial(this, message, value);
|
|
154
|
-
return message;
|
|
155
|
-
}
|
|
156
|
-
internalBinaryRead(reader, length, options, target) {
|
|
157
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
158
|
-
while (reader.pos < end) {
|
|
159
|
-
let [fieldNo, wireType] = reader.tag();
|
|
160
|
-
switch (fieldNo) {
|
|
161
|
-
case /* com.daml.ledger.api.v2.ParticipantAuthorizationChanged participant_authorization_changed */ 1:
|
|
162
|
-
message.event = {
|
|
163
|
-
oneofKind: 'participantAuthorizationChanged',
|
|
164
|
-
participantAuthorizationChanged: ParticipantAuthorizationChanged.internalBinaryRead(reader, reader.uint32(), options, message.event
|
|
165
|
-
.participantAuthorizationChanged),
|
|
166
|
-
};
|
|
167
|
-
break;
|
|
168
|
-
case /* com.daml.ledger.api.v2.ParticipantAuthorizationRevoked participant_authorization_revoked */ 2:
|
|
169
|
-
message.event = {
|
|
170
|
-
oneofKind: 'participantAuthorizationRevoked',
|
|
171
|
-
participantAuthorizationRevoked: ParticipantAuthorizationRevoked.internalBinaryRead(reader, reader.uint32(), options, message.event
|
|
172
|
-
.participantAuthorizationRevoked),
|
|
173
|
-
};
|
|
174
|
-
break;
|
|
175
|
-
case /* com.daml.ledger.api.v2.ParticipantAuthorizationAdded participant_authorization_added */ 3:
|
|
176
|
-
message.event = {
|
|
177
|
-
oneofKind: 'participantAuthorizationAdded',
|
|
178
|
-
participantAuthorizationAdded: ParticipantAuthorizationAdded.internalBinaryRead(reader, reader.uint32(), options, message.event
|
|
179
|
-
.participantAuthorizationAdded),
|
|
180
|
-
};
|
|
181
|
-
break;
|
|
182
|
-
default:
|
|
183
|
-
let u = options.readUnknownField;
|
|
184
|
-
if (u === 'throw')
|
|
185
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
186
|
-
let d = reader.skip(wireType);
|
|
187
|
-
if (u !== false)
|
|
188
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
return message;
|
|
192
|
-
}
|
|
193
|
-
internalBinaryWrite(message, writer, options) {
|
|
194
|
-
/* com.daml.ledger.api.v2.ParticipantAuthorizationChanged participant_authorization_changed = 1; */
|
|
195
|
-
if (message.event.oneofKind === 'participantAuthorizationChanged')
|
|
196
|
-
ParticipantAuthorizationChanged.internalBinaryWrite(message.event.participantAuthorizationChanged, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
197
|
-
/* com.daml.ledger.api.v2.ParticipantAuthorizationRevoked participant_authorization_revoked = 2; */
|
|
198
|
-
if (message.event.oneofKind === 'participantAuthorizationRevoked')
|
|
199
|
-
ParticipantAuthorizationRevoked.internalBinaryWrite(message.event.participantAuthorizationRevoked, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
200
|
-
/* com.daml.ledger.api.v2.ParticipantAuthorizationAdded participant_authorization_added = 3; */
|
|
201
|
-
if (message.event.oneofKind === 'participantAuthorizationAdded')
|
|
202
|
-
ParticipantAuthorizationAdded.internalBinaryWrite(message.event.participantAuthorizationAdded, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
203
|
-
let u = options.writeUnknownFields;
|
|
204
|
-
if (u !== false)
|
|
205
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
206
|
-
return writer;
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
/**
|
|
210
|
-
* @generated MessageType for protobuf message com.daml.ledger.api.v2.TopologyEvent
|
|
211
|
-
*/
|
|
212
|
-
export const TopologyEvent = new TopologyEvent$Type();
|
|
213
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
214
|
-
class ParticipantAuthorizationAdded$Type extends MessageType {
|
|
215
|
-
constructor() {
|
|
216
|
-
super('com.daml.ledger.api.v2.ParticipantAuthorizationAdded', [
|
|
217
|
-
{
|
|
218
|
-
no: 1,
|
|
219
|
-
name: 'party_id',
|
|
220
|
-
kind: 'scalar',
|
|
221
|
-
T: 9 /*ScalarType.STRING*/,
|
|
222
|
-
},
|
|
223
|
-
{
|
|
224
|
-
no: 2,
|
|
225
|
-
name: 'participant_id',
|
|
226
|
-
kind: 'scalar',
|
|
227
|
-
T: 9 /*ScalarType.STRING*/,
|
|
228
|
-
},
|
|
229
|
-
{
|
|
230
|
-
no: 3,
|
|
231
|
-
name: 'participant_permission',
|
|
232
|
-
kind: 'enum',
|
|
233
|
-
T: () => [
|
|
234
|
-
'com.daml.ledger.api.v2.ParticipantPermission',
|
|
235
|
-
ParticipantPermission,
|
|
236
|
-
'PARTICIPANT_PERMISSION_',
|
|
237
|
-
],
|
|
238
|
-
},
|
|
239
|
-
]);
|
|
240
|
-
}
|
|
241
|
-
create(value) {
|
|
242
|
-
const message = globalThis.Object.create(this.messagePrototype);
|
|
243
|
-
message.partyId = '';
|
|
244
|
-
message.participantId = '';
|
|
245
|
-
message.participantPermission = 0;
|
|
246
|
-
if (value !== undefined)
|
|
247
|
-
reflectionMergePartial(this, message, value);
|
|
248
|
-
return message;
|
|
249
|
-
}
|
|
250
|
-
internalBinaryRead(reader, length, options, target) {
|
|
251
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
252
|
-
while (reader.pos < end) {
|
|
253
|
-
let [fieldNo, wireType] = reader.tag();
|
|
254
|
-
switch (fieldNo) {
|
|
255
|
-
case /* string party_id */ 1:
|
|
256
|
-
message.partyId = reader.string();
|
|
257
|
-
break;
|
|
258
|
-
case /* string participant_id */ 2:
|
|
259
|
-
message.participantId = reader.string();
|
|
260
|
-
break;
|
|
261
|
-
case /* com.daml.ledger.api.v2.ParticipantPermission participant_permission */ 3:
|
|
262
|
-
message.participantPermission = reader.int32();
|
|
263
|
-
break;
|
|
264
|
-
default:
|
|
265
|
-
let u = options.readUnknownField;
|
|
266
|
-
if (u === 'throw')
|
|
267
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
268
|
-
let d = reader.skip(wireType);
|
|
269
|
-
if (u !== false)
|
|
270
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
return message;
|
|
274
|
-
}
|
|
275
|
-
internalBinaryWrite(message, writer, options) {
|
|
276
|
-
/* string party_id = 1; */
|
|
277
|
-
if (message.partyId !== '')
|
|
278
|
-
writer.tag(1, WireType.LengthDelimited).string(message.partyId);
|
|
279
|
-
/* string participant_id = 2; */
|
|
280
|
-
if (message.participantId !== '')
|
|
281
|
-
writer
|
|
282
|
-
.tag(2, WireType.LengthDelimited)
|
|
283
|
-
.string(message.participantId);
|
|
284
|
-
/* com.daml.ledger.api.v2.ParticipantPermission participant_permission = 3; */
|
|
285
|
-
if (message.participantPermission !== 0)
|
|
286
|
-
writer.tag(3, WireType.Varint).int32(message.participantPermission);
|
|
287
|
-
let u = options.writeUnknownFields;
|
|
288
|
-
if (u !== false)
|
|
289
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
290
|
-
return writer;
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
/**
|
|
294
|
-
* @generated MessageType for protobuf message com.daml.ledger.api.v2.ParticipantAuthorizationAdded
|
|
295
|
-
*/
|
|
296
|
-
export const ParticipantAuthorizationAdded = new ParticipantAuthorizationAdded$Type();
|
|
297
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
298
|
-
class ParticipantAuthorizationChanged$Type extends MessageType {
|
|
299
|
-
constructor() {
|
|
300
|
-
super('com.daml.ledger.api.v2.ParticipantAuthorizationChanged', [
|
|
301
|
-
{
|
|
302
|
-
no: 1,
|
|
303
|
-
name: 'party_id',
|
|
304
|
-
kind: 'scalar',
|
|
305
|
-
T: 9 /*ScalarType.STRING*/,
|
|
306
|
-
},
|
|
307
|
-
{
|
|
308
|
-
no: 2,
|
|
309
|
-
name: 'participant_id',
|
|
310
|
-
kind: 'scalar',
|
|
311
|
-
T: 9 /*ScalarType.STRING*/,
|
|
312
|
-
},
|
|
313
|
-
{
|
|
314
|
-
no: 3,
|
|
315
|
-
name: 'participant_permission',
|
|
316
|
-
kind: 'enum',
|
|
317
|
-
T: () => [
|
|
318
|
-
'com.daml.ledger.api.v2.ParticipantPermission',
|
|
319
|
-
ParticipantPermission,
|
|
320
|
-
'PARTICIPANT_PERMISSION_',
|
|
321
|
-
],
|
|
322
|
-
},
|
|
323
|
-
]);
|
|
324
|
-
}
|
|
325
|
-
create(value) {
|
|
326
|
-
const message = globalThis.Object.create(this.messagePrototype);
|
|
327
|
-
message.partyId = '';
|
|
328
|
-
message.participantId = '';
|
|
329
|
-
message.participantPermission = 0;
|
|
330
|
-
if (value !== undefined)
|
|
331
|
-
reflectionMergePartial(this, message, value);
|
|
332
|
-
return message;
|
|
333
|
-
}
|
|
334
|
-
internalBinaryRead(reader, length, options, target) {
|
|
335
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
336
|
-
while (reader.pos < end) {
|
|
337
|
-
let [fieldNo, wireType] = reader.tag();
|
|
338
|
-
switch (fieldNo) {
|
|
339
|
-
case /* string party_id */ 1:
|
|
340
|
-
message.partyId = reader.string();
|
|
341
|
-
break;
|
|
342
|
-
case /* string participant_id */ 2:
|
|
343
|
-
message.participantId = reader.string();
|
|
344
|
-
break;
|
|
345
|
-
case /* com.daml.ledger.api.v2.ParticipantPermission participant_permission */ 3:
|
|
346
|
-
message.participantPermission = reader.int32();
|
|
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 party_id = 1; */
|
|
361
|
-
if (message.partyId !== '')
|
|
362
|
-
writer.tag(1, WireType.LengthDelimited).string(message.partyId);
|
|
363
|
-
/* string participant_id = 2; */
|
|
364
|
-
if (message.participantId !== '')
|
|
365
|
-
writer
|
|
366
|
-
.tag(2, WireType.LengthDelimited)
|
|
367
|
-
.string(message.participantId);
|
|
368
|
-
/* com.daml.ledger.api.v2.ParticipantPermission participant_permission = 3; */
|
|
369
|
-
if (message.participantPermission !== 0)
|
|
370
|
-
writer.tag(3, WireType.Varint).int32(message.participantPermission);
|
|
371
|
-
let u = options.writeUnknownFields;
|
|
372
|
-
if (u !== false)
|
|
373
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
374
|
-
return writer;
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
|
-
/**
|
|
378
|
-
* @generated MessageType for protobuf message com.daml.ledger.api.v2.ParticipantAuthorizationChanged
|
|
379
|
-
*/
|
|
380
|
-
export const ParticipantAuthorizationChanged = new ParticipantAuthorizationChanged$Type();
|
|
381
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
382
|
-
class ParticipantAuthorizationRevoked$Type extends MessageType {
|
|
383
|
-
constructor() {
|
|
384
|
-
super('com.daml.ledger.api.v2.ParticipantAuthorizationRevoked', [
|
|
385
|
-
{
|
|
386
|
-
no: 1,
|
|
387
|
-
name: 'party_id',
|
|
388
|
-
kind: 'scalar',
|
|
389
|
-
T: 9 /*ScalarType.STRING*/,
|
|
390
|
-
},
|
|
391
|
-
{
|
|
392
|
-
no: 2,
|
|
393
|
-
name: 'participant_id',
|
|
394
|
-
kind: 'scalar',
|
|
395
|
-
T: 9 /*ScalarType.STRING*/,
|
|
396
|
-
},
|
|
397
|
-
]);
|
|
398
|
-
}
|
|
399
|
-
create(value) {
|
|
400
|
-
const message = globalThis.Object.create(this.messagePrototype);
|
|
401
|
-
message.partyId = '';
|
|
402
|
-
message.participantId = '';
|
|
403
|
-
if (value !== undefined)
|
|
404
|
-
reflectionMergePartial(this, message, value);
|
|
405
|
-
return message;
|
|
406
|
-
}
|
|
407
|
-
internalBinaryRead(reader, length, options, target) {
|
|
408
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
409
|
-
while (reader.pos < end) {
|
|
410
|
-
let [fieldNo, wireType] = reader.tag();
|
|
411
|
-
switch (fieldNo) {
|
|
412
|
-
case /* string party_id */ 1:
|
|
413
|
-
message.partyId = reader.string();
|
|
414
|
-
break;
|
|
415
|
-
case /* string participant_id */ 2:
|
|
416
|
-
message.participantId = reader.string();
|
|
417
|
-
break;
|
|
418
|
-
default:
|
|
419
|
-
let u = options.readUnknownField;
|
|
420
|
-
if (u === 'throw')
|
|
421
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
422
|
-
let d = reader.skip(wireType);
|
|
423
|
-
if (u !== false)
|
|
424
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
425
|
-
}
|
|
426
|
-
}
|
|
427
|
-
return message;
|
|
428
|
-
}
|
|
429
|
-
internalBinaryWrite(message, writer, options) {
|
|
430
|
-
/* string party_id = 1; */
|
|
431
|
-
if (message.partyId !== '')
|
|
432
|
-
writer.tag(1, WireType.LengthDelimited).string(message.partyId);
|
|
433
|
-
/* string participant_id = 2; */
|
|
434
|
-
if (message.participantId !== '')
|
|
435
|
-
writer
|
|
436
|
-
.tag(2, WireType.LengthDelimited)
|
|
437
|
-
.string(message.participantId);
|
|
438
|
-
let u = options.writeUnknownFields;
|
|
439
|
-
if (u !== false)
|
|
440
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
441
|
-
return writer;
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
/**
|
|
445
|
-
* @generated MessageType for protobuf message com.daml.ledger.api.v2.ParticipantAuthorizationRevoked
|
|
446
|
-
*/
|
|
447
|
-
export const ParticipantAuthorizationRevoked = new ParticipantAuthorizationRevoked$Type();
|
|
@@ -1,33 +0,0 @@
|
|
|
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
|
-
/**
|
|
8
|
-
* @generated from protobuf message com.daml.ledger.api.v2.TraceContext
|
|
9
|
-
*/
|
|
10
|
-
export interface TraceContext {
|
|
11
|
-
/**
|
|
12
|
-
* https://www.w3.org/TR/trace-context/
|
|
13
|
-
*
|
|
14
|
-
* @generated from protobuf field: optional string traceparent = 1
|
|
15
|
-
*/
|
|
16
|
-
traceparent?: string;
|
|
17
|
-
/**
|
|
18
|
-
* @generated from protobuf field: optional string tracestate = 2
|
|
19
|
-
*/
|
|
20
|
-
tracestate?: string;
|
|
21
|
-
}
|
|
22
|
-
declare class TraceContext$Type extends MessageType<TraceContext> {
|
|
23
|
-
constructor();
|
|
24
|
-
create(value?: PartialMessage<TraceContext>): TraceContext;
|
|
25
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TraceContext): TraceContext;
|
|
26
|
-
internalBinaryWrite(message: TraceContext, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* @generated MessageType for protobuf message com.daml.ledger.api.v2.TraceContext
|
|
30
|
-
*/
|
|
31
|
-
export declare const TraceContext: TraceContext$Type;
|
|
32
|
-
export {};
|
|
33
|
-
//# sourceMappingURL=trace_context.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"trace_context.d.ts","sourceRoot":"","sources":["../../../../../../../src/_proto/com/daml/ledger/api/v2/trace_context.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAE1D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAClD;;GAEG;AACH,MAAM,WAAW,YAAY;IACzB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,cAAM,iBAAkB,SAAQ,WAAW,CAAC,YAAY,CAAC;;IAmBrD,MAAM,CAAC,KAAK,CAAC,EAAE,cAAc,CAAC,YAAY,CAAC,GAAG,YAAY;IAM1D,kBAAkB,CACd,MAAM,EAAE,aAAa,EACrB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,iBAAiB,EAC1B,MAAM,CAAC,EAAE,YAAY,GACtB,YAAY;IA+Bf,mBAAmB,CACf,OAAO,EAAE,YAAY,EACrB,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,kBAAkB,GAC5B,aAAa;CAgBnB;AACD;;GAEG;AACH,eAAO,MAAM,YAAY,mBAA0B,CAAA"}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { WireType } from '@protobuf-ts/runtime';
|
|
2
|
-
import { UnknownFieldHandler } from '@protobuf-ts/runtime';
|
|
3
|
-
import { reflectionMergePartial } from '@protobuf-ts/runtime';
|
|
4
|
-
import { MessageType } from '@protobuf-ts/runtime';
|
|
5
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
6
|
-
class TraceContext$Type extends MessageType {
|
|
7
|
-
constructor() {
|
|
8
|
-
super('com.daml.ledger.api.v2.TraceContext', [
|
|
9
|
-
{
|
|
10
|
-
no: 1,
|
|
11
|
-
name: 'traceparent',
|
|
12
|
-
kind: 'scalar',
|
|
13
|
-
opt: true,
|
|
14
|
-
T: 9 /*ScalarType.STRING*/,
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
no: 2,
|
|
18
|
-
name: 'tracestate',
|
|
19
|
-
kind: 'scalar',
|
|
20
|
-
opt: true,
|
|
21
|
-
T: 9 /*ScalarType.STRING*/,
|
|
22
|
-
},
|
|
23
|
-
]);
|
|
24
|
-
}
|
|
25
|
-
create(value) {
|
|
26
|
-
const message = globalThis.Object.create(this.messagePrototype);
|
|
27
|
-
if (value !== undefined)
|
|
28
|
-
reflectionMergePartial(this, message, value);
|
|
29
|
-
return message;
|
|
30
|
-
}
|
|
31
|
-
internalBinaryRead(reader, length, options, target) {
|
|
32
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
33
|
-
while (reader.pos < end) {
|
|
34
|
-
let [fieldNo, wireType] = reader.tag();
|
|
35
|
-
switch (fieldNo) {
|
|
36
|
-
case /* optional string traceparent */ 1:
|
|
37
|
-
message.traceparent = reader.string();
|
|
38
|
-
break;
|
|
39
|
-
case /* optional string tracestate */ 2:
|
|
40
|
-
message.tracestate = reader.string();
|
|
41
|
-
break;
|
|
42
|
-
default:
|
|
43
|
-
let u = options.readUnknownField;
|
|
44
|
-
if (u === 'throw')
|
|
45
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
46
|
-
let d = reader.skip(wireType);
|
|
47
|
-
if (u !== false)
|
|
48
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
return message;
|
|
52
|
-
}
|
|
53
|
-
internalBinaryWrite(message, writer, options) {
|
|
54
|
-
/* optional string traceparent = 1; */
|
|
55
|
-
if (message.traceparent !== undefined)
|
|
56
|
-
writer.tag(1, WireType.LengthDelimited).string(message.traceparent);
|
|
57
|
-
/* optional string tracestate = 2; */
|
|
58
|
-
if (message.tracestate !== undefined)
|
|
59
|
-
writer.tag(2, WireType.LengthDelimited).string(message.tracestate);
|
|
60
|
-
let u = options.writeUnknownFields;
|
|
61
|
-
if (u !== false)
|
|
62
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
63
|
-
return writer;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* @generated MessageType for protobuf message com.daml.ledger.api.v2.TraceContext
|
|
68
|
-
*/
|
|
69
|
-
export const TraceContext = new TraceContext$Type();
|