Commit Graph

845 Commits

Author SHA1 Message Date
Andreas Herrmann
fa0815bc11
Example export (#9756)
* Pretty print daml.yaml in Daml ledger export

changelog_begin
changelog_end

* Use dynamic port in example-export generation

* Add daml.yaml to Daml ledger export golden test

* Sort data-dependencies for reproducibility

* Replace hashes in data-dependencies with a placeholder

To avoid test failure when any of these change.

* normalize data-dependencies path in scala client

So that the bazel build action is more reproducible itself.

* Fix Scala 2.12 build

* Factor out deleteRecursively

changelog_begin
changelog_end

* Generate ledger export in temp-dir

Build actions are not sandboxed in Windows. The ledger export will also
created a directory `deps` to store all the DALFs in. On Windows this
directory may persist across Bazel builds and may cause errors due to
attempts to overwrite an existing directory.

To avoid these issues the ledger export is generated into a temporary
directory and only the wanted files are moved to the expected output
locations in the bazel execroot afterwards.

* Close source

* Use replace instead of replaceFirst

The latter matches regex pattern instead of just substring matching
which fails with Windows paths due to `\` being interpreted as an escape
character.

* Normalize Windows \ to Unix /

Co-authored-by: Andreas Herrmann <andreas.herrmann@tweag.io>
2021-05-21 09:36:25 +02:00
Andreas Herrmann
10177d239e
Add golden test for example Daml ledger export (#9732)
* client_server_build - user defined outputs

Let the user define a list of output files on client_server_build.

changelog_begin
changelog_end

* daml-script runner expose main(config)

changelog_begin
changelog_end

* Add an example Daml ledger export to the docs

* Build Daml ledger export

changelog_begin
changelog_end

* sh_inline_test

Support toolchain arguments to sh_inline_test. Usefuly for make variable
expansion, e.g. for the POSIX toolchain.

* Add a golden test for Daml ledger export

* Test args files as well

* Use sed from POSIX toolchain

* Add normalization comment to top-level comment

* Ignore trailing CR on Windows

The JSON formatting of the args file uses Windows line endings on
Windows. Therefore, the args.json output technically differs from the
expected output. We're happy to ignore the difference in CRLF here.

Co-authored-by: Andreas Herrmann <andreas.herrmann@tweag.io>
2021-05-19 12:02:14 +00:00
Sofia Faro
3209188fcc
Add a ledger model page for exceptions. (#9396)
* Add a ledger model page for exceptions.

This page describes the changes to the ledger model as part of the exceptions feature. The changes should be kept separate for now, but once exceptions are stable and out for a while, they should probably be incorporated into the rest of the daml ledger model.

Part of #8020. **This PR is to be merged only when we start releasing exceptions.**

changelog_begin

- [docs] The Daml ledger model has been updated to describe the changes introduced by the new exceptions feature. See  here: https://docs.daml.com/concepts/ledger-model/ledger-exceptions.html

changelog_end

* Apply suggestions from code review

Co-authored-by: Ognjen Maric <ognjen.maric@digitalasset.com>

* Round 2

* Fix and simplify "after" relation!

* Easy fixes

* Diagrams for structure and integrity sections.

* Add missing diagrams :)

* clarify consistency section

* Authorization.

* Editing.

* fix label reference

Co-authored-by: Ognjen Maric <ognjen.maric@digitalasset.com>
2021-05-19 09:43:18 +00:00
Remy
679ce3b7d3
LF: Release LF 1.13 (#9705)
CHANGELOG_BEGIN

- LF: make LF 1.13 stable
   Add support for BigNumeric

- Ledger API: Bump Ledger API version for LF 1.12

CHANGELOG_END
2021-05-18 17:30:34 +02:00
Andreas Herrmann
f51145cb88
Support mapping from old to new party ids in daml exports (#9591)
* Factor out all encoding components

* Provide TextMap party mapping instead of record

This allows users to customize the mapping from old party names to new
party names.

* Emit bindings for parties at beginning of export

For better readability, to avoid `getParty "Alice" parties` all over the
place.

* getParty --> lookupParty to avoid conflict with Prelude

* Use DA.Traversable.mapA over TextMap

* Update integration test

* Update args.json

* Update the daml export docs

changelog_begin
* [Daml export] Users can now define a mapping from parties in the
  original ledger state to parties to be used when recontructing the
  ledger state. The ``parties`` component of the argument to the
  generated export script now takes a mapping from old party name to new
  party name.
changelog_end

* getContract --> lookupContract for consistency with lookupParty

Co-authored-by: Andreas Herrmann <andreas.herrmann@tweag.io>
2021-05-07 15:44:40 +02:00
Andreas Herrmann
e8d25b255e
Handle references to missing contracts (#9553)
* Take user defined mappings for unknown contracts

* Remove unused `allocateParties` helper

These are now provided in `args.json`.

* No longer fail on missing contract ids

* Generate a default args.json

* Configure daml start to run the export

Configures init-script and script-options such that `daml start` will
execute the export script with the default `args.json` input.

Configures navigator to display the default parties.

* Update daml export integration test

Input format has changed.

* Update documentation for daml ledger export

changelog_begin
* [Daml export] Daml ledger export now handles references to missing
  contracts. The generated export script takes a mapping from unknown
  contract ids to replacement contract ids as a parameter. Users can
  prepopulate the ledger with replacements of missing contracts and
  configure the export script to reference these replacements.
  The generated export script no longer exposes ``testExport`` as an
  entry point, instead Daml export generates a default input file
  ``args.json`` that can be used to execute the ``export`` function from
  ``daml script`` or ``daml start``.
changelog_end

* Reinstante testExport & allocateParties

Convenient for testing in Daml IDE or on ledgers that don't have
automatic party allocation.

* Add docstrings to the generated Daml export script

Co-authored-by: Andreas Herrmann <andreas.herrmann@tweag.io>
2021-05-03 15:52:40 +00:00
Gary Verhaegen
e39c20ecbc
update GPG public key (#9488)
The existing public key is set to expire in May, so we've changed it.

Note: this _should_ require no other change as the private key is
unchanged (i.e. the new public key can be used to verify old
signatures), but my understanding of GPG is somewhat limited so 🤷.

CHANGELOG_BEGIN
CHANGELOG_END
2021-04-27 13:40:02 +02:00
Andreas Herrmann
e525382dc2
Optionally emit setTime actions in daml export (#9469)
* Add setTime flag

changelog_begin
* [Daml export] Enable the ``--set-time`` flag on
  ``daml ledger export script`` to replicate transaction time stamps.
  This only works on ledgers operating in static time mode.
changelog_end

* Dump.scala --> Export.scala

So that the file name and class name match.

This was forgotten in 5e652bb2f8.

* Implement optional setTime actions

* Define Action type encompassing SetTime and Submit

Factor out construction of submit actions interleaved with setTime
actions.

This makes it easier to test the corresponding functionality in
isolation.

* EncodeSetTimeSpec

* ActionsFromTreesSpec

* update docs on daml ledger export

* Enable --set-time in integration test

To ensure that the generated code actually compiles

* Fix date/time encoding

Requires additional imports for DA.Time and DA.Date.
Requires qualified references to DA.Time.time, DA.Date.date, and
DA.Date.MONTH.

* Fix Scala 2.13

* Move setTime parameter to Action.fromTrees

* Move export transaction time docs out of caveats

Co-authored-by: Andreas Herrmann <andreas.herrmann@tweag.io>
2021-04-22 12:10:05 +00:00
Nemanja
7c6fac25ca
Hint for loading Daml Script example code (#9466)
Closes #9462
CHANGELOG_BEGIN
CHANGELOG_END
2021-04-22 13:41:46 +02:00
Andreas Herrmann
7644844fae
Document daml ledger export script (#9446)
* Document daml ledger export script

changelog_begin
* [Daml export] Refer to the "Ledger Export" chapter under the "Early
  Access Features" for a description of the new Daml ledger export
  command. This is an early access feature.
changelog_end

* Fix reference formatting

* Update docs/source/tools/export.rst

Co-authored-by: Moritz Kiefer <moritz.kiefer@purelyfunctional.org>

* Mark as alpha

* Clarify issue around archived contracts

Co-authored-by: Andreas Herrmann <andreas.herrmann@tweag.io>
Co-authored-by: Moritz Kiefer <moritz.kiefer@purelyfunctional.org>
2021-04-20 08:44:12 +00:00
anthonylusardi-da
11e5dd37e7
link to postgres docs (#9353)
* link to postgres docs

* CHANGELOG_BEGIN
CHANGELOG_END
2021-04-09 09:28:58 +02:00
Robin Krom
f84b6abc05
daml build: add a --access-token-file for remote dependencies (#9358)
* daml build: add a --access-token-file for remote dependencies

This adds a `ledger.access-token-file` field in the `daml.yaml` project
file and a `--access-token-file` flag to `daml build` to authorize
querying/fetching of remote dependencies.

CHANGELOG_BEGIN
[daml build] A new flag `--access-token-file` is added for the `daml
build` command. It allows the specify the path to an access token to
authenticate against the ledger API. This is needed if the project
depends on a remote Daml package hosted on such a ledger. Alternatively,
the path to the token can also be specified in the `daml.yaml` project
file under the `ledger.access-token-file` field.
CHANGELOG_END
2021-04-08 23:20:52 +02:00
Moritz Kiefer
0303017343
Delete "testing with scenarios" section (#9360)
This is superseded by
https://docs.daml.com/daml/intro/2_DamlScript.html which seems much
nicer and I don’t see what we gain by having both.

fixes #8839

changelog_begin
changelog_end
2021-04-08 14:50:33 +02:00
Nemanja
69ecf577b8
Removing Git as a prerequisit from the GSG (#9202)
* Removing Git as a prerequisit from GSG

* CHANGELOG_BEGIN
CHANGELOG_END
2021-04-08 06:30:34 +00:00
Sofia Faro
06701f7d5e
Expose rounding modes as constructors + add BigNumeric docs. (#9336)
* Expose rounding modes as constructors.

This PR exposes the rounding modes as constructors for RoundingMode. Pattern matching for RoundingMode is not implemented and not critical (will open a separate issue).

This PR also adds documentation for BigNumeric.

changelog_begin
changelog_end

* Fix rounding mode literals

* Update data-types.rst

* expose constructors

* expose constructors (part 2)

* Update compiler/damlc/daml-prim-src/GHC/Types.daml

Co-authored-by: Moritz Kiefer <moritz.kiefer@purelyfunctional.org>

* Try to improve `Numeric n` description.

* Add message for RoundingMode match and a test.

* Restrict RoundingMode test to 1.dev

* Update version numbers to 1.13

Co-authored-by: Moritz Kiefer <moritz.kiefer@purelyfunctional.org>
2021-04-07 14:58:31 +00:00
anthonylusardi-da
960134dd54
Fix typo in profiler docs, file name starts with profile (not profiler) (#9338)
* fix typo, file name starts with profile (not profiler)

* CHANGELOG_BEGIN
CHANGELOG_END
2021-04-07 08:50:21 +02:00
Moritz Kiefer
0eac00f343
Avoid deprecated forHostWithLedgerIdDiscovery in quickstart-java (#9337)
fixes #9319

changelog_begin
changelog_end
2021-04-06 22:38:35 +02:00
Moritz Kiefer
8f7ef05765
Avoid mention of scenarios in Sandbox docs (#9335)
fixes #9331 
changelog_begin
changelog_end
2021-04-06 18:21:36 +02:00
Robin Krom
b4bda47e7d
remote pkgs: resolve package names in data dependencies via ledger (#9270)
* remote pkgs: resolve package names in data dependencies via ledger

This implements part 3) of #8976.

This adds the ability to specify package names/versions in daml.yaml in
the data-dependencies stanza. They are being resolved via the project
ledger and a daml.lock lock file.

CHANGELOG_BEGIN
  [remote dependencies] Package names and versions, as well as package
  ID's are allowed in the `data-dependencies` list of `daml.yaml`. These
  packages are fetched from the project ledger. The auto-generated
  `daml.lock` file keeps track of the package name/version to package
  ID's resolution and should be checked in to version control of the
  project.
CHANGELOG_END

* added docs

* Update compiler/damlc/lib/DA/Cli/Damlc/DependencyDb.hs

Co-authored-by: Moritz Kiefer <moritz.kiefer@purelyfunctional.org>

* Update docs/source/daml/reference/packages.rst

Co-authored-by: Moritz Kiefer <moritz.kiefer@purelyfunctional.org>

* suggestions

Co-authored-by: Moritz Kiefer <moritz.kiefer@purelyfunctional.org>
2021-03-31 15:37:36 +02:00
Stefano Baghino
b98a3881e5
Non-repudiation: documentation (#9288)
* Non-repudiation: documentation

changelog_begin
[Runtime Components] New feature: the non-repudiation middleware is now available
as an early access feature, please have a look at its page in the early access
section of the documentation to learn more
changelog_end

Closes #8659

* Remove exceprt from Wikipedia

* Fix typo

* Fix naming

* Address https://github.com/digital-asset/daml/pull/9288#discussion_r604647664

* Address https://github.com/digital-asset/daml/pull/9288#discussion_r604651195

* Address https://github.com/digital-asset/daml/pull/9288#discussion_r604792871
2021-03-31 11:30:54 +00:00
Moritz Kiefer
6c9679f511
Add documentation for the Daml Profiler (#9174)
* Add documentation for the Daml Profiler

changelog_begin

- [Daml Profiler] Daml Connect EE now includes a profiler which can be
used to profile Daml execution time.

changelog_end

* Update docs/source/tools/profiler.rst

Co-authored-by: Bernhard Elsner <40762178+bame-da@users.noreply.github.com>

* Make sphinx happy

changelog_begin
changelog_end

Co-authored-by: Bernhard Elsner <40762178+bame-da@users.noreply.github.com>
2021-03-18 09:48:10 +01:00
Moritz Kiefer
98c2651998
Support fetching SDK EE tarball in the assistant (#9146)
* Support fetching SDK EE tarball in the assistant

This PR adds an `artifactory-api-key` field to `daml-config.yaml`. If
this is set, we will download the SDK EE tarball if it exists, falling
back to GH releases on 404s (for old releases).

changelog_begin

- [Daml Assistant] The assistant now supports an `artifactory-api-key`
  field in `daml-config.yaml`. If you have a license for Daml Connect
  EE you can specify this and the assistant will automatically fetch
  the EE edition which provides additional functionality.

changelog_end

* Hardcode first EE snapshot

changelog_begin
changelog_end
2021-03-16 14:17:50 +01:00
Moritz Kiefer
d4bdb12862
Add pruning stabilization to ledger API changelog (#9126)
* Add pruning stabilization to ledger API changelog

changelog_begin
changelog_end

* also can’t type outside of backport

changelog_begin
changelog_end

* I give up

changelog_begin
changelog_end
2021-03-12 16:49:12 +00:00
Gerolf Seitz
9320a213db
[Integration Kit, Ledger API] Remove hint about early access for participant pruning. (#9120)
CHANGELOG_BEGIN
[Integration Kit, Ledger API] Remove hint about early access for participant pruning. It's stable now.
CHANGELOG_END
2021-03-12 13:43:39 +00:00
Moritz Kiefer
1c5e64cb82
Fix release notes link in docs (#9122)
changelog_begin
changelog_end
2021-03-12 13:39:23 +00:00
Andreas Herrmann
c7ee410fa3
Use DA.Map in triggers if available (#9023)
* Use DA.Map in triggers if available

Replaces DA.Next.Map by DA.Map in the trigger library if the DAML-LF
version supports it, i.e. above 1.11.
Selects on `DAML_GENMAP` and `DAML_GENERIC_COMPARISON` using `CPP`.

changelog_begin
- [Triggers] The trigger library now uses `DA.Map` instead of the
  deprecated `DA.Next.Map` if the targeted Daml-LF version supports it.
  This is a breaking change: Code that interfaced with the triggers
  library using `DA.Next.Map`, e.g. with
  `Daml.Trigger.getCommandsInFlight` or `Daml.Trigger.Assert.testRule`,
  will need to be changed to use `DA.Map` instead.
changelog_end

* Deduplicate GMap imports in triggers

* DA.Next.Map --> DA.Map in carbon-upgrade-trigger

Co-authored-by: Andreas Herrmann <andreas.herrmann@tweag.io>
2021-03-04 14:15:01 +01:00
Moritz Kiefer
576d0cb758
Bump Ledger API version for LF 1.12 (#8972)
changelog_begin
changelog_end
2021-03-01 12:42:33 +00:00
Moritz Kiefer
71116b053c
Add a Ledger API changelog (#8974)
* Add a Ledger API changelog

changelog_begin
changelog_end

* Update docs/source/support/compatibility.rst

Co-authored-by: Bernhard Elsner <40762178+bame-da@users.noreply.github.com>

Co-authored-by: Bernhard Elsner <40762178+bame-da@users.noreply.github.com>
2021-03-01 12:42:27 +00:00
Andreas Lochbihler
00bffd2281
correct the causaility definition for non-stakeholder actors and choice observers (#8892)
CHANGELOG_BEGIN
aligned the formal causality guarantees for non-stakeholder actors and choice observers to the given examples
CHANGELOG_END
2021-02-19 10:16:07 +01:00
Moritz Kiefer
4aded7151c
Update compatibility docs for Ledger API version 1.9 (#8828)
Also adds a comment to make sure we don’t forget it in the
future. Note for reviewers: Our code already only looks at the first
line, so the comment in the second line does not break anything.

changelog_begin
changelog_end
2021-02-12 10:45:11 +00:00
Shaul Kfir
94262e9f9a
Fix docs typo in local-ledger.rst (#8825)
CHANGELOG_BEGIN
CHANGELOG_END
2021-02-12 08:50:36 +01:00
Gary Verhaegen
7c671037de
try to improve macOS install instructions (#8764)
* try to improve macOS install instructions

Based on [feedback from Khuram] on the forum.

[feedback from Khuram]: https://discuss.daml.com/t/my-feedback-on-daml-in-general-and-documentation-as-a-non-coder/2043/6?u=gary_verhaegen

CHANGELOG_BEGIN
CHANGELOG_END

* .

* .

* mention code is not required

* undo changes to vscode install docs

* remove echo $0
2021-02-11 14:04:41 +00:00
Bernhard Elsner
a1b4db86f3
Turn all Daml Intro templates into full projects (#8814)
* Turn all Daml Intro templates into full projects

CHANGELOG_BEGIN
CHANGELOG_END

* Fix paths
2021-02-11 13:07:50 +00:00
Gary Verhaegen
bdf4095735
docs: remove references to create-daml-app repo (#8805)
* docs: remove references to create-daml-app repo

Hopefully that's all of them. Thanks to Alexander Bernauer for reporting
on [the forum].

[the forum]: https://discuss.daml.com/t/type-script-support-dropped-with-sdk-1-9-0/2054/6?u=gary_verhaegen

CHANGELOG_BEGIN
CHANGELOG_END

* remove template link
2021-02-10 11:45:59 +00:00
Moritz Kiefer
e196a7cc73
Clarify documentation around --project-root (#8790)
fixes #8783

changelog_begin
changelog_end
2021-02-10 12:03:59 +01:00
Gary Verhaegen
8c13dab5cc
docs: try to improve script --input-file (#8793)
CHANGELOG_BEGIN
CHANGELOG_END
2021-02-09 14:14:35 +00:00
Moritz Kiefer
9bf6935774
Clarify docs around --contract-id-seeding=no (#8796)
changelog_begin
changelog_end
2021-02-09 14:02:12 +00:00
Stefano Baghino
2dbeb7e27c
Fix typos in docs (#8761)
Originally reported in https://discuss.daml.com/t/my-feedback-on-daml-in-general-and-documentation-as-a-non-coder/2043

Standardise (sic) to US English spelling. ;-)

Typos

acessToken -> accessToken
assignement -> assignment
calulated -> calculated
certicates -> certificates
comitted -> committed
commited -> committed
conctract -> contract
corrseponding -> corresponding
couteroffer -> counteroffer
Decmial -> Decimal
desireable -> desirable (archaic)
Distpute -> Dispute
encoutered -> encountered
enviroment -> environment
Exercse -> Exercise
exeuction -> execution
familiarise -> familiarize (British spelling)
fistName -> firstName
follwing -> following
fullfil -> fulfill (fulfil would be British spelling)
intepretation -> interpretation
leger -> ledger
lookupBeyKey -> lookupByKey
Messsaging -> Messaging
mimick -> mimic
Modelling -> Modeling (British spelling)
occured -> occurred
Partipant -> Participant
partiuclarly -> particularly
possibiy -> possibly
PostreSQL -> PostgreSQL
preceed -> precede
preceeding -> preceding
preferrable -> preferable
programatically -> programmatically
prohibitied -> prohibited
readyness -> readiness
Readyness -> Readiness
resepond -> respond
similiar -> similar
snipppets -> snippets
somone -> someone
succintly -> succinctly
transacion -> transaction
transfering -> transferring
transferrable -> transferable

I was surprised by the last two.

I hope this commit message does not contain any typo.

changelog_begin
changelog_end
2021-02-04 19:44:15 +01:00
Moritz Kiefer
b07ab07fc1
Drop early access marker from choice observers (#8713)
changelog_begin
changelog_end
2021-02-02 10:44:47 +01:00
Stefano Baghino
ecf5f9b9c4
Enforce Java formatting style with google-java-format (#8686)
* Amend fmt.sh to check Java formatting with javafmt

changelog_begin
changelog_end

* Address https://github.com/digital-asset/daml/pull/8686#issuecomment-769740615

* Apply new formatting style to main code

* Apply new code style to docs code
2021-01-29 16:50:18 +00:00
Andreas Herrmann
a226324afa
Use cliopts.Http for OAuth 2.0 middleware (#8671)
* Use cliopts.Http for OAuth 2.0 middleware

changelog_begin
- [OAuth 2.0 Middleware] You can now configure the address that the
  middleware listens to using the ``--address`` flag.
  The port that the middleware listens to is now configured using the
  ``--http-port`` flag, use 0 to dynamically choose a free port.
  You can now configure a port file where the chosen port will be
  written to using the ``--port-file`` flag.
changelog_end

* Add test-case for OAuth 2.0 middleware port file

* Don't forget to close source

* Fix integration test

* Update triggers/service/auth/src/main/scala/com/daml/auth/middleware/oauth2/Config.scala

Co-authored-by: Moritz Kiefer <moritz.kiefer@purelyfunctional.org>

Co-authored-by: Andreas Herrmann <andreas.herrmann@tweag.io>
Co-authored-by: Moritz Kiefer <moritz.kiefer@purelyfunctional.org>
2021-01-29 09:32:07 +00:00
Andreas Herrmann
6bfbaf021d
Auth0 example configuration (#8622)
* Auth0 example configuration

changelog_begin
changelog_end

* Update docs/source/tools/trigger-service/auth0_example.rst

Co-authored-by: Moritz Kiefer <moritz.kiefer@purelyfunctional.org>

* Disclaimer that rule doesn't validate

https://github.com/digital-asset/daml/pull/8622#discussion_r564341409

* Explain access to Alice in code

https://github.com/digital-asset/daml/pull/8622#discussion_r564341821

Co-authored-by: Andreas Herrmann <andreas.herrmann@tweag.io>
Co-authored-by: Moritz Kiefer <moritz.kiefer@purelyfunctional.org>
2021-01-26 17:38:56 +00:00
Moritz Kiefer
6326822907
Upgrade grpc and protobuf libraries (#8558)
* Upgrade grpc and protobuf libraries

changelog_begin

- [Dependencies] Upgrade
  iou.grpc:grpc-(api|core|netty|protobuf|services|stub) to
  1.35.0.

- [Dependencies] Upgrade
  io.netty:netty-(codec-http2|handler|handler-proxy|resolver)
  to 4.1.58.Final.

- [Dependencies] Upgrade
  io.netty:netty-tcnative-boringssl-static to 2.0.36.Final.

- [Dependencies] Upgrade com.google.protobuf:protobuf-java to 3.14.0.

changelog_end

* Factor out netty and grpc version

changelog_begin
changelog_end
2021-01-26 14:17:18 +00:00
Andreas Herrmann
5706f5e15d
Drop early access tag on trigger service and auth middleware (#8611)
* add livez endpoint to auth middleware

* Add OAuth 2.0 middleware to Daml SDK

* unhide trigger service auth flags

changelog_begin
- [Triggers] The trigger service now supports authorization through an
  auth middleware. The feature is enabled using the `--auth` and
  `--auth-callback` command-line flags. Please refer to the
  Authorization chapter of the trigger service documentation for further
  instructions.
- [OAuth 2.0 middleware] Daml Connect now includes an implementation of
  the auth middleware API that supports OAuth 2.0 Authorization Code
  Grant. Please refer to the Auth Middleware and OAuth 2.0 Auth
  Middleware chapters of the documentation.
changelog_end

* drop early access flag on triggers

Daml triggers, the trigger service, and the auth middleware are no
longer marked as early access features.

changelog_begin
- [Triggers] Daml Triggers and the Trigger Service are no longer in
  early access status.
changelog_end

Co-authored-by: Andreas Herrmann <andreas.herrmann@tweag.io>
2021-01-22 17:02:24 +01:00
Andreas Herrmann
7543c6fdc0
Document authorization with trigger service (#8581)
* Docs for trigger-service auth and auth middleware

changelog_begin
changelog_end

* Document OAuth 2.0 authorization middleware

* Explain 401 Unauthorized resonse

* Add JS frontend example

* Update docs/source/tools/auth-middleware/index.rst

Co-authored-by: Moritz Kiefer <moritz.kiefer@purelyfunctional.org>

* Update docs/source/tools/auth-middleware/index.rst

Co-authored-by: Moritz Kiefer <moritz.kiefer@purelyfunctional.org>

* Update docs/source/tools/auth-middleware/index.rst

Co-authored-by: Moritz Kiefer <moritz.kiefer@purelyfunctional.org>

* Update docs/source/tools/auth-middleware/index.rst

Co-authored-by: Moritz Kiefer <moritz.kiefer@purelyfunctional.org>

* Update docs/source/tools/auth-middleware/oauth2.rst

Co-authored-by: Moritz Kiefer <moritz.kiefer@purelyfunctional.org>

* trigger service don't redirect by default

3a5dba7a70 (r562497928)

* Call it Auth Middleware

https://github.com/digital-asset/daml/pull/8581#discussion_r562442571

Co-authored-by: Andreas Herrmann <andreas.herrmann@tweag.io>
Co-authored-by: Moritz Kiefer <moritz.kiefer@purelyfunctional.org>
2021-01-22 11:53:26 +01:00
Sofia Faro
c1a736efd1
Add choice observers in the ledger model. (#8576)
* Add choice observers in the ledger model.

To keep the distinction between "observer" and "choice observer"
clear I'm trying to always refer to the former as "contract observer".

The section on divulgence should probably be reworked to favor choice
observers at some point, but I'm not sure how to do that.

changelog_begin
changelog_end

* s/observer/contract observer

* Separate out the choice observer case of informees

* apply suggestion from @oggy-

* specifying choice observers in DAML contract model
2021-01-20 13:16:45 +00:00
Gary Verhaegen
71a1260e56
fix typo in docs (#8502)
CHANGELOG_BEGIN
CHANGELOG_END
2021-01-14 19:46:44 +00:00
arne-da
b398a55780
Fixing typos in documentation (#8163)
CHANGELOG_BEGIN
Fixed minor typos in documentation
CHANGELOG_END
2021-01-12 13:11:12 +01:00
Ognjen Maric
7171cb38fa
Allow multiple requesters for a commit in the ledger model (#8471)
CHANGELOG_BEGIN
- Adjust the ledger model to account for multi-party submissions
CHANGELOG_END
2021-01-12 11:49:52 +00:00
Bernhard Elsner
5cfa6d71f8
Add table correlating Connect and Ledger API version (#8456)
* Add table correlating Connect and Ledger API version

CHANGELOG_BEGIN
CHANGELOG_END

* Use a legal character for header underlining

* Flip columns

* Remove empty line
2021-01-11 15:09:53 +00:00