Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build proposals for PriceFeed coreEvals on multiple platforms. #10146

Merged
merged 10 commits into from
Oct 10, 2024
4 changes: 4 additions & 0 deletions a3p-integration/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,7 @@ proposals/*/.yarn/*
!proposals/*/.yarn/releases
!proposals/*/.yarn/sdks
!proposals/*/.yarn/versions

# build artifacts
proposals/*/mainNet/*
proposals/*/devNet/*
4 changes: 3 additions & 1 deletion a3p-integration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
"scripts": {
"build": "yarn run build:sdk && yarn run build:submissions && yarn run build:synthetic-chain",
"build:sdk": "make -C ../packages/deployment docker-build-sdk",
"build:submissions": "scripts/build-all-submissions.sh",
"build:submissions": "scripts/build-all-submissions.sh && yarn run build:priceFeeds-for-mainnet && yarn run build:priceFeeds-for-devnet",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems to work!

$ unzip -l core-eval-scripts.zip |grep gov-price
     1436  2024-10-10 21:15   f-replace-price-feeds/devnet/gov-price-feeds-devnet-plan.json
     1024  2024-10-10 21:15   f-replace-price-feeds/devnet/gov-price-feeds-devnet-permit.json
     7195  2024-10-10 21:15   f-replace-price-feeds/devnet/gov-price-feeds-devnet.js
     1024  2024-10-10 21:15   f-replace-price-feeds/gov-price-feeds-A3P_INTEGRATION-permit.json
     1463  2024-10-10 21:15   f-replace-price-feeds/gov-price-feeds-A3P_INTEGRATION-plan.json
     7069  2024-10-10 21:15   f-replace-price-feeds/gov-price-feeds-A3P_INTEGRATION.js
     1024  2024-10-10 21:15   f-replace-price-feeds/main/gov-price-feeds-main-permit.json
     1430  2024-10-10 21:15   f-replace-price-feeds/main/gov-price-feeds-main-plan.json
     7284  2024-10-10 21:15   f-replace-price-feeds/main/gov-price-feeds-main.js

"build:priceFeeds-for-mainnet": "scripts/build-submission.sh proposals/f:replace-price-feeds inter-protocol/updatePriceFeeds.js submission/main main; scripts/build-submission.sh proposals/f:replace-price-feeds vats/add-auction.js submission/main; scripts/build-submission.sh proposals/f:replace-price-feeds vats/upgradeVaults.js submission/main",
"build:priceFeeds-for-devnet": "scripts/build-submission.sh proposals/f:replace-price-feeds inter-protocol/updatePriceFeeds.js submission/devnet devnet; scripts/build-submission.sh proposals/f:replace-price-feeds vats/add-auction.js submission/devnet; scripts/build-submission.sh proposals/f:replace-price-feeds vats/upgradeVaults.js submission/devnet",
"build:synthetic-chain": "yarn synthetic-chain build",
"test": "yarn synthetic-chain test",
"doctor": "yarn synthetic-chain doctor"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ export default async (homeP, endowments) => {

const { writeCoreEval } = await makeHelpers(homeP, endowments);

await writeCoreEval('gov-price-feeds', (utils, opts) =>
const match = scriptArgs[0].match(/UNRELEASED_(.*)/);
const variant = match ? match[1] : scriptArgs;

await writeCoreEval(`gov-price-feeds-${variant}`, (utils, opts) =>
defaultProposalBuilder(utils, { ...opts, ...config }),
);
};
Loading