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
0
votes
0 answers

DAML bug when following the tutorial

I followed the DAML tutorial, and it seems that there is a bug: https://docs.daml.com/getting-started/quickstart.html#try-out-the-application Try creating a contract from a template. Issue an Iou to yourself by clicking on the Iou:Iou row,…
David Portabella
  • 12,390
  • 27
  • 101
  • 182
0
votes
1 answer

Why cannot connect to ledger Daml-on-Sawtooth via dazl python?

I am trying to deploy this https://github.com/digital-asset/dazl-client/tree/master/samples/ping-pong DAML smart contract with dazl client on Sawtooth. Based on daml-on sawtooth example https://github.com/blockchaintp/daml-on-sawtooth. I used this…
HectorCode
  • 205
  • 2
  • 11
0
votes
1 answer

How to deploy a DAML to AWS QLDB?

I want to deploy DAML to QLDB. I've read the documentation and issues, but it doesn't write how to deploy to QLDB. I read this blog, Can't I still use DAML on QLDB? https://blog.daml.com/daml-driven/quantum-daml-amazon-qldb-goes-ga
origami
  • 3
  • 1
0
votes
1 answer

Why does the DAML Multi-Party Design Pattern not output a new contract of template type Agreement?

I am new to DAML and am trying to understand the multi-party agreement pattern documented in the DAML documentation @https://docs.daml.com/daml/patterns/multiparty-agreement.html . My question is why does the Finalize choice create a…
JRitz
  • 1
0
votes
2 answers

DAML: authorize every party to see contracts of a certain template

So i got this problem with with authorization. I made a small voting system that contains an amount of actors contracts that are given in scenario (see actor template below). I need every party that I have defined in my yaml file to be able to see…
Sjoerd1234
  • 148
  • 1
  • 2
  • 11
0
votes
1 answer

DAML: Applying expression conditions but absence of required authorizers

So I'm building a simple voting system as a DAML beginner and it's working quite good so far. Now I set conditions stating that a decision is allowed to be made when 60% of the registered voters have voted (which can be found in choice Decide…
Sjoerd1234
  • 148
  • 1
  • 2
  • 11
0
votes
1 answer

PartyNotKnownOnLedger (Party not known on ledger)

I am using DAML-on-Fabric (running DAML based on Hyperledger Fabric). When I login with Alice and issue a IOU, the app shows PartyNotKnownOnLedger (Party not known on ledger). How do I fix this?
Ethan Hu
  • 33
  • 3
0
votes
2 answers

How to typecast Party to a Text or vice versa in DAML?

i wanted to check a condition in DAML code but one value is a party and other is text and therefore getting ERROR: • Couldn't match type ‘Party’ with ‘Text’ arising from a functional dependency between: constraint…
Shalabh Negi
  • 621
  • 7
  • 18
0
votes
1 answer

How to have either of two conditions evaluated in the `ensure` clause?

How can I pass values to the ensure clause in the form of an or condition? template ABC ensure (abcd)? (xyz) || (abc) Is it possible to do this (possibly with some other syntax) to pass ensure two predicates, either of which have to be evaluated?
arjun a
  • 151
  • 7
0
votes
1 answer

Returning Left "Error" is consuming template

XYZManager.daml: nonconsuming choice CallingChoice: Either Text (ContractId XYZ) exercise (contractIdXYZ) CalledChoice with ... XYZ.daml: choice CalledChoice: Either Text (ContractId XYZ) with ... if conditionFails do return…
0
votes
1 answer

Can't fetch the ledger time from DAML ledger through the JSON API

I see the following error when trying to fetch the ledger time via the JSON API: UNIMPLEMENTED: Method not found: com.digitalasset.ledger.api.v1.testing.TimeService/GetTime
arjun a
  • 151
  • 7
0
votes
0 answers

IntelliJ editor sync error: find ./node_nix/bin: No such file or directory

I am able to Run build command successfully. But when I am try to run sync command using IntelliJ editor getting error as "find: ../node_nix/bin: No such file or directory" . Sync Failed. Version: IntelliJ: Community 2019.3 DAML Version:…
Kunal
  • 1
  • 1
0
votes
1 answer

DAML Stream all the active contracts using Java Binding - LedgerView

I am new to DAML, I wanted to query all the active contracts using Java binding, Bot API and keep them into DB (or in-memory) for future query. As per the docs, LedgerView can keep track of active contracts in-memory. However I am not able to…
dagra
  • 589
  • 4
  • 20
0
votes
1 answer

DAML key not found on Keyserver

gpg --keyserver pgp.key-server.io --search 4911A8DFE976ACDFA07130DBE8372C0C1C734C51 Above command is not fetching key from Keyserver. Error: key "4911A8DFE976ACDFA07130DBE8372C0C1C734C51" not found on keyserver
PSY
  • 51
  • 4
0
votes
1 answer

How to preserve the input to a mapA

How does the following work? Given a list of items [a] and a function mapping a to g b, how do I preserve the input in the resulting list? [a] -> (a -> g b) -> g [(a,b)] Concretely, I have a list of contract ids. I want to map every contract id to…
therat2000
  • 61
  • 1