Skip to content

Commit

Permalink
WIP: equivalent command lines
Browse files Browse the repository at this point in the history
  • Loading branch information
mhofman committed Dec 3, 2023
1 parent 291b9d0 commit ff30838
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -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',
Expand All @@ -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);
Expand Down

0 comments on commit ff30838

Please sign in to comment.