Commit Graph

10245 Commits

Author SHA1 Message Date
azure-pipelines[bot]
5f5aa4aa82
rotate release duty after 2022-06-08 (#14118)
@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-06-08 15:25:38 +02:00
carrielaben-da
7f8bbdff24
Update redirects.map (#14110)
* Update redirects.map

Updated to redirect from outdated versions of the Daml ledgers page to the newest version.

[CHANGELOG_BEGIN]
[CHANGELOG_END]

* Update docs/redirects.map

[CHANGELOG_BEGIN]
[CHANGELOG_END]

Co-authored-by: Gary Verhaegen <gary.verhaegen@digitalasset.com>

Co-authored-by: Gary Verhaegen <gary.verhaegen@digitalasset.com>
2022-06-08 09:21:33 -04:00
Stephen Compall
4075389f92
remove inherited choices from Scala codegen, test interface/template IDs (#14113)
* inherited choices are gone, convert to interface
* use toInterface for conformance tests on interfaces

CHANGELOG_BEGIN
- [Scala codegen] Interface choices can no longer be invoked directly on
  template IDs, or via ``createAnd`` or ``key`` directly.  Instead, use
  ``toInterface[Ifn]`` before calling the relevant ``exercise*`` method.

  The resulting ledger commands now contain the correct interface ID
  rather than template ID for looking up the choice, but see #13993 for
  a caveat regarding create-and-exercise and exercise-by-key.
CHANGELOG_END
2022-06-08 08:37:56 -04:00
Sergey Kisel
1d8f195438
Sandbox Classic Removal in Tests (#13934)
CHANGELOG_BEGING
CHANGELOG_END
2022-06-07 19:54:52 +00:00
Stephen Compall
15b82efb87
toInterface and unsafeToTemplate in Scala codegen (#13991)
* Template.Implements marker, and toInterface for contract IDs
* unsafeToTemplate for interface contract IDs
* toInterface for create-and-exercise, exercise by key

CHANGELOG_BEGIN
- [Scala codegen] Template contract IDs and interface contract IDs have
  new coercion methods, ``toInterface`` and ``unsafeToTemplate``,
  respectively.

  ``toInterface`` can also be used with ``createAnd`` as well as ``key``
  for create-and-exercise and exercise-by-key respectively; however, see
  #13993 for a caveat regarding ledger API support.
CHANGELOG_END
2022-06-07 16:55:19 +00:00
azure-pipelines[bot]
cc2160bc52
update NOTICES file (#14111)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-06-07 15:57:32 +00:00
Stephen Compall
4341130fe0
interface contract ID types in Scala codegen (#13975)
* define Interface and InterfaceCompanion parent classes
* generate package ID aliases for interface-only modules
* generate choice methods for interfaces
* include all interfaces in what to write from Scala codegen
* handle interface references in variance resolution

CHANGELOG_BEGIN
- [Scala codegen] Interface contract ID types, and references to them in
  serializable types, are now supported, as is exercise of interface
  choices on interface contract IDs.  To support this, ``DomainCommand``
  now includes a ``ContractTypeCompanion``, which may describe either a
  template or an interface, rather than a ``TemplateCompanion``.
CHANGELOG_END
2022-06-07 14:30:11 +00:00
Stephen Compall
9a086ec225
remove two-argument fromIdAndRecord from Java codegen output (#14104)
CHANGELOG_BEGIN
- [Java codegen] The two-argument overload for ``fromIdAndRecord``,
  deprecated since SDK 0.12.18, has been removed.  Code that still uses
  this should use either ``fromCreatedEvent``, or the remaining overload
  of ``fromIdAndRecord`` if no ``CreatedEvent`` is available.
CHANGELOG_END
2022-06-07 08:58:27 -04:00
Stephen Compall
7c23420876
use more domain models for json-api response tests (#14101)
CHANGELOG_BEGIN
CHANGELOG_END
2022-06-07 08:57:17 -04:00
Andreas Lochbihler
2ac54ce1f4
add advance to contract state machine (#14077)
CHANGELOG_BEGIN
CHANGELOG_END
2022-06-07 12:09:58 +02:00
Moisés Ackerman
3255dccfc9
Qualify interface name in _requires_ markers (#14054)
* Add failing test
* update ghc patch
* Update *.EXPECTED.desugared-daml daml-test-files
2022-06-07 10:00:36 +00:00
Gary Verhaegen
4bb1cc9a06
add new-joiners to the release rotation (#14102)
CHANGELOG_BEGIN
CHANGELOG_END
2022-06-07 09:30:42 +00:00
azure-pipelines[bot]
1306c8e27d
update NOTICES file (#14106)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-06-07 09:54:46 +02:00
azure-pipelines[bot]
8448dba544
bump canton to 20220606 (#14105)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-06-07 07:26:17 +00:00
tudor-da
ce98be8627
Extract ContractStateCaches from MutableCacheBackedContractStore (#14058)
changelog_begin
changelog_end
2022-06-06 16:12:40 +00:00
Bernhard Elsner
c154b2f769
Add system architecture (Canton) FAQ to docs (#14088)
* Add system architecture (Canton) FAQ to docs

CHANGELOG_BEGIN
CHANGELOG_END

* Apply suggestions from code review

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

* Apply suggestions from code review

Co-authored-by: daravep <ratko@digitalasset.com>

* Incorporate feedback

Co-authored-by: carrielaben-da <91496516+carrielaben-da@users.noreply.github.com>
Co-authored-by: daravep <ratko@digitalasset.com>
2022-06-06 08:47:02 +00:00
azure-pipelines[bot]
fdf792b062
update NOTICES file (#14095)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-06-06 10:06:13 +02:00
azure-pipelines[bot]
1a0432484b
bump canton to 20220603 (#14094)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-06-06 10:05:52 +02:00
Marton Nagy
a939f7d76e
Refactoring: cleanup appendonly leftovers (#14096)
* Renames appendonlydao test directory
* Inlines JdbcAppendOnlyTransactionInsertion

changelog_begin
changelog_end
2022-06-05 00:07:54 +02:00
Marton Nagy
ec4f9850ba
ACS ID fetching enhancements [DPP-1058] (#14027)
* Adds exponential ID page retrieval to aid low stream initialization
* Adds Working-Memory concept to calculate parameters to aid guaranteed memory footprint
* Switches to dynamic BatchN batching instead of static grouping to aid stream initialization

changelog_begin
changelog_end
2022-06-04 14:42:28 +00:00
Moisés Ackerman
ee394702b8
Add CoImplements to DefInterface in protobuf (#14053)
* Update docstring for TemplateImplements.tpiMethods
    * The change happend on https://github.com/digital-asset/daml/pull/13142

* Add CoImplements to DefInterface in protobuf
    * Also adds encoding/decoding logic in the haskell side

* Part of https://github.com/digital-asset/daml/issues/14047

changelog_begin
changelog_end
2022-06-03 16:05:18 +00:00
Moisés Ackerman
cd6ae5dddc
Use -DDAML_PRIM cpp flag for building ghc-lib{,-parser} (#14074)
* Use -DDAML_PRIM cpp flag for building ghc-lib{,-parser}

changelog_begin
changelog_end
2022-06-03 15:04:23 +00:00
Stephen Compall
eef97d04d2
remove inherited exercise methods from Java codegen (#14078)
* stop resolving in Java codegen, and use direct choices only
* wrong issue reference in Scala codegen

CHANGELOG_BEGIN
- [Java codegen] Direct invocation of interface exercise methods on
  templates is no longer supported, and the ``exercise*`` methods, which
  could generate invalid commands in some cases anyway, are removed.
  Use ``toInterface`` to access interface exercise methods.
CHANGELOG_END
2022-06-03 09:08:24 -04:00
Gary Verhaegen
928e2b8464
split releases: add parameter (#14032)
This adds parameters to the "split release" job. At the moment, when
run, the job just builds the current commit with a snapshot version.
With this change, we'll be able to build a split release for any commit
with any version tag.

The reason for this change is we want to trigger this job from the
assembly repo, to reduce the number of manual interventions needed in
the release process.

CHANGELOG_BEGIN
CHANGELOG_END
2022-06-03 11:40:48 +02:00
azure-pipelines[bot]
ebeb998d42
update NOTICES file (#14087)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-06-03 11:40:22 +02:00
Brian Healey
28e3990e57
update oracle client 19.14.0 (#14085)
CHANGELOG_BEGIN
Update Oracle client version to 19.14.0
CHANGELOG_END
2022-06-03 09:51:40 +02:00
Andreas Herrmann
520578a8d5
Remove absolute paths to execroot (#14072)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Andreas Herrmann <andreas.herrmann@tweag.io>
2022-06-03 09:17:20 +02:00
azure-pipelines[bot]
22c9355ef6
bump canton to 20220602 (#14086)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-06-03 06:54:25 +00:00
Brian Healey
4de1a5dc59
upgrade to latest released oracle 19.15 (#14079)
CHANGELOG_BEGIN
Update to ensure compatibility with Oracle 19.15
CHANGELOG_END
2022-06-02 18:33:54 -04:00
Remy
ae8f50dbb8
LF: drop inheretedChoices from Implements (#14068)
part of #13653

CHANGELOG_BEGIN
CHANGELOG_END
2022-06-02 18:48:54 +00:00
Stephen Compall
eb3425b6c6
don't exclude interface-only modules in JS codegen (#14003)
* reproduce

This produces no files for EmptyIfaceOnly and yields the error

src/__tests__/test.ts(571,39): error TS2339: Property 'EmptyIfaceOnly' does not
exist on type 'typeof import(".../node_modules/@daml.js/build-and-lint-1.0.0/lib/Lib/index")'.

* generate files with no serializable types, but interfaces
- fixes parent test

CHANGELOG_BEGIN
- [codegen js] Files are now generated for Daml modules with interfaces
  even if no serializable types are present, and the module contents are
  generally propagated as if they had serializable types in them.
CHANGELOG_END
2022-06-02 11:17:59 -04:00
Robin Krom
3ff8c1055e
disclosures: fix buildDiscTable (#14071)
* disclosures: fix buildDiscTable

This removes the pattern match on the template id for the argument
record in buildDiscTable. The arguments don't contain the template id
any longer.

CHANGELOG_BEGIN
CHANGELOG_END

* Update daml-lf/engine/src/main/scala/com/digitalasset/daml/lf/engine/Engine.scala

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

Co-authored-by: Moritz Kiefer <moritz.kiefer@purelyfunctional.org>
2022-06-02 14:56:06 +00:00
Remy
09034a265d
ScenarioRunner: move the building of the speedy machine (#14024)
CHANGELOG_BEGIN
CHANGELOG_END
2022-06-02 16:40:48 +02:00
Remy
cd24aa7522
update CODEOWNERS (#14064)
CHANGELOG_BEGIN
CHANGELOG_END
2022-06-02 16:26:05 +02:00
Remy
f2888f52ec
LF: update governance (#14065)
CHANGELOG_BEGIN
CHANGELOG_END
2022-06-02 16:20:59 +02:00
Remy
7638e086ae
Script: infer the typeId of Choice in daml (#13971)
part of #13653

goes with digital-asset/ghc#122

CHANGELOG_BEGIN
CHANGELOG_END
2022-06-02 14:02:12 +00:00
Stephen Compall
4caba375e5
in daml-lf/interface, resolve choices directly from DefInterface (#14057)
CHANGELOG_BEGIN
CHANGELOG_END
2022-06-02 12:19:08 +00:00
Stephen Compall
4f7eefc8d5
two-phase create-and-exercise with unified exercise methods in Java (#14037)
* new getCompanion methods generated for contract IDs
* document new output for exercise methods
* link to #14039

CHANGELOG_BEGIN
- [Java codegen] ``createAndExercise*`` and ``exerciseByKey*`` methods
  are deprecated; instead, use the new ``createAnd().exercise*`` and
  ``byKey(key).exercise*`` methods.

  When the ledger API supports it, interface choices will be reachable
  via ``createAnd().toInterface(Ifc.INTERFACE).exercise*`` and
  ``byKey(key).toInterface(Ifc.INTERFACE).exercise*``, exactly the
  syntax supported by contract-ID exercise; see #14056.
CHANGELOG_END
2022-06-02 12:09:59 +00:00
Stephen Compall
1dbebba03a
toInterface, unsafeFromInterface overloads in Java codegen (#14004)
* InterfaceCompanion marker parent
* define INTERFACE singleton class and sole value with every interface
* don't allow instantiation of interface classes; they are never what you want
* use singleton for to<interface>, rename unsafeFrom<interface> to unsafeFromInterface
* rename to<interface> to toInterface
* document Java interface output changes

CHANGELOG_BEGIN
- [Java codegen] For interface types ``Ifc``, the template contract ID
  conversion method ``toIfc()`` has been removed and replaced with
  ``toInterface(Ifc.INTERFACE)``, and the interface contract ID
  conversion method ``unsafeFromIfc`` has been replaced with
  ``unsafeFromInterface``, always the same name.
CHANGELOG_END
2022-06-02 06:28:35 -04:00
Andreas Lochbihler
4cfffec87a
Extract a contract state machine for transaction interpretation and validation (#14044)
CHANGELOG_BEGIN
CHANGELOG_END
2022-06-02 09:39:37 +00:00
azure-pipelines[bot]
5af451473b
update NOTICES file (#14061)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-06-02 08:38:58 +00:00
Gary Verhaegen
78e4d33346
fix Docker image (#14063)
Same goal as #14055, but this should fix this week's image (we build
from the release commit, so #14055 only fixes future images), as well as
allow us to rebuild past images should we ever need to.

CHANGELOG_BEGIN
CHANGELOG_END
2022-06-02 08:27:07 +00:00
azure-pipelines[bot]
587af541fc
bump canton to 20220601 (#14060)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-06-02 10:22:12 +02:00
azure-pipelines[bot]
fc59ced836
rotate release duty after 2022-06-01 (#14041)
@remyhaemmerle-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-06-02 10:20:52 +02:00
Gary Verhaegen
672a4bfb9c
fix daml-sdk Docker image (#14055)
It looks like the default image changed from Focal to Jammy, and for
whatever reason that completely breaks `curl`.

This pins us to Focal (for better or worse).

CHANGELOG_BEGIN
CHANGELOG_END
2022-06-01 17:58:22 +00:00
azure-pipelines[bot]
8c59a28a41
update NOTICES file (#14042)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-06-01 11:21:59 +02:00
azure-pipelines[bot]
93716c2a4e
bump canton to 20220531 (#14040)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-06-01 11:21:23 +02:00
Marton Nagy
f5a2539d6f
Add globalKeyMapping to WriteService [DPP-1067] (#14026)
The field globalKeyMapping is recently added to
lf.transaction.Transaction.Metadata, and which is
computed by the Engine.
This field might be needed for processing by WriteService
implementors.
This PR adds this to the WriteService.

changelog_begin
Global contract key mapping is added to WriteService.
changelog_end
2022-06-01 10:08:18 +02:00
tudor-da
3c5a52b895
[LLP] Move ledger-api-transactions-buffer-max-size to Config from ParticipantConfig (#14009)
* Move `ledger-api-transactions-buffer-max-size` to Config from ParticipantConfig

changelog_begin
changelog_end

* Update ledger/ledger-runner-common/src/main/scala/com/daml/ledger/runner/common/CliConfig.scala

Co-authored-by: mziolekda <marcin.ziolek@digitalasset.com>

Co-authored-by: mziolekda <marcin.ziolek@digitalasset.com>
2022-06-01 05:51:55 +00:00
Moisés Ackerman
e62bb29e9c
Update macOS nix setup to use 'trusted-users' option (#14036) 2022-05-31 16:24:14 +00:00