Skip to content

Commit

Permalink
chore: minor cleanups and conflict reduction
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris-Hibbert committed Nov 1, 2023
1 parent 2096070 commit 9f38ecc
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 12 deletions.
6 changes: 3 additions & 3 deletions packages/agoric-cli/src/commands/inter.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ const makeFormatters = assets => {
/**
* Dynamic check that an OfferStatus is also a BidSpec.
*
* @param {import('@agoric/smart-wallet/src/smartWallet.js').OfferStatus} offerStatus
* @param {import('@agoric/smart-wallet/src/offerWatcher.js').OfferStatus} offerStatus
* @param {import('../lib/wallet.js').AgoricNamesRemotes} agoricNames
* @param {typeof console.warn} warn
* returns null if offerStatus is not a BidSpec
Expand All @@ -125,7 +125,7 @@ const coerceBid = (offerStatus, agoricNames, warn) => {
}

/**
* @type {import('@agoric/smart-wallet/src/smartWallet.js').OfferStatus &
* @type {import('@agoric/smart-wallet/src/offerWatcher.js').OfferStatus &
* { offerArgs: BidSpec}}
*/
// @ts-expect-error dynamic cast
Expand All @@ -136,7 +136,7 @@ const coerceBid = (offerStatus, agoricNames, warn) => {
/**
* Format amounts etc. in a BidSpec OfferStatus
*
* @param {import('@agoric/smart-wallet/src/smartWallet.js').OfferStatus &
* @param {import('@agoric/smart-wallet/src/offerWatcher.js').OfferStatus &
* { offerArgs: BidSpec}} bid
* @param {import('agoric/src/lib/format.js').AssetDescriptor[]} assets
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/boot/test/bootstrapTests/drivers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ import type {
CurrentWalletRecord,
SmartWallet,
UpdateRecord,
OfferSpec,
} from '@agoric/smart-wallet/src/smartWallet.js';
import type { WalletFactoryStartResult } from '@agoric/vats/src/core/startWalletFactory.js';
import type { OfferSpec } from '@agoric/smart-wallet/src/offers.js';
import type { TimerService } from '@agoric/time/src/types.js';
import type { OfferMaker } from '@agoric/smart-wallet/src/types.js';
import type { RunUtils, SwingsetTestKit } from './supports.ts';
Expand Down
10 changes: 5 additions & 5 deletions packages/boot/test/bootstrapTests/liquidation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export const likePayouts = ({ Bid, Collateral }) => ({

export const makeWalletFactoryContext = async t => {
const swingsetTestKit = await makeSwingsetTestKit(t.log, 'bundles/vaults', {
configSpecifier: '@agoric/vm-config/decentral-main-vaults-config.json'
configSpecifier: '@agoric/vm-config/decentral-main-vaults-config.json',
});

const { runUtils, storage } = swingsetTestKit;
Expand All @@ -82,7 +82,7 @@ export const makeWalletFactoryContext = async t => {
const refreshAgoricNamesRemotes = () => {
Object.assign(
agoricNamesRemotes,
makeAgoricNamesRemotesFromFakeStorage(swingsetTestKit.storage)
makeAgoricNamesRemotesFromFakeStorage(swingsetTestKit.storage),
);
};
agoricNamesRemotes.brand.ATOM || Fail`ATOM missing from agoricNames`;
Expand All @@ -91,7 +91,7 @@ export const makeWalletFactoryContext = async t => {
const walletFactoryDriver = await makeWalletFactoryDriver(
runUtils,
storage,
agoricNamesRemotes
agoricNamesRemotes,
);
return {
...swingsetTestKit,
Expand All @@ -112,8 +112,8 @@ export const makeLiquidationTestContext = async t => {
swingsetTestKit,
agoricNamesRemotes,
refreshAgoricNamesRemotes,
walletFactoryDriver
} = await makeWalletFactoryContext(t);
walletFactoryDriver,
} = await makeWalletFactoryContext(t);

console.timeLog('DefaultTestContext', 'walletFactoryDriver');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@ import { test as anyTest } from '@agoric/zoe/tools/prepare-test-env-ava.js';
import process from 'process';
import type { ExecutionContext, TestFn } from 'ava';

import { ERef } from '@endo/far';
import { BridgeHandler } from '@agoric/vats';
import { Offers } from '@agoric/inter-protocol/src/clientSupport.js';
import {
LiquidationTestContext,
makeLiquidationTestContext,
LiquidationSetup,
} from './liquidation.ts';
import { Offers } from '@agoric/inter-protocol/src/clientSupport.js';

const test = anyTest as TestFn<LiquidationTestContext>;

Expand Down
1 change: 0 additions & 1 deletion packages/smart-wallet/src/smartWallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,6 @@ export const prepareSmartWallet = (baggage, shared) => {
const makeOfferWatcher = makeOfferWatcherMaker(baggage);

/**
*
* @param {UniqueParams} unique
* @returns {State}
*/
Expand Down

0 comments on commit 9f38ecc

Please sign in to comment.