Skip to content

Why does import cause errors in a permissioned upgrade (CoreEval) script? Is there a better way? #8087

Answered by dckc
dckc asked this question in Q&A
Discussion options

You must be logged in to vote

agoric run supports bundling proposal modules with writeCoreProposal

For example: proposals/restart-vats-proposal.js starts with declarations such as import { M, mustMatch } from '@agoric/store';. To bundle it

  1. invoke agoric run scripts/restart-vats.js
  2. scripts/restart-vats.js has a default export that calls writeCoreProposal.

The links should go to the ta/deployment-types branch from PR #7895 to show static types. I might have missed in some cases.

The general approach is:

  1. Write a module to carry out the proposal; feel free to import other modules as appropriate. This module consists of

Replies: 5 comments 2 replies

Comment options

dckc
Jul 24, 2023
Collaborator Author

You must be logged in to vote
0 replies
Comment options

dckc
Jul 24, 2023
Collaborator Author

You must be logged in to vote
0 replies
Answer selected by dckc
Comment options

dckc
Jul 25, 2023
Collaborator Author

You must be logged in to vote
1 reply
@dckc
Comment options

dckc Feb 7, 2024
Collaborator Author

Comment options

You must be logged in to vote
1 reply
@kriskowal
Comment options

Comment options

dckc
Mar 15, 2024
Collaborator Author

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
3 participants