-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
To transition Zoe from full contract bundles to bundlecaps, this adds a new install API. `E(zoe).install(bundle)` is unchanged, but the new preferred approach is `E(zoe).installBundleID(bundleID)`. This requires the corresponding bundle to be installed with the swingset kernel's vatAdminService, either before or after `installBundleID()` (zoe will wait forever for the bundle to be installed). Zoe `Installation` objects retain their `getBundle()` method to accomodate dapp tests that have not switched to the new approach, but it throws an error if used on a new bundleID-based installation. A new method named `E(zoe).getBundleIDFromInstallation(allegedInstallation)` can be used to both validate the installation and get back the bundleID, but it throws on the old bundle-based installations. Internally, the installationStorage.unwrapInstallation now returns either `{ bundle, installation }` or `{ bundlecap, bundleID, installation }`. ZCF's `evaluateContract()` method accepts either a bundlecap or a full bundle. closes #4563
- Loading branch information
Showing
13 changed files
with
249 additions
and
72 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
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.