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

Support publishing to chainStorage-backed subscriptions #5353

Closed
Tracked by #5354
turadg opened this issue May 12, 2022 · 2 comments
Closed
Tracked by #5354

Support publishing to chainStorage-backed subscriptions #5353

turadg opened this issue May 12, 2022 · 2 comments
Assignees
Labels
enhancement New feature or request read-no-tx topic: reading from the chain without a transaction SwingSet package: SwingSet Zoe package: Zoe
Milestone

Comments

@turadg
Copy link
Member

turadg commented May 12, 2022

What is the Problem Being Solved?

On-chain vats need to publish sequential values for off-chain consumers.

Description of the Design

Create a function that accepts a chainStorage node (cf. #4558) and returns an updater/publication object (cf. https://agoric.com/documentation/guides/js-programming/notifiers.html ) such that writes end up in chain storage. Since such writes are committed only at block boundaries, It will probably be necessary to invent a container format communicating multiple results in a single chainStorage string (and possibly a way to opt out of that for publishers whose consumers are guaranteed to tolerate loss of intermediate state).

Security Considerations

We can control the publish capability, but all data written to chain storage is inherently public.

Test Plan

@turadg turadg added the enhancement New feature or request label May 12, 2022
@gibson042 gibson042 changed the title Production/emission side API for new subscriptions Support publishing to chainStorage-backed subscriptions May 13, 2022
@gibson042 gibson042 added SwingSet package: SwingSet Zoe package: Zoe labels May 13, 2022
@dckc dckc added the read-no-tx topic: reading from the chain without a transaction label May 31, 2022
@turadg
Copy link
Member Author

turadg commented May 31, 2022

planning meetings tomorrow will save time having an estimate for this going in. @gibson042 ?

@Tartuffo
Copy link
Contributor

Tartuffo commented Jun 6, 2022

Done.

@Tartuffo Tartuffo closed this as completed Jun 6, 2022
@Tartuffo Tartuffo added this to the Mainnet 1 milestone Jul 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request read-no-tx topic: reading from the chain without a transaction SwingSet package: SwingSet Zoe package: Zoe
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants