diff --git a/ledger/participant-state/kvutils/BUILD.bazel b/ledger/participant-state/kvutils/BUILD.bazel index e0ea3adc1dbc..b62f2dfc01b5 100644 --- a/ledger/participant-state/kvutils/BUILD.bazel +++ b/ledger/participant-state/kvutils/BUILD.bazel @@ -15,6 +15,7 @@ da_scala_library( visibility = [ "//visibility:public", ], + exports = [":daml_kvutils_java_proto"], runtime_deps = [], deps = [ ":daml_kvutils_java_proto", diff --git a/ledger/participant-state/kvutils/src/main/scala/com/daml/ledger/participant/state/kvutils/KeyValueCommitting.scala b/ledger/participant-state/kvutils/src/main/scala/com/daml/ledger/participant/state/kvutils/KeyValueCommitting.scala index b194708ca889..a00bbb97b4d8 100644 --- a/ledger/participant-state/kvutils/src/main/scala/com/daml/ledger/participant/state/kvutils/KeyValueCommitting.scala +++ b/ledger/participant-state/kvutils/src/main/scala/com/daml/ledger/participant/state/kvutils/KeyValueCommitting.scala @@ -36,6 +36,9 @@ object KeyValueCommitting { def packDamlLogEntry(entry: DamlLogEntry): ByteString = entry.toByteString def unpackDamlLogEntry(bytes: ByteString): DamlLogEntry = DamlLogEntry.parseFrom(bytes) + def packDamlLogEntryId(entry: DamlLogEntryId): ByteString = entry.toByteString + def unpackDamlLogEntryId(bytes: ByteString): DamlLogEntryId = DamlLogEntryId.parseFrom(bytes) + /** Pretty-printing of the entry identifier. Uses the same hexadecimal encoding as is used * for absolute contract identifiers. */ diff --git a/ledger/participant-state/src/main/scala/com/daml/ledger/participant/state/v1/package.scala b/ledger/participant-state/src/main/scala/com/daml/ledger/participant/state/v1/package.scala index 2f89f4e96785..9ce8d26006e3 100644 --- a/ledger/participant-state/src/main/scala/com/daml/ledger/participant/state/v1/package.scala +++ b/ledger/participant-state/src/main/scala/com/daml/ledger/participant/state/v1/package.scala @@ -58,7 +58,7 @@ import com.digitalasset.daml.lf.value.Value package object v1 { /** Identifier for the ledger, MUST match regexp [a-zA-Z0-9-]. */ - type LedgerId = Ref.PackageId + type LedgerId = String /** Identifiers for transactions. * Currently unrestricted unicode (See issue #398). */