From 1ed242814b1348ec8da5744b8b5d9ea812d5066a Mon Sep 17 00:00:00 2001 From: Chris Hibbert Date: Wed, 11 Sep 2024 15:57:51 -0700 Subject: [PATCH] chore: drop scaledPriceAuthoritiesDone; deduplicate proposal tracer --- .../inter-protocol/src/proposals/deploy-price-feeds.js | 2 +- .../src/proposals/replace-scaledPriceAuthorities.js | 10 +--------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/packages/inter-protocol/src/proposals/deploy-price-feeds.js b/packages/inter-protocol/src/proposals/deploy-price-feeds.js index 54c16c67e3de..d1bef9248aa1 100644 --- a/packages/inter-protocol/src/proposals/deploy-price-feeds.js +++ b/packages/inter-protocol/src/proposals/deploy-price-feeds.js @@ -26,7 +26,7 @@ export const DEFAULT_CONTRACT_TERMS = { /** @import {ChainlinkConfig} from '@agoric/inter-protocol/src/price/fluxAggregatorKit.js'; */ /** @typedef {typeof import('@agoric/inter-protocol/src/price/fluxAggregatorContract.js').start} FluxStartFn */ -const trace = makeTracer('RunPriceFeed', true); +const trace = makeTracer('DeployPriceFeed', true); /** * @typedef {{ diff --git a/packages/inter-protocol/src/proposals/replace-scaledPriceAuthorities.js b/packages/inter-protocol/src/proposals/replace-scaledPriceAuthorities.js index a4fa673c6afd..6ceceb74ff80 100644 --- a/packages/inter-protocol/src/proposals/replace-scaledPriceAuthorities.js +++ b/packages/inter-protocol/src/proposals/replace-scaledPriceAuthorities.js @@ -28,23 +28,18 @@ export const replaceScaledPriceAuthority = async (powers, { options }) => { produceInstance[label].resolve(spaKit.instance); }; -/** - * @typedef {PromiseSpaceOf<{ scaledPriceAuthoritiesDone: boolean }>} donePowers - */ - /** * Look up the existing assets known to auctions, and replace the corresponding * scaledPriceAuthorities. The existing contracts will be left behind to be * cleaned up later. * - * @param {ChainBootstrapSpace & BootstrapPowers & donePowers} powers + * @param {ChainBootstrapSpace & BootstrapPowers} powers * @param {{ options: { scaledPARef: { bundleID: string } } }} options */ export const replaceScaledPriceAuthorities = async (powers, { options }) => { trace('start'); const { consume: { agoricNamesAdmin, contractKits: contractKitsP, zoe }, - produce: { scaledPriceAuthoritiesDone }, } = powers; const { scaledPARef } = options; @@ -98,8 +93,6 @@ export const replaceScaledPriceAuthorities = async (powers, { options }) => { options: { interchainAssetOptions }, }); } - - scaledPriceAuthoritiesDone.resolve(true); }; const t = 'replaceScaledPriceAuthority'; @@ -117,7 +110,6 @@ export const getManifestForReplaceScaledPriceAuthorities = async ( zoe: t, startUpgradable: t, }, - produce: { scaledPriceAuthoritiesDone: t }, instance: { produce: t, },