mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 01:07:18 +03:00
ddc4930f1a
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`. |
||
---|---|---|
.. | ||
adjustable-clock | ||
auth-utils | ||
build-info | ||
concurrent | ||
contextualized-logging | ||
crypto | ||
db-utils | ||
doobie-slf4j | ||
executors | ||
flyway-testing | ||
fs-utils | ||
gatling-utils | ||
grpc-reverse-proxy | ||
grpc-server-reflection-client | ||
grpc-test-utils | ||
grpc-utils | ||
jwt | ||
ledger-resources | ||
logging-entries | ||
nameof | ||
nonempty | ||
nonempty-cats | ||
oracle-testing | ||
ports | ||
postgresql-testing | ||
resources | ||
resources-akka | ||
resources-grpc | ||
safe-proto | ||
scala-utils | ||
scalatest-utils | ||
struct-json | ||
test-evidence | ||
timer-utils |