Skip to content

Commit

Permalink
chore: include builder script in filename
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Jun 8, 2024
1 parent 2f4392d commit a85a90d
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 12 deletions.
4 changes: 2 additions & 2 deletions packages/builders/scripts/inter-protocol/add-STARS.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ export const starsOraclesProposalBuilder = async powers => {

export default async (homeP, endowments) => {
const { writeCoreEval } = await makeHelpers(homeP, endowments);
await writeCoreEval('add-STARS', starsVaultProposalBuilder);
await writeCoreEval('add-STARS-oracles', starsOraclesProposalBuilder);
await writeCoreEval('vault', starsVaultProposalBuilder, import.meta.url);
await writeCoreEval('oracle', starsOraclesProposalBuilder, import.meta.url);
};
15 changes: 11 additions & 4 deletions packages/builders/scripts/inter-protocol/add-collateral-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,16 @@ export default async (homeP, endowments) => {
loadBundle: spec => import(spec),
});

await writeCoreEval('gov-add-collateral', defaultProposalBuilder);
await writeCoreEval('gov-start-psm', opts =>
// @ts-expect-error XXX makeInstallCache types
psmProposalBuilder({ ...opts, wrapInstall: tool.wrapInstall }),
await writeCoreEval(
'add-collateral',
defaultProposalBuilder,
import.meta.url,
);
await writeCoreEval(
'start-psm',
opts =>
// @ts-expect-error XXX makeInstallCache types
psmProposalBuilder({ ...opts, wrapInstall: tool.wrapInstall }),
import.meta.url,
);
};
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@ export const defaultProposalBuilder = async (

export default async (homeP, endowments) => {
const { writeCoreEval } = await makeHelpers(homeP, endowments);
await writeCoreEval('gov-invite-committee', defaultProposalBuilder);
await writeCoreEval('gov', defaultProposalBuilder, import.meta.url);
};
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export const createGov = async (homeP, endowments) => {
brandIn: lookup(inLookup).catch(() => undefined),
brandOut: lookup(outLookup).catch(() => undefined),
});
await writeCoreEval('gov-price-feed', proposalBuilder); // gov-price-feed.js gov-price-feed-permit.json
await writeCoreEval('gov', proposalBuilder, import.meta.url);
};

export default createGov;
2 changes: 1 addition & 1 deletion packages/builders/scripts/vats/init-localchain.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ export const defaultProposalBuilder = async ({ publishRef, install }) =>

export default async (homeP, endowments) => {
const { writeCoreEval } = await makeHelpers(homeP, endowments);
await writeCoreEval('gov-localchain', defaultProposalBuilder);
await writeCoreEval('gov', defaultProposalBuilder, import.meta.url);
};
2 changes: 1 addition & 1 deletion packages/builders/scripts/vats/init-network.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ export const defaultProposalBuilder = async ({ publishRef, install }) =>

export default async (homeP, endowments) => {
const { writeCoreEval } = await makeHelpers(homeP, endowments);
await writeCoreEval('gov-network', defaultProposalBuilder);
await writeCoreEval('gov', defaultProposalBuilder, import.meta.url);
};
2 changes: 1 addition & 1 deletion packages/builders/scripts/vats/init-orchestration.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ export const defaultProposalBuilder = async ({ publishRef, install }) =>

export default async (homeP, endowments) => {
const { writeCoreEval } = await makeHelpers(homeP, endowments);
await writeCoreEval('gov-orchestration', defaultProposalBuilder);
await writeCoreEval('gov', defaultProposalBuilder, import.meta.url);
};
2 changes: 1 addition & 1 deletion packages/builders/scripts/vats/replace-provisioning.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ export const defaultProposalBuilder = async ({ publishRef, install }) =>

export default async (homeP, endowments) => {
const { writeCoreEval } = await makeHelpers(homeP, endowments);
await writeCoreEval('gov-provisioning', defaultProposalBuilder);
await writeCoreEval('gov', defaultProposalBuilder, import.meta.url);
};

0 comments on commit a85a90d

Please sign in to comment.