-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(swingset): merge bundle/vat-admin devices, add waitForBundleCap()
Simplify the user experience by removing `devices.bundle` and merging its functionality into vat-admin. Use mid-capitalized "bundleCap" in the API (e.g. `getNamedBundleCap` instead of `getNamedBundlecap`). * bootstrap() can go back to doing `vatAdminService = E(vats.vatAdmin).createVatAdminService(devices.vatAdmin)` , instead of `createVatAdminService(devices.vatAdmin, devices.bundle)` * you can get bundlecaps from `E(vatAdminService).getBundleCap` or `.getNamedBundleCap`, you no longer need `D(devices.bundle)` for those * `E(vatAdminService).waitForBundleCap(bundleID)` gives you a Promise that fires when (and if) the bundle has been installed, so you can e.g. begin a `zoe.install()` before the bundle is installed (closes #4521) This also introduces a better way to export types from swingset, defines a VatAdminRootDeviceNode type for use by clients who think they need that, and exports a few ancillary types to support it. closes #4566
- Loading branch information
Showing
18 changed files
with
517 additions
and
214 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
Oops, something went wrong.