Skip to content

Vstorage journey - 4daydapp #947

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

Closed
sufyaankhan opened this issue Feb 1, 2024 · 6 comments · Fixed by #1016
Closed

Vstorage journey - 4daydapp #947

sufyaankhan opened this issue Feb 1, 2024 · 6 comments · Fixed by #1016
Assignees
Labels
4day-dapp-mar1 things due march 1st in the 4 day dapp

Comments

@sufyaankhan
Copy link

sufyaankhan commented Feb 1, 2024

User Story: As a Developer I should be able to read the docs and understand what vstorage is, how I can leverage vstorage, how it should be used in the context of the dapp-agorics-basics

E.g. vstorage is a journey of requesting powers within a core-eval, creating a storage node, passing the storage node in privateArgs to a contract, using the storage node within a contract, reading from vstorage via raw HTTPS or ui-kit.

There have also been requests to exhaustively document the hierarchy and schema of vstorage.

@dckc
Copy link
Member

dckc commented Feb 2, 2024

Querying VStorage has a relevant diagram. It only shows querying with agd and agoric follow, not HTTP nor ui-kit.

@aj-agoric aj-agoric added the 4day-dapp-mar1 things due march 1st in the 4 day dapp label Feb 6, 2024
@dckc
Copy link
Member

dckc commented Feb 13, 2024

In order for a UI to show the remaining inventory, the contract should probably publish the allocation of inventorySeat to vstorage. @LuqiPan here's hoping I can have docs sufficient for you to do that after we land PR 8.

Agoric/dapp-agoric-basics#8 (comment)

@dckc
Copy link
Member

dckc commented Feb 21, 2024

@samsiegart just wrote:

the usual pattern is to write data to vstorage, return a publicSubscribers entry in the offer result corresponding to that path, then published.wallet.

.current will tell you which vstorage path to read to get your data for that offer.

@dckc
Copy link
Member

dckc commented Mar 19, 2024

@dckc dckc changed the title 4daydapp - Document - Vstorage journey Vstorage journey - 4daydapp Mar 19, 2024
@dckc
Copy link
Member

dckc commented Mar 20, 2024

re vstorage reference docs, I'm leaving this somewhat obscure stuff to a vstorage discussion...

@dckc
Copy link
Member

dckc commented Mar 20, 2024

more on reference docs...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4day-dapp-mar1 things due march 1st in the 4 day dapp
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants