mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 01:07:18 +03:00
bafde51752
* add silent_annotations option to da scala bazel functions * use silent_annotations for several scala targets * use silencer_plugin instead when the lib isn't used * use silent_annotations for several more scala targets * use silencer_lib for strange indirect requirement for running tests * no changelog CHANGELOG_BEGIN CHANGELOG_END * silent_annotations support for scaladoc |
||
---|---|---|
.. | ||
src | ||
BUILD.bazel | ||
README.md |
Ledger Client Binding
This module contains the glue code between nanobot-framework
, scala-codegen
and prototype-client
(Scala binding for the ledger API). The gRPC API provided
by prototype-client
as it is is not type-safe. The incomming Transaction
s
from LedgerClient
is routed to DomainTransactionMapper
, which will:
- convert the data in
Transaction
to type-safe types coming fromapi-refinements
- call the
EventDecoder
provided byscala-codegen
for created events - verify that the messages contain all the neccessary fields, and remove
Optional
wrappers
The result of this will be the Domain*
classes.
In the other directions (for the commands coming out from the nanobots) the
'CompositeCommandAdapter' will be used to transform back to the gRPC interface
(SubmitRequest
). After the command submission, the outcoming Completion
will
be used to check the result, and based on that the CommandRetryFlow
can decide
wether the command should be retried or an error should be reported.