-
Notifications
You must be signed in to change notification settings - Fork 220
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
Core-eval governance support #5042
Conversation
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.
presuming you have tested that this is useful in your oracle work, looks good.
my comments are not critical
} | ||
|
||
if (board) { | ||
const bundlerMakerId = await E(board).getId(bundlerMaker); |
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.
this await
is not top level. worth a comment to say that this is not production code? either here or at the top of the file or both?
import url from 'url'; | ||
|
||
export const makeGetBundlerMaker = | ||
({ board, zoe, scratch }, { lookup, bundleSource }) => |
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.
lack of types obscures the fact that board is optional. hm.
@@ -0,0 +1,38 @@ | |||
// @ts-check |
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.
Add a note that this should go away after we have bundlecaps, with a pointer to and from a relevant issue?
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.
The Go file LGTM.
170c44e
to
8552696
Compare
... for installing large contracts
- some Makefile support in cosmic-swingset
92cd66d
to
b2b0b5a
Compare
stdout.write(trimmed); | ||
}; | ||
|
||
if (isEntrypoint(import.meta.url)) { |
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.
interesting approach. isEntrypoint
is powerful, but I suppose so was require.main
.
A Stackoverflow post has a succinct version:
if (import.meta.url === `file://${process.argv[1]}`) {
// module was not imported but called directly
}
but that's less robust; it's followed by one that uses url.pathToFileURL
as in isEntrypoint
.
Description
New features and tests to help make core-eval governance more reproducible.
Security Considerations
Documentation Considerations
Testing Considerations