feat: timeout and protocol configurable in Participant #3753
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What this PR changes/adds
Adds configurable timeout and protocol in
Participant
Why it does that
Extensibility/reusability
Further notes
This PR also adds additional methods that can be useful when doing E2E tests:
getCatalogDatasets
with a queryinitContractNegotiation
with asset id or a policy (just starts the contract negotiation)getTransferProcesses
get transfer process with an optional querygetContractNegotiationState
get the state of a contract negotiaionSince those method matching management APIs could grow. In subsequent PRs I'd suggest to start splitting those method in contexts.
For example something like this:
Participant#transferProcesses
all methods related to transfer processesParticipant#negotiations
all methods related to contract negotiationParticipant#catalog
all methods related to catalog...etc
Linked Issue(s)
Closes #3752
Please be sure to take a look at the contributing guidelines and our etiquette for pull requests.