daml/daml-script/test
Moritz Kiefer 84fe505a58
Add queryContractKey to DAML Script (#7354)
* Add queryContractKey to DAML Script

This matches the behavior and the implementation of
`queryContractId`. We only return contracts for stakeholders and we
return an `Optional` so you can handle lookup failures. On the JSON
API and in DAML Studio this is fairly efficient, over the gRPC API it
degrades to a linear search.

changelog_begin

- [DAML Script] Add `queryContractKey` to the DAML Script API.

changelog_end

* Update daml-script/runner/src/main/scala/com/digitalasset/daml/lf/engine/script/LedgerInteraction.scala

Co-authored-by: Stephen Compall <stephen.compall@daml.com>

Co-authored-by: Stephen Compall <stephen.compall@daml.com>
2020-09-10 19:39:23 +02:00
..
daml Add queryContractKey to DAML Script (#7354) 2020-09-10 19:39:23 +02:00
src Add queryContractKey to DAML Script (#7354) 2020-09-10 19:39:23 +02:00
BUILD.bazel Use TO_TEXT_CONTRACT_ID in Show instance of ContractId (#7153) 2020-08-17 17:06:24 +02:00
daml-script-test-runner.sh Add queryContractKey to DAML Script (#7354) 2020-09-10 19:39:23 +02:00