mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-17 15:57:21 +03:00
Fixes to kvutils when used as external workspace (#984)
* Export daml_kvutils_java_proto and add (un)packDamlLogEntryId Export needed when using kvutils via bazel from another workspace. * Use 'String' for participant state's LedgerId Ref.PackageId is the wrong thing, and likely MatchingStringModule isn't very usable from Java.
This commit is contained in:
parent
8534e2837f
commit
0dc49ea811
@ -15,6 +15,7 @@ da_scala_library(
|
||||
visibility = [
|
||||
"//visibility:public",
|
||||
],
|
||||
exports = [":daml_kvutils_java_proto"],
|
||||
runtime_deps = [],
|
||||
deps = [
|
||||
":daml_kvutils_java_proto",
|
||||
|
@ -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.
|
||||
*/
|
||||
|
@ -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). */
|
||||
|
Loading…
Reference in New Issue
Block a user