From 49a3e105a9a6bf9f9f4cc81c0f312a0526e6a22d Mon Sep 17 00:00:00 2001 From: anilhelvaci Date: Mon, 10 Jun 2024 15:35:11 +0300 Subject: [PATCH] fixup(liquidationVisibility): drop references to `LiquidationVisibility` in core-eval Refs: #35 --- packages/inter-protocol/package.json | 2 +- .../{liquidation-visibility-upgrade.js => upgrade-vaults.js} | 4 ++-- .../{vaultsLiquidationVisibility.js => vaultsUpgrade.js} | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) rename packages/inter-protocol/scripts/{liquidation-visibility-upgrade.js => upgrade-vaults.js} (92%) rename packages/inter-protocol/src/proposals/{vaultsLiquidationVisibility.js => vaultsUpgrade.js} (88%) diff --git a/packages/inter-protocol/package.json b/packages/inter-protocol/package.json index 203d1e16370b..b8e0f111ddc1 100644 --- a/packages/inter-protocol/package.json +++ b/packages/inter-protocol/package.json @@ -10,7 +10,7 @@ "scripts": { "build": "yarn build:bundles", "build:bundles": "node ./scripts/build-bundles.js", - "build:upgrade-vaults-proposal": "agoric run scripts/liquidation-visibility-upgrade.js", + "build:upgrade-vaults-proposal": "agoric run scripts/upgrade-vaults.js", "test": "ava", "test:c8": "c8 $C8_OPTIONS ava --config=ava-nesm.config.js", "test:xs": "exit 0", diff --git a/packages/inter-protocol/scripts/liquidation-visibility-upgrade.js b/packages/inter-protocol/scripts/upgrade-vaults.js similarity index 92% rename from packages/inter-protocol/scripts/liquidation-visibility-upgrade.js rename to packages/inter-protocol/scripts/upgrade-vaults.js index 66cffb589e15..4e6d1068e114 100644 --- a/packages/inter-protocol/scripts/liquidation-visibility-upgrade.js +++ b/packages/inter-protocol/scripts/upgrade-vaults.js @@ -1,6 +1,6 @@ import { makeHelpers } from '@agoric/deploy-script-support'; import { makeInstallCache } from '../src/proposals/utils.js'; -import { getManifestVaultsUpgrade } from '../src/proposals/vaultsLiquidationVisibility.js'; +import { getManifestVaultsUpgrade } from '../src/proposals/vaultsUpgrade.js'; /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').ProposalBuilder} */ export const vaultsUpgradeProposalBuilder = async ({ @@ -11,7 +11,7 @@ export const vaultsUpgradeProposalBuilder = async ({ const install = wrapInstall ? wrapInstall(install0) : install0; return harden({ - sourceSpec: '../src/proposals/vaultsLiquidationVisibility.js', + sourceSpec: '../src/proposals/vaultsUpgrade.js', getManifestCall: [ getManifestVaultsUpgrade.name, { diff --git a/packages/inter-protocol/src/proposals/vaultsLiquidationVisibility.js b/packages/inter-protocol/src/proposals/vaultsUpgrade.js similarity index 88% rename from packages/inter-protocol/src/proposals/vaultsLiquidationVisibility.js rename to packages/inter-protocol/src/proposals/vaultsUpgrade.js index c7ffcc5966e3..aac31715e092 100644 --- a/packages/inter-protocol/src/proposals/vaultsLiquidationVisibility.js +++ b/packages/inter-protocol/src/proposals/vaultsUpgrade.js @@ -1,6 +1,6 @@ import { E } from '@endo/far'; -export const upgradeVaultsLiquidationVisibility = async ( +export const upgradeVaults = async ( powers, { options: { vaultFactoryRef } }, ) => { @@ -19,7 +19,7 @@ export const upgradeVaultsLiquidationVisibility = async ( /** @type { import("@agoric/vats/src/core/lib-boot").BootstrapManifest } */ const manifest = { - [upgradeVaultsLiquidationVisibility.name]: { + [upgradeVaults.name]: { // include rationale for closely-held, high authority capabilities consume: { vaultFactoryKit: `to upgrade vaultFactory using its adminFacet`,