Skip to content
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

Add an API for fetching a contract instance from the ACS by key #85

Open
da-tanabe opened this issue Apr 27, 2020 · 0 comments
Open

Add an API for fetching a contract instance from the ACS by key #85

da-tanabe opened this issue Apr 27, 2020 · 0 comments

Comments

@da-tanabe
Copy link
Contributor

da-tanabe commented Apr 27, 2020

There should be a simple way of fetching by key from the ACS. This information is part of CreateEvent (https://github.com/digital-asset/daml/blob/bb111ea3cc5a649b6ce005aa315ca7d4b62bcf6c/ledger-api/grpc-definitions/com/daml/ledger/api/v1/event.proto#L54), so it could trivially be captured and used as a key for subsequent lookups in dazl's ACS cache.

One issue that would need to be solved is how to stably use nested structures as keys, as Python dicts are not hashable by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant