Skip to content

Commit

Permalink
refactor: upgrade-zoe proposal name
Browse files Browse the repository at this point in the history
it's not necessarily null. it's whatever the version is that's built.
  • Loading branch information
turadg authored and Chris-Hibbert committed Jan 3, 2024
1 parent 593abb0 commit f10178d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ const checkFlow1 = async (
// restart Zoe
// /////// Upgrading ////////////////////////////////
await buildAndExecuteProposal(
'@agoric/builders/scripts/vats/null-upgrade-zoe-proposal.js',
'@agoric/builders/scripts/vats/upgrade-zoe-proposal.js',
);

await buyer.tryExitOffer(`${collateralBrandKey}-bid3`);
Expand Down
3 changes: 1 addition & 2 deletions packages/builders/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@
"scripts": {
"build": "exit 0",
"build:add-STARS-proposal": "echo This command has been deprecated. Please run this instead: agoric run scripts/inter-protocol/add-STARS.js",
"build:restart-vats-proposal": "echo echo This command has been deprecated. Please run this instead: agoric run scripts/vats/restart-vats.js",
"build:restart-vats-proposal": "echo This command has been deprecated. Please run this instead: agoric run scripts/vats/restart-vats.js",
"build:zcf-proposal": "echo This command has been deprecated. Please run this instead: agoric run scripts/vats/replace-zoe.js",
"build:null-upgrade-zoe-proposal": "echo This command has been deprecated. Please run this instead: agoric run scripts/vats/replace-zoe.js",
"prepack": "tsc --build tsconfig.build.json",
"postpack": "git clean -f '*.d.ts*'",
"test": "ava",
Expand Down
4 changes: 2 additions & 2 deletions packages/builders/scripts/vats/upgrade-zoe.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { makeHelpers } from '@agoric/deploy-script-support';
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').ProposalBuilder} */
export const defaultProposalBuilder = async ({ publishRef, install }) =>
harden({
sourceSpec: '@agoric/vats/src/proposals/null-upgrade-zoe-proposal.js',
sourceSpec: '@agoric/vats/src/proposals/upgrade-zoe-proposal.js',
getManifestCall: [
'getManifestForUpgradingZoe',
{
Expand All @@ -14,5 +14,5 @@ export const defaultProposalBuilder = async ({ publishRef, install }) =>

export default async (homeP, endowments) => {
const { writeCoreProposal } = await makeHelpers(homeP, endowments);
await writeCoreProposal('null-upgrade-zoe', defaultProposalBuilder);
await writeCoreProposal('upgrade-zoe', defaultProposalBuilder);
};
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { E } from '@endo/far';
* @param {object} options
* @param {{ zoeRef: VatSourceRef; zcfRef: VatSourceRef }} options.options
*/
export const nullUpgradeZoe = async (
export const upgradeZoe = async (
{ consume: { vatAdminSvc, vatStore } },
options,
) => {
Expand All @@ -30,7 +30,7 @@ export const nullUpgradeZoe = async (

export const getManifestForUpgradingZoe = (_powers, { zoeRef }) => ({
manifest: {
[nullUpgradeZoe.name]: {
[upgradeZoe.name]: {
consume: {
vatAdminSvc: 'vatAdminSvc',
vatStore: 'vatStore',
Expand Down

0 comments on commit f10178d

Please sign in to comment.