-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate ledger export related message from other kvutils messages [K…
…VL-980] (#10343) CHANGELOG_BEGIN * [Integration Kit] Made `daml_kvutils.proto`'s location follow its proto package and moved `LedgerExportEntry` into a separate proto file. You may have to update your proto import statements in case you are directly importing proto files from the kvutils library. CHANGELOG_END
- Loading branch information
Showing
5 changed files
with
42 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
...ls/src/main/protobuf/com/daml/ledger/participant/state/kvutils/export/ledger_export.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// Copyright (c) 2021 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
syntax = "proto3"; | ||
package com.daml.ledger.participant.state.kvutils.export; | ||
option java_package = "com.daml.ledger.participant.state.kvutils.export"; | ||
option csharp_namespace = "Com.Daml.Ledger.Participant.State.KVUtils.export"; | ||
|
||
import "google/protobuf/timestamp.proto"; | ||
import "com/daml/ledger/participant/state/kvutils/daml_kvutils.proto"; | ||
|
||
// A v3 export of a KV ledger. Used by the integrity checker to test that a new version of | ||
// kvutils can process older ledgers. | ||
message LedgerExportEntry { | ||
// Information about the submission. | ||
message SubmissionInfo { | ||
// The submitting participant ID. | ||
string participant_id = 1; | ||
|
||
// The correlation ID of the batch. | ||
string correlation_id = 2; | ||
|
||
// The submission to the ledger, wrapped in an envelope. | ||
bytes submission_envelope = 3; | ||
|
||
// the record time of the submission. | ||
google.protobuf.Timestamp record_time = 4; | ||
} | ||
|
||
// A single entry, either to the log or to the state. | ||
// Both key and value are serialized first. | ||
message WriteEntry { | ||
bytes key = 1; | ||
bytes value = 2; | ||
} | ||
|
||
SubmissionInfo submission_info = 1; | ||
repeated WriteEntry write_set = 2; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters