-
Notifications
You must be signed in to change notification settings - Fork 215
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
types for deployment scripts #7895
Conversation
re documentation considerations: Discussions don't seem to automatically back-link the way issues and PRs do. |
0d4bab8
to
53a6ed3
Compare
Deploying agoric-sdk with Cloudflare Pages
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice. several times I have referred people to these types, only to realize they're on a not-yet-merged-yet branch
* namesByAddress: ERef<NameHub>, | ||
* scratch: ERef<import('@agoric/internal/src/scratch.js').ScratchPad>, | ||
* zoe: ERef<ZoeService>, | ||
* }} CanonicalHome |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add a note that home only works in ag-solo mode?
* publishBundle: PublishBundleRef, | ||
* pathResolve: (...path: string[]) => string, | ||
* cacheDir: string, | ||
* }} DeployScriptEndownments |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
very nice.
I don't see this in/near https://agoric-sdk.pages.dev/modules/_agoric_deploy_script_support . I guess that's not essential to the IDE use case, though.
53a6ed3
to
6864614
Compare
incidental (I was cleaning out old PRs and thought this was worth getting into master.)
Description
This defines a
DeployScriptFunction
type and marks many deploy script functions with it. The value of this is someone can command-click through the code to see how it's supposed to work and what the expected endowments are.To get that working I also had to fix some of the types for bundling, which is another value of landing this.
Security Considerations
none
Scaling Considerations
none
Documentation Considerations
We might want to document these scripts better but this doesn't create any new work.
Testing Considerations
Should not affect runtime