-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(zoe): implement 'home.zoe' and Zoe contract upload
- Loading branch information
1 parent
a24124a
commit a1a73bd
Showing
7 changed files
with
41 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import harden from '@agoric/harden'; | ||
|
||
import { makeZoe } from '@agoric/ertp/core/zoe/zoe/zoe'; | ||
|
||
const build = (_E, _log) => { | ||
const zoe = makeZoe({ require }); | ||
return harden({ | ||
getZoe: () => zoe, | ||
}); | ||
}; | ||
|
||
harden(build); | ||
|
||
function setup(syscall, state, helpers) { | ||
function log(...args) { | ||
helpers.log(...args); | ||
console.log(...args); | ||
} | ||
return helpers.makeLiveSlots( | ||
syscall, | ||
state, | ||
E => build(E, log), | ||
helpers.vatID, | ||
); | ||
} | ||
export default harden(setup); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters