Commit Graph

10245 Commits

Author SHA1 Message Date
Meriam Lachkar
f8ae4a2123
Adapt the setup script to show how you can create/get parties on canton (#14452)
* Adapt the setup script to show how you can create/get parties on canton

* address review comments

* Update templates/create-daml-app/daml/Setup.daml

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

* Update templates/create-daml-app/daml/Setup.daml

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

* Update templates/create-daml-app/daml/Setup.daml

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

* Update templates/create-daml-app/daml/Setup.daml

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

* address review comments

Co-authored-by: Moritz Kiefer <moritz.kiefer@purelyfunctional.org>
2022-07-19 08:43:07 +00:00
Sergey Kisel
b72dcc0b93
Handle decoding and validating dar file in a separate thread [DPP-948] (#14454)
CHANGELOG_BEGIN
CHANGELOG_END
2022-07-19 10:02:21 +02:00
Sergey Kisel
c8400d820a
Read API version during service initialization rather than during first request [DPP-948] (#14455)
CHANGELOG_BEGIN
CHANGELOG_END
2022-07-19 09:45:52 +02:00
azure-pipelines[bot]
df139c6eb1
bump canton to 20220718 (#14468)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-07-19 07:03:06 +00:00
Gary Verhaegen
bf64e705e9
ci: unpin Docker (#14464)
When we set this up years ago (#1566), it was a way to get a more recent
Docker version than was then available through the default Ubuntu 16.04
apt repository. Nowadays, this actually makes us lag behind, to the
point where the 2.3.1 image isn't building.

CHANGELOG_BEGIN
CHANGELOG_END
2022-07-18 17:52:28 +00:00
nickchapman-da
c17c580b84
Fix handling for throw within handler (#14461)
changelog_begin
changelog_end
2022-07-18 17:17:34 +01:00
Stefano Baghino
ccc65d4da5
Bump GSON dependency in the Java quickstart template (#14462)
changelog_begin
Bumped the GSON dependency in the Java quickstart template to 2.9.0 to avoid users to be exposed to https://www.cve.org/CVERecord?id=CVE-2022-25647 by mistake
changelog_end
2022-07-18 14:19:21 +00:00
carrielaben-da
34b3913be8
Authorization.rst typo fix (#14441)
* Authorization.rst typo fix

Removed the hanging partial sentence from first section, along with miscellaneous style and grammar fixes.

[CHANGELOG_BEGIN]
[CHANGELOG_END]

* Update docs/source/app-dev/authorization.rst

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

Co-authored-by: carrie-laben <91496516+carrie-laben@users.noreply.github.com>
Co-authored-by: Stefano Baghino <43749967+stefanobaghino-da@users.noreply.github.com>
2022-07-18 10:16:40 -04:00
Gary Verhaegen
f2d78a85ea
cron: do not checkout version Dockerfile (#14459)
So that the Docker image file depends on when the image was created
rather than the branch. I think that makes more sense overall, but we
need this to include the OpenSSL bump into 2.3.1.

CHANGELOG_BEGIN
CHANGELOG_END
2022-07-18 15:18:59 +02:00
Marton Nagy
35789c1acb
Cleanup dead code in TransactionConversion (#14451)
CHANGELOG_BEGIN
CHANGELOG_END
2022-07-18 14:24:40 +02:00
Moritz Kiefer
786cf27534
Drop invalid invariants on byKey fields (#14457)
The one on Fetch was clearly never true.
The one on Exercise was true until exceptions meant that sometimes we
do not have an exercise result so now it's also not true.

changelog_begin
changelog_end
2022-07-18 10:34:09 +00:00
nickchapman-da
bbfcc55af7
[engine] Transmit completed transaction via SResultFinalValue. (#14416)
* Transmit completed transaction via SResultFinalValue.

changelog_begin
changelog_end

* remove spurious mods

* mark two commented-out tests with TODO 14431

* address small comments

* rename: SResultFinalValue --> SResultFinal
2022-07-18 09:45:37 +00:00
tudor-da
59b606b32b
[LLP] In-memory fan-out buffer size 0 allowed [DPP-1125] (#14334)
* This PR allows using 0-sized in-memory fan-out buffers and other test adjustments
* Allow 0-sized buffer
* Adapt Sandbox-on-X conformance tests

changelog_begin
changelog_end

* Simplified implementation
2022-07-18 08:55:45 +02:00
azure-pipelines[bot]
e762e3f8e6
bump canton to 20220715 (#14443)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-07-16 12:30:30 +02:00
Gary Verhaegen
7387a7c92d
daily: disable http/pg perf test (#14442)
Since yesterday, this test is failing with an OOM error. I hoped I'd
have time to investigate today, but since I didn't and I'm off next week
disabling the test for now seems like the best option to let the overall
daily tests succeed.

The last known success was on 0bf28176a7,
and the first failure was on 444fff1fcf.
We don't test every commit, so any commit in-between could be the cause
of the issue.

Note that the failure does not seem to be flaky, but further testing may
be warranted.

CHANGELOG_BEGIN
CHANGELOG_END
2022-07-16 12:29:05 +02:00
Gary Verhaegen
c9070471cb
docker: bump base image (#14437)
CHANGELOG_BEGIN

- The base image used by the `digitalasset/daml-sdk` Docker image has
  been bumped from Ubuntu Focal to Ubuntu Kinetic. Please remember that
  this image is meant for demonstration purposes only and is not supported
  for use in any kind of production setup.

CHANGELOG_END
2022-07-15 16:06:55 -04:00
Gary Verhaegen
9574fc1cd6
release 2.3.1 (#14440)
Two very small bug fixes, as well as a new base image for the daml-sdk
Docker image.

- #14434
- #14433
- #14437

CHANGELOG_BEGIN
CHANGELOG_END
2022-07-15 19:08:24 +00:00
Gary Verhaegen
ed82926204
release: 2.3.0 stable (#14425)
CHANGELOG_BEGIN
CHANGELOG_END
2022-07-15 10:55:29 +02:00
azure-pipelines[bot]
4590d8860d
update NOTICES file (#14428)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-07-15 10:54:00 +02:00
azure-pipelines[bot]
3c72d2160f
bump canton to 20220714 (#14426)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-07-15 10:52:39 +02:00
Sergey Kisel
cdca6e3d6b
Resolve TODO around Scala 2.13 compatibility (#14418)
* Resolve TODO around Scala 2.13 compatibility

CHANGELOG_BEGIN
CHANGELOG_END
2022-07-15 09:45:50 +02:00
Stephen Compall
d4bae0c518
Java bindings interface id blind booleans (#14423)
* add a test that breaks on missing identifier

* fix both hasInterfaceId boolean inversions

- confirmed that the test in parent breaks unless both changes are made

* add changelog

CHANGELOG_BEGIN
- [Java bindings] Fix a regression found in 2.3.0 RC with the
  introduction of interface IDs in ``ExercisedEvent``s.
CHANGELOG_END
2022-07-14 20:08:24 +00:00
Sergey Kisel
2e18276b1a
Unify TlsConfiguration between SDK and canton [DPP-1113] (#14349)
* Unify TlsConfiguration between SDK and canton [DPP-1113]

CHANGELOG_BEGIN
CHANGELOG_END
2022-07-14 16:58:59 +02:00
azure-pipelines[bot]
2caa581b20
update NOTICES file (#14414)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-07-14 11:39:24 +02:00
azure-pipelines[bot]
bc7f73f5f5
bump canton to 20220713 (#14413)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-07-14 07:09:48 +00:00
azure-pipelines[bot]
444fff1fcf
update compat versions (2022-07-07) (#14366)
CHANGELOG_BEGIN
CHANGELOG_END
2022-07-14 00:25:18 +02:00
Andreas Lochbihler
7f9fa1c28f
add cats' functor instance for NonEmptyF (#14403)
* add cats' functor instance for NonEmptyF

CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Stephen Compall <stephen.compall@daml.com>
2022-07-13 18:23:05 +00:00
azure-pipelines[bot]
f090d99c1d
rotate release duty after 2022-07-13 (#14404)
@S11001001 is taking care of [testing](https://github.com/digital-asset/daml/blob/main/release/RELEASE.md) today's release, so they get pushed back to the end of the line.

Please do not merge this before the release is fully tested.

CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-07-13 18:59:05 +02:00
azure-pipelines[bot]
78343dbc38
bump canton to 20220712 (#14405)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-07-13 16:15:31 +02:00
azure-pipelines[bot]
32f1460fe0
update NOTICES file (#14407)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-07-13 15:52:53 +02:00
tudor-da
5f702bbf7d
[LLP] Indexer - Ledger API bypass [DPP-1043] (#14319)
* Moves ParticipantConfig and dependants to `participant-integration-api`

changelog_begin
changelog_end

* Implement Indexer - Ledger API bypass

* Adjust configuration parameters
* Remove run-mode
* Create inMemoryStateUpdaterParallelism

* Rename components

* IndexServiceOwner is not private[platform]

* Address review comments

* Rebase
2022-07-13 15:52:33 +02:00
atriantafyllos-da
8cce2c0394
DPP-1047 Added leeway options for JWT-based authorization. (#14375)
* DPP-1047 Added leeway options for JWT-based authorization.

CHANGELOG_BEGIN
CHANGELOG_END
2022-07-13 14:57:54 +02:00
Moritz Kiefer
dc2b241aa4
Bump gson (#14401)
some people get unhappy about
https://github.com/google/gson/pull/1991, the new version includes the
fix

changelog_begin
changelog_end
2022-07-13 08:06:19 +02:00
Carl Pulley
0bf28176a7
Tidy up of Compiler.scala to ensure translate and compile naming conventions are used throughout
CHANGELOG_BEGIN

  * Tidy up of Compiler.scala to ensure translate and compile naming conventions are used throughout.

CHANGELOG_END
2022-07-12 16:48:10 +01:00
Stephen Compall
a7ed284815
split up, parallelize assistant integration tests (#14281)
* parallelize assistant integration tests again by setting canton port options

Reduce the time of //daml-assistant/integration-tests:integration-tests
from 208 to 125 seconds locally by returning the test threading to 2,
replacing the setting to 1 in #12438 83f61bd19d with additional port
options to avoid conflicts.  The setting to 2 is explained in #9802.

* split quickstart from other assistant tests

Saves 20-30s (~15%) in total test runtime versus the parent.

* minimize hackage deps

CHANGELOG_BEGIN
CHANGELOG_END
2022-07-12 09:51:28 -04:00
Stephen Compall
4d8cb9cd2d
use defaultSandboxPorts for assistant defaults (#14394)
CHANGELOG_BEGIN
CHANGELOG_END
2022-07-12 09:37:00 -04:00
Gary Verhaegen
1c44891d18
rotation: push Ray down (#14398)
He's off for 2 weeks, so moving 2 weeks down.

CHANGELOG_BEGIN
CHANGELOG_END
2022-07-12 15:15:00 +02:00
azure-pipelines[bot]
f34a86551b
update NOTICES file (#14397)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-07-12 10:53:02 +02:00
nickchapman-da
d4da8d8796
small cleanups in PartialTransaction (#14392)
- move submissionTime field out from PartialTransaction into enclosing execution Machine
- remove deprecated ptxInternal
- move InitialSeeding class to own file

changelog_begin
changelog_end
2022-07-12 08:50:47 +00:00
tudor-da
9d5115da0b
[Explicit disclosure] Introduces Protobuf changes for supporting explicit disclosure payloads [DPP-1093] (#14336)
* Introduces Protobuf changes for supporting explicit disclosure payloads

changelog_begin
changelog_end

* Update ledger-api/grpc-definitions/com/daml/ledger/api/v1/event.proto

Co-authored-by: Robert Autenrieth <31539813+rautenrieth-da@users.noreply.github.com>

* Enrich metadata description according to Marcin's suggestion

Co-authored-by: Robert Autenrieth <31539813+rautenrieth-da@users.noreply.github.com>
2022-07-12 07:58:49 +00:00
nickchapman-da
9f1b1b1f82
Cleanup boundary between Machine and PartialTransaction (#14393)
changelog_begin
changelog_end
2022-07-12 08:23:12 +01:00
azure-pipelines[bot]
160a48cb89
bump canton to 20220711 (#14395)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-07-12 06:51:25 +00:00
tudor-da
88784d6c3c
[Explicit disclosure] Update Read- and WriteService interfaces for explicit disclosure [DPP-1094] (#14341)
* Update Read- and WriteService with explicit disclosure payloads

changelog_begin
changelog_end

* Addressed review comments
2022-07-12 08:30:33 +02:00
Moisés Ackerman
415cf95c78
Retroactive implements scala runtime (#14372)
* Use lookupTemplateImplementsOrInterfaceCoImplements in checkGenImplementation

* Update docs for ImplementsDefRef to reflect reality

Namely, it does not point to a conversion function, and the actual value it points to is irrelevant.
Only its presence is used to determine whether a template implements an interface or not.

Consequently, it now points to the unit value instead of the identity function.

* Generate 'CoImplementsDefRef's for each co-implemented template

* Consider CoImplementsDefRef in SBuiltin when checking if a template implements an interface

Also factor out check into private function

* Compile co-implemented methods using CoImplementsMethodDefRef

* SBCallInterface now uses CoImplementsDefRef for co-implemented methods

* Add test cases for (co)implemented interfaces in SBuiltinInterfaceTest

* Remove TemplateDoesNotImplementInterface error

* Explicitly override def in '*Implements*DefRef'

changelog_begin
changelog_end
2022-07-11 18:03:59 +00:00
Moisés Ackerman
2393b5071f
Reject class method overlapping with record field (#14391)
* Update GHC patch

* Add daml-test-files for overlapping methods and fields

* changelog

changelog_begin
* [daml] Programs where a class method overlaps with a record field are no longer accepted (#14390)
changelog_end
2022-07-11 12:58:20 +00:00
Gary Verhaegen
d3626b5c9a
2.3.0-rc2 split (#14389)
I screwed up #14378. Let's hope it's not too bad.

CHANGELOG_BEGIN
CHANGELOG_END
2022-07-11 09:18:08 +00:00
azure-pipelines[bot]
64a4731c50
update NOTICES file (#14388)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-07-11 10:55:10 +02:00
Gary Verhaegen
c0d553dad1
initiate 2.3.0-rc2 (#14378)
CHANGELOG_BEGIN
CHANGELOG_END
2022-07-11 09:28:33 +02:00
azure-pipelines[bot]
4e7d08cb38
bump canton to 20220708 (#14382)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-07-11 07:26:48 +02:00
azure-pipelines[bot]
7dfbc582a9
update NOTICES file (#14367)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-07-08 11:18:08 -04:00