Skip to content

Commit

Permalink
chore: get it to work, and drop old instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris-Hibbert committed Jul 25, 2023
1 parent 0e8ab88 commit 63009af
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ upgrade11=./upgrade-test-scripts/agoric-upgrade-11

# Pre-steps:
# * fill Wallets
# * install bundles
# * build and install bundles
# * create instance of prober contract and run expecting no atomicRearrange
#
# Action:
Expand All @@ -24,34 +24,23 @@ echo +++ checking Zoe/Zcf hashes +++
ZCF_HASH=`jq -r .endoZipBase64Sha512 /tmp/bundle-Zcf-upgrade.json`
ZOE_HASH=`jq -r .endoZipBase64Sha512 /tmp/bundle-Zoe-upgrade.json`
echo bundle-Zcf-upgrade.json $ZCF_HASH
grep $ZCF_HASH zoe-full-upgrade/zcf-upgrade-script.js || exit 1
grep $ZCF_HASH $upgrade11/zoe-full-upgrade/zcf-upgrade-script.js || exit 1
echo bundle-Zoe-upgrade.json $ZOE_HASH
grep $ZOE_HASH zoe-full-upgrade/zcf-upgrade-script.js || exit 1
grep $ZOE_HASH $upgrade11/zoe-full-upgrade/zcf-upgrade-script.js || exit 1

echo +++ prober hash +++
PROBER_HASH=`jq -r .endoZipBase64Sha512 /tmp/bundle-prober-contract.json`
echo bundle-prober-contract.json $PROBER_HASH
grep $PROBER_HASH zoe-full-upgrade/run-prober-script.js || exit 1
grep $PROBER_HASH $upgrade11/zoe-full-upgrade/run-prober-script.js || exit 1

echo +++++ fill wallet +++++
agd tx bank send validator $GOV1ADDR 12340000000${ATOM_DENOM} --from validator --chain-id agoriclocal --keyring-backend test --yes
agops vaults open --wantMinted 10000 --giveCollateral 2000 > wantIST
agops perf satisfaction --executeOffer wantIST --from gov1 --keyring-backend test


# This test needs bundles for Zoe, ZCF, and the prober to be installed in
# ./zoe-full-upgrade/, with names matching *bundle.json. The bundleIds for Zoe
# and ZCF must be updated in zcf-upgrade-script.js, while the prober's bundleId
# goes in run-prober.script.
#
# The bundles can be generated by running the test in
# vats/test/bootstrapTests/test-zcf-upgrade.js. The Zoe and ZCF bundle files are
# generated in ~/.agoric/cache, and their bundleIds are logged in the test. The
# prober bundle is generated by uncommenting `fs.writeFile(...)` in that test.


echo +++++ install bundles +++++
for f in $upgrade11/zoe-full-upgrade/*-bundle.json; do
for f in /tmp/bundle-{Z*-upgrade,prober-contract}.json; do
echo installing $f
agd tx swingset install-bundle "@$f" \
--from gov1 --keyring-backend=test --gas=auto \
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 63009af

Please sign in to comment.