daml/libs-scala
Stephen Compall ddc4930f1a
explicit disclosure parameters for JSON API (#16529)
Adds a `disclosedContracts` optional list field to the `meta` argument
for `create`, `exercise` and `create-and-exercise` endpoints.

The argument is ignored in all cases but `exercise` (#16611 builds on
this PR to add `create-and-exercise` support). A single disclosed
contract looks more or less like follows:

    { 
      "contractId": "abcd", 
      "templateId": "Mod:Tmpl", 
      $argumentsJsonField, 
      "metadata": { 
        "createdAt": "2023-03-21T18:00:33.246813Z", 
        "contractKeyHash": "77656c6c2068656c6c6f", 
        "driverMetadata": "dGhlcmUgcmVhZGVy" 
      } 
    }

where `argumentsJsonField` may be either one of these, setting aside the
extra quotes added for these tests:

    "payload": {"owner": "Alice"}
    
    "payloadBlob": { 
      "typeUrl": "type.googleapis.com/com.daml.ledger.api.v1.Record", 
      "value": "Eg4KBW93bmVyEgVaA0JvYg==" 
    }

(Note that `typeUrl` is variable, not constant; use the actual blob's
`typeUrl` contents, **do not assume it is exactly the above example**.)

This PR uses base-64 for `payloadBlob.value` and
`metadata.driverMetadata`, and base-16 for `metadata.contractKeyHash`.
2023-03-30 20:41:36 +00:00
..
adjustable-clock bump copyright (#16002) 2023-01-04 18:21:15 +01:00
auth-utils bump copyright (#16002) 2023-01-04 18:21:15 +01:00
build-info bump copyright (#16002) 2023-01-04 18:21:15 +01:00
concurrent bump copyright (#16002) 2023-01-04 18:21:15 +01:00
contextualized-logging TraceId in LAPI [DPP-1372]. (#15995) 2023-01-24 23:10:51 +00:00
crypto bump copyright (#16002) 2023-01-04 18:21:15 +01:00
db-utils bump copyright (#16002) 2023-01-04 18:21:15 +01:00
doobie-slf4j bump copyright (#16002) 2023-01-04 18:21:15 +01:00
executors Instrument the executor services using OpenTelemetry [PLEN-105] (#16328) 2023-02-17 18:14:57 +01:00
flyway-testing bump copyright (#16002) 2023-01-04 18:21:15 +01:00
fs-utils bump copyright (#16002) 2023-01-04 18:21:15 +01:00
gatling-utils bump copyright (#16002) 2023-01-04 18:21:15 +01:00
grpc-reverse-proxy bump copyright (#16002) 2023-01-04 18:21:15 +01:00
grpc-server-reflection-client bump copyright (#16002) 2023-01-04 18:21:15 +01:00
grpc-test-utils bump copyright (#16002) 2023-01-04 18:21:15 +01:00
grpc-utils bump copyright (#16002) 2023-01-04 18:21:15 +01:00
jwt Separate test-common from the rest of the ledger code (#16307) 2023-02-14 15:29:13 +00:00
ledger-resources Remove circular dependency on the //ledger project caused by ledger-resources [DPP-1410] (#16295) 2023-02-13 08:38:44 +00:00
logging-entries bump copyright (#16002) 2023-01-04 18:21:15 +01:00
nameof bump copyright (#16002) 2023-01-04 18:21:15 +01:00
nonempty upgrade to scala 2.13.10 (#16423) 2023-02-28 23:21:53 +00:00
nonempty-cats bump copyright (#16002) 2023-01-04 18:21:15 +01:00
oracle-testing bump copyright (#16002) 2023-01-04 18:21:15 +01:00
ports bump copyright (#16002) 2023-01-04 18:21:15 +01:00
postgresql-testing bump copyright (#16002) 2023-01-04 18:21:15 +01:00
resources Fix Timer resource teardown (#16289) 2023-02-13 13:48:47 +01:00
resources-akka bump copyright (#16002) 2023-01-04 18:21:15 +01:00
resources-grpc bump copyright (#16002) 2023-01-04 18:21:15 +01:00
safe-proto bump copyright (#16002) 2023-01-04 18:21:15 +01:00
scala-utils reduce package service calls to avoid THREADPOOL_OVERLOADED errors (#16116) 2023-01-26 10:18:13 -05:00
scalatest-utils explicit disclosure parameters for JSON API (#16529) 2023-03-30 20:41:36 +00:00
struct-json bump copyright (#16002) 2023-01-04 18:21:15 +01:00
test-evidence bump copyright (#16002) 2023-01-04 18:21:15 +01:00
timer-utils bump copyright (#16002) 2023-01-04 18:21:15 +01:00