diff --git a/a3p-integration/proposals/n:upgrade-next/eval.sh b/a3p-integration/proposals/n:upgrade-next/eval.sh deleted file mode 100755 index c44d11c5a351..000000000000 --- a/a3p-integration/proposals/n:upgrade-next/eval.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash - -# Exit when any command fails -set -uxeo pipefail - -# The upgrade-vaults proposal needs to know the existing vaultDirector -# parameters in order to cleanly upgrade the contract. The governance notifier -# it relies on doesn't give the most recent value if there were no updates to -# the parameters, so we'll do a governance action to reset them to their current -# values so the notifier will work. - -./resetChargingPeriod.js - -cp /usr/src/upgrade-test-scripts/eval_submission.js . -./eval_submission.js diff --git a/a3p-integration/proposals/n:upgrade-next/resetChargingPeriod.js b/a3p-integration/proposals/n:upgrade-next/resetChargingPeriod.js deleted file mode 100755 index c77494dddc66..000000000000 --- a/a3p-integration/proposals/n:upgrade-next/resetChargingPeriod.js +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env node - -/* global setTimeout */ - -import { - getQuoteBody, - GOV1ADDR, - GOV2ADDR, - GOV3ADDR, -} from '@agoric/synthetic-chain'; -import { - proposeVaultDirectorParamChange, - voteForNewParams, -} from './agoric-tools.js'; - -const GOV_ADDRESSES = [GOV1ADDR, GOV2ADDR, GOV3ADDR]; - -const readChargingPeriod = async () => { - const governanceBody = await getQuoteBody( - 'published.vaultFactory.governance', - ); - const period = - governanceBody.current.ChargingPeriod.value.match(/\+?(\d+)/)[1]; - return `+${period}`; -}; - -const setChargingPeriod = async period => { - const params = { - ChargingPeriod: period, - }; - - const path = { paramPath: { key: 'governedParams' } }; - - await proposeVaultDirectorParamChange(GOV1ADDR, params, path); - await voteForNewParams(GOV_ADDRESSES, 0); - - await new Promise(r => setTimeout(r, 65000)); -}; - -const period = await readChargingPeriod(); -await setChargingPeriod(period);