-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ledger-api-test-tool: Govern ContractIdIT test runs through a feature. [KVL-1261] #12454
Changes from all commits
4246e89
70cb726
327c85f
b5bdaca
5e9f68c
ce8018c
92f0228
60ef499
0e65a57
26756db
31ef1b1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,7 @@ message ExperimentalFeatures { | |
ExperimentalStaticTime static_time = 2; | ||
CommandDeduplicationFeatures command_deduplication = 3; | ||
ExperimentalOptionalLedgerId optional_ledger_id = 4; | ||
ExperimentalContractIds contract_ids = 5; | ||
} | ||
|
||
// GRPC self-service error codes are returned by the Ledger API. | ||
|
@@ -72,3 +73,24 @@ enum CommandDeduplicationType { | |
// Duplicate commands are always reported synchronously via a synchronous gRPC error on the command submission. | ||
SYNC_ONLY = 2; | ||
} | ||
|
||
// See `daml-lf/spec/contract-id.rst` for more information on contract ID formats. | ||
message ExperimentalContractIds { | ||
ContractIdV0Support v0 = 1; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We do not really need a feature for V0. V0 should be rejected by all supported ledgers. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yep There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Currently Sandbox-on-X supports v0. Should we change this? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (I would prefer not to change this as part of this PR.) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we should but agreed, let’s do it in a separate PR. |
||
ContractIdV1Support v1 = 2; | ||
|
||
enum ContractIdV0Support { | ||
NOT_SUPPORTED = 0; | ||
SUPPORTED = 1; | ||
} | ||
|
||
enum ContractIdV1Support { | ||
// Contract IDs must be suffixed. | ||
// Distributed ledger implementations must reject non-suffixed contract IDs. | ||
SUFFIXED = 0; | ||
// Contract IDs do not need to be suffixed. | ||
// This can be useful for shorter contract IDs in centralized committer implementations. | ||
// Suffixed contract IDs must also be supported. | ||
NON_SUFFIXED = 1; | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to make sure,
ContractIdIT
is not going to be run with anyledger-api-test-tool
version against platform versions older than the next snapshot. Is that what you want?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this reproduces the old behavior, where these tests were optional and therefore not run.