daml/ledger-api
nicu-da 7cc698948c
Add multiple ways of specifying deduplication [KVL-1047] (#10601)
CHANGELOG_BEGIN
ledger-api - Command deduplication period can now be specified by setting `deduplication_offset` instead of `deduplication_time` (only valid for v2 WriteService). This change is backwards compatible.
CHANGELOG_END

* Propagate the enriched deduplicationPeriod instead of deduplication duration

* Update the Haskell bindings for the new deduplication period

* Calculate the deduplicateUntil using the new deduplication period for backward compat

* Use consistent naming for deduplication_period

* Cleanup command timeout extraction from deduplication period

* Add the required deduplication_offset to deduplication instead of deduplication_start

* Update haskell bindings to support deduplication_offset

* Add support for deduplication_offset in the ledger-api

* Remove the timestamp-based deduplication from our models to simplify upgrade for users

* Add optional conformance test for offset based deduplication

* Remove buf rule for FIELD_SAME_ONEOF as our change is backwards compatible

* Disable FIELD_SAME_ONEOF buf check for commands file

* Apply suggestions from code review

Co-authored-by: Miklos <57664299+miklos-da@users.noreply.github.com>
Co-authored-by: Samir Talwar <samir.talwar@digitalasset.com>

* Update comment for deduplication period

Co-authored-by: Miklos <57664299+miklos-da@users.noreply.github.com>
Co-authored-by: Samir Talwar <samir.talwar@digitalasset.com>
2021-08-25 05:58:03 -07:00
..
grpc-definitions Add multiple ways of specifying deduplication [KVL-1047] (#10601) 2021-08-25 05:58:03 -07:00
perf-testing check whether collection.compat is unused when compiling for Scala 2.12 (#9604) 2021-05-11 21:54:14 +00:00
rs-grpc-akka Upgrade Scalatest to v3.2.9. (#10576) 2021-08-12 23:19:35 +00:00
rs-grpc-bridge Upgrade Scalatest to v3.2.9. (#10576) 2021-08-12 23:19:35 +00:00
rs-grpc-testing-utils Build and test //ledger-api/... against Scala 2.13 (#8452) 2021-01-11 16:53:54 +01:00
sample-service Upgrade Scalatest to v3.2.9. (#10576) 2021-08-12 23:19:35 +00:00
scripts open-sourcing daml 2019-04-04 09:33:38 +01:00
testing-utils Upgrade Scalatest to v3.2.9. (#10576) 2021-08-12 23:19:35 +00:00
.gitignore open-sourcing daml 2019-04-04 09:33:38 +01:00
.sbtopts open-sourcing daml 2019-04-04 09:33:38 +01:00
BUILD.bazel update copyright notices for 2021 (#8257) 2021-01-01 19:49:51 +01:00
README.md correct broken ledger-api-introduction links (#1565) 2019-06-07 15:18:21 -04:00
VERSION Ledger API: bump version for LF 1.14 (#10175) 2021-07-05 13:54:25 +00:00

Ledger-API

This is the API code for the ledger, which contains:

  • gRPC API definitions
  • Generated Scala bindings
  • gRPC-RS bridge
  • gRPC-Akka bridge
  • Server API classes with validation
  • Prototype Server
  • Prototype Clients
    • Scala
    • Python
    • Node.js
  • Integration tests for all of the above

Documentation

The Ledger API Introduction contains introductory material as well as links to the protodocs reference documentation.

See the docs README for more about how to preview and publish documentation.