Commit Graph

10207 Commits

Author SHA1 Message Date
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
azure-pipelines[bot]
c343a94139
rotate release duty after 2022-07-06 (#14358)
@adriaanm-da 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-07 17:53:07 +02:00
Carl Pulley
cfaa5883d6
Testing infrastructure for disclosed contracts
CHANGELOG_BEGIN

* Changes to facilitate testing explicit disclosure under Engine/speedy-level tests for explicit disclosure #14227.

CHANGELOG_END
2022-07-07 14:23:54 +01:00
Moisés Ackerman
d3824945b0
Retroactive implements scala typecheck (cont) (#14346)
* Extend EncodeV1Spec with interface co-implements

* Add lookupTemplateImplementsOrInterfaceCoImplements to PackageInterface

* Use lookupTemplateImplementsOrInterfaceCoImplements in checkImplements

* Add TypingSpec cases for interface conversion functions via co-implements

* Add TypingSpec cases for interfaces with co-implements

* Apply code review suggestions: result type formatting

changelog_begin
changelog_end
2022-07-07 12:49:09 +00:00
Marton Nagy
c6b6b7abaa
Fix HA Coordination retry [DPP-1115] (#14363)
* Adds retryGuard to retry mechanism
* Only allow retrying in lock-busy condition

[CHANGELOG_BEGIN]
Fixes issue: network problems can prevent non-leader indexer to be elected as leader.
[CHANGELOG_END]
2022-07-07 14:29:03 +02:00
Moritz Kiefer
d5d0569b23
Track only local creates in ActiveLedgerState (#14265)
This PR simplifies the ContractStateMachine by dropping the very
complex tracking of `keys` and instead tracking only `localKeys` which
stores the latest create with a given key.

This is fully backwards compatible for uck & non-uck semantics.

changelog_begin
changelog_end
2022-07-07 12:24:16 +00:00
Marton Nagy
235426519f
Add network timeout to Participant HA JDBC calls [DPP-1101] (#14357)
* Adds explicit network timeout to main lock acquisition calls.
* Adds mainLockCheckerJdbcNetworkTimeoutMillis configuration with default

[CHANGELOG_BEGIN]
Fixes issue: network problems can cause indexer to stop working until restarting the application.
[CHANGELOG_END]
2022-07-07 13:03:55 +02:00
Moritz Kiefer
9f81401de5
Drop uses of Option.fold in ContractStateMachine (#14369)
To make Rémy happy

changelog_begin
changelog_end
2022-07-07 10:35:59 +00:00
Carl Pulley
b88bf68d9a
Improve performance when deserializing Daml Map
* Fixes Engine: Improve deserialization of Daml Map #13865

CHANGELOG_BEGIN

* [Engine] Improve performance when deserializing Daml Map by specialising Value.apply to generate SMap instances using a sorted map.

CHANGELOG_END
2022-07-06 18:33:58 +01:00
Sergey Kisel
5b792e91df
Provide a non-zero exit code in case of misconfiguration. (#14364)
CHANGELOG_BEGIN
CHANGELOG_END
2022-07-06 14:32:23 +00:00
mziolekda
1c4010a30a
Document indexer ingestion metrics (#14362)
CHANGELOG_BEGIN
CHANGELOG_END
2022-07-06 13:56:46 +00:00
azure-pipelines[bot]
9b995b547f
update NOTICES file (#14361)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-07-06 07:19:36 -04:00
pbatko-da
c23e505e67
[Benchtool] Add total stream runtime criterium in milliseconds [DPP-1080] (#14250)
Sample config:
```
streams:
  - type: transactions
    name: stream-1
    ...
    objectives:
       max_stream_duration: 56
```

changelog_begin
changelog_end
2022-07-06 09:14:30 +02:00
azure-pipelines[bot]
9d67303241
bump canton to 20220705 (#14359)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-07-06 07:06:26 +00:00
Remy
29a8c1be83
Release 2.2.1 (#14354)
CHANGELOG_BEGIN
CHANGELOG_END
2022-07-05 22:56:26 +02:00
Gary Verhaegen
83bf6d60b1
remove Sofia and Robin from release rotation (#14356)
CHANGELOG_BEGIN
CHANGELOG_END
2022-07-05 20:55:12 +00:00
carrielaben-da
5ee1934127
Removed Canton from installation.rst (#14324)
Removed reference to installing Canton, per conversation in #product-docs on June 21.

[CHANGELOG_BEGIN]
[CHANGELOG_END]

Co-authored-by: carrie-laben <91496516+carrie-laben@users.noreply.github.com>
2022-07-05 16:30:05 -04:00
Sergey Kisel
f465179ccf
Print configuration which is used on SoX startup [DPP-1075] (#14347)
CHANGELOG_BEGIN
CHANGELOG_END
2022-07-05 15:19:42 +00:00
dylant-da
3c7ab41bc3
Check interface view exists and is serializable, in compiler and in engine (#14112) (#14322)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Moisés Ackerman <6054733+akrmn@users.noreply.github.com>
2022-07-05 13:43:28 +00:00
Sergey Kisel
e151090cf3
Introduction of HOCON configuration for SoX [DPP-1033] (#14029)
* Introduction of HOCON configuration

CHANGELOG_BEGIN
CHANGELOG_END
2022-07-05 15:35:16 +02:00
pbatko-da
69625d0a70
[ETQ-Testing] Extend Benchtool to define huge party filters - contract observers only [DPP-1079] (#14244)
Populating IndexDB with a set of parties:
```
submission:
  ...
  observers_party_set:
    party_name_prefix: MyParty
    count: 99
    visibility: 0.35
```
where the parties created will be Party-0, Party-1, .., Party-98
and each will have a 35% chance of being an observer on a Foo1/Foo2/Foo3 contract.

NOTE: This PR is not adding party-set support for divulgee parties (i.e. non-stakeholder informees) since a large number of such parties might cause an exponential explosion in the number of created helper "Divulger" contracts. It's also not clear if support for divulgee party-sets will be needed after all.


Using party set in a stream filter:
```
streams:
  - type: transaction-trees
     name: foo
     filters: 
      - party: Obs-1
        templates: [Foo1, Foo2, Foo3]
     filter_by_party_set:
       party_name_prefix: MyParty
       templates: [ ]
     ...
```


changelog_begin
changelog_end
2022-07-05 15:34:37 +02:00
Matthias Schmalz
8329a7b90f
ContractStateMachine#State.handleNode (#14337)
Generalized utility method ContractStateMachine#State.handleLeaf to handleNode.
Added polymorphic field ActionNode.keyOpt.

CHANGELOG_BEGIN
CHANGELOG_END
2022-07-05 10:59:56 +00:00
Simon Maxen
0c679cf584
Rate limit refactor [DPP-1001] (#14311)
Refactor rate limiting

changelog_begin
changelog_end
2022-07-05 11:59:52 +01:00
Remy
abd47e972b
[Speedy] Do not crash when encountering an inconsistent contract key (#14276)
but rather return a proper interpretation error.

CHANGELOG_BEGIN
CHANGELOG_END
2022-07-05 10:28:38 +00:00
Remy
23e8141b57
release candidate for 2.2.1 (#14345)
CHANGELOG_BEGIN
CHANGELOG_END
2022-07-05 10:12:34 +00:00
Stefano Baghino
56896ea1e5
Fix VMBC external link (#14339)
It appears we no longer have a page on digitalasset.com, so I am linking
to the official VMware docs. This also fixes a typo.

changelog_begin
changelog_end
2022-07-05 10:13:13 +02:00
azure-pipelines[bot]
a3165a3a3c
bump canton to 20220704 (#14342)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-07-05 07:55:11 +00:00
Moisés Ackerman
1f1f2785b0
Retroactive implements scala typecheck (#14266)
* Add lookup functions for co-implements

* Typecheck interface co-implementations

    * Use new environment in checkIfaceCoImplementation

* Fix Interface_1.dev_.lf

* OtherMod=>InterfaceMod0

changelog_begin
changelog_end
2022-07-05 09:53:56 +02:00
azure-pipelines[bot]
eaf972ff02
rotate release duty after 2022-06-29 (#14294)
@garyverhaegen-da 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-05 09:16:02 +02:00
Gary Verhaegen
66f4b243f4
docs: fix top-level update (#14338)
There were two issues:

1. The `Directory.listFilesRecursive` function returns paths that
   include its first argument, so there was never any overlap between
   the sets.
2. That full path doesn't exist on AWS, and was given to AWS because
   `s3Path opts f` returns just `f` if it starts with `/`.

This means that, on the one hand, the script tried to delete
_everything_ from the top-level, which is a bit bad, but, on the other
hand, the script did not actually manage to delete anything at all,
which is basically the status quo.

Note that deleting everything isn't _that_ bad as we reupload right
after and we have a cache in front on the site, so this would only
impact users if they were the first to try and view a given page in that
small time window between deletion and reupload.

This PR should fix both issues by removing the version-specific prefix.

CHANGELOG_BEGIN
CHANGELOG_END
2022-07-04 21:27:36 +02:00
Sergey Kisel
f9521f27eb
Accept new form of JWT tokens [DPP-1102] (#14323)
* Accept new form of jwt tokens [DPP-1102]

CHANGELOG_BEGIN
CHANGELOG_END
2022-07-04 17:41:08 +02:00
Simon Maxen
5db3cc4bd5
Rate limit streams [DPP-1001] (#14166)
Add support for stream based rate limiting

changelog_begin
changelog_end
2022-07-04 14:28:46 +01:00
Moisés Ackerman
ba9abf3c5f
Use the appropriate daml-script for each Script (#14321)
* Add failing test

* Overload daml-script 'Runner.run' to work directly with 'PureCompiledPackages'

* Use new daml-script 'Runner.run' in scenario-service

changelog_begin
* data-dependencies: fixed an issue with the handling of multiple versions of the daml-script package (#14291)
changelog_end

Co-authored-by: Remy <remy.haemmerle@daml.com>
2022-07-04 08:26:12 +00:00
azure-pipelines[bot]
89b068ecde
bump canton to 20220701 (#14325)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-07-03 19:15:32 +00:00
azure-pipelines[bot]
453da73d50
update NOTICES file (#14327)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-07-02 09:35:12 -04:00
azure-pipelines[bot]
8dbf693048
update NOTICES file (#14316)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-07-02 09:34:31 -04:00
Remy
52ec65040f
[Engine] Rename values/arguments of type PackageInterface (#14305)
to avoid confusion with Daml interface.

CHANGELOG_BEGIN
CHANGELOG_END
2022-07-01 15:38:04 +02:00
Stefano Baghino
17ed6e4d1e
Display latest version by semantic version (#14320)
By default, the Github release badge by shields.io displays the latest
available asset chronologically. We want to advertise mainly the latest
ordering by semantic versioning, rather.

changelog_begin
changelog_end
2022-07-01 13:32:13 +00:00
Remy
d0058dcff3
[Interface] make all ContractIds serializable (#14307)
CHANGELOG_BEGIN
CHANGELOG_END
2022-07-01 11:07:12 +02:00