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

read-only chainStorage for any Zoe contract #5687

Open
1 task
dckc opened this issue Jun 29, 2022 · 2 comments
Open
1 task

read-only chainStorage for any Zoe contract #5687

dckc opened this issue Jun 29, 2022 · 2 comments
Labels
cosmic-swingset package: cosmic-swingset enhancement New feature or request read-no-tx topic: reading from the chain without a transaction

Comments

@dckc
Copy link
Member

dckc commented Jun 29, 2022

What is the Problem Being Solved?

Currently, chainStorge is privileged; we set it up thru bootstrap and such.

In contemporary systems such as Ethereum, any contract can write to logs.

Description of the Design

perhaps:

  • generic power for any Zoe contract

design issues:

  • naming? i.e. choosing a storage key?

perhaps address that by making this a feature of the board? i.e. when you put something in the board, you can get a chainStorage node for it?

Security Considerations

IOU

Test Plan

IOU

cc @dtribble

@dckc dckc added enhancement New feature or request cosmic-swingset package: cosmic-swingset read-no-tx topic: reading from the chain without a transaction labels Jun 29, 2022
@warner
Copy link
Member

warner commented Jul 20, 2022

In today's cosmic-swingset meeting, we speculated about a future Big JS Hammer action which would:

  • create a new vat to manage the rental/distribution of publishing nodes
  • give that vat access to the root publishing node, or something close to the root
  • publish a facet of that vat to the Board, making a publically-available service from which you can buy/rent publishing nodes (with a counter-based path)

Then future contract deployers should start by:

  • go to the board, contact the publishing-node-rental service
  • buy/rent a publishing node, learn the path
  • include the publishing node in the privateArgs you pass to the new contract instance
  • tell the world about the path, so they cal follow the contract's annoucements (prices/etc) without performing transactions

@dckc
Copy link
Member Author

dckc commented Dec 14, 2022

work-around: use BLD voting in local development

Until we have a lower threshold, for local development, devs have all the BLD in the world, so they can grant chainStorage powers to their contracts using swingset.CoreEval governance.

We discussed this in today's office hours.

See also:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cosmic-swingset package: cosmic-swingset enhancement New feature or request read-no-tx topic: reading from the chain without a transaction
Projects
None yet
Development

No branches or pull requests

3 participants