Commit Graph

9682 Commits

Author SHA1 Message Date
Moisés Ackerman
4ca8abf185
Update interface ref docs to clarify that {pre,post}consuming qualifiers are not supported (#13523)
changelog_begin
changelog_end
2022-04-07 14:35:43 +02:00
azure-pipelines[bot]
d51ea74ace
rotate release duty after 2022-04-06 (#13507)
@akrmn 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-04-07 11:24:41 +02:00
Remy
4e51194041
LF: Drop byInterface field from Transaction Nodes (#13520)
part of #13491

CHANGELOG_BEGIN
CHANGELOG_END
2022-04-07 11:06:17 +02:00
azure-pipelines[bot]
b3878fbf00
update NOTICES file (#13521)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-04-07 10:55:57 +02:00
Remy
ef3c5d4e11
Remove byInterface form transaction tree SBuiltins (#13502)
Remove byInterface argument from SBUCreate, SBUInsertFetchNode and SBUBeginExercise.

advance the state of #13491.

CHANGELOG_BEGIN
CHANGELOG_END
2022-04-06 15:49:59 +00:00
Sergey Kisel
748510999a
Annotate more Ledger API tests with authorisation test evidence. (#13445)
* Annotate more Ledger API tests with authorisation test evidence.

CHANGELOG_BEGIN
CHANGELOG_END
2022-04-06 13:24:28 +00:00
Remy
c048966d91
LF: Slightly reduce stack consumption of the type cheker. (#13513)
Workaroung to solve flakyness of
//daml-lf/tests:test-scenario-stable-many-field until #13410 is fixed.

CHANGELOG_BEGIN
CHANGELOG_END
2022-04-06 13:10:18 +01:00
nicu-da
f94cec2764
Extract the participant test context interface [KVL-1320] (#13476) 2022-04-06 04:58:24 -07:00
Gary Verhaegen
b9c9acfb9e
docs: remove tools redirect (#13514)
The existing redirect breaks the intention behind #12880.

CHANGELOG_BEGIN
CHANGELOG_END
2022-04-06 11:16:35 +00:00
Remy
d94aa137f1
Remove by_interface from scenario transaction Nodes (#13509)
part of #13491

CHANGELOG_BEGIN
CHANGELOG_END
2022-04-06 11:09:52 +00:00
Sergey Kisel
7ba6b739a4
Clarify the correlation between mTLS client cert and application id. (#13496)
* Clarify the correlation between mTLS client certificate and application id.

CHANGELOG_BEGIN
CHANGELOG_END

* Apply suggestions from code review

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

* Point to the instruction instead of RFC

* Apply suggestions from code review

Co-authored-by: carrielaben-da <91496516+carrielaben-da@users.noreply.github.com>

* new line

Co-authored-by: Stefano Baghino <43749967+stefanobaghino-da@users.noreply.github.com>
Co-authored-by: carrielaben-da <91496516+carrielaben-da@users.noreply.github.com>
2022-04-06 12:25:41 +02:00
Remy
e080ceb0af
Remove ByInterface Replay Command (#13511)
part of #13491

CHANGELOG_BEGIN
CHANGELOG_END
2022-04-06 09:40:18 +00:00
azure-pipelines[bot]
ef0ec22b8c
update NOTICES file (#13508)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-04-06 11:28:19 +02:00
Remy
fc92298ac0
Remove by_interface field form proto Transaction Nodes (#13510)
CHANGELOG_BEGIN
CHANGELOG_END
2022-04-06 09:19:07 +00:00
Moisés Ackerman
b08fcfada3
Property test buildLfPackageGraph (#13481)
* Generalize buildLfPackageGraph to arbitrary payload type

* Reinstate 'data-dependencies + exposed-modules' test without quickcheck

* Add property-based test on the graph resulting from buildLfPackageGraph'

changelog_begin
changelog_end
2022-04-06 10:00:58 +02:00
azure-pipelines[bot]
17bca6b1aa
update compat versions for 1.18.2 (#13484)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
Co-authored-by: Gary Verhaegen <gary.verhaegen@digitalasset.com>
2022-04-05 18:57:39 +02:00
pbatko-da
217c093938
Fix some typos in daml-lf .rst files (#13493)
changelog_begin
changelog_end
2022-04-05 15:09:53 +02:00
pbatko-da
0b1124a83e
Use ErrorDetails.matches in BenchTool (#13494)
changelog_begin
changelog_end
2022-04-05 15:09:38 +02:00
Soren Bleikertz
e1a13babed
Added CSV export of test evidence (#13483)
changelog_begin
changelog_end
2022-04-05 14:02:12 +02:00
azure-pipelines[bot]
029700ce78
update NOTICES file (#13490)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-04-05 13:57:00 +02:00
Moisés Ackerman
6402b2e95c
Handle scenario service errors (#13479)
* Add ChoiceGuardFailed and ContractDoesNotImplementInterface errors to scenario-service protocol

* Update daml-test-file InterfaceErrors.daml 

* Add daml-test-files for ChoiceGuardFailed and ContractDoesNotImplementInterface errors

changelog_begin
changelog_end

Co-authored-by: Sofia Faro <sofia.faro@digitalasset.com>
2022-04-05 09:26:08 +00:00
Victor Peter Rouven Müller
ad4ed5c4b2
Add security evidence for auth middleware (#13424)
changelog_begin
changelog_end
2022-04-05 11:25:56 +02:00
azure-pipelines[bot]
4b71431b20
update NOTICES file (#13489)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-04-04 08:55:42 -04:00
Stephen Compall
4bf0de8901
better errors when querying by interface ID (#13406)
- double the resolveTemplateId interface and use the "contract type" for
  exercise-by-id only
- lookup for template ID only
- 400 + error message test
- move query test to also run on PG/oracle

CHANGELOG_BEGIN
CHANGELOG_END
2022-03-31 15:53:39 +00:00
carrielaben-da
3ff5cb6292
TOC index pages (#13468)
Adding text to the previously blank index pages on the Daml side of the documentation (text for the Canton side to follow.)

[CHANGELOG_BEGIN]

[CHANGELOG_END]

Co-authored-by: carrie-laben <91496516+carrie-laben@users.noreply.github.com>
2022-03-31 11:12:58 -04:00
Gary Verhaegen
3629d1915a
docs: fix canton ref (#13482)
The referenced section is here:
https://github.com/DACH-NY/canton/blob/main/docs-open/src/sphinx/architecture/ha.rst

It already contains a label definition, but it doesn't directly match
the title. I've tested this fix locally by building the combined docs.

CHANGELOG_BEGIN
CHANGELOG_END
2022-03-31 14:29:39 +00:00
tudor-da
2a439c7764
Release 1.18.2 (#13473)
changelog_begin
changelog_end
2022-03-31 16:16:09 +02:00
Robin Krom
f7ae70ce5a
ifaces:evaluation order tests for create_interface (#13477)
This adds evaluation order tests for dalm-lf for `create_interface`.

Part of #12697.

CHANGELOG_BEGIN
CHANGELOG_END
2022-03-31 16:08:38 +02:00
Moisés Ackerman
f59d1cd0b4
Convert experimental primitive TYPEREP_TYCON_NAME into proper LF builtin (#13465)
* Convert experimental primitive TYPEREP_TYCON_NAME into proper LF builtin

* Add entry for TYPEREP_TYCON_NAME in daml-lf spec

* disable quickcheck test in DA.Test.Packaging

changelog_begin
changelog_end
2022-03-31 14:35:46 +02:00
Gary Verhaegen
19714e27c6
ci/cron/docs: fix file verification (#13475)
There is no `versions.json` in daml-on-sql docs.

CHANGELOG_BEGIN
CHANGELOG_END
2022-03-31 14:25:40 +02:00
Hubert Slojewski
a8547c8bab
Make multi-participant conformance tests work with distributed committers/event logs [KVL-1335] (#13467)
CHANGELOG_BEGIN
CHANGELOG_END
2022-03-31 14:24:06 +02:00
Moisés Ackerman
907bc383e2
daml-lf/interfaces: Drop speedy typereps (#13403)
* Add SBGuardMatchTemplateId builtin

* drop speedy typeRep args

* Update expected exceptions in daml-lf InterfacesTest

changelog_begin
changelog_end
2022-03-31 13:36:33 +02:00
davidrichards-da
a010f7cf5b
Enterprise v open source table (#13459)
* Added differences between the enterprise & open source editions

Added differences between the enterprise & open source editions & clearer instructions on how to download Canton.

* Empty commit with changelog notation

CHANGELOG_BEGIN
CHANGELOG_END

* Apply suggestions from code review

Typo's spotted by Carrie.

Co-authored-by: carrielaben-da <91496516+carrielaben-da@users.noreply.github.com>

* Updated the enterprise v open source table

Updated the enterprise v open source table with links and making sure all rows are relevant

Co-authored-by: carrielaben-da <91496516+carrielaben-da@users.noreply.github.com>
2022-03-31 11:17:22 +01:00
azure-pipelines[bot]
dd8d78e539
update NOTICES file (#13472)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-03-31 12:01:05 +02:00
Artúr Poór
3193d54246
docs: highlight json api supports multi-party submissions (#13409)
* docs: highlight json api supports multi-party submissions

CHANGELOG_BEGIN
CHANGELOG_END
2022-03-31 11:41:05 +02:00
Sofia Faro
7000875e62
interfaces: Make fromInterfaceContractId pure, add fetchFromInterface (#13453)
* interfaces: Make fromInterfaceContractId pure.

This PR changes `fromInterfaceContractId` to make it pure. This means
it cannot verify the contract id coercion, and should only be used
with care. To balance this, this PR also adds `fetchFromInterface` which
combines a `fetch` with a `fromInterface` and `fromInterfaceContractId`,
to serve as a safer alternative to `fromInterfaceContractId`, and is more
useful than the old `fromInterfaceContractId` since it also returns the
fetched & converted contract payload.

changelog_begin
changelog_end

* fix integration tests

* add submitMustFail tests for fromInterfaceContractId
2022-03-30 16:42:03 +00:00
Brian Healey
befde5fdb5
update telemetry version to 1.12.0 to fix grpc reflection and other assorted fixes (#13357)
* update telemetry version to 1.19.1 to match canton

CHANGELOG_BEGIN
Update telemetry version to 1.19.1
CHANGELOG_END

* update opentelemetry to 1.12.0.  Avoid repetition on dropwizard and prometheus versions

* bazel reformat
2022-03-30 16:37:42 +00:00
azure-pipelines[bot]
e5a1d9e236
rotate release duty after 2022-03-30 (#13456)
@nickchapman-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-03-30 18:21:49 +02:00
davidrichards-da
ef55141788
Added clarity around security risk errors (#13407)
* Adding section to error codes page and updating descriptions

CHANGELOG_BEGIN
CHANGELOG_END
Added a section in the error codes page and improved description to errors

* Removing the multi-line descriptions

* Changing the added sentence

swapping 'due to security reasons' 'for security reasons'

* Updated formatting

Ran the fmt.sh script to give me the correct formatting.

* Updating the generated error codes

CHANGELOG_BEGIN
CHANGELOG_END
Updating the generated error codes
2022-03-30 15:50:00 +01:00
Moritz Kiefer
fbf97d1432
Change Canton synchronization to use the healthcheck endpoint (#13463)
changelog_begin
changelog_end
2022-03-30 16:31:13 +02:00
Moisés Ackerman
da812e4c8b
Drop duplicate packages in dependency graph (#13442)
* Drop duplicate packages in dependency graph

* Add double data-dependency test

changelog_begin
changelog_end
2022-03-30 14:54:26 +02:00
azure-pipelines[bot]
26c97a079c
update NOTICES file (#13457)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-03-30 12:23:10 +02:00
Remy
e94dc3eae8
Allow LF dev for daml script tests (#13455)
CHANGELOG_BEGIN
CHANGELOG_END
2022-03-30 10:15:17 +02:00
Sergey Kisel
f2a8220121
Fixing sandbox-on-x test targets. (#13451)
CHANGELOG_BEGIN
CHANGELOG_END
2022-03-30 08:45:45 +02:00
Rafael Guglielmetti
f24a39d2df
Use Canton 2.1.0-SNAPSHOT (20220328) for conformance tests (#13446)
CHANGELOG_BEGIN
CHANGELOG_END
2022-03-29 17:55:21 +02:00
Stefano Baghino
9d6eecaa4f
Refactoring codegen (#13439)
* Remove unused `name` field from `InterfaceTreeBuilder`, inline builder construction

* Remove unused `Traverse` instance for `TypeDeclOrTemplateWrapper`

* Remove unneccessary type parameter from `TypeDeclOrTemplateWrapper`

* Remove some unnecessary copies `.toList`

* Remove `TypeDeclOrTemplateWrapper`, use `Either` directly as a wrapper

* Use `bimap` instead of explicitly wrapping and unwrapping the `Either`

* Remove unnecessary type `Mode`

* Remove unnecessary type parameter from `WriteParams`

* Remove unnecessary binding

* Pull `OrderedDependencies` out of `Graph`

* Move computation of relevant packages to `codegen-common`

* Move `templateCount` from `LFUtil` into `CodeGen`

* Comment the purpose of `TransitiveClosure`

* Pull the variance cache out of `LFUtil`

`LFUtil`'s purpose is that of limiting passing around certain
values. While the purpose is questionable, the variance cache did
not need to access any of those values and it's quite easy to
move to a separate class where the purpose and the scope are clearer.

* Make `DependencyGraph` work directly on type declarations

* Add constructor for a collection of interfaces to `EnvironmentInterfaces`

* Factor the error message from `cyclicDependencies` out of `DependencyGraph`

changelog_begin
changelog_end
2022-03-29 16:29:22 +02:00
Remy
dfee9dfaf8
Fix Transaction.Metadata used_packages field computation for interface (#13441)
fixes #13437

CHANGELOG_BEGIN
CHANGELOG_END
2022-03-29 14:20:04 +00:00
Andreas Lochbihler
af288a6bce
Move the public methods on NonEmpty to companion object (#13415)
Now the signatures of those methods refer to the type synonyms defined in the package object rather than to the abstract type members of the class.
This makes sure that IntelliJ will find the implict classes for NonEmpty and NonEmptyF.

CHANGELOG_BEGIN
CHANGELOG_END
2022-03-29 14:52:41 +02:00
Robin Krom
b2e7981b73
ifaces:evaluation order tests for fetch by iface (#13443)
This adds evaluation order tests for fetch_interface in the daml-lf
execution.

Part of #12697.

CHANGELOG_BEGIN
CHANGELOG_END
2022-03-29 11:19:34 +00:00
Victor Peter Rouven Müller
cc06073333
Java bindings/interface support (#13366)
* WIP

* First working version of java codegen daml interface support

* Update language-support/java/codegen/BUILD.bazel

Co-authored-by: Remy <remy.haemmerle@daml.com>

* Fix compile errors

* Simplify code massivly, enjoy less duplication

changelog_begin

- The Java codegen now has basic support for daml interface definitions. Converting a contract id of a template implementing an interface to a contract id of the interface is possible and both executing interface choices is possible on the contract id of the interface and implementing template.

changelog_end

* Rename the test file to reflect it is a test file & enhance the inner test name & extend it further

* Fix test

* Refactor parts of TemplateClass.scala into multiple files

* Format that files!

* Minimize duplication further

* Remove unused comment

* Simplify code
Co-authored-by: Stephen Compall <stephen.compall@daml.com>

* Update language-support/java/codegen/src/main/scala/com/digitalasset/daml/lf/codegen/CodeGenRunner.scala

Co-authored-by: Stephen Compall <stephen.compall@daml.com>

* Further refactoring and renaming of the TemplateClassSpec to ContractIdClassBuilderSpec

* Fix formatting

* Add interface docs

* Remove unnecessary code generation of the Contract class for interface types

* Use less bool flags and more good function names :)

* Fix build

Co-authored-by: Remy <remy.haemmerle@daml.com>
Co-authored-by: Stephen Compall <stephen.compall@daml.com>
2022-03-29 12:38:00 +02:00