Skip to content

Commit

Permalink
chore: drop scaledPriceAuthoritiesDone; deduplicate proposal tracer
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris-Hibbert committed Sep 11, 2024
1 parent 0c12200 commit 1ed2428
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -98,8 +93,6 @@ export const replaceScaledPriceAuthorities = async (powers, { options }) => {
options: { interchainAssetOptions },
});
}

scaledPriceAuthoritiesDone.resolve(true);
};

const t = 'replaceScaledPriceAuthority';
Expand All @@ -117,7 +110,6 @@ export const getManifestForReplaceScaledPriceAuthorities = async (
zoe: t,
startUpgradable: t,
},
produce: { scaledPriceAuthoritiesDone: t },
instance: {
produce: t,
},
Expand Down

0 comments on commit 1ed2428

Please sign in to comment.