daml/ledger/participant-state-index/BUILD.bazel

36 lines
1.2 KiB
Python
Raw Normal View History

# Copyright (c) 2022 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
DamlOnX reference implementation (#348) * Add participant-state and participant-state-index APIs and reference implementations This adds the (still WIP) interfaces and the in-memory reference implementations of participant-state and participant-state-index. See issue #137. * Pass ledgerId through to getLedgerEnd method This is needed in the daml-on-x implementation of the transaction service. * Add api-server-damlonx and the reference server This is the initial version of the ledger-api server built on top of the participant state APIs. While functionally complete (modulo test services), it has only yet been tested with the semantic tester. The server and the participant state APIs are still under active development. See issue #137. * Apply scalafmt and copyright headers to new damlonx code * ledger/damlonx: Fix build errors after merge from master * ledger/participant-state: separate out the reference impl * ledger/participant-state-index: separate out reference impl * ledger/damlonx: Refactoring - Refactor participant-state into multiple modules - Introduce structured offset and update id types (vector of ints) - Properly parse ledger feature flags * ledger: Disable failing semantic test. Decrease grouping duration. * scalafmt, fix after merge * Add missing copyright headers * ledger/damlonx: Add Simon's comments * ledger/damlonx: Remove UpdateId, use Offset in both state and state-index. * ledger/damlonx: scalafmt * damlonxserver: review participant-state interface Includes adding issue links for postponed fixes. * daml-on-x-server: review reference implementation Fixme's added to https://github.com/digital-asset/daml/pull/348 and extra issues creaed in https://github.com/digital-asset/daml/milestone/4 * ledger/damlonx: Use SimpleString * ledgre/damlonx: Backtrack on SimpleString change See issue #398 * daml-on-x-server: drop unused 'index.impl.reference.package.scala' * daml-on-x-server: add note on potential transient contracts bug * ledger/participant-state*: post-merge fixes
2019-04-11 19:05:08 +03:00
# SPDX-License-Identifier: Apache-2.0
load(
"//bazel_tools:scala.bzl",
"da_scala_library",
DamlOnX reference implementation (#348) * Add participant-state and participant-state-index APIs and reference implementations This adds the (still WIP) interfaces and the in-memory reference implementations of participant-state and participant-state-index. See issue #137. * Pass ledgerId through to getLedgerEnd method This is needed in the daml-on-x implementation of the transaction service. * Add api-server-damlonx and the reference server This is the initial version of the ledger-api server built on top of the participant state APIs. While functionally complete (modulo test services), it has only yet been tested with the semantic tester. The server and the participant state APIs are still under active development. See issue #137. * Apply scalafmt and copyright headers to new damlonx code * ledger/damlonx: Fix build errors after merge from master * ledger/participant-state: separate out the reference impl * ledger/participant-state-index: separate out reference impl * ledger/damlonx: Refactoring - Refactor participant-state into multiple modules - Introduce structured offset and update id types (vector of ints) - Properly parse ledger feature flags * ledger: Disable failing semantic test. Decrease grouping duration. * scalafmt, fix after merge * Add missing copyright headers * ledger/damlonx: Add Simon's comments * ledger/damlonx: Remove UpdateId, use Offset in both state and state-index. * ledger/damlonx: scalafmt * damlonxserver: review participant-state interface Includes adding issue links for postponed fixes. * daml-on-x-server: review reference implementation Fixme's added to https://github.com/digital-asset/daml/pull/348 and extra issues creaed in https://github.com/digital-asset/daml/milestone/4 * ledger/damlonx: Use SimpleString * ledgre/damlonx: Backtrack on SimpleString change See issue #398 * daml-on-x-server: drop unused 'index.impl.reference.package.scala' * daml-on-x-server: add note on potential transient contracts bug * ledger/participant-state*: post-merge fixes
2019-04-11 19:05:08 +03:00
)
da_scala_library(
name = "participant-state-index",
srcs = glob(["src/main/scala/com/daml/ledger/participant/state/index/**/*.scala"]),
resources = glob(["src/main/resources/**/*"]),
scala_deps = [
"@maven//:com_typesafe_akka_akka_actor",
"@maven//:com_typesafe_akka_akka_stream",
"@maven//:org_scalaz_scalaz_core",
],
tags = ["maven_coordinates=com.daml:participant-state-index:__VERSION__"],
visibility = [
"//visibility:public",
],
runtime_deps = [],
Remove unused dependencies to da_scala_library (#3938) * Inline all scala_library dependencies * Run //:buildifier-fix * TMP scala_library_suite --> scala_library * da_scala_library: Enable unused dependency checker * scala_library: Enable unused dependency checker * //daml-lf/data:data * //daml-lf/engine:engine * //ledger-api/rs-grpc-akka:rs-grpc-akka * //ledger/participant-state:participant-state * //ledger/ledger-api-client:ledger-api-client * //scala-protoc-plugins/scala-logging:scala-logging-lib * //ledger/ledger-api-scala-logging:ledger-api-scala-logging * //ledger/ledger-api-common:ledger-api-common * //ledger-service/utils:utils * //ledger-service/jwt:jwt * //ledger/ledger-api-auth:ledger-api-auth * //extractor:extractor * //daml-assistant/scala-daml-project-config:scala-daml-project-config * //language-support/codegen-common:codegen-common * //language-support/scala/codegen:codegen * //language-support/codegen-main:codegen-main-lib * //ledger-service/db-backend:db-backend * //ledger-service/http-json:http-json * //daml-lf/scenario-interpreter:scenario-interpreter * //ledger/sandbox:sandbox * //navigator/backend:navigator-library * //daml-assistant/daml-sdk:sdk-lib * //daml-lf/data-scalacheck:data-scalacheck * //daml-script/test:test-lib * //ledger/ledger-api-common:ledger-api-common-scala-tests-lib * //ledger/test-common:test-common * //ledger/sandbox:sandbox-scala-tests-lib * //extractor:extractor-scala-tests-lib * //language-support/java/bindings:bindings-java-tests-lib * //language-support/java/bindings-rxjava:bindings-java-tests-lib * //language-support/scala/bindings-akka-testing:bindings-akka-testing * //language-support/scala/codegen-testing:codegen-testing * //language-support/scala/codegen-sample-app:daml-lf-codegen-sample-app * //language-support/scala/codegen-sample-app:daml-lf-codegen-sample-app-testing * //language-support/scala/codegen-testing:codegen-testing-testing * //ledger-api/sample-service:sample-service * //ledger-api/rs-grpc-akka:rs-grpc-akka-tests-lib * //ledger/ledger-api-test-tool:ledger-api-test-tool-lib * //ledger/ledger-api-test-tool:ledger-api-test-tool-tests * //ledger/participant-state/kvutils:kvutils * //ledger/sandbox:ledger-api-server * //ledger/sandbox-perf:sandbox-perf-lib * //navigator/backend:navigator-tests-library * UNDO scala_library_suite --> scala_library This reverts commit ab3eb1ae23139e2ec431ab4551fbb0371e0354e1. Co-authored-by: Andreas Herrmann <andreash87@gmx.ch>
2020-01-06 20:14:21 +03:00
deps = [
"//daml-lf/archive:daml_lf_1.dev_archive_proto_java",
Remove unused dependencies to da_scala_library (#3938) * Inline all scala_library dependencies * Run //:buildifier-fix * TMP scala_library_suite --> scala_library * da_scala_library: Enable unused dependency checker * scala_library: Enable unused dependency checker * //daml-lf/data:data * //daml-lf/engine:engine * //ledger-api/rs-grpc-akka:rs-grpc-akka * //ledger/participant-state:participant-state * //ledger/ledger-api-client:ledger-api-client * //scala-protoc-plugins/scala-logging:scala-logging-lib * //ledger/ledger-api-scala-logging:ledger-api-scala-logging * //ledger/ledger-api-common:ledger-api-common * //ledger-service/utils:utils * //ledger-service/jwt:jwt * //ledger/ledger-api-auth:ledger-api-auth * //extractor:extractor * //daml-assistant/scala-daml-project-config:scala-daml-project-config * //language-support/codegen-common:codegen-common * //language-support/scala/codegen:codegen * //language-support/codegen-main:codegen-main-lib * //ledger-service/db-backend:db-backend * //ledger-service/http-json:http-json * //daml-lf/scenario-interpreter:scenario-interpreter * //ledger/sandbox:sandbox * //navigator/backend:navigator-library * //daml-assistant/daml-sdk:sdk-lib * //daml-lf/data-scalacheck:data-scalacheck * //daml-script/test:test-lib * //ledger/ledger-api-common:ledger-api-common-scala-tests-lib * //ledger/test-common:test-common * //ledger/sandbox:sandbox-scala-tests-lib * //extractor:extractor-scala-tests-lib * //language-support/java/bindings:bindings-java-tests-lib * //language-support/java/bindings-rxjava:bindings-java-tests-lib * //language-support/scala/bindings-akka-testing:bindings-akka-testing * //language-support/scala/codegen-testing:codegen-testing * //language-support/scala/codegen-sample-app:daml-lf-codegen-sample-app * //language-support/scala/codegen-sample-app:daml-lf-codegen-sample-app-testing * //language-support/scala/codegen-testing:codegen-testing-testing * //ledger-api/sample-service:sample-service * //ledger-api/rs-grpc-akka:rs-grpc-akka-tests-lib * //ledger/ledger-api-test-tool:ledger-api-test-tool-lib * //ledger/ledger-api-test-tool:ledger-api-test-tool-tests * //ledger/participant-state/kvutils:kvutils * //ledger/sandbox:ledger-api-server * //ledger/sandbox-perf:sandbox-perf-lib * //navigator/backend:navigator-tests-library * UNDO scala_library_suite --> scala_library This reverts commit ab3eb1ae23139e2ec431ab4551fbb0371e0354e1. Co-authored-by: Andreas Herrmann <andreash87@gmx.ch>
2020-01-06 20:14:21 +03:00
"//daml-lf/data",
"//daml-lf/transaction",
"//ledger-api/grpc-definitions:ledger_api_proto_scala",
Remove unused dependencies to da_scala_library (#3938) * Inline all scala_library dependencies * Run //:buildifier-fix * TMP scala_library_suite --> scala_library * da_scala_library: Enable unused dependency checker * scala_library: Enable unused dependency checker * //daml-lf/data:data * //daml-lf/engine:engine * //ledger-api/rs-grpc-akka:rs-grpc-akka * //ledger/participant-state:participant-state * //ledger/ledger-api-client:ledger-api-client * //scala-protoc-plugins/scala-logging:scala-logging-lib * //ledger/ledger-api-scala-logging:ledger-api-scala-logging * //ledger/ledger-api-common:ledger-api-common * //ledger-service/utils:utils * //ledger-service/jwt:jwt * //ledger/ledger-api-auth:ledger-api-auth * //extractor:extractor * //daml-assistant/scala-daml-project-config:scala-daml-project-config * //language-support/codegen-common:codegen-common * //language-support/scala/codegen:codegen * //language-support/codegen-main:codegen-main-lib * //ledger-service/db-backend:db-backend * //ledger-service/http-json:http-json * //daml-lf/scenario-interpreter:scenario-interpreter * //ledger/sandbox:sandbox * //navigator/backend:navigator-library * //daml-assistant/daml-sdk:sdk-lib * //daml-lf/data-scalacheck:data-scalacheck * //daml-script/test:test-lib * //ledger/ledger-api-common:ledger-api-common-scala-tests-lib * //ledger/test-common:test-common * //ledger/sandbox:sandbox-scala-tests-lib * //extractor:extractor-scala-tests-lib * //language-support/java/bindings:bindings-java-tests-lib * //language-support/java/bindings-rxjava:bindings-java-tests-lib * //language-support/scala/bindings-akka-testing:bindings-akka-testing * //language-support/scala/codegen-testing:codegen-testing * //language-support/scala/codegen-sample-app:daml-lf-codegen-sample-app * //language-support/scala/codegen-sample-app:daml-lf-codegen-sample-app-testing * //language-support/scala/codegen-testing:codegen-testing-testing * //ledger-api/sample-service:sample-service * //ledger-api/rs-grpc-akka:rs-grpc-akka-tests-lib * //ledger/ledger-api-test-tool:ledger-api-test-tool-lib * //ledger/ledger-api-test-tool:ledger-api-test-tool-tests * //ledger/participant-state/kvutils:kvutils * //ledger/sandbox:ledger-api-server * //ledger/sandbox-perf:sandbox-perf-lib * //navigator/backend:navigator-tests-library * UNDO scala_library_suite --> scala_library This reverts commit ab3eb1ae23139e2ec431ab4551fbb0371e0354e1. Co-authored-by: Andreas Herrmann <andreash87@gmx.ch>
2020-01-06 20:14:21 +03:00
"//ledger/ledger-api-domain",
"//ledger/ledger-api-health",
"//ledger/ledger-configuration",
"//ledger/ledger-offset",
Properly use LoggingContext in Participant Server (#6924) * Properly use LoggingContext in Participant Server Fixes #6837 Spreads usage of LoggingContext and ContextualizedLogger throughout the participant server. changelog_begin [Sandbox/Integration Kit] We have enriched the contextual information exposed by the Ledger API server. You should note richer logging information, which can be read either via unstructured or structured logging frameworks. A paragraph on how to configure structured logging has been added to the docs. For more on the issue, see https://github.com/digital-asset/daml/issues/6837. changelog_end * Make everything compile * Leave only actual commands on trace level on submission * Shorter log messages on submission * Don't add values down the call stack * Document good practices regarding the logging context * Add context to write service implementations * Add logging context to tests * Document logging for DAML on SQL * Address https://github.com/digital-asset/daml/pull/6924#discussion_r463503013 * Address https://github.com/digital-asset/daml/pull/6924#discussion_r463508117 * Address https://github.com/digital-asset/daml/pull/6924#discussion_r463515665 * Address https://github.com/digital-asset/daml/pull/6924#discussion_r463513157 * Address https://github.com/digital-asset/daml/pull/6924#discussion_r463516359 * Address https://github.com/digital-asset/daml/pull/6924#discussion_r463516895 * Address https://github.com/digital-asset/daml/pull/6924#discussion_r463518813 * Address https://github.com/digital-asset/daml/pull/6924#discussion_r463520210 * Address https://github.com/digital-asset/daml/pull/6924#discussion_r463521501 * Address https://github.com/digital-asset/daml/pull/6924#discussion_r463521593 * Address https://github.com/digital-asset/daml/pull/6924#discussion_r463525453 * Address https://github.com/digital-asset/daml/pull/6924#discussion_r463525560 * Address https://github.com/digital-asset/daml/pull/6924#discussion_r463525672 * Address https://github.com/digital-asset/daml/pull/6924#discussion_r463525742 * Address https://github.com/digital-asset/daml/pull/6924#discussion_r463526837 * Address https://github.com/digital-asset/daml/pull/6924#discussion_r463527054 * Address https://github.com/digital-asset/daml/pull/6924#discussion_r463527523 * Address https://github.com/digital-asset/daml/pull/6924#discussion_r463527814 * Address https://github.com/digital-asset/daml/pull/6924#discussion_r463527958 * Address https://github.com/digital-asset/daml/pull/6924#discussion_r463527900 * Address https://github.com/digital-asset/daml/pull/6924#discussion_r463527997 * Address https://github.com/digital-asset/daml/pull/6924#discussion_r463528050 * Address https://github.com/digital-asset/daml/pull/6924#discussion_r463542877 * Address https://github.com/digital-asset/daml/pull/6924#discussion_r463543051 * Address https://github.com/digital-asset/daml/pull/6924#discussion_r463543614 * Address https://github.com/digital-asset/daml/pull/6924#discussion_r463543692
2020-07-31 15:40:13 +03:00
"//libs-scala/contextualized-logging",
"@maven//:com_google_protobuf_protobuf_java",
],
DamlOnX reference implementation (#348) * Add participant-state and participant-state-index APIs and reference implementations This adds the (still WIP) interfaces and the in-memory reference implementations of participant-state and participant-state-index. See issue #137. * Pass ledgerId through to getLedgerEnd method This is needed in the daml-on-x implementation of the transaction service. * Add api-server-damlonx and the reference server This is the initial version of the ledger-api server built on top of the participant state APIs. While functionally complete (modulo test services), it has only yet been tested with the semantic tester. The server and the participant state APIs are still under active development. See issue #137. * Apply scalafmt and copyright headers to new damlonx code * ledger/damlonx: Fix build errors after merge from master * ledger/participant-state: separate out the reference impl * ledger/participant-state-index: separate out reference impl * ledger/damlonx: Refactoring - Refactor participant-state into multiple modules - Introduce structured offset and update id types (vector of ints) - Properly parse ledger feature flags * ledger: Disable failing semantic test. Decrease grouping duration. * scalafmt, fix after merge * Add missing copyright headers * ledger/damlonx: Add Simon's comments * ledger/damlonx: Remove UpdateId, use Offset in both state and state-index. * ledger/damlonx: scalafmt * damlonxserver: review participant-state interface Includes adding issue links for postponed fixes. * daml-on-x-server: review reference implementation Fixme's added to https://github.com/digital-asset/daml/pull/348 and extra issues creaed in https://github.com/digital-asset/daml/milestone/4 * ledger/damlonx: Use SimpleString * ledgre/damlonx: Backtrack on SimpleString change See issue #398 * daml-on-x-server: drop unused 'index.impl.reference.package.scala' * daml-on-x-server: add note on potential transient contracts bug * ledger/participant-state*: post-merge fixes
2019-04-11 19:05:08 +03:00
)