Skip to content

Commit

Permalink
refactor(a3p): reusable submission generation function (#8944)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhofman authored Feb 19, 2024
1 parent a239f8b commit 27079f9
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions scripts/generate-a3p-submission.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,16 @@ set -ueo pipefail
sdkroot=$(cd -- "$(dirname "$0")/.." >/dev/null && pwd)

cd $sdkroot
yarn agoric run packages/builders/scripts/vats/restart-vats.js

mkdir -p $sdkroot/a3p-integration/proposals/b:restart-vats/submission
cp $(grep -oh '/.*b1-.*.json' $sdkroot/restart-vats*) a3p-integration/proposals/b:restart-vats/submission
mv $sdkroot/restart-vats* a3p-integration/proposals/b:restart-vats/submission
buildSubmission() {
proposalName=$1
a3pProposal=$2

yarn agoric run packages/builders/scripts/vats/$1.js

mkdir -p $sdkroot/a3p-integration/proposals/$2/submission
cp $(grep -oh '/.*b1-.*.json' $sdkroot/$1*) a3p-integration/proposals/$2/submission
mv $sdkroot/$1* a3p-integration/proposals/$2/submission
}

buildSubmission restart-vats "b:restart-vats"

0 comments on commit 27079f9

Please sign in to comment.