From 93255029c0e4190a6f4353a15062e12d9d596f4e Mon Sep 17 00:00:00 2001 From: Dan Connolly Date: Thu, 7 Mar 2024 10:45:21 -0600 Subject: [PATCH] WIP: with a3p use-lo-bundle-cost, we don't need to lower it --- contract/Makefile | 35 ------------------- contract/scripts/run-chain.sh | 1 - contract/scripts/voteLatestProposalAndWait.sh | 5 --- 3 files changed, 41 deletions(-) delete mode 100755 contract/scripts/voteLatestProposalAndWait.sh diff --git a/contract/Makefile b/contract/Makefile index 1fa4f265..3ba9a096 100644 --- a/contract/Makefile +++ b/contract/Makefile @@ -27,41 +27,6 @@ mint100: yarn --silent agops vaults open --wantMinted 100 --giveCollateral 100 >/tmp/want-ist.json && \ yarn --silent agops perf satisfaction --executeOffer /tmp/want-ist.json --from user1 --keyring-backend=test -# https://agoric.explorers.guru/proposal/61 -lower-bundle-cost: bundles/lower-bundle-cost.json ./scripts/voteLatestProposalAndWait.sh - agd tx gov submit-proposal param-change bundles/lower-bundle-cost.json \ - $(SIGN_BROADCAST_OPTS) \ - --from user1 - ./scripts/voteLatestProposalAndWait.sh - # agd query swingset params - - -bundles/swingset-params.json: - mkdir -p bundles/ - agd query swingset params -o json >$@ - -.ONESHELL: -bundles/lower-bundle-cost.json: bundles/swingset-params.json - @read PARAMS < bundles/swingset-params.json; export PARAMS - node - <<- EOF >$@ - const storageByte = '20000000'; - const paramChange = { - title: 'Lower Bundle Cost to 0.02 IST/Kb (a la mainnet 61)', - description: '0.02 IST/Kb', - deposit: '10000000ubld', - changes: [{ - subspace: 'swingset', - key: 'beans_per_unit', - value: '...', - }], - }; - const params = JSON.parse(process.env.PARAMS); - const ix = params.beans_per_unit.findIndex(({key}) => key === 'storageByte'); - params.beans_per_unit[ix].beans = storageByte; - paramChange.changes[0].value = params.beans_per_unit; - console.log(JSON.stringify(paramChange, null, 2)); - EOF - # Keep mint4k around a while for compatibility mint4k: make FUNDS=1000$(ATOM) fund-acct diff --git a/contract/scripts/run-chain.sh b/contract/scripts/run-chain.sh index 6534eae6..e6435bd4 100755 --- a/contract/scripts/run-chain.sh +++ b/contract/scripts/run-chain.sh @@ -64,7 +64,6 @@ waitForBlock 2 approveProposals & make -C /workspace/contract mint100 -make -C /workspace/contract lower-bundle-cost # bring back chain process to foreground wait diff --git a/contract/scripts/voteLatestProposalAndWait.sh b/contract/scripts/voteLatestProposalAndWait.sh deleted file mode 100755 index dd303f49..00000000 --- a/contract/scripts/voteLatestProposalAndWait.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash -set -ueo pipefail - -. /usr/src/upgrade-test-scripts/env_setup.sh -voteLatestProposalAndWait