### Daml CLI: Start Sample Application Source: https://github.com/digital-asset/tlms-cd-code-demo/blob/main/daml-fundamentals/certification-sample-capstone/README.md This command is essential for initiating the Daml sample application. It ensures that the project compiles and runs without errors, a prerequisite for the Daml Fundamentals certification evaluation. ```bash daml start ``` -------------------------------- ### Compile and Test with daml start Source: https://github.com/digital-asset/tlms-cd-code-demo/blob/main/daml-fundamentals/certification-sample-capstone/README.md This command initiates the compilation and testing process for the project. It assumes the existence of a `Test.daml` file within the `/daml` directory. The script handles all necessary build and test execution steps. ```shell $ daml start ``` -------------------------------- ### Daml Configuration: Exposing Modules and Sandbox Options Source: https://github.com/digital-asset/tlms-cd-code-demo/blob/main/daml-fundamentals/certification-sample-capstone/README.md This `daml.yaml` configuration snippet shows modifications made to the default skeleton. It removes the `--wall-clock-time` option from sandbox and explicitly exposes the `Main` module, affecting how the Daml application behaves and is deployed. ```yaml sandbox-options: - --wall-clock-time exposed-modules: - Main ``` -------------------------------- ### Daml: Controller Syntax Warning and Observer Requirement Source: https://github.com/digital-asset/tlms-cd-code-demo/blob/main/daml-fundamentals/certification-sample-capstone/README.md This section discusses a warning related to the `controller ... can` syntax in Daml 2.0+ and the requirement for a controller to be an observer first to avoid errors when exercising choices. It references Daml documentation and forum discussions for further details. ```daml # The "controller ... can" syntax causes a warning in Daml 2.0+. # The code itself does not cause any issues/errors in 2.5.0 but according to the warning, the syntax will be deprecated in the future versions of Daml. # More information [here](https://docs.daml.com/daml/reference/choices.html#daml-ref-controller-can-deprecation). # The new controller syntax requires a controller to be an observer first before they can exercise a choice, otherwise it'll throw an error: "Attempt to fetch or exercise a contract not visible to the committer." # For more information, check out [this post](https://discuss.daml.com/t/error-attempt-to-fetch-or-exercise-a-contract-not-visible-to-the-committer/1304/1) on the Daml Forum. ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.