Commit Graph

1414 Commits

Author SHA1 Message Date
Moisés Ackerman
db14360701
Remove retroactive interface instance syntax (#18350)
* Bump GHC_REV

* Remove retroactive interface instances

* Remove more uses of retroactive ii

* Remove rii from //compiler/damlc/tests:daml-doc

* Remove rii from docs/source/daml/code-snippets-dev/Interfaces.daml

* Bump GHC_REV
2024-02-07 11:28:25 +00:00
Remy
3b292d0032
[LF] drop retroactive interface instance (#18282) 2024-02-01 17:41:51 +01:00
Marton Nagy
6bcd4a8c10
[LF] Remove divulgence based disclosure (#18296)
Co-authored-by: Remy Haemmerle <Remy.Haemmerle@daml.com>
2024-02-01 14:42:12 +00:00
mziolekda
f0de92ba10
Convert rx java to use LAPI v2 (#18341)
* use state service

eliminate ledger-identity and ledger-configuration services

update service

event query and package services

command service

command completions

command submission service

time service

clean-up

* fix documentation example

* format

* adopt rx to changed java-bindings
2024-02-01 14:48:54 +01:00
Paul Brauner
57d28c15fa
remove agreement text from the compiler (#18272)
* remove agreement text from the compiler

* update GHC_REV

run-all-tests: true

* point to the HEAD of master-8.8.1
2024-01-29 12:49:12 +00:00
Moisés Ackerman
4599ab433a
Remove support for 'template-let' syntax (#18262)
* Bump GHC_REV

* Remove template-let from daml-test-files

* Remove template-let from code-snippets

* Update golden file UnusedMatchTests.EXPECTED.desugared-daml

* Bump GHC_REV
2024-01-25 17:05:13 +01:00
Hubert Slojewski
3b5dce66f5
#15209 Remove agreement text part 1 (internal changes only) (#18218) 2024-01-22 17:06:17 +00:00
Paul Brauner
6393fd084c
Remove LF1 in the compiler (#18203)
* make lf v2 and daml3-script the default

* delete V1 integration tests

* Remove LF major version V1 from the compiler

run-all-tests: true

* fix security evidence

* fix //compiler/damlc/tests:damlc-test

* fix //compiler/damlc/tests:data-dependencies

* fix //compiler/damlc/tests:integration-v2*

* fix //compiler/damlc/tests:packaging

* fix //compiler/damlc/tests:platform-independence-dar-hash-file-matches

* fix //compiler/damlc/tests:stable-packages

* fix DarReaderTest.scala

* fix DecodeCommonSpec.scala

* fix //daml-lf/archive:proto_immutability_check

* fix DamlLfEncoderTest.scala

* fix //language-support/java/codegen:test

* fix //daml-assistant/integration-tests:integration-tests

* fix artifacts.yaml

run-all-tests: true
run-full-compat: true

* Disable scenario-perf for now

See https://github.com/digital-asset/daml/pull/18217.

run-all-tests: true
run-full-compat: true

* restore explicit target version in docs template

run-all-tests: true
run-full-compat: true

* Restore DamlLfEncoderTest.scala.

Introduce a ENGINE_LF_VERSIONS constant in daml-lf.bzl instead.

run-all-tests: true
run-full-compat: true

* delete daml-lf/scenario-interpreter/src/perf

run-all-tests: true
run-full-compat: true

* Address review comments.

* Apply

Co-authored-by: Moisés Ackerman <6054733+akrmn@users.noreply.github.com>

* Restore golden/BUILD.bazel and port to 2.1

run-all-tests: true
run-full-compat: true

---------

Co-authored-by: Moisés Ackerman <6054733+akrmn@users.noreply.github.com>
2024-01-19 15:19:34 +00:00
Paul Brauner
7ac69ceb2e
Pb/build daml against canton3 (#18103)
* Rename canton-3x to canton

* fix build

* fix BuildInfo for canton 3

* add reference drivers as a runtime dep to community_domain

* target 2.1 in interface-choices-valid

* run damlc integration tests with LF2

* fix the repl tests

* fix repl-functests

* fix package manager test

* disable V1 scala integration tests

* port the scala canton fixture to canton3

* fix JsonApiIt, using sleeps :/

* fix test-daml-packages and test-daml-ledger under //daml-assistant/daml-helper

* fix integration tests

* fix QuickstartTest.hs

* fix //daml-script/export/integration-tests/reproduces-transactions:test

* fix //daml-script/runner:tests

* fix Daml3ScriptDevIT

* fix Daml2ScriptTestRunner

* remove sleeps in functests now that a delay has been added to daml3-script's allocateParty

* fix //language-support/java/codegen:ledger-tests

* fix ScalaCodeGenIT

* remove useless sleep

* fix //language-support/ts/codegen/tests:build-and-lint-test

* remove redundant sleep and fix daml script

* fix //daml-assistant/daml-helper:test-tls

* fix CommandClientIT

* fix //daml-assistant/daml-helper:test-deployment

* Remove duplicate contract key test: not supported by canton 3.

run-all-tests: true

* fix //language-support/hs/bindings:test

run-all-tests: true

* small cleanups

run-all-tests: true

* clean up and fix compat tests

* fix build after rebase

run-full-compat: true
run-all-tests: true
2024-01-17 18:11:24 +01:00
Gary Verhaegen
c6ed4427ee
remove create-daml-app (#18173)
Why?

This is a terrible introductory application. We have no expertise in web
development (it's terribly outdated and we don't have the knowledge to
update it), so steering newcomers in that direction is disputable at
best. This example (and the associated documentation) spends more time
discussing (a very old version of) TypeScript than Daml. The use-case
presented is not one that showcases the strength of either the Daml
language or the underlying Canton ledger. It's not even a distributed
application as it assumes a single ledger.

At best, this template presents Daml as a DDL for simple wep API
definitions, but one where the resulting generated code provides no
support for authentication, external API calls, or any common
server-side tasks like sending emails.

Why now?

As we start working in parallel on 2.9 and 3.0, we are faced with the
perspective of having to do two weekly snapshots and thus having to test
both of them. Removing create-daml-app from the 3.0 branch alleviates
the testing burden quite a bit.

Daml 3.0 will be a long-term effort, and we have plenty of time to figure
out what should replace create-daml-app for this new version. If this
template was bad at showcasing Daml 2 strength, it's an even worse fit
for Daml 3.

Note that this PR removes a lot of additional tests, notably
compatibility ones. They live on in the main-2.x branch, where
compatibility tests also run.
2024-01-17 12:33:59 +00:00
Gary Verhaegen
179d85362d
update copyright (#18167)
* update copyright

* undo hack from #18168

* update hash in platform-independence-pre-check
2024-01-15 20:27:42 +01:00
mziolekda
7108f2c76a
Remove triggers (#18142)
* remove triggers

* adopt the codebase to missing triggers

run-all-tests: true

* fix builid

* Remove oracle tests
2024-01-12 17:55:05 +01:00
mziolekda
bde7632208
Remove navigator (#18141)
* remove navigator

* remove all apart from assistant

* remove navigator from assistant

* remove navigator from release procedure

* remove mentions of navigator completely
2024-01-12 11:32:57 +00:00
mziolekda
36fe0abb09
Remove ledger api test tool (#18088)
* Remove ledger api test tool

* Force full compat

run-full-compat: true

* Force run all tests

run-all-tests: true

---------

Co-authored-by: Paul Brauner <paul.brauner@digitalasset.com>
2024-01-10 16:48:12 +00:00
dependabot[bot]
db3b29ec45
Bump ch.qos.logback:logback-classic (#17979)
Bumps [ch.qos.logback:logback-classic](https://github.com/qos-ch/logback) from 1.2.3 to 1.3.12.
- [Commits](https://github.com/qos-ch/logback/compare/v_1.2.3...v_1.3.12)

---
updated-dependencies:
- dependency-name: ch.qos.logback:logback-classic
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-05 23:41:14 +00:00
Gary Verhaegen
c6e439b862
clean-up docs & fix BlackDuck (hopefully) (#17975) 2023-12-05 16:20:44 +01:00
mziolekda
34743570bd
Rewire the build to use ledger-api within canton (#17959)
* Rewire the build to use ledger-api within canton

* same for canton-3

* fix buf

* fix buf again

* remove references to canton from canton-3x
2023-12-04 16:11:13 +01:00
mziolekda
7e2aa7cece
Adopt the repository to the movement of java bindings (#17913)
* Make java bindings compile in new place

* fix a mysterious grpcurl error
2023-11-30 22:43:35 +01:00
Andreas Triantafyllos
b8eebc6ddd
Convert conformance tests to use java bindings (#17894) 2023-11-29 16:34:06 +00:00
Gary Verhaegen
4660b08f25
remove docs theme (#17455)
It's moving to the docs repo, where it belongs.
2023-10-19 16:53:28 +02:00
Andreas Triantafyllos
dee7852b3e
Remove unused declarations in ledger-api-errors. (#17514) 2023-10-04 09:27:51 +02:00
Andreas Triantafyllos
44c0c51bb3
Refactor ledger/error (#17509) 2023-09-29 17:51:32 +02:00
Paul Brauner
a5cd445d3b
Introduce LF2 major version (#17348)
- Introduces a new major version, "2", in the daml_lf proto
- Adds new major versions to the compiler and the engine
- Updates all code that assumes only one major version
- Updates all code that assumes only one dev version
2023-09-13 10:01:42 +02:00
Moisés Ackerman
04884936cc
Remove commented-out 'controller..can' code snippets (#17390) 2023-09-12 14:46:31 +02:00
Moisés Ackerman
1bee52e40c
Remove compiler support for controller..can choice syntax (#17362)
* Update GHC_REV

* Remove 'controller..can' syntax in java codegen StakeholdersTest

* Remove 'controller..can' syntax in ChoiceSyntaxes daml-test-file

* Remove daml-test-files {,No}WarnControllerCan

* Remove 'controller..can' syntax in SemanticsEvalOrder{,RightToLeft} daml-test-files

* Update {Structure,Reference}.daml code snippets for docs.daml.com

* Remove 'controller..can' syntax in TestGrammar.daml

* changelog entry for 'controller..can' removal

* Update UNRELEASED.md

Co-authored-by: carrielaben-da <91496516+carrielaben-da@users.noreply.github.com>
2023-09-08 10:30:21 +00:00
Carl Pulley
195795537d
interpretation Error ValueNesting should not be in Dev (#17241) 2023-08-22 09:01:30 +01:00
Moisés Ackerman
ab038ab078
Add warning for uses of 'template-let' syntax (#17266)
* Update GHC_REV

* Add daml-test-files for template-let warning and its toggle

* Adapt daml-test-files to template-let warning

* update *.desugared-daml golden files

* Adapt //daml-lf/tests to template-let warning

* Adapt //test-common to template-let warning

* Update //compiler/damlc/tests:daml-doc golden output

* Adapt //docs to template-let warning

* Update GHC_REV
2023-08-18 15:14:46 +00:00
Samuel Williams
34210007e7
Rename UserError and DevError (#17225)
* Rename UserError and DevError

* Update error docs

* Fix ledger test tool

* re-enable daml3scripttestrunnerdev
2023-08-09 09:09:15 +01:00
Samuel Williams
f82fb77102
Update tests to match canton changes (#17093) 2023-07-12 16:53:32 +01:00
Gary Verhaegen
60f41e88b4
docs: remove unused exports (#17109) 2023-07-11 17:39:38 +02:00
Gary Verhaegen
20c0149b68
bump copyright for docs footer (#17098) 2023-07-10 17:02:02 +02:00
Krisztian Pinter
fed6e1ab7a
Add cabal support for some components (#16755) 2023-06-05 17:07:31 +02:00
mziolekda
95cc249ddd
Remove sandbox on x (#16890)
* remove sandbox-on-x project

* update bazel readme

* update release artifacts

* comment out last remaining SoX test

* remove ledger-runner-common

* remove participant-state-kv-errors

* remove recovering-indexer-integration-tests

* remove participant-integration-api

* update doc pages

* cleanup ledger-api-auth usage

* remove participant-state

* fix build

* fix build
2023-05-23 09:25:54 +02:00
Wallace Kelly
52445ad48f
Clarify the ledger time docs (#16236)
* Move the Redeem related paragraphs up

* Reduce use of "ledger" when discussing RT

* Rewrite the explanation of LT and RT

* Clarify the "moving the clock back" example

* Carrie: remove "a bit" from "challenging"

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

* Carrie: exactly how to assign the record time

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

* Carrie: the choice doesn't do anything

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

* Carrie: has two timestamps:

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

* Carrie: as determined by the participant

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

* Carrie: The only purpose of the RT

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

* Carrie: This is the requirement known as

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

* Carrie: LT or RT are strictly increasing

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

* Andrae: concept of a current time

* andrae: Non-fp friendly Redeem example

* andrae: better text around the Redeem example

* andrae: Remove details about skew alg

* andrae: remove misleading use of "commit"

* wallace: fix work hours boolean

* andrae: restore the case statement

Co-authored-by: Andrae Muys <andrae.muys@digitalasset.com>

* wallace: fix GitHub merge suggestion issue

* Lois: Correct "It is timestamp..."

Co-authored-by: Lois Kilberg <116729229+loiskilberg-da@users.noreply.github.com>

* Lois: Correct "and is assigned..."

Co-authored-by: Lois Kilberg <116729229+loiskilberg-da@users.noreply.github.com>

* Lois: Replace contraction doesn't

Co-authored-by: Lois Kilberg <116729229+loiskilberg-da@users.noreply.github.com>

* Lois: Remove "Notice..."

Co-authored-by: Lois Kilberg <116729229+loiskilberg-da@users.noreply.github.com>

* Lois: Replace "Now let's look at..."

Co-authored-by: Lois Kilberg <116729229+loiskilberg-da@users.noreply.github.com>

* Lois: Replace "given" and "it's"

Co-authored-by: Lois Kilberg <116729229+loiskilberg-da@users.noreply.github.com>

* Lois: Replace contraction "won't"

Co-authored-by: Lois Kilberg <116729229+loiskilberg-da@users.noreply.github.com>

---------

Co-authored-by: carrielaben-da <91496516+carrielaben-da@users.noreply.github.com>
Co-authored-by: Andrae Muys <andrae.muys@digitalasset.com>
Co-authored-by: Lois Kilberg <116729229+loiskilberg-da@users.noreply.github.com>
Co-authored-by: Gary Verhaegen <gary.verhaegen@digitalasset.com>
2023-02-27 17:58:17 +00:00
Gary Verhaegen
7f36d5e4b1
[docs] remove manually-edited rst files (#16376)
They are moving to the docs repo. I'm removing them here first and will
add to the docs repo afterwards, to avoid losing edits in the meantime.
2023-02-23 15:55:04 +01:00
Nicu Reut
cc0db80b3a
Remove duplicate HTTP metrics replaced by the golden signal metrics [PLEN-117] (#16341) 2023-02-22 13:42:24 +01:00
mziolekda
4c187673b8
bump ledger-api version to 2.3 (#16338)
* bump ledger-api version

* typos

* missing the
2023-02-17 18:18:49 +01:00
Samuel Williams
fb55f4c1bb
Add signatory labels to create and fetch in tree view (#16291)
* Add signatory labels to create and fetch in tree view

* Switch node printing in scala and expected ledger files

* Update docs/images

* Update party formatting to use `x, y and z` and correct verb tense

* Update scala to match haskell, update tests and docs (except images)

* Cleanup code from suggestions

* Fix misformatting, refactor
2023-02-16 15:57:01 +00:00
Wallace Kelly
9ccf6b8df2
Simplify the Keys.daml example (#15591)
* Simplify the Keys.daml example

* Lois: Remove "we" and "Now even after"

Co-authored-by: Lois Kilberg <116729229+loiskilberg-da@users.noreply.github.com>

* Lois: Remove "Notice that..."

Co-authored-by: Lois Kilberg <116729229+loiskilberg-da@users.noreply.github.com>

---------

Co-authored-by: Lois Kilberg <116729229+loiskilberg-da@users.noreply.github.com>
2023-02-16 14:08:31 +01:00
Gary Verhaegen
e113aa9118
delete page moved to docs repo (#16322)
See https://github.com/digital-asset/docs.daml.com/pull/166.
2023-02-15 19:32:07 +00:00
Simon Maxen
6f96aa5e0b
Event query service [DPP-1366] (#16273)
* Add EventQueryService (conformance disabled)

* Update with review comments

* Limit by ledger end

* Limit iterations searching for visible contract key

* Test with choice that recreates key

* Update proto comments

* Add to event query service to services document

* Inject message into token validator

* Fix docs typo

* Improve docs
2023-02-15 17:01:14 +01:00
Wallace Kelly
e103898dd9
Replace Party with allocateParty as Action example (#15583) 2023-02-15 08:50:55 +00:00
Wallace Kelly
6ab9159f39
Simplify daml test CLI example (#15411)
I don't see any reason to use `daml damlc -- test --files Token_Test.daml`, when `daml test --files Token_Test.daml` appears to have identical output:

```
➜  intro2 git:(main) ✗ daml damlc -- test --files daml/Token_Test.daml

Test Summary
daml/Token_Test.daml:token_test: ok, 1 active contracts, 6 transactions.
daml/Token_Test.daml:token_test_1: ok, 1 active contracts, 1 transactions.
daml/Token_Test.daml:token_test_2: ok, 2 active contracts, 4 transactions.
daml/Token_Test.daml:token_test_3: ok, 0 active contracts, 3 transactions.
test coverage: templates 100%, choices 100%

➜  intro2 git:(main) ✗ daml test --files daml/Token_Test.daml

Test Summary
daml/Token_Test.daml:token_test: ok, 1 active contracts, 6 transactions.
daml/Token_Test.daml:token_test_1: ok, 1 active contracts, 1 transactions.
daml/Token_Test.daml:token_test_2: ok, 2 active contracts, 4 transactions.
daml/Token_Test.daml:token_test_3: ok, 0 active contracts, 3 transactions.
test coverage: templates 100%, choices 100%
➜  intro2 git:(main) ✗
```

CHANGELOG_BEGIN
CHANGELOG_END
2023-02-15 09:05:13 +01:00
Gary Verhaegen
d83068e7f3
[docs] fix link in bindings-ts (#16315) 2023-02-14 16:32:14 +01:00
Moisés Ackerman
423891b88a
intro to exceptions: test IOUs are created and exception is thrown (#16305)
* intro to exceptions: test IOUs are created and exception is thrown

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

* snake_case => camelCase

---------

Co-authored-by: Gary Verhaegen <gary.verhaegen@digitalasset.com>
2023-02-13 15:18:17 +00:00
Gary Verhaegen
aa946a26b4
fix Exception intro template (#16303) 2023-02-13 10:08:41 +00:00
carrielaben-da
8d94bdd6e4
Typo fix in 11_StdLib.rst (#16264)
Corrected an instance of the wrong "its" and adjusted some grammar.

[CHANGELOG_BEGIN]
[CHANGELOG_END]

Co-authored-by: carrie-laben <91496516+carrie-laben@users.noreply.github.com>
2023-02-08 09:07:35 -05:00
pbatko-da
eb0c90a173
[DPP-954][Docs] Improve pruning offsets docs (#16254) 2023-02-08 11:09:34 +00:00
Lois Kilberg
bc3c2595b0
add tip about blank line before lists (#16248)
Add information to docs README to make sure there are two carriage returns before lists.

[CHANGELOG_BEGIN]
[CHANGELOG_END]
2023-02-07 10:41:39 -05:00
Nicu Reut
9642859062
Add OpenTelemetry JVM metrics documentation [PLEN-67] (#16202) 2023-02-03 16:20:01 +00:00