Skip to content

Commit

Permalink
refactor(init-core): thingy -> tool
Browse files Browse the repository at this point in the history
  • Loading branch information
dckc committed Apr 24, 2022
1 parent cd92605 commit bfc8652
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/run-protocol/scripts/init-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const mapValues = (obj, f) =>
// @ts-ignore entries() loses the K type
harden(fromEntries(entries(obj).map(([p, v]) => [p, f(v)])));

const makeThingy = async (homeP, installCacheKey = 'installCache') => {
const makeTool = async (homeP, installCacheKey = 'installCache') => {
/** @type {CopyMap<string, {installation: Installation, boardId: string, path?: string}>} */
const initial = await provide(E.get(homeP).scratch, installCacheKey, () =>
makeCopyMap([]),
Expand Down Expand Up @@ -189,9 +189,9 @@ export const defaultProposalBuilder = async ({ publishRef, install }) => {
export default async (homeP, endowments) => {
const { writeCoreProposal } = await makeHelpers(homeP, endowments);

const thingy = await makeThingy(homeP);
const tool = await makeTool(homeP);
await Promise.all([
writeCoreProposal('gov-econ-committee', thingy.committeeProposalBuilder),
writeCoreProposal('gov-amm-vaults-etc', thingy.mainProposalBuilder),
writeCoreProposal('gov-econ-committee', tool.committeeProposalBuilder),
writeCoreProposal('gov-amm-vaults-etc', tool.mainProposalBuilder),
]);
};

0 comments on commit bfc8652

Please sign in to comment.