-
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.
BREAKING CHANGE: create the RUN Mint within Zoe (#3647)
* BREAKING CHANGE: make the run mint within Zoe, and give only the treasury the ability to create a ZCFMint with it * chore: change 'makeZoe' to 'makeZoeKit' * chore: add "shutdownZoeVat" argument to Zoe, and pass it to `makeIssuerKit` for invitation issuerKit and fee issuerKit * chore: manually lint-fix install-on-chain.js See #3672 for the issue to fix the root problem
- Loading branch information
1 parent
9ea454b
commit 209477c
Showing
68 changed files
with
658 additions
and
228 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
17 changes: 14 additions & 3 deletions
17
packages/swingset-runner/demo/exchangeBenchmark/vat-zoe.js
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 |
---|---|---|
@@ -1,8 +1,19 @@ | ||
import { makeZoe } from '@agoric/zoe'; | ||
// @ts-check | ||
|
||
import { Far } from '@agoric/marshal'; | ||
|
||
export function buildRootObject(_vatPowers, vatParameters) { | ||
import { makeZoeKit } from '@agoric/zoe'; | ||
|
||
export function buildRootObject(vatPowers, vatParameters) { | ||
return Far('root', { | ||
buildZoe: vatAdminSvc => makeZoe(vatAdminSvc, vatParameters.zcfBundleName), | ||
buildZoe: vatAdminSvc => { | ||
const shutdownZoeVat = vatPowers.exitVatWithFailure; | ||
const { zoeService: zoe } = makeZoeKit( | ||
vatAdminSvc, | ||
shutdownZoeVat, | ||
vatParameters.zcfBundleName, | ||
); | ||
return zoe; | ||
}, | ||
}); | ||
} |
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 |
---|---|---|
@@ -1,8 +1,19 @@ | ||
import { makeZoe } from '@agoric/zoe'; | ||
// @ts-check | ||
|
||
import { Far } from '@agoric/marshal'; | ||
|
||
export function buildRootObject(_vatPowers, vatParameters) { | ||
import { makeZoeKit } from '@agoric/zoe'; | ||
|
||
export function buildRootObject(vatPowers, vatParameters) { | ||
return Far('root', { | ||
buildZoe: vatAdminSvc => makeZoe(vatAdminSvc, vatParameters.zcfBundleName), | ||
buildZoe: vatAdminSvc => { | ||
const shutdownZoeVat = vatPowers.exitVatWithFailure; | ||
const { zoeService: zoe } = makeZoeKit( | ||
vatAdminSvc, | ||
shutdownZoeVat, | ||
vatParameters.zcfBundleName, | ||
); | ||
return zoe; | ||
}, | ||
}); | ||
} |
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 |
---|---|---|
@@ -1,9 +1,19 @@ | ||
// noinspection ES6PreferShortImport | ||
import { makeZoe } from '@agoric/zoe'; | ||
// @ts-check | ||
|
||
import { Far } from '@agoric/marshal'; | ||
|
||
export function buildRootObject(_vatPowers, vatParameters) { | ||
import { makeZoeKit } from '@agoric/zoe'; | ||
|
||
export function buildRootObject(vatPowers, vatParameters) { | ||
return Far('root', { | ||
buildZoe: vatAdminSvc => makeZoe(vatAdminSvc, vatParameters.zcfBundleName), | ||
buildZoe: vatAdminSvc => { | ||
const shutdownZoeVat = vatPowers.exitVatWithFailure; | ||
const { zoeService: zoe } = makeZoeKit( | ||
vatAdminSvc, | ||
shutdownZoeVat, | ||
vatParameters.zcfBundleName, | ||
); | ||
return zoe; | ||
}, | ||
}); | ||
} |
Oops, something went wrong.