daml/language-support/scala
Victor Peter Rouven Müller 7fd590694e
Add LedgerClientWithoutLedgerId next to the LedgerClient (#10681)
* Add the LedgerClientWithoutLedgerId class

* Minimize diff

changelog_begin
changelog_end

* Minimize diff further

* Add missing license header & reformat

* Update language-support/scala/bindings-akka/src/main/scala/com/digitalasset/ledger/client/binding/LedgerClientBinding.scala

Co-authored-by: Stefano Baghino <43749967+stefanobaghino-da@users.noreply.github.com>

* Update ledger/ledger-api-client/src/main/scala/com/digitalasset/ledger/client/LedgerClient.scala

Co-authored-by: Stefano Baghino <43749967+stefanobaghino-da@users.noreply.github.com>

* Add changelog

changelog_begin

- [Ledger Client Scala Bindings] A new variant of the LedgerClient class
    was added called `LedgerClientWithoutLedgerId`. This class does not
    need a ledger id at initialization. It was added to allow skipping
    any checks at initialization for use cases where either the
    ledger id is not known at initalization or no valid token can be fed
    at initialization for checking the ledger id. Furthermore for each
    classes `ActiveContractSetClient`, `CommandClient`, `PackageClient`,
    `TransactionClient`, `VersionClient` now exists a variant which
    doesn't depend on a ledger id at initialization and instead requires
    one for every function as parameter. Moreover the existing classes
    are extending these classes with overriding the methods and setting
    the default of the parameter with the given ledger id from
    initialization. The class `LedgerClientWithoutLedgerId` already
    makes usage of these variants e.g. `PackageClientWithoutLedgerId`.

changelog_end

* More changelog

changelog_begin

- [Ledger Client Scala Bindings] The function `transactionSource` of the
    class `LedgerClientBinding` now optionally accepts a token which is
    passed on to the unterlying call.

changelog_end

Co-authored-by: Stefano Baghino <43749967+stefanobaghino-da@users.noreply.github.com>
2021-08-31 14:11:52 +01:00
..
bindings ledger-api-client: Wrap command submissions in a new class. [KVL-1009] (#10683) 2021-08-26 17:44:12 +02:00
bindings-akka Add LedgerClientWithoutLedgerId next to the LedgerClient (#10681) 2021-08-31 14:11:52 +01:00
bindings-akka-testing Upgrade Scalatest to v3.2.9. (#10576) 2021-08-12 23:19:35 +00:00
codegen Upgrade Scalatest to v3.2.9. (#10576) 2021-08-12 23:19:35 +00:00
codegen-sample-app ledger-api-client: Wrap command submissions in a new class. [KVL-1009] (#10683) 2021-08-26 17:44:12 +02:00
codegen-testing Upgrade Scalatest to v3.2.9. (#10576) 2021-08-12 23:19:35 +00:00
examples Remove trace_context field from Ledger API [KVL-1021] (#10256) 2021-07-15 19:06:25 +02:00