From ff30838ca0e53686940311f600384d7f259b52fb Mon Sep 17 00:00:00 2001 From: Mathieu Hofman Date: Sun, 3 Dec 2023 22:07:50 +0000 Subject: [PATCH] WIP: equivalent command lines --- .../upgrade-test-scripts/agoric-upgrade-13/actions.test.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/deployment/upgrade-test/upgrade-test-scripts/agoric-upgrade-13/actions.test.js b/packages/deployment/upgrade-test/upgrade-test-scripts/agoric-upgrade-13/actions.test.js index d247ec22a67..b057f1f87fe 100644 --- a/packages/deployment/upgrade-test/upgrade-test-scripts/agoric-upgrade-13/actions.test.js +++ b/packages/deployment/upgrade-test/upgrade-test-scripts/agoric-upgrade-13/actions.test.js @@ -1,5 +1,6 @@ import test from 'ava'; +import { promises as fs } from 'fs'; import { agd, agops, agoric } from '../cliHelper.js'; import { ATOM_DENOM, CHAINID, GOV1ADDR } from '../constants.js'; import { mintIST, openVault } from '../econHelpers.js'; @@ -44,6 +45,10 @@ test('Open Vaults with auto-provisioned wallet', async t => { '--giveCollateral', ATOMGiven, ); + const offerPath = `/tmp/u13-vaults`; // await mkTemp('agops.XXX'); + await fs.writeFile(offerPath, offer); + console.log('Vaults Offer written', offerPath); + //$ agd --chain-id=agoriclocal --from=$(agd keys add u13 --dry-run --recover --keyring-backend=test --output=json < ~/.agoric/u13user.key | jq -r .address) tx swingset wallet-action --allow-spend "$(cat /tmp/u13-vaults)" --keyring-backend=test --yes await agd.tx( 'swingset', 'wallet-action', @@ -56,6 +61,7 @@ test('Open Vaults with auto-provisioned wallet', async t => { ); await waitForBlock(2); + //$ agoric follow --verbose :published.wallet.$(agd keys add u13 --dry-run --recover --keyring-backend=test --output=json < ~/.agoric/u13user.key | jq -r .address) await agoric.follow('--first-value-only', `:published.wallet.${userAddress}`); const newISTBalance = await getISTBalance(userAddress);