Questions tagged [daml]

Daml is an open source smart contract language which codifies multi-party agreements. This tag should be used for any questions relating to Daml programming and tools supplied with the Daml SDK.

DAML (the Digital Asset Modeling Language) is a contract modeling language which can run on the Digital Asset Ledger, and codifies multi-party agreements over a distributed ledger. More details on DAML and various use cases are given on the DAML Driven blog.

147 questions
1
vote
1 answer

How to benchmark a daml ledger?

I found this section "Benchmarking a DAML Ledger" on DAML documentation https://docs.daml.com/1.2.0-snapshot.20200602.4310.0.1c18058f/daml-integration-kit/index.html#integration-kit-benchmarking. However, i cannot find any example about how to…
HectorCode
  • 205
  • 2
  • 11
1
vote
1 answer

How to downgrade DAML SDK version?

I tried to upgrade DAML SDK for purpose of testing, but now I want to downgrade version for running code already written for 0.13.36 version.
arjun a
  • 151
  • 7
1
vote
1 answer

Manipulating record in template

I'd like to make some structure over the code and introduce records in the template. With the simple version it works fine, though with records not working. Can you advise? Thanks -- WORKING VERSION -- daml 1.2 module Magic_potion where template…
julianus
  • 11
  • 2
1
vote
1 answer

Is it possible to deploy a daml smart contract with bots to Hyperledger Fabric?

I deployed quickstart tutorial based on the example "daml-on-fabric" https://github.com/hacera/daml-on-fabric and after that i tried to deploy the pingpong example from dazl https://github.com/digital-asset/dazl-client/tree/master/samples/ping-pong.…
HectorCode
  • 205
  • 2
  • 11
1
vote
2 answers

DAML: Create a template in scenario requiring a ContractId as input and exercise a choice automatically after submit

I have 2 questions regarding DAML the possibility of automated choices and scenario. I have this template that requires the input of a ContractId: template Create_Creation with current_login : Party artist : Party …
Sjoerd1234
  • 148
  • 1
  • 2
  • 11
1
vote
1 answer

DAML: Reference and set conditions to a pre-defined list in a seperate template

I'm new to DAML and have been scratching my head over this for two solid days. In this voting system specified in "template Voting", an actor has the ability to add a voter party to a list of voters specified as "choice Add". This voters list (I…
Sjoerd1234
  • 148
  • 1
  • 2
  • 11
1
vote
1 answer

How do I specify default values in DAML for primitive types and records?

I don't see a way to specify a default value in DAML. Say I want to specify False as the default value for a Bool or the time now as the default value for a variable of type Time. How do I do that?
Meetanshru
  • 35
  • 2
1
vote
1 answer

How to deploy a Daml smart contract to Hyperledger Fabric or Sawtooth?

I have a smart contract in DAML and i want to deploy this smart contract to Hyperledger Fabric or Sawtooth. I can't find any tutorial about this purpose. Also, i don't find any example on the Daml documentation which tool is used to deploy the smart…
1
vote
1 answer

How can I display a custom list of templates in Navigator?

The Navigator tool comes with the ability to display custom tables, defined through the frontend-config.js file. The quickstart example contains such a file that defines a custom list of contracts. Is it also possible to display a custom list of…
1
vote
1 answer

when am running json api in Daml am getting this error?

after starting sandbox and am running json api means am getting this error: [http-json-ledger-api-akka.actor.default-dispatcher-12] ERROR com.digitalasset.http.HttpService$ - Cannot start se io.grpc.StatusRuntimeException: RESOURCE_EXHAUSTED: gRPC…
arjun a
  • 151
  • 7
1
vote
1 answer

DAML language & dev toolchain roadmap

I am looking for a a publicly available and up-to-date roadmap reference resource for DAML and associated developer tools. Does one exist?
1
vote
1 answer

What can be used instead of Either in DAML?

when am creating choice using either function,whenever error has been occurs means then they returns values to the left side of the either,which is terminating the complete template itself that is not proceeding further for other scenario…
arjun a
  • 151
  • 7
1
vote
2 answers

How to get data from Archived contracts in DAML using nodejs bindings?

I wanted to get the history data from the archived contracts in DAML so that it can be used for audit purpose. I read about JSON API services but it is only able to. https://docs.daml.com/json-api/index.html Create Exercise Query Active…
Shalabh Negi
  • 621
  • 7
  • 18
1
vote
2 answers

Is it possible to restrict a template to be created only once per day

Is it possible to define a template Daily, which can only be created once per day in the sense that if Alice creates one, Bob no longer can, and if Bob creates one, Alice no longer can?
bame
  • 960
  • 5
  • 7
1
vote
1 answer

Unable to launch DAML studio

On MacOs, when I try to launch daml studio from command line, I receive several errors and it doesn't launch. I have gone through all the installation requirements for DAML including installing Visual Studio Code which runs successfully on my Mac as…