The Daml smart contract language
Go to file
Florian Klink f0e1b3e3e0 Update ci/build-unix.yml
Co-Authored-By: zimbatm <zimbatm@zimbatm.com>
2019-04-04 16:16:40 +02:00
.github open-sourcing daml 2019-04-04 09:33:38 +01:00
.vscode open-sourcing daml 2019-04-04 09:33:38 +01:00
3rdparty open-sourcing daml 2019-04-04 09:33:38 +01:00
bazel_tools open-sourcing daml 2019-04-04 09:33:38 +01:00
build-scripts fixes inconsistent help about Sandbox port 2019-04-04 13:03:48 +02:00
ci Update ci/build-unix.yml 2019-04-04 16:16:40 +02:00
compiler open-sourcing daml 2019-04-04 09:33:38 +01:00
da-assistant fixes inconsistent help about Sandbox port 2019-04-04 13:03:48 +02:00
daml-assistant Add progress bar to daml install over http. 2019-04-04 15:17:38 +02:00
daml-foundations open-sourcing daml 2019-04-04 09:33:38 +01:00
daml-lf open-sourcing daml 2019-04-04 09:33:38 +01:00
dev-env open-sourcing daml 2019-04-04 09:33:38 +01:00
docs fixes inconsistent help about Sandbox port 2019-04-04 13:03:48 +02:00
extractor open-sourcing daml 2019-04-04 09:33:38 +01:00
ghc-lib open-sourcing daml 2019-04-04 09:33:38 +01:00
hazel open-sourcing daml 2019-04-04 09:33:38 +01:00
infra open-sourcing daml 2019-04-04 09:33:38 +01:00
language-support fixes inconsistent help about Sandbox port 2019-04-04 13:03:48 +02:00
ledger test divulgence in sandbox, see #164 2019-04-04 14:25:57 +02:00
ledger-api open-sourcing daml 2019-04-04 09:33:38 +01:00
libs-haskell open-sourcing daml 2019-04-04 09:33:38 +01:00
navigator open-sourcing daml 2019-04-04 09:33:38 +01:00
nix open-sourcing daml 2019-04-04 09:33:38 +01:00
notices-gen open-sourcing daml 2019-04-04 09:33:38 +01:00
oss-compliance open-sourcing daml 2019-04-04 09:33:38 +01:00
pipeline/samples open-sourcing daml 2019-04-04 09:33:38 +01:00
release fixes inconsistent help about Sandbox port 2019-04-04 13:03:48 +02:00
replacements open-sourcing daml 2019-04-04 09:33:38 +01:00
rules_daml open-sourcing daml 2019-04-04 09:33:38 +01:00
scala-protoc-plugins open-sourcing daml 2019-04-04 09:33:38 +01:00
sdk open-sourcing daml 2019-04-04 09:33:38 +01:00
web-ide open-sourcing daml 2019-04-04 09:33:38 +01:00
.bazelignore open-sourcing daml 2019-04-04 09:33:38 +01:00
.dadew open-sourcing daml 2019-04-04 09:33:38 +01:00
.dadew_azure open-sourcing daml 2019-04-04 09:33:38 +01:00
.dockerignore open-sourcing daml 2019-04-04 09:33:38 +01:00
.envrc open-sourcing daml 2019-04-04 09:33:38 +01:00
.gitattributes open-sourcing daml 2019-04-04 09:33:38 +01:00
.gitignore open-sourcing daml 2019-04-04 09:33:38 +01:00
.hlint.yaml open-sourcing daml 2019-04-04 09:33:38 +01:00
.scalafmt.conf open-sourcing daml 2019-04-04 09:33:38 +01:00
.stylish-haskell.yaml open-sourcing daml 2019-04-04 09:33:38 +01:00
.watchmanconfig open-sourcing daml 2019-04-04 09:33:38 +01:00
azure-pipelines.yml open-sourcing daml 2019-04-04 09:33:38 +01:00
BAZEL-haskell.md open-sourcing daml 2019-04-04 09:33:38 +01:00
BAZEL-JVM.md open-sourcing daml 2019-04-04 09:33:38 +01:00
BAZEL.md open-sourcing daml 2019-04-04 09:33:38 +01:00
BUILD open-sourcing daml 2019-04-04 09:33:38 +01:00
build.Jenkinsfile open-sourcing daml 2019-04-04 09:33:38 +01:00
build.ps1 open-sourcing daml 2019-04-04 09:33:38 +01:00
build.sh open-sourcing daml 2019-04-04 09:33:38 +01:00
CHANGELOG open-sourcing daml 2019-04-04 09:33:38 +01:00
CODE_OF_CONDUCT.md open-sourcing daml 2019-04-04 09:33:38 +01:00
CONTRIBUTING.md open-sourcing daml 2019-04-04 09:33:38 +01:00
COPYRIGHT open-sourcing daml 2019-04-04 09:33:38 +01:00
daml-logo.png open-sourcing daml 2019-04-04 09:33:38 +01:00
dependencies.yaml open-sourcing daml 2019-04-04 09:33:38 +01:00
deps.bzl open-sourcing daml 2019-04-04 09:33:38 +01:00
dotfiles open-sourcing daml 2019-04-04 09:33:38 +01:00
LICENSE open-sourcing daml 2019-04-04 09:33:38 +01:00
NOTICES open-sourcing daml 2019-04-04 09:33:38 +01:00
package.json open-sourcing daml 2019-04-04 09:33:38 +01:00
README.md Fix repo path 2019-04-04 14:34:31 +02:00
release-dry-run.sh open-sourcing daml 2019-04-04 09:33:38 +01:00
scalafmt.sh open-sourcing daml 2019-04-04 09:33:38 +01:00
tsconfig.json open-sourcing daml 2019-04-04 09:33:38 +01:00
VERSION open-sourcing daml 2019-04-04 09:33:38 +01:00
WORKSPACE Add progress bar to daml install over http. 2019-04-04 15:17:38 +02:00
yarn.lock open-sourcing daml 2019-04-04 09:33:38 +01:00

DAML logo

Copyright 2019 Digital Asset (Switzerland) GmbH and/or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0

Welcome to the DAML repository!

This repository hosts all code for the DAML smart contract language, originally created by Digital Asset.

To start using DAML

See our documentation at docs.daml.com.

Download the DAML SDK Developer Preview at https://www.daml.com.

If you have questions about how to use DAML or how to build DAML-based solutions, please ask them on StackOverflow using the daml tag.

To start contributing to DAML

We warmly welcome contributions.

Cloning this repository

git clone git@github.com:digital-asset/daml.git.

Setting up the DA Development Environment (also known as dev-env)

dev-env is used to provide dependencies required during build phase, like java, bazel, and python for some tooling scripts, while the code itself is built through bazel.

Linux and macOS

  1. Install Nix: bash <(curl https://nixos.org/nix/install)
  2. Enter dev-env: eval "$(dev-env/bin/dade assist)"

To avoid entering dev-env manually each time through eval "$(dev-env/bin/dade assist)", you can also install direnv.

This repo already provides a .envrc file, with an option to add more in a .envrc.private file.

Windows

We're working on Windows support (both users and developers), but it's not ready yet. Sign up to be notified when it is available.

Build the source code

bazel build //.... This will likely take an hour or more.

You have now built the code and run the tests. Rebuilding the code after a change will be significantly faster because Bazel caches unchanged build artefacts. You can read more about Bazel and how to use it here.

  1. Run the tests: bazel test //...

If you are looking for ideas on how to contribute, please browse our issues.

Caching: build speed and disk space considerations

Bazel has a lot of nice properties, but they come at the cost of frequently rebuilding "the world". To make that bearable, we make extensive use of caching. Most artifacts should be cached in our CDN, which is configured in .bazelrc in this project.

However, even then, you may end up spending a lot of time (and bandwidth!) downloading artifacts from the CDN. To alleviate that, by default, our build will create a subfolder .bazel-cache in this project and keep an on-disk cache. This can take about 10GB at the time of writing.

To disable the disk cache, simply remove the following lines:

build:linux --disk_cache=.bazel-cache
build:darwin --disk_cache=.bazel-cache

from the .bazelrc file.

If you work with multiple copies of this repository, you can point all of them to the same disk cache by overwriting these configs in either a .bazelrc.local file in each copy, or a ~/.bazelrc file in your home directory.