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

Enact proposal through governance message #8908

Open
mhofman opened this issue Feb 13, 2024 · 2 comments
Open

Enact proposal through governance message #8908

mhofman opened this issue Feb 13, 2024 · 2 comments
Assignees
Labels
agoric-cosmos cosmic-swingset package: cosmic-swingset enhancement New feature or request

Comments

@mhofman
Copy link
Member

mhofman commented Feb 13, 2024

What is the Problem Being Solved?

We currently have 2 main mechanism to trigger JS execution by governance:

  • core eval, which executes some arbitrary code in the bootstrap vat
  • "core proposal" which automatically build and publish bundles and execute the proposal as a core eval

The former can be performed at any time by submitting a CoreEval governance proposal. While the latter leverages the CoreEval logic, it can currently only be triggered during a chain software upgrade (or at chain bootstrap). Furthermore core proposals can accept options when being built into submitable core evals, but not when they are executed during upgrades.

Description of the Design

A new swingset governance message for enacting a core proposal, which would build and execute a core proposal script included in the chain software release

An ability to pass parameters when building the core proposal, for both this new message, and possibly for the proposals executed during chain software upgrade (less needed)

Security Considerations

None more than the existing mechanism

Scaling Considerations

None

Test Plan

a3p integration. would remove the need of core eval layers like #8907

Upgrade Considerations

See above

@mhofman
Copy link
Member Author

mhofman commented Jan 22, 2025

This could be used to trigger adding new collateral without having to publish code (agoric-labs/ag-power-tools#8), or trigger vat termination.

@mhofman
Copy link
Member Author

mhofman commented Mar 4, 2025

Should likely be submitted as a cosmos.gov.v1.MsgSubmitProposal message (see #9869)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
agoric-cosmos cosmic-swingset package: cosmic-swingset enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants