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

Document Durable Storage #879

Closed
0xpatrickdev opened this issue Nov 27, 2023 · 1 comment
Closed

Document Durable Storage #879

0xpatrickdev opened this issue Nov 27, 2023 · 1 comment
Assignees

Comments

@0xpatrickdev
Copy link
Member

As a developer, I need to know how to make my contract and its related assets (objects, invitations, etc) durable across updates and restarts. I can see things like prepare, prepareExoClassKit, prepareExoClass, provideDurableMapStore used in some of the more recent contract examples, but I'm not entirely sure how they work or when to use them.

@0xpatrickdev 0xpatrickdev self-assigned this Dec 4, 2023
@dckc
Copy link
Member

dckc commented Mar 19, 2024

fixed in #968

https://docs.agoric.com/guides/zoe/contract-upgrade.html#durability

For stores, it has 3 successively more concise idioms, culminating in zone.mapStore(...).

For classes/kits/exos, it mostly just says

Use zone.exoClass() to define state and methods of kinds of durable objects ...

This presumes future work on reference api-docs will make it easy to find the rest of the zone API.

@dckc dckc closed this as completed Mar 19, 2024
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

2 participants