diff --git a/package.json b/package.json index eaec6694062..5e8483e85c4 100644 --- a/package.json +++ b/package.json @@ -14,23 +14,23 @@ "@jessie.js/eslint-plugin": "^0.4.0", "@types/express": "^4.17.17", "@types/node": "^16.13.0", - "@typescript-eslint/eslint-plugin": "^6.5.0", - "@typescript-eslint/parser": "^6.5.0", + "@typescript-eslint/eslint-plugin": "^6.7.0", + "@typescript-eslint/parser": "^6.7.0", "ava": "^5.3.0", "c8": "^7.13.0", "conventional-changelog-conventionalcommits": "^4.6.0", "eslint": "^8.47.0", "eslint-config-airbnb-base": "^15.0.0", "eslint-config-jessie": "^0.0.6", - "eslint-config-prettier": "^8.8.0", + "eslint-config-prettier": "^9.0.0", "eslint-plugin-ava": "^14.0.0", - "eslint-plugin-github": "^4.8.0", + "eslint-plugin-github": "^4.10.0", "eslint-plugin-import": "^2.25.3", "eslint-plugin-jsdoc": "^46.4.3", "eslint-plugin-prettier": "^5.0.0", "lerna": "^5.6.2", "npm-run-all": "^4.1.5", - "prettier": "^3.0.0", + "prettier": "^3.0.3", "prettier-plugin-jsdoc": "^1.0.0", "typescript": "~5.2.2" }, diff --git a/packages/ERTP/test/swingsetTests/basicFunctionality/vat-alice.js b/packages/ERTP/test/swingsetTests/basicFunctionality/vat-alice.js index 3b2fea835fa..e95bf9a9b89 100644 --- a/packages/ERTP/test/swingsetTests/basicFunctionality/vat-alice.js +++ b/packages/ERTP/test/swingsetTests/basicFunctionality/vat-alice.js @@ -51,16 +51,14 @@ function makeAliceMaker(log) { E(issuer).makeEmptyPurse(), paymentToClaim, ); - const claimedPaymentAmount = await E(issuer).getAmountOf( - claimedPayment, - ); + const claimedPaymentAmount = + await E(issuer).getAmountOf(claimedPayment); log('claimedPayment amount: ', claimedPaymentAmount); // combine const combinedPayment = combine(E(issuer).makeEmptyPurse(), payments); - const combinedPaymentAmount = await E(issuer).getAmountOf( - combinedPayment, - ); + const combinedPaymentAmount = + await E(issuer).getAmountOf(combinedPayment); log('combinedPayment amount: ', combinedPaymentAmount); }, }); diff --git a/packages/ERTP/test/unitTests/test-mintObj.js b/packages/ERTP/test/unitTests/test-mintObj.js index e1258d014d9..9bb3024cbd4 100644 --- a/packages/ERTP/test/unitTests/test-mintObj.js +++ b/packages/ERTP/test/unitTests/test-mintObj.js @@ -154,9 +154,8 @@ test('non-fungible tokens example', async t => { // the call to claim() hasn't thrown, so Alice knows myTicketPaymentAlice // is a genuine 'Agoric Ballet Opera tickets' payment and she has exclusive // access to its handle - const paymentAmountAlice = await balletTicketIssuer.getAmountOf( - myTicketPaymentAlice, - ); + const paymentAmountAlice = + await balletTicketIssuer.getAmountOf(myTicketPaymentAlice); assert(Array.isArray(paymentAmountAlice.value)); t.is(paymentAmountAlice.value.length, 1); t.is(paymentAmountAlice.value[0].seat, 1); @@ -170,9 +169,8 @@ test('non-fungible tokens example', async t => { balletTicketIssuer.makeEmptyPurse(), paymentForBob, ); - const paymentAmountBob = await balletTicketIssuer.getAmountOf( - bobTicketPayment, - ); + const paymentAmountBob = + await balletTicketIssuer.getAmountOf(bobTicketPayment); assert(Array.isArray(paymentAmountBob.value)); t.is(paymentAmountBob.value.length, 2); t.is(paymentAmountBob.value[0].seat, 4); diff --git a/packages/SwingSet/test/device-plugin/test-device.js b/packages/SwingSet/test/device-plugin/test-device.js index 776685dfeea..fd043e3733b 100644 --- a/packages/SwingSet/test/device-plugin/test-device.js +++ b/packages/SwingSet/test/device-plugin/test-device.js @@ -75,9 +75,8 @@ async function setupVatController(t) { } test.serial('plugin first time', async t => { - const { bridge, cycle, dump, queueThunkForKernel } = await setupVatController( - t, - ); + const { bridge, cycle, dump, queueThunkForKernel } = + await setupVatController(t); void queueThunkForKernel(() => bridge.deliverInbound('pingpong')); await cycle(); diff --git a/packages/boot/test/bootstrapTests/drivers.js b/packages/boot/test/bootstrapTests/drivers.js index 242b53c943e..2956d086dc2 100644 --- a/packages/boot/test/bootstrapTests/drivers.js +++ b/packages/boot/test/bootstrapTests/drivers.js @@ -227,9 +227,8 @@ export const makeGovernanceDriver = async ( const committeeMembershipId = 'committeeMembership'; /** @type {ERef} */ - const chainTimerService = await EV.vat('bootstrap').consumeItem( - 'chainTimerService', - ); + const chainTimerService = + await EV.vat('bootstrap').consumeItem('chainTimerService'); let invitationsAccepted = false; diff --git a/packages/boot/test/bootstrapTests/test-vats-restart.js b/packages/boot/test/bootstrapTests/test-vats-restart.js index ee99bf7df53..cd3f68aa679 100644 --- a/packages/boot/test/bootstrapTests/test-vats-restart.js +++ b/packages/boot/test/bootstrapTests/test-vats-restart.js @@ -139,9 +139,8 @@ test.serial('read metrics', async t => { * import('@agoric/inter-protocol/src/proposals/econ-behaviors.js').EconomyBootstrapSpace['consume']['vaultFactoryKit'] * >} */ - const vaultFactoryKit = await EV.vat('bootstrap').consumeItem( - 'vaultFactoryKit', - ); + const vaultFactoryKit = + await EV.vat('bootstrap').consumeItem('vaultFactoryKit'); const vfTopics = await EV(vaultFactoryKit.publicFacet).getPublicTopics(); diff --git a/packages/boot/test/bootstrapTests/test-vaults-integration.js b/packages/boot/test/bootstrapTests/test-vaults-integration.js index 36f11834e25..4531e978b8e 100644 --- a/packages/boot/test/bootstrapTests/test-vaults-integration.js +++ b/packages/boot/test/bootstrapTests/test-vaults-integration.js @@ -76,9 +76,8 @@ test.after.always(t => { test('metrics path', async t => { const { EV } = t.context.runUtils; // example of awaitVatObject - const vaultFactoryKit = await EV.vat('bootstrap').consumeItem( - 'vaultFactoryKit', - ); + const vaultFactoryKit = + await EV.vat('bootstrap').consumeItem('vaultFactoryKit'); const vfTopics = await EV(vaultFactoryKit.publicFacet).getPublicTopics(); const vfMetricsPath = await EV.get(vfTopics.metrics).storagePath; t.is(vfMetricsPath, 'published.vaultFactory.metrics'); diff --git a/packages/boot/test/bootstrapTests/test-vaults-upgrade.js b/packages/boot/test/bootstrapTests/test-vaults-upgrade.js index 76d834b3959..a7314bb4969 100644 --- a/packages/boot/test/bootstrapTests/test-vaults-upgrade.js +++ b/packages/boot/test/bootstrapTests/test-vaults-upgrade.js @@ -95,9 +95,8 @@ test.serial('re-bootstrap', async t => { const oldContext = { ...t.context.shared }; const { storage } = oldContext; t.is(oldContext.incarnation, 1); - const wd1 = await oldContext.walletFactoryDriver.provideSmartWallet( - 'agoric1a', - ); + const wd1 = + await oldContext.walletFactoryDriver.provideSmartWallet('agoric1a'); t.true(wd1.isNew); // eslint-disable-next-line no-unused-vars const assertWalletCount = (walletsProvisioned, message) => { @@ -146,15 +145,13 @@ test.serial('re-bootstrap', async t => { } // prettier-ignore assertWalletCount(1n, 'provisionPool metrics must not be modified by re-bootstrap'); - const wd2 = await newContext.walletFactoryDriver.provideSmartWallet( - 'agoric1a', - ); + const wd2 = + await newContext.walletFactoryDriver.provideSmartWallet('agoric1a'); t.false(wd2.isNew); // prettier-ignore assertWalletCount(1n, 'wallet restoration must not affect provisionPool metrics'); - const wd3 = await newContext.walletFactoryDriver.provideSmartWallet( - 'agoric1b', - ); + const wd3 = + await newContext.walletFactoryDriver.provideSmartWallet('agoric1b'); t.true(wd3.isNew); // prettier-ignore assertWalletCount(2n, 'new wallet provisioning must update revived provisionPool metrics'); @@ -294,9 +291,8 @@ test.serial('restart vaultFactory', async t => { * import('@agoric/inter-protocol/src/proposals/econ-behaviors.js').EconomyBootstrapSpace['consume']['vaultFactoryKit'] * >} */ - const vaultFactoryKit = await EV.vat('bootstrap').consumeItem( - 'vaultFactoryKit', - ); + const vaultFactoryKit = + await EV.vat('bootstrap').consumeItem('vaultFactoryKit'); // @ts-expect-error cast XXX missing from type const { privateArgs } = vaultFactoryKit; @@ -325,9 +321,8 @@ test.serial('restart contractGovernor', async t => { * import('@agoric/inter-protocol/src/proposals/econ-behaviors.js').EconomyBootstrapSpace['consume']['vaultFactoryKit'] * >} */ - const vaultFactoryKit = await EV.vat('bootstrap').consumeItem( - 'vaultFactoryKit', - ); + const vaultFactoryKit = + await EV.vat('bootstrap').consumeItem('vaultFactoryKit'); const { governorAdminFacet } = vaultFactoryKit; // has no privateArgs of its own. the privateArgs.governed is only for the @@ -336,9 +331,8 @@ test.serial('restart contractGovernor', async t => { const privateArgs = undefined; t.log('awaiting CG restartContract'); - const upgradeResult = await EV(governorAdminFacet).restartContract( - privateArgs, - ); + const upgradeResult = + await EV(governorAdminFacet).restartContract(privateArgs); t.deepEqual(upgradeResult, { incarnationNumber: 1 }); }); diff --git a/packages/boot/test/upgrading/test-upgrade-vats.js b/packages/boot/test/upgrading/test-upgrade-vats.js index bbbdf15c9c4..a171dad9465 100644 --- a/packages/boot/test/upgrading/test-upgrade-vats.js +++ b/packages/boot/test/upgrading/test-upgrade-vats.js @@ -83,9 +83,8 @@ test('upgrade vat-board', async t => { t.regex(thingId, /^board0[0-9]+$/); t.log('now perform the null upgrade'); - const { incarnationNumber } = await EV.vat('bootstrap').upgradeVat( - boardVatConfig, - ); + const { incarnationNumber } = + await EV.vat('bootstrap').upgradeVat(boardVatConfig); t.is(incarnationNumber, 1, 'Board vat must be upgraded'); const board2 = await EV.vat('board').getBoard(); t.is(board2, board, 'must get the same board reference'); @@ -114,9 +113,8 @@ test.failing('upgrade bootstrap vat', async t => { t.log('now perform the null upgrade'); - const { incarnationNumber } = await EV.vat('bootstrap').upgradeVat( - chainVatConfig, - ); + const { incarnationNumber } = + await EV.vat('bootstrap').upgradeVat(chainVatConfig); t.is(incarnationNumber, 1, 'vat must be upgraded'); }); @@ -204,9 +202,8 @@ test('upgrade vat-bridge', async t => { ); t.log('now perform the null upgrade'); - const { incarnationNumber } = await EV.vat('bootstrap').upgradeVat( - bridgeVatConfig, - ); + const { incarnationNumber } = + await EV.vat('bootstrap').upgradeVat(bridgeVatConfig); t.is(incarnationNumber, 1, 'Bridge vat must be upgraded'); @@ -357,9 +354,8 @@ test('upgrade vat-bank', async t => { }); t.log('now perform the null upgrade'); - const { incarnationNumber } = await EV.vat('bootstrap').upgradeVat( - bankVatConfig, - ); + const { incarnationNumber } = + await EV.vat('bootstrap').upgradeVat(bankVatConfig); t.is(incarnationNumber, 1, 'Bank vat must be upgraded'); diff --git a/packages/casting/src/follower-cosmjs.js b/packages/casting/src/follower-cosmjs.js index 924449957a0..38b4577e9d6 100644 --- a/packages/casting/src/follower-cosmjs.js +++ b/packages/casting/src/follower-cosmjs.js @@ -445,9 +445,8 @@ export const makeCosmjsFollower = ( // contain data. await null; for (;;) { - ({ value: cursorData, height: cursorBlockHeight } = await getDataAtHeight( - cursorBlockHeight, - )); + ({ value: cursorData, height: cursorBlockHeight } = + await getDataAtHeight(cursorBlockHeight)); if (cursorData.length !== 0) { const cursorStreamCell = streamCellForData( cursorBlockHeight, @@ -558,9 +557,8 @@ export const makeCosmjsFollower = ( let cursorData; await null; while (cursorBlockHeight === undefined || cursorBlockHeight > 0) { - ({ value: cursorData, height: cursorBlockHeight } = await getDataAtHeight( - cursorBlockHeight, - )); + ({ value: cursorData, height: cursorBlockHeight } = + await getDataAtHeight(cursorBlockHeight)); if (cursorData.length === 0) { // No data at the cursor height, so signal beginning of stream. return; diff --git a/packages/deploy-script-support/src/offer.js b/packages/deploy-script-support/src/offer.js index 6096fe6b454..f26151fe3a7 100644 --- a/packages/deploy-script-support/src/offer.js +++ b/packages/deploy-script-support/src/offer.js @@ -114,9 +114,8 @@ export const makeOfferAndFindInvitationAmount = ( } = config; const invitationToUse = getInvitation(invitation, partialInvitationDetails); - const invitationDetails = await E(zoe).getInvitationDetails( - invitationToUse, - ); + const invitationDetails = + await E(zoe).getInvitationDetails(invitationToUse); const payments = withdrawPayments(proposal, paymentsWithPursePetnames); const seat = E(zoe).offer(invitationToUse, proposal, payments); diff --git a/packages/deploy-script-support/src/startInstance.js b/packages/deploy-script-support/src/startInstance.js index e7e805126c4..c4ebc004253 100644 --- a/packages/deploy-script-support/src/startInstance.js +++ b/packages/deploy-script-support/src/startInstance.js @@ -100,9 +100,8 @@ export const makeStartInstance = ( `creatorInvitation must be defined to be deposited`, ); console.log(`-- Adding Invitation for: ${instancePetname}`); - const invitationAmount = await E(zoeInvitationPurse).deposit( - creatorInvitation, - ); + const invitationAmount = + await E(zoeInvitationPurse).deposit(creatorInvitation); console.log(`- Created Contract Instance: ${instancePetname}`); const creatorInvitationDetails = invitationAmount.value[0]; diff --git a/packages/eslint-config/package.json b/packages/eslint-config/package.json index 2e2fa8b1a0a..fb45fce94a0 100644 --- a/packages/eslint-config/package.json +++ b/packages/eslint-config/package.json @@ -27,16 +27,16 @@ "peerDependencies": { "@endo/eslint-plugin": "^0.5.1", "@jessie.js/eslint-plugin": "^0.4.0", - "@typescript-eslint/eslint-plugin": "^6.5.0", - "@typescript-eslint/parser": "^6.5.0", + "@typescript-eslint/eslint-plugin": "^6.7.0", + "@typescript-eslint/parser": "^6.7.0", "eslint": "^8.47.0", "eslint-config-airbnb-base": "^15.0.0", - "eslint-plugin-github": "^4.8.0", + "eslint-plugin-github": "^4.10.0", "eslint-config-jessie": "^0.0.6", - "eslint-config-prettier": "^8.8.0", + "eslint-config-prettier": "^9.0.0", "eslint-plugin-import": "^2.25.3", "eslint-plugin-jsdoc": "^40.1.0", "eslint-plugin-prettier": "^5.0.0", - "prettier": "^3.0.0" + "prettier": "^3.0.3" } } diff --git a/packages/governance/src/contractGovernorKit.js b/packages/governance/src/contractGovernorKit.js index 542d3e2450f..1a9451d465d 100644 --- a/packages/governance/src/contractGovernorKit.js +++ b/packages/governance/src/contractGovernorKit.js @@ -53,9 +53,8 @@ export const prepareContractGovernorKit = (baggage, powers) => { /** @type {() => Promise} */ async getElectorateInstance() { const { publicFacet } = this.state; - const invitationAmount = await E(publicFacet).getInvitationAmount( - CONTRACT_ELECTORATE, - ); + const invitationAmount = + await E(publicFacet).getInvitationAmount(CONTRACT_ELECTORATE); return invitationAmount.value[0].instance; }, /** @type {() => Promise} */ diff --git a/packages/governance/src/validators.js b/packages/governance/src/validators.js index b4f82c2729d..40228bff729 100644 --- a/packages/governance/src/validators.js +++ b/packages/governance/src/validators.js @@ -33,9 +33,8 @@ const assertContractGovernance = async ( 'The alleged governed did not match the governed contract retrieved from the governor', ); - const governorInstallationFromGoverned = await E( - zoe, - ).getInstallationForInstance(realGovernorInstance); + const governorInstallationFromGoverned = + await E(zoe).getInstallationForInstance(realGovernorInstance); assert( governorInstallationFromGoverned === contractGovernorInstallation, diff --git a/packages/inter-protocol/src/vaultFactory/vaultDirector.js b/packages/inter-protocol/src/vaultFactory/vaultDirector.js index c60b8b2d544..91773fab949 100644 --- a/packages/inter-protocol/src/vaultFactory/vaultDirector.js +++ b/packages/inter-protocol/src/vaultFactory/vaultDirector.js @@ -377,9 +377,8 @@ const prepareVaultDirector = ( // zero-based index of the manager being made const managerIndex = vaultManagers.length(); const managerId = `manager${managerIndex}`; - const managerStorageNode = await E(managersNode).makeChildNode( - managerId, - ); + const managerStorageNode = + await E(managersNode).makeChildNode(managerId); vaultParamManagers.addParamManager( collateralBrand, diff --git a/packages/inter-protocol/test/auction/test-auctionContract.js b/packages/inter-protocol/test/auction/test-auctionContract.js index f953b605098..188d44f6426 100644 --- a/packages/inter-protocol/test/auction/test-auctionContract.js +++ b/packages/inter-protocol/test/auction/test-auctionContract.js @@ -356,9 +356,8 @@ const assertPayouts = async ( bidValue, collateralValue, ) => { - const { Collateral: collateralPayout, Bid: bidPayout } = await E( - seat, - ).getPayouts(); + const { Collateral: collateralPayout, Bid: bidPayout } = + await E(seat).getPayouts(); if (!bidPayout) { bidValue === 0n || diff --git a/packages/inter-protocol/test/price/test-fluxAggregatorKit.js b/packages/inter-protocol/test/price/test-fluxAggregatorKit.js index 2070c079078..0fcb6a15122 100644 --- a/packages/inter-protocol/test/price/test-fluxAggregatorKit.js +++ b/packages/inter-protocol/test/price/test-fluxAggregatorKit.js @@ -696,9 +696,8 @@ test('notifications', async t => { }); test('storage keys', async t => { - const { public: publicFacet } = await t.context.makeTestFluxAggregator( - defaultConfig, - ); + const { public: publicFacet } = + await t.context.makeTestFluxAggregator(defaultConfig); t.is( await topicPath(publicFacet, 'quotes'), @@ -707,9 +706,8 @@ test('storage keys', async t => { }); test('disabling', async t => { - const { creator, manualTimer } = await t.context.makeTestFluxAggregator( - defaultConfig, - ); + const { creator, manualTimer } = + await t.context.makeTestFluxAggregator(defaultConfig); const kitA = await creator.initOracle('agoric1priceOracleA'); const kitB = await creator.initOracle('agoric1priceOracleB'); diff --git a/packages/inter-protocol/test/smartWallet/test-psm-integration.js b/packages/inter-protocol/test/smartWallet/test-psm-integration.js index 9a6ee8c110a..9e64eed111e 100644 --- a/packages/inter-protocol/test/smartWallet/test-psm-integration.js +++ b/packages/inter-protocol/test/smartWallet/test-psm-integration.js @@ -62,9 +62,8 @@ test('null swap', async t => { const { agoricNames } = await E.get(t.context.consume); const mintedBrand = await E(agoricNames).lookup('brand', 'IST'); - const { getBalanceFor, wallet } = await t.context.provideWalletAndBalances( - 'agoric1nullswap', - ); + const { getBalanceFor, wallet } = + await t.context.provideWalletAndBalances('agoric1nullswap'); const computedState = coalesceUpdates(E(wallet).getUpdatesSubscriber()); const currents = sequenceCurrents(E(wallet).getCurrentSubscriber()); @@ -111,9 +110,8 @@ test('want stable', async t => { t.log('Start the PSM to ensure brands are registered'); const stableBrand = await E(agoricNames).lookup('brand', Stable.symbol); - const { getBalanceFor, wallet } = await t.context.provideWalletAndBalances( - 'agoric1wantstable', - ); + const { getBalanceFor, wallet } = + await t.context.provideWalletAndBalances('agoric1wantstable'); const offersFacet = wallet.getOffersFacet(); t.assert(offersFacet, 'undefined offersFacet'); @@ -445,9 +443,8 @@ test('agoricName invitation source errors', async t => { const { agoricNames } = await E.get(t.context.consume); const mintedBrand = await E(agoricNames).lookup('brand', 'IST'); - const { getBalanceFor, wallet } = await t.context.provideWalletAndBalances( - 'agoric1nullswap', - ); + const { getBalanceFor, wallet } = + await t.context.provideWalletAndBalances('agoric1nullswap'); await t.throwsAsync( wallet.getOffersFacet().executeOffer({ diff --git a/packages/inter-protocol/test/swingsetTests/reserve/bootstrap-assetReserve-upgrade.js b/packages/inter-protocol/test/swingsetTests/reserve/bootstrap-assetReserve-upgrade.js index d6da05f7832..3815f758a2f 100644 --- a/packages/inter-protocol/test/swingsetTests/reserve/bootstrap-assetReserve-upgrade.js +++ b/packages/inter-protocol/test/swingsetTests/reserve/bootstrap-assetReserve-upgrade.js @@ -129,9 +129,8 @@ export const buildRootObject = async () => { const v1BundleId = await E(vatAdmin).getBundleIDByName(arV1BundleName); v1BundleId || Fail`bundleId must not be empty`; - installations.assetReserveV1 = await E(zoeService).installBundleID( - v1BundleId, - ); + installations.assetReserveV1 = + await E(zoeService).installBundleID(v1BundleId); installations.puppetContractGovernor = await E( zoeService, diff --git a/packages/inter-protocol/test/vaultFactory/test-vaultFactory.js b/packages/inter-protocol/test/vaultFactory/test-vaultFactory.js index 80bc0cb63dc..f5b77c41813 100644 --- a/packages/inter-protocol/test/vaultFactory/test-vaultFactory.js +++ b/packages/inter-protocol/test/vaultFactory/test-vaultFactory.js @@ -885,9 +885,8 @@ test('adjust balances - withdraw RUN', async t => { ); t.deepEqual(debtAmount, debtLevel); - const { Minted: lentAmount2 } = await E( - aliceWithdrawRunSeat, - ).getFinalAllocation(); + const { Minted: lentAmount2 } = + await E(aliceWithdrawRunSeat).getFinalAllocation(); const proceeds2 = await E(aliceWithdrawRunSeat).getPayouts(); t.deepEqual(lentAmount2, additionalMinted, '100 RUN'); @@ -1195,9 +1194,8 @@ test('overdeposit', async t => { debtAmount = await E(aliceVault).getCurrentDebt(); t.deepEqual(debtAmount, run.makeEmpty()); - const { Minted: lentAmount5 } = await E( - aliceOverpaySeat, - ).getFinalAllocation(); + const { Minted: lentAmount5 } = + await E(aliceOverpaySeat).getFinalAllocation(); const proceeds5 = await E(aliceOverpaySeat).getPayouts(); t.deepEqual(lentAmount5, run.make(750n)); @@ -1283,9 +1281,8 @@ test('collect fees from vault', async t => { aliceRunDebtLevel, 'vault lent 5000 Minted + fees', ); - const { Minted: aliceLentAmount } = await E( - aliceVaultSeat, - ).getFinalAllocation(); + const { Minted: aliceLentAmount } = + await E(aliceVaultSeat).getFinalAllocation(); const aliceProceeds = await E(aliceVaultSeat).getPayouts(); t.deepEqual(aliceLentAmount, aliceWantMinted, 'received 5000 Minted'); trace(t, 'alice vault'); diff --git a/packages/inter-protocol/test/vaultFactory/test-vaultLiquidation.js b/packages/inter-protocol/test/vaultFactory/test-vaultLiquidation.js index 42cbc9cbc81..80dfcb83268 100644 --- a/packages/inter-protocol/test/vaultFactory/test-vaultLiquidation.js +++ b/packages/inter-protocol/test/vaultFactory/test-vaultLiquidation.js @@ -754,9 +754,8 @@ test('liquidate two loans', async t => { aliceRunDebtLevel, 'vault lent 5000 Minted + fees', ); - const { Minted: aliceLentAmount } = await E( - aliceVaultSeat, - ).getFinalAllocation(); + const { Minted: aliceLentAmount } = + await E(aliceVaultSeat).getFinalAllocation(); const aliceProceeds = await E(aliceVaultSeat).getPayouts(); t.deepEqual(aliceLentAmount, aliceWantMinted, 'received 5000 Minted'); trace(t, 'alice vault'); @@ -1078,9 +1077,8 @@ test('sell goods at auction', async t => { aliceRunDebtLevel, 'vault lent 5000 Minted + fees', ); - const { Minted: aliceLentAmount } = await E( - aliceVaultSeat, - ).getFinalAllocation(); + const { Minted: aliceLentAmount } = + await E(aliceVaultSeat).getFinalAllocation(); const aliceProceeds = await E(aliceVaultSeat).getPayouts(); t.deepEqual(aliceLentAmount, aliceWantMinted, 'received 5000 Minted'); @@ -1291,9 +1289,8 @@ test('collect fees from loan', async t => { aliceRunDebtLevel, 'vault lent 5000 Minted + fees', ); - const { Minted: aliceLentAmount } = await E( - aliceVaultSeat, - ).getFinalAllocation(); + const { Minted: aliceLentAmount } = + await E(aliceVaultSeat).getFinalAllocation(); const aliceProceeds = await E(aliceVaultSeat).getPayouts(); t.deepEqual(aliceLentAmount, aliceWantMinted, 'received 5000 Minted'); trace(t, 'alice vault'); @@ -1531,9 +1528,8 @@ test('Auction sells all collateral w/shortfall', async t => { aliceRunDebtLevel, 'vault lent 5000 Minted + fees', ); - const { Minted: aliceLentAmount } = await E( - aliceVaultSeat, - ).getFinalAllocation(); + const { Minted: aliceLentAmount } = + await E(aliceVaultSeat).getFinalAllocation(); const aliceProceeds = await E(aliceVaultSeat).getPayouts(); t.deepEqual(aliceLentAmount, aliceWantMinted, 'received 5000 Minted'); trace(t, 'alice vault'); @@ -1716,9 +1712,8 @@ test('liquidation Margin matters', async t => { aliceRunDebtLevel, 'vault lent 5000 Minted + fees', ); - const { Minted: aliceLentAmount } = await E( - aliceVaultSeat, - ).getFinalAllocation(); + const { Minted: aliceLentAmount } = + await E(aliceVaultSeat).getFinalAllocation(); const aliceProceeds = await E(aliceVaultSeat).getPayouts(); t.deepEqual(aliceLentAmount, aliceWantMinted, 'received 95 Minted'); @@ -1842,9 +1837,8 @@ test('reinstate vault', async t => { aliceRunDebtLevel, 'vault lent 5000 Minted + fees', ); - const { Minted: aliceLentAmount } = await E( - aliceVaultSeat, - ).getFinalAllocation(); + const { Minted: aliceLentAmount } = + await E(aliceVaultSeat).getFinalAllocation(); const aliceProceeds = await E(aliceVaultSeat).getPayouts(); t.deepEqual(aliceLentAmount, aliceWantMinted, 'received 95 Minted'); @@ -2173,9 +2167,8 @@ test('Bug 7422 vault reinstated with no assets', async t => { totalDebt: { value: 332n }, }); - const { Minted: aliceLentAmount } = await E( - aliceVaultSeat, - ).getFinalAllocation(); + const { Minted: aliceLentAmount } = + await E(aliceVaultSeat).getFinalAllocation(); const aliceProceeds = await E(aliceVaultSeat).getPayouts(); t.deepEqual(aliceLentAmount, aliceWantMinted, 'received 95 Minted'); @@ -2413,9 +2406,8 @@ test('Bug 7346 excess collateral to holder', async t => { totalDebt: { value: totalDebt }, }); - const { Minted: aliceLentAmount } = await E( - aliceVaultSeat, - ).getFinalAllocation(); + const { Minted: aliceLentAmount } = + await E(aliceVaultSeat).getFinalAllocation(); const aliceProceeds = await E(aliceVaultSeat).getPayouts(); t.deepEqual(aliceLentAmount, aliceWantMinted, 'received 95 Minted'); @@ -2861,9 +2853,8 @@ test('Bug 7784 reconstitute both', async t => { totalDebt: { value: 309_540n }, }); - const { Minted: aliceLentAmount } = await E( - aliceVaultSeat, - ).getFinalAllocation(); + const { Minted: aliceLentAmount } = + await E(aliceVaultSeat).getFinalAllocation(); const aliceProceeds = await E(aliceVaultSeat).getPayouts(); t.deepEqual(aliceLentAmount, aliceWantMinted, 'received 95 Minted'); @@ -3084,9 +3075,8 @@ test('Bug 7796 missing lockedPrice', async t => { totalDebt: { value: totalDebt }, }); - const { Minted: aliceLentAmount } = await E( - aliceVaultSeat, - ).getFinalAllocation(); + const { Minted: aliceLentAmount } = + await E(aliceVaultSeat).getFinalAllocation(); const aliceProceeds = await E(aliceVaultSeat).getPayouts(); t.deepEqual(aliceLentAmount, aliceWantMinted, 'received 95 Minted'); @@ -3331,9 +3321,8 @@ test('Bug 7851 & no bidders', async t => { totalDebt: { value: aliceDebt }, }); - const { Minted: aliceLentAmount } = await E( - aliceVaultSeat, - ).getFinalAllocation(); + const { Minted: aliceLentAmount } = + await E(aliceVaultSeat).getFinalAllocation(); const aliceProceeds = await E(aliceVaultSeat).getPayouts(); t.deepEqual(aliceLentAmount, aliceWantMinted, 'received 95 Minted'); diff --git a/packages/pegasus/src/pegasus.js b/packages/pegasus/src/pegasus.js index 327a91eb1d1..0ae510edcbd 100644 --- a/packages/pegasus/src/pegasus.js +++ b/packages/pegasus/src/pegasus.js @@ -384,9 +384,8 @@ const makePegasus = (zcf, board, namesByAddress) => { async onReceive(c, packetBytes) { const doReceive = async () => { // Dispatch the packet to the appropriate Peg for this connection. - const parts = await E(transferProtocol).parseTransferPacket( - packetBytes, - ); + const parts = + await E(transferProtocol).parseTransferPacket(packetBytes); const { remoteDenom: receiveDenom } = parts; assert.typeof(receiveDenom, 'string'); diff --git a/packages/pegasus/test/test-peg.js b/packages/pegasus/test/test-peg.js index fed60c34708..bf8fcccfd82 100644 --- a/packages/pegasus/test/test-peg.js +++ b/packages/pegasus/test/test-peg.js @@ -130,9 +130,8 @@ async function testRemotePeg(t) { ); // Pretend we're Agoric. - const { handler: chandler, subscription: connectionSubscription } = await E( - pegasus, - ).makePegasusConnectionKit(); + const { handler: chandler, subscription: connectionSubscription } = + await E(pegasus).makePegasusConnectionKit(); const connP = E(portP).connect(portName, chandler); // Get some local Atoms. diff --git a/packages/smart-wallet/src/offers.js b/packages/smart-wallet/src/offers.js index 92e66597e5f..10b4848fa68 100644 --- a/packages/smart-wallet/src/offers.js +++ b/packages/smart-wallet/src/offers.js @@ -86,9 +86,8 @@ export const makeOfferExecutor = ({ deeplyFulfilledObject(paymentsManager.withdrawGive(proposal.give))); const invitation = invitationFromSpec(invitationSpec); - const invitationAmount = await E(invitationIssuer).getAmountOf( - invitation, - ); + const invitationAmount = + await E(invitationIssuer).getAmountOf(invitation); // 2. Begin executing offer // No explicit signal to user that we reached here but if anything above diff --git a/packages/smart-wallet/test/swingsetTests/upgradeWalletFactory/bootstrap-walletFactory-service-upgrade.js b/packages/smart-wallet/test/swingsetTests/upgradeWalletFactory/bootstrap-walletFactory-service-upgrade.js index 4dc9344ddc0..127a465cdbe 100644 --- a/packages/smart-wallet/test/swingsetTests/upgradeWalletFactory/bootstrap-walletFactory-service-upgrade.js +++ b/packages/smart-wallet/test/swingsetTests/upgradeWalletFactory/bootstrap-walletFactory-service-upgrade.js @@ -67,12 +67,10 @@ export const buildRootObject = async () => { v1BundleId || Fail`bundleId must not be empty`; installation = await E(zoe).installBundleID(v1BundleId); - const autoRefundBundleId = await E(vatAdmin).getBundleIDByName( - 'automaticRefund', - ); - const autoRefundInstallation = await E(zoe).installBundleID( - autoRefundBundleId, - ); + const autoRefundBundleId = + await E(vatAdmin).getBundleIDByName('automaticRefund'); + const autoRefundInstallation = + await E(zoe).installBundleID(autoRefundBundleId); const { instance } = await E(zoe).startInstance(autoRefundInstallation, { Moola: moolaKit.issuer, }); diff --git a/packages/solo/src/chain-cosmos-sdk.js b/packages/solo/src/chain-cosmos-sdk.js index c4f4c3342be..573ef533645 100644 --- a/packages/solo/src/chain-cosmos-sdk.js +++ b/packages/solo/src/chain-cosmos-sdk.js @@ -727,9 +727,8 @@ ${chainID} chain does not yet know of address ${clientAddr}${adviseEgress( * @param {bigint} [lastMailboxUpdate] */ const recurseEachMailboxUpdate = async (lastMailboxUpdate = undefined) => { - const { updateCount, value: mailbox } = await mbNotifier.getUpdateSince( - lastMailboxUpdate, - ); + const { updateCount, value: mailbox } = + await mbNotifier.getUpdateSince(lastMailboxUpdate); updateCount || Fail`${GCI} unexpectedly finished!`; if (mailbox) { const { outbox, ack } = mailbox; diff --git a/packages/solo/test/test-home.js b/packages/solo/test/test-home.js index 246fd5caa58..9821f264c9b 100644 --- a/packages/solo/test/test-home.js +++ b/packages/solo/test/test-home.js @@ -95,9 +95,8 @@ test.serial('home.wallet - receive zoe invite', async t => { '@agoric/zoe/src/contracts/automaticRefund.js', ); const installationHandle = await E(zoe).install(bundle); - const { creatorInvitation: invite } = await E(zoe).startInstance( - installationHandle, - ); + const { creatorInvitation: invite } = + await E(zoe).startInstance(installationHandle); // Check that the wallet knows about the Zoe invite issuer and starts out // with a default Zoe invite issuer purse. diff --git a/packages/swingset-runner/demo/zoeTests/vat-alice.js b/packages/swingset-runner/demo/zoeTests/vat-alice.js index 8c5f786d13d..ffedcdbcb5e 100644 --- a/packages/swingset-runner/demo/zoeTests/vat-alice.js +++ b/packages/swingset-runner/demo/zoeTests/vat-alice.js @@ -477,9 +477,8 @@ const build = async (log, zoe, issuers, payments, installations, timer) => { await E(bobP).doOTCDesk(bobInvitation); // Remove Inventory - const removeInventoryInvitation = await E( - creatorFacet, - ).makeRemoveInventoryInvitation(); + const removeInventoryInvitation = + await E(creatorFacet).makeRemoveInventoryInvitation(); // Intentionally do not remove it all const removeInventoryProposal = harden({ want: { Simolean: simoleans(2n) }, @@ -488,9 +487,8 @@ const build = async (log, zoe, issuers, payments, installations, timer) => { removeInventoryInvitation, removeInventoryProposal, ); - const removeInventoryOfferResult = await E( - removeInventorySeat, - ).getOfferResult(); + const removeInventoryOfferResult = + await E(removeInventorySeat).getOfferResult(); log(removeInventoryOfferResult); const simoleanPayout = await E(removeInventorySeat).getPayout('Simolean'); diff --git a/packages/swingset-runner/demo/zoeTests/vat-bob.js b/packages/swingset-runner/demo/zoeTests/vat-bob.js index c1306a4543d..cba3b8f0acd 100644 --- a/packages/swingset-runner/demo/zoeTests/vat-bob.js +++ b/packages/swingset-runner/demo/zoeTests/vat-bob.js @@ -81,9 +81,8 @@ const build = async (log, zoe, issuers, payments, installations, timer) => { }); // Bob checks that the invitation is for the right covered call - const { value: optionValue } = await E(invitationIssuer).getAmountOf( - exclInvitation, - ); + const { value: optionValue } = + await E(invitationIssuer).getAmountOf(exclInvitation); const { customDetails } = optionValue[0]; assert(typeof customDetails === 'object'); installation === installations.coveredCall || Fail`wrong installation`; @@ -137,14 +136,12 @@ const build = async (log, zoe, issuers, payments, installations, timer) => { invitation, ); - const { UnderlyingAsset, StrikePrice } = await E(zoe).getIssuers( - instance, - ); + const { UnderlyingAsset, StrikePrice } = + await E(zoe).getIssuers(instance); // Bob checks that the invitation is for the right covered call - const optionAmounts = await E(invitationIssuer).getAmountOf( - exclInvitation, - ); + const optionAmounts = + await E(invitationIssuer).getAmountOf(exclInvitation); const optionValue = optionAmounts.value; const { customDetails } = optionValue[0]; assert(typeof customDetails === 'object'); @@ -214,9 +211,8 @@ const build = async (log, zoe, issuers, payments, installations, timer) => { E(invitationIssuer).makeEmptyPurse(), invitation, ); - const { value: invitationValue } = await E(invitationIssuer).getAmountOf( - exclInvitation, - ); + const { value: invitationValue } = + await E(invitationIssuer).getAmountOf(exclInvitation); installation === installations.secondPriceAuction || Fail`wrong installation`; keyEQ( @@ -261,9 +257,8 @@ const build = async (log, zoe, issuers, payments, installations, timer) => { E(invitationIssuer).makeEmptyPurse(), invitation, ); - const { value: invitationValue } = await E(invitationIssuer).getAmountOf( - exclInvitation, - ); + const { value: invitationValue } = + await E(invitationIssuer).getAmountOf(exclInvitation); installation === installations.atomicSwap || Fail`wrong installation`; assert( keyEQ( diff --git a/packages/swingset-runner/demo/zoeTests/vat-carol.js b/packages/swingset-runner/demo/zoeTests/vat-carol.js index 4b368b9520e..aac126c06a2 100644 --- a/packages/swingset-runner/demo/zoeTests/vat-carol.js +++ b/packages/swingset-runner/demo/zoeTests/vat-carol.js @@ -25,9 +25,8 @@ const build = async (log, zoe, issuers, payments, installations) => { const instance = await E(zoe).getInstance(invitation); const installation = await E(zoe).getInstallation(invitation); const issuerKeywordRecord = await E(zoe).getIssuers(instance); - const { value: invitationValue } = await E(invitationIssuer).getAmountOf( - invitation, - ); + const { value: invitationValue } = + await E(invitationIssuer).getAmountOf(invitation); installation === installations.secondPriceAuction || Fail`wrong installation`; keyEQ( diff --git a/packages/swingset-runner/demo/zoeTests/vat-dave.js b/packages/swingset-runner/demo/zoeTests/vat-dave.js index ee50b1a7a29..f65526d7908 100644 --- a/packages/swingset-runner/demo/zoeTests/vat-dave.js +++ b/packages/swingset-runner/demo/zoeTests/vat-dave.js @@ -26,9 +26,8 @@ const build = async (log, zoe, issuers, payments, installations, timer) => { E(invitationIssuer).makeEmptyPurse(), invitation, ); - const { value: invitationValue } = await E(invitationIssuer).getAmountOf( - exclInvitation, - ); + const { value: invitationValue } = + await E(invitationIssuer).getAmountOf(exclInvitation); installation === installations.secondPriceAuction || Fail`wrong installation`; keyEQ( @@ -77,9 +76,8 @@ const build = async (log, zoe, issuers, payments, installations, timer) => { E(invitationIssuer).makeEmptyPurse(), invitation, ); - const { value: invitationValue } = await E(invitationIssuer).getAmountOf( - exclInvitation, - ); + const { value: invitationValue } = + await E(invitationIssuer).getAmountOf(exclInvitation); // TODO Check the integrity of the installation by its hash. // https://github.com/Agoric/agoric-sdk/issues/3859 diff --git a/packages/vats/src/core/lib-boot.js b/packages/vats/src/core/lib-boot.js index 9dfa3be0a1e..84cfad1d897 100644 --- a/packages/vats/src/core/lib-boot.js +++ b/packages/vats/src/core/lib-boot.js @@ -100,9 +100,8 @@ export const makeBootstrap = ( ); const namesVat = namedVat.consume.agoricNames; - const { nameHub: agoricNames, nameAdmin: agoricNamesAdmin } = await E( - namesVat, - ).getNameHubKit(); + const { nameHub: agoricNames, nameAdmin: agoricNamesAdmin } = + await E(namesVat).getNameHubKit(); const spaces = await makeWellKnownSpaces(agoricNamesAdmin, log); produce.agoricNames.resolve(agoricNames); produce.agoricNamesAdmin.resolve(agoricNamesAdmin); diff --git a/packages/vats/src/vat-agoricNames.js b/packages/vats/src/vat-agoricNames.js index 1548c8b9923..9b32d9cb27f 100644 --- a/packages/vats/src/vat-agoricNames.js +++ b/packages/vats/src/vat-agoricNames.js @@ -62,9 +62,8 @@ export const buildRootObject = (_vatPowers, _vatParameters, baggage) => { const kindAdmin = await E(agoricNamesAdmin).lookupAdmin(kind); const kindNode = await E(nameStorage).makeChildNode(kind); - const recorderKit = await E(vatBoard).makePublishingRecorderKit( - kindNode, - ); + const recorderKit = + await E(vatBoard).makePublishingRecorderKit(kindNode); kindAdmin.onUpdate(recorderKit.recorder); }), ); diff --git a/packages/wallet/api/src/lib-wallet.js b/packages/wallet/api/src/lib-wallet.js index e25970675b5..0858ff0f971 100644 --- a/packages/wallet/api/src/lib-wallet.js +++ b/packages/wallet/api/src/lib-wallet.js @@ -503,9 +503,8 @@ export function makeWalletRoot({ const alreadyDisplayed = inboxState.has(id) && inboxState.get(id).proposalForDisplay; - const augmentedInvitationDetails = await expandInvitationBrands( - invitationDetails, - ); + const augmentedInvitationDetails = + await expandInvitationBrands(invitationDetails); const offerForDisplay = { ...offer, diff --git a/packages/wallet/api/src/wallet.js b/packages/wallet/api/src/wallet.js index bd2c8e64e7a..827ae8410f2 100644 --- a/packages/wallet/api/src/wallet.js +++ b/packages/wallet/api/src/wallet.js @@ -588,9 +588,8 @@ export function buildRootObject(vatPowers) { case 'walletGetDepositFacetId': { const { brandBoardId } = obj; - const result = await walletAdmin.getDepositFacetId( - brandBoardId, - ); + const result = + await walletAdmin.getDepositFacetId(brandBoardId); return { type: 'walletDepositFacetIdResponse', data: result, diff --git a/packages/wallet/api/test/test-lib-wallet.js b/packages/wallet/api/test/test-lib-wallet.js index 075e8be01a1..c83bb6df202 100644 --- a/packages/wallet/api/test/test-lib-wallet.js +++ b/packages/wallet/api/test/test-lib-wallet.js @@ -1636,17 +1636,14 @@ test('stamps from dateNow', async t => { const paymentNotifier = E(wallet).getPaymentsNotifier(); const date0 = currentDateMS; - const { value: val0, updateCount: count0 } = await E( - paymentNotifier, - ).getUpdateSince(); + const { value: val0, updateCount: count0 } = + await E(paymentNotifier).getUpdateSince(); await E(wallet).addPayment(pmt1); - const { value: val1a, updateCount: count1a } = await E( - paymentNotifier, - ).getUpdateSince(count0); + const { value: val1a, updateCount: count1a } = + await E(paymentNotifier).getUpdateSince(count0); E(wallet).addPayment(pmt4); - const { value: val1, updateCount: count1 } = await E( - paymentNotifier, - ).getUpdateSince(count1a); + const { value: val1, updateCount: count1 } = + await E(paymentNotifier).getUpdateSince(count1a); // Wait for tick to take effect. currentDateMS += 1234; @@ -1654,9 +1651,8 @@ test('stamps from dateNow', async t => { t.is(dateNow(), startDateMS + 1234); await E(wallet).addPayment(pmt2); - const { value: val2, updateCount: count2 } = await E( - paymentNotifier, - ).getUpdateSince(count1); + const { value: val2, updateCount: count2 } = + await E(paymentNotifier).getUpdateSince(count1); await E(wallet).addPayment(pmt3); const { value: payments } = await E(paymentNotifier).getUpdateSince(count2); diff --git a/packages/zoe/src/contractSupport/priceAuthorityTransform.js b/packages/zoe/src/contractSupport/priceAuthorityTransform.js index 862919ae712..ba5b98b50dd 100644 --- a/packages/zoe/src/contractSupport/priceAuthorityTransform.js +++ b/packages/zoe/src/contractSupport/priceAuthorityTransform.js @@ -87,9 +87,8 @@ export const makePriceAuthorityTransform = async ({ sourceBrandOut, ); - const { value: sourceQuoteValue } = await E(sourceQuoteIssuer).getAmountOf( - sourceQuotePayment, - ); + const { value: sourceQuoteValue } = + await E(sourceQuoteIssuer).getAmountOf(sourceQuotePayment); sourceQuoteValue.length === 1 || Fail`sourceQuoteValue.length ${sourceQuoteValue.length} is not 1`; diff --git a/packages/zoe/src/zoeService/offer/offer.js b/packages/zoe/src/zoeService/offer/offer.js index f34d578e171..bda08444ec5 100644 --- a/packages/zoe/src/zoeService/offer/offer.js +++ b/packages/zoe/src/zoeService/offer/offer.js @@ -24,9 +24,8 @@ export const makeOfferMethod = offerDataAccess => { ) => { const invitationIssuer = offerDataAccess.getInvitationIssuer(); const query = makeInvitationQueryFns(invitationIssuer); - const { instance, description } = await query.getInvitationDetails( - invitation, - ); + const { instance, description } = + await query.getInvitationDetails(invitation); // AWAIT /// const instanceAdmin = await offerDataAccess.getInstanceAdmin(instance); diff --git a/packages/zoe/src/zoeService/startInstance.js b/packages/zoe/src/zoeService/startInstance.js index 7f977fcd214..518e134d8f8 100644 --- a/packages/zoe/src/zoeService/startInstance.js +++ b/packages/zoe/src/zoeService/startInstance.js @@ -212,9 +212,8 @@ export const makeStartInstance = ( async upgradeContract(contractBundleId, newPrivateArgs = undefined) { const { state } = this; - const newContractBundleCap = await getBundleCapByIdNow( - contractBundleId, - ); + const newContractBundleCap = + await getBundleCapByIdNow(contractBundleId); const vatParameters = { contractBundleCap: newContractBundleCap, privateArgs: newPrivateArgs, @@ -233,9 +232,8 @@ export const makeStartInstance = ( privateArgs = undefined, instanceLabel = '', ) => { - const { installation, bundle, bundleCap } = await E( - startInstanceAccess, - ).unwrapInstallation(installationP); + const { installation, bundle, bundleCap } = + await E(startInstanceAccess).unwrapInstallation(installationP); // AWAIT /// const contractBundleCap = bundle || bundleCap; diff --git a/packages/zoe/test/swingsetTests/zoe/vat-alice.js b/packages/zoe/test/swingsetTests/zoe/vat-alice.js index 52c1b95eda8..7e6d66c74dc 100644 --- a/packages/zoe/test/swingsetTests/zoe/vat-alice.js +++ b/packages/zoe/test/swingsetTests/zoe/vat-alice.js @@ -475,9 +475,8 @@ const build = async (log, zoe, issuers, payments, installations, timer) => { await E(bobP).doOTCDesk(bobInvitation); // Remove Inventory - const removeInventoryInvitation = await E( - creatorFacet, - ).makeRemoveInventoryInvitation(); + const removeInventoryInvitation = + await E(creatorFacet).makeRemoveInventoryInvitation(); // Intentionally do not remove it all const removeInventoryProposal = harden({ want: { Simolean: simoleans(2n) }, @@ -486,9 +485,8 @@ const build = async (log, zoe, issuers, payments, installations, timer) => { removeInventoryInvitation, removeInventoryProposal, ); - const removeInventoryOfferResult = await E( - removeInventorySeat, - ).getOfferResult(); + const removeInventoryOfferResult = + await E(removeInventorySeat).getOfferResult(); log(removeInventoryOfferResult); const simoleanPayout = await E(removeInventorySeat).getPayout('Simolean'); diff --git a/packages/zoe/test/swingsetTests/zoe/vat-bob.js b/packages/zoe/test/swingsetTests/zoe/vat-bob.js index e9beed6e697..c236266ae13 100644 --- a/packages/zoe/test/swingsetTests/zoe/vat-bob.js +++ b/packages/zoe/test/swingsetTests/zoe/vat-bob.js @@ -79,9 +79,8 @@ const build = async (log, zoe, issuers, payments, installations, timer) => { }); // Bob checks that the invitation is for the right covered call - const { value: optionValue } = await E(invitationIssuer).getAmountOf( - exclInvitation, - ); + const { value: optionValue } = + await E(invitationIssuer).getAmountOf(exclInvitation); const { customDetails } = optionValue[0]; assert(typeof customDetails === 'object'); @@ -137,14 +136,12 @@ const build = async (log, zoe, issuers, payments, installations, timer) => { invitation, ); - const { UnderlyingAsset, StrikePrice } = await E(zoe).getIssuers( - instance, - ); + const { UnderlyingAsset, StrikePrice } = + await E(zoe).getIssuers(instance); // Bob checks that the invitation is for the right covered call - const optionAmounts = await E(invitationIssuer).getAmountOf( - exclInvitation, - ); + const optionAmounts = + await E(invitationIssuer).getAmountOf(exclInvitation); const optionValue = optionAmounts.value; const { customDetails } = optionValue[0]; assert(typeof customDetails === 'object'); @@ -221,9 +218,8 @@ const build = async (log, zoe, issuers, payments, installations, timer) => { E(invitationIssuer).makeEmptyPurse(), invitation, ); - const { value: invitationValue } = await E(invitationIssuer).getAmountOf( - exclInvitation, - ); + const { value: invitationValue } = + await E(invitationIssuer).getAmountOf(exclInvitation); installation === installations.secondPriceAuction || assert.fail(X`wrong installation`); assert( @@ -271,9 +267,8 @@ const build = async (log, zoe, issuers, payments, installations, timer) => { E(invitationIssuer).makeEmptyPurse(), invitation, ); - const { value: invitationValue } = await E(invitationIssuer).getAmountOf( - exclInvitation, - ); + const { value: invitationValue } = + await E(invitationIssuer).getAmountOf(exclInvitation); assert(installation === installations.atomicSwap, X`wrong installation`); assert( diff --git a/packages/zoe/test/swingsetTests/zoe/vat-carol.js b/packages/zoe/test/swingsetTests/zoe/vat-carol.js index 73ddfa01ad2..717ae70ca7e 100644 --- a/packages/zoe/test/swingsetTests/zoe/vat-carol.js +++ b/packages/zoe/test/swingsetTests/zoe/vat-carol.js @@ -23,9 +23,8 @@ const build = async (log, zoe, issuers, payments, installations) => { const instance = await E(zoe).getInstance(invitation); const installation = await E(zoe).getInstallation(invitation); const issuerKeywordRecord = await E(zoe).getIssuers(instance); - const { value: invitationValue } = await E(invitationIssuer).getAmountOf( - invitation, - ); + const { value: invitationValue } = + await E(invitationIssuer).getAmountOf(invitation); installation === installations.secondPriceAuction || assert.fail(X`wrong installation`); assert( diff --git a/packages/zoe/test/swingsetTests/zoe/vat-dave.js b/packages/zoe/test/swingsetTests/zoe/vat-dave.js index e4fd9181d5d..f6eba02fe3c 100644 --- a/packages/zoe/test/swingsetTests/zoe/vat-dave.js +++ b/packages/zoe/test/swingsetTests/zoe/vat-dave.js @@ -24,9 +24,8 @@ const build = async (log, zoe, issuers, payments, installations, timer) => { E(invitationIssuer).makeEmptyPurse(), invitation, ); - const { value: invitationValue } = await E(invitationIssuer).getAmountOf( - exclInvitation, - ); + const { value: invitationValue } = + await E(invitationIssuer).getAmountOf(exclInvitation); installation === installations.secondPriceAuction || assert.fail(X`wrong installation`); assert( @@ -78,9 +77,8 @@ const build = async (log, zoe, issuers, payments, installations, timer) => { E(invitationIssuer).makeEmptyPurse(), invitation, ); - const { value: invitationValue } = await E(invitationIssuer).getAmountOf( - exclInvitation, - ); + const { value: invitationValue } = + await E(invitationIssuer).getAmountOf(exclInvitation); // TODO Check the integrity of the installation by its hash. // https://github.com/Agoric/agoric-sdk/issues/3859 diff --git a/packages/zoe/test/unitTests/contracts/loan/test-borrow.js b/packages/zoe/test/unitTests/contracts/loan/test-borrow.js index 8b08bc9db38..2382d23fef4 100644 --- a/packages/zoe/test/unitTests/contracts/loan/test-borrow.js +++ b/packages/zoe/test/unitTests/contracts/loan/test-borrow.js @@ -173,9 +173,8 @@ test('borrow makeCloseLoanInvitation', async t => { test('borrow makeAddCollateralInvitation', async t => { const { borrowFacet, zoe } = await setupBorrowFacet(); - const addCollateralInvitation = await E( - borrowFacet, - ).makeAddCollateralInvitation(); + const addCollateralInvitation = + await E(borrowFacet).makeAddCollateralInvitation(); await checkDescription(t, zoe, addCollateralInvitation, 'addCollateral'); }); @@ -247,9 +246,8 @@ test('borrow, then addCollateral, then getLiquidationPromise', async t => { const toTS = ts => TimeMath.coerceTimestampRecord(ts, timer.getTimerBrand()); const liquidationPromise = E(borrowFacet).getLiquidationPromise(); - const addCollateralInvitation = await E( - borrowFacet, - ).makeAddCollateralInvitation(); + const addCollateralInvitation = + await E(borrowFacet).makeAddCollateralInvitation(); const addedAmount = AmountMath.make(collateralKit.brand, 3n); @@ -318,16 +316,14 @@ test('getDebtNotifier with interest', async t => { const debtNotifier = await E(borrowFacet).getDebtNotifier(); - const { value: originalDebt, updateCount } = await E( - debtNotifier, - ).getUpdateSince(); + const { value: originalDebt, updateCount } = + await E(debtNotifier).getUpdateSince(); assertAmountsEqual(t, originalDebt, maxLoan); periodUpdater.updateState(6n); - const { value: debtCompounded1, updateCount: updateCount1 } = await E( - debtNotifier, - ).getUpdateSince(updateCount); + const { value: debtCompounded1, updateCount: updateCount1 } = + await E(debtNotifier).getUpdateSince(updateCount); assertAmountsEqual( t, debtCompounded1, @@ -336,9 +332,8 @@ test('getDebtNotifier with interest', async t => { periodUpdater.updateState(11n); - const { value: debtCompounded2 } = await E(debtNotifier).getUpdateSince( - updateCount1, - ); + const { value: debtCompounded2 } = + await E(debtNotifier).getUpdateSince(updateCount1); assertAmountsEqual( t, debtCompounded2, @@ -396,16 +391,14 @@ test('aperiodic interest', async t => { const debtNotifier = await E(borrowFacet).getDebtNotifier(); - const { value: originalDebt, updateCount } = await E( - debtNotifier, - ).getUpdateSince(); + const { value: originalDebt, updateCount } = + await E(debtNotifier).getUpdateSince(); assertAmountsEqual(t, originalDebt, maxLoan); periodUpdater.updateState(6n); - const { value: debtCompounded1, updateCount: updateCount1 } = await E( - debtNotifier, - ).getUpdateSince(updateCount); + const { value: debtCompounded1, updateCount: updateCount1 } = + await E(debtNotifier).getUpdateSince(updateCount); assertAmountsEqual( t, debtCompounded1, @@ -416,9 +409,8 @@ test('aperiodic interest', async t => { periodUpdater.updateState(16n); // both debt notifications are received - const { value: debtCompounded2, updateCount: updateCount2 } = await E( - debtNotifier, - ).getUpdateSince(updateCount1); + const { value: debtCompounded2, updateCount: updateCount2 } = + await E(debtNotifier).getUpdateSince(updateCount1); t.deepEqual(await E(borrowFacet).getLastCalculationTimestamp(), toTS(16n)); assertAmountsEqual( t, @@ -427,9 +419,8 @@ test('aperiodic interest', async t => { ); periodUpdater.updateState(21n); - const { value: debtCompounded3 } = await E(debtNotifier).getUpdateSince( - updateCount2, - ); + const { value: debtCompounded3 } = + await E(debtNotifier).getUpdateSince(updateCount2); assertAmountsEqual( t, debtCompounded3, @@ -474,15 +465,13 @@ test('interest starting from non-zero time', async t => { const debtNotifier = await E(borrowFacet).getDebtNotifier(); - const { value: originalDebt, updateCount } = await E( - debtNotifier, - ).getUpdateSince(); + const { value: originalDebt, updateCount } = + await E(debtNotifier).getUpdateSince(); t.deepEqual(originalDebt, maxLoan); periodUpdater.updateState(9n); - const { value: debtCompounded2 } = await E(debtNotifier).getUpdateSince( - updateCount, - ); + const { value: debtCompounded2 } = + await E(debtNotifier).getUpdateSince(updateCount); t.deepEqual(debtCompounded2, AmountMath.make(loanKit.brand, 40020n)); t.deepEqual(await E(borrowFacet).getLastCalculationTimestamp(), toTS(9n)); }); @@ -498,18 +487,16 @@ test('short periods', async t => { const debtNotifier = await E(borrowFacet).getDebtNotifier(); - const { value: originalDebt, updateCount } = await E( - debtNotifier, - ).getUpdateSince(); + const { value: originalDebt, updateCount } = + await E(debtNotifier).getUpdateSince(); assertAmountsEqual(t, originalDebt, maxLoan); periodUpdater.updateState(5n); t.deepEqual(await E(borrowFacet).getLastCalculationTimestamp(), toTS(1n)); periodUpdater.updateState(9n); - const { value: debtCompounded1, updateCount: updateCount1 } = await E( - debtNotifier, - ).getUpdateSince(updateCount); + const { value: debtCompounded1, updateCount: updateCount1 } = + await E(debtNotifier).getUpdateSince(updateCount); assertAmountsEqual( t, debtCompounded1, @@ -518,9 +505,8 @@ test('short periods', async t => { t.deepEqual(await E(borrowFacet).getLastCalculationTimestamp(), toTS(6n)); periodUpdater.updateState(14n); - const { value: debtCompounded2, updateCount: updateCount2 } = await E( - debtNotifier, - ).getUpdateSince(updateCount1); + const { value: debtCompounded2, updateCount: updateCount2 } = + await E(debtNotifier).getUpdateSince(updateCount1); assertAmountsEqual( t, debtCompounded2, @@ -529,9 +515,8 @@ test('short periods', async t => { t.deepEqual(await E(borrowFacet).getLastCalculationTimestamp(), toTS(11n)); periodUpdater.updateState(17n); - const { value: debtCompounded3, updateCount: updateCount3 } = await E( - debtNotifier, - ).getUpdateSince(updateCount2); + const { value: debtCompounded3, updateCount: updateCount3 } = + await E(debtNotifier).getUpdateSince(updateCount2); assertAmountsEqual( t, debtCompounded3, @@ -540,9 +525,8 @@ test('short periods', async t => { t.deepEqual(await E(borrowFacet).getLastCalculationTimestamp(), toTS(16n)); periodUpdater.updateState(21n); - const { value: debtCompounded4, updateCount: updateCount4 } = await E( - debtNotifier, - ).getUpdateSince(updateCount3); + const { value: debtCompounded4, updateCount: updateCount4 } = + await E(debtNotifier).getUpdateSince(updateCount3); assertAmountsEqual( t, debtCompounded4, @@ -554,9 +538,8 @@ test('short periods', async t => { t.deepEqual(await E(borrowFacet).getLastCalculationTimestamp(), toTS(21n)); periodUpdater.updateState(29n); - const { value: debtCompounded5 } = await E(debtNotifier).getUpdateSince( - updateCount4, - ); + const { value: debtCompounded5 } = + await E(debtNotifier).getUpdateSince(updateCount4); assertAmountsEqual( t, debtCompounded5, diff --git a/packages/zoe/test/unitTests/contracts/test-auction.js b/packages/zoe/test/unitTests/contracts/test-auction.js index f2098ff3f97..4419cc8c899 100644 --- a/packages/zoe/test/unitTests/contracts/test-auction.js +++ b/packages/zoe/test/unitTests/contracts/test-auction.js @@ -226,9 +226,8 @@ test('zoe - secondPriceAuction w/ 3 bids', async t => { const { creatorInvitation } = await alice.startInstance(installation); - const { seat: aliceSeat, makeBidInvitationObj } = await alice.offer( - creatorInvitation, - ); + const { seat: aliceSeat, makeBidInvitationObj } = + await alice.offer(creatorInvitation); const bidInvitation1 = E(makeBidInvitationObj).makeBidInvitation(); const bidInvitation2 = E(makeBidInvitationObj).makeBidInvitation(); @@ -1054,9 +1053,8 @@ test('zoe - firstPriceAuction w/ 3 bids', async t => { const { creatorInvitation } = await alice.startInstance(installation); - const { seat: aliceSeat, makeBidInvitationObj } = await alice.offer( - creatorInvitation, - ); + const { seat: aliceSeat, makeBidInvitationObj } = + await alice.offer(creatorInvitation); const bidInvitation1 = E(makeBidInvitationObj).makeBidInvitation(); const bidInvitation2 = E(makeBidInvitationObj).makeBidInvitation(); diff --git a/packages/zoe/test/unitTests/contracts/test-autoswap.js b/packages/zoe/test/unitTests/contracts/test-autoswap.js index 12b9bdc94cf..eec9d18d3a4 100644 --- a/packages/zoe/test/unitTests/contracts/test-autoswap.js +++ b/packages/zoe/test/unitTests/contracts/test-autoswap.js @@ -203,9 +203,8 @@ test('autoSwap API interactions, no jig', async t => { ); // Alice removes her liquidity - const aliceSecondInvitation = await E( - publicFacet, - ).makeRemoveLiquidityInvitation(); + const aliceSecondInvitation = + await E(publicFacet).makeRemoveLiquidityInvitation(); // She's not picky... const aliceRemoveLiquidityProposal = harden({ give: { Liquidity: liquidity(10n) }, diff --git a/packages/zoe/test/unitTests/contracts/test-callSpread.js b/packages/zoe/test/unitTests/contracts/test-callSpread.js index 1b35535c471..5734238681e 100644 --- a/packages/zoe/test/unitTests/contracts/test-callSpread.js +++ b/packages/zoe/test/unitTests/contracts/test-callSpread.js @@ -95,9 +95,8 @@ test('fundedCallSpread below Strike1', async t => { terms, ); - const { customDetails } = await E(zoe).getInvitationDetails( - creatorInvitation, - ); + const { customDetails } = + await E(zoe).getInvitationDetails(creatorInvitation); assert(typeof customDetails === 'object'); const longOptionAmount = customDetails.longAmount; const shortOptionAmount = customDetails.shortAmount; @@ -203,9 +202,8 @@ test('fundedCallSpread above Strike2', async t => { terms, ); - const { customDetails } = await E(zoe).getInvitationDetails( - creatorInvitation, - ); + const { customDetails } = + await E(zoe).getInvitationDetails(creatorInvitation); assert(typeof customDetails === 'object'); const longOptionAmount = customDetails.longAmount; const shortOptionAmount = customDetails.shortAmount; @@ -310,9 +308,8 @@ test('fundedCallSpread, mid-strike', async t => { terms, ); - const { customDetails } = await E(zoe).getInvitationDetails( - creatorInvitation, - ); + const { customDetails } = + await E(zoe).getInvitationDetails(creatorInvitation); assert(typeof customDetails === 'object'); const longOptionAmount = customDetails.longAmount; const shortOptionAmount = customDetails.shortAmount; @@ -417,9 +414,8 @@ test('fundedCallSpread, late exercise', async t => { terms, ); - const { customDetails } = await E(zoe).getInvitationDetails( - creatorInvitation, - ); + const { customDetails } = + await E(zoe).getInvitationDetails(creatorInvitation); assert(typeof customDetails === 'object'); const aliceProposal = harden({ want: { @@ -526,9 +522,8 @@ test('fundedCallSpread, sell options', async t => { terms, ); - const { customDetails } = await E(zoe).getInvitationDetails( - creatorInvitation, - ); + const { customDetails } = + await E(zoe).getInvitationDetails(creatorInvitation); assert(typeof customDetails === 'object'); const longOptionAmount = customDetails.longAmount; const shortOptionAmount = customDetails.shortAmount; diff --git a/packages/zoe/test/unitTests/contracts/test-coveredCall-want-pattern.js b/packages/zoe/test/unitTests/contracts/test-coveredCall-want-pattern.js index e701ae9b642..800ffec96d5 100644 --- a/packages/zoe/test/unitTests/contracts/test-coveredCall-want-pattern.js +++ b/packages/zoe/test/unitTests/contracts/test-coveredCall-want-pattern.js @@ -41,9 +41,8 @@ test('zoe - coveredCall with swap for invitation', async t => { const coveredCallBundle = await bundleSource(coveredCallRoot); vatAdminState.installBundle('b1-coveredcall', coveredCallBundle); - const coveredCallInstallation = await E(zoe).installBundleID( - 'b1-coveredcall', - ); + const coveredCallInstallation = + await E(zoe).installBundleID('b1-coveredcall'); const atomicSwapBundle = await bundleSource(atomicSwapRoot); vatAdminState.installBundle('b1-atomicswap', atomicSwapBundle); @@ -283,9 +282,8 @@ test('zoe - coveredCall with swap for invitation', async t => { // Dave should get 3 moola, Bob should get 1 buck, and Alice // get 7 simoleans - const daveMoolaPayout = await daveCoveredCallSeat.getPayout( - 'UnderlyingAsset', - ); + const daveMoolaPayout = + await daveCoveredCallSeat.getPayout('UnderlyingAsset'); const daveSimoleanPayout = await daveCoveredCallSeat.getPayout('StrikePrice'); const aliceMoolaPayout = await aliceSeat.getPayout('UnderlyingAsset'); const aliceSimoleanPayout = await aliceSeat.getPayout('StrikePrice'); diff --git a/packages/zoe/test/unitTests/contracts/test-coveredCall.js b/packages/zoe/test/unitTests/contracts/test-coveredCall.js index 7d72d1d4b4d..12eda702891 100644 --- a/packages/zoe/test/unitTests/contracts/test-coveredCall.js +++ b/packages/zoe/test/unitTests/contracts/test-coveredCall.js @@ -237,9 +237,8 @@ test(`zoe - coveredCall - alice's deadline expires, cancelling alice and bob`, a // Pack the contract. const bundle = await bundleSource(coveredCallRoot); vatAdminState.installBundle('b1-coveredcall', bundle); - const coveredCallInstallation = await E(zoe).installBundleID( - 'b1-coveredcall', - ); + const coveredCallInstallation = + await E(zoe).installBundleID('b1-coveredcall'); const timer = buildManualTimer(t.log); const toTS = ts => TimeMath.coerceTimestampRecord(ts, timer.getTimerBrand()); @@ -379,9 +378,8 @@ test('zoe - coveredCall with swap for invitation', async t => { const coveredCallBundle = await bundleSource(coveredCallRoot); vatAdminState.installBundle('b1-coveredcall', coveredCallBundle); - const coveredCallInstallation = await E(zoe).installBundleID( - 'b1-coveredcall', - ); + const coveredCallInstallation = + await E(zoe).installBundleID('b1-coveredcall'); const atomicSwapBundle = await bundleSource(atomicSwapRoot); vatAdminState.installBundle('b1-atomicswap', atomicSwapBundle); @@ -577,9 +575,8 @@ test('zoe - coveredCall with swap for invitation', async t => { // Dave should get 3 moola, Bob should get 1 buck, and Alice // get 7 simoleans - const daveMoolaPayout = await daveCoveredCallSeat.getPayout( - 'UnderlyingAsset', - ); + const daveMoolaPayout = + await daveCoveredCallSeat.getPayout('UnderlyingAsset'); const daveSimoleanPayout = await daveCoveredCallSeat.getPayout('StrikePrice'); const aliceMoolaPayout = await aliceSeat.getPayout('UnderlyingAsset'); const aliceSimoleanPayout = await aliceSeat.getPayout('StrikePrice'); @@ -652,9 +649,8 @@ test('zoe - coveredCall with coveredCall for invitation', async t => { const bundle = await bundleSource(coveredCallRoot); vatAdminState.installBundle('b1-coveredcall', bundle); - const coveredCallInstallation = await E(zoe).installBundleID( - 'b1-coveredcall', - ); + const coveredCallInstallation = + await E(zoe).installBundleID('b1-coveredcall'); // Setup Alice // Alice starts with 3 moola @@ -835,12 +831,10 @@ test('zoe - coveredCall with coveredCall for invitation', async t => { `dave second offer accepted`, ); - const firstCoveredCallInvitation = await daveSecondCoveredCallSeat.getPayout( - 'UnderlyingAsset', - ); - const daveBucksPayout = await daveSecondCoveredCallSeat.getPayout( - 'StrikePrice', - ); + const firstCoveredCallInvitation = + await daveSecondCoveredCallSeat.getPayout('UnderlyingAsset'); + const daveBucksPayout = + await daveSecondCoveredCallSeat.getPayout('StrikePrice'); // Dave exercises his option by making an offer to the covered // call. First, he escrows with Zoe. @@ -867,12 +861,10 @@ test('zoe - coveredCall with coveredCall for invitation', async t => { // Dave should get 3 moola, Bob should get 1 buck, and Alice // get 7 simoleans - const daveMoolaPayout = await daveFirstCoveredCallSeat.getPayout( - 'UnderlyingAsset', - ); - const daveSimoleanPayout = await daveFirstCoveredCallSeat.getPayout( - 'StrikePrice', - ); + const daveMoolaPayout = + await daveFirstCoveredCallSeat.getPayout('UnderlyingAsset'); + const daveSimoleanPayout = + await daveFirstCoveredCallSeat.getPayout('StrikePrice'); const aliceMoolaPayout = await aliceSeat.getPayout('UnderlyingAsset'); const aliceSimoleanPayout = await aliceSeat.getPayout('StrikePrice'); @@ -943,9 +935,8 @@ test('zoe - coveredCall non-fungible', async t => { const bundle = await bundleSource(coveredCallRoot); vatAdminState.installBundle('b1-coveredcall', bundle); - const coveredCallInstallation = await E(zoe).installBundleID( - 'b1-coveredcall', - ); + const coveredCallInstallation = + await E(zoe).installBundleID('b1-coveredcall'); const timer = buildManualTimer(t.log); const toTS = ts => TimeMath.coerceTimestampRecord(ts, timer.getTimerBrand()); diff --git a/packages/zoe/test/unitTests/contracts/test-mintPayments.js b/packages/zoe/test/unitTests/contracts/test-mintPayments.js index ce5eeca58e6..b6c29c4821c 100644 --- a/packages/zoe/test/unitTests/contracts/test-mintPayments.js +++ b/packages/zoe/test/unitTests/contracts/test-mintPayments.js @@ -164,9 +164,8 @@ test('zoe - mint payments with unrelated give and want', async t => { const tokenBrand = await E(tokenIssuer).getBrand(); const tokens1000 = await AmountMath.make(tokenBrand, 1000n); - const tokenPayoutAmount = await E(tokenIssuer).getAmountOf( - tokenPaymentP, - ); + const tokenPayoutAmount = + await E(tokenIssuer).getAmountOf(tokenPaymentP); // Bob got 1000 tokens t.deepEqual(tokenPayoutAmount, tokens1000); diff --git a/packages/zoe/test/unitTests/contracts/test-priceAggregator.js b/packages/zoe/test/unitTests/contracts/test-priceAggregator.js index 540c9b4c7c0..ad478c62660 100644 --- a/packages/zoe/test/unitTests/contracts/test-priceAggregator.js +++ b/packages/zoe/test/unitTests/contracts/test-priceAggregator.js @@ -470,17 +470,15 @@ test('oracle invitation', async t => { await E(oracleTimer).tick(); await E(oracleTimer).tick(); await E(oracleTimer).tick(); - const { value: value1, updateCount: uc1 } = await E( - notifier, - ).getUpdateSince(); + const { value: value1, updateCount: uc1 } = + await E(notifier).getUpdateSince(); t.deepEqual(value1.quoteAmount.value, makeQuoteValue(3n, 1_234_000_000n)); updater1.updateState('1234.567'); await E(oracleTimer).tick(); await E(oracleTimer).tick(); - const { value: value2, updateCount: uc2 } = await E(notifier).getUpdateSince( - uc1, - ); + const { value: value2, updateCount: uc2 } = + await E(notifier).getUpdateSince(uc1); t.deepEqual(value2.quoteAmount.value, makeQuoteValue(5n, 1_234_567_000n)); const inv2 = await E(aggregator.creatorFacet).makeOracleInvitation('oracle2'); @@ -495,9 +493,8 @@ test('oracle invitation', async t => { await E(oracleTimer).tick(); await E(oracleTimer).tick(); await E(oracleTimer).tick(); - const { value: value3, updateCount: uc3 } = await E(notifier).getUpdateSince( - uc2, - ); + const { value: value3, updateCount: uc3 } = + await E(notifier).getUpdateSince(uc2); // Check median calculation of two oracles. const price1 = parseRatio('1234.567', brandOut, brandIn); @@ -515,27 +512,24 @@ test('oracle invitation', async t => { updater2.updateState('1234'); await E(oracleTimer).tick(); - const { value: value4, updateCount: uc4 } = await E(notifier).getUpdateSince( - uc3, - ); + const { value: value4, updateCount: uc4 } = + await E(notifier).getUpdateSince(uc3); t.deepEqual(value4.quoteAmount.value, makeQuoteValue(9n, 1_234_000n)); updater2.updateState('1234.567890'); await eventLoopIteration(); // pretend this is a new kernel delivery await E(oracleTimer).tick(); - const { value: value5, updateCount: uc5 } = await E(notifier).getUpdateSince( - uc4, - ); + const { value: value5, updateCount: uc5 } = + await E(notifier).getUpdateSince(uc4); t.deepEqual(value5.quoteAmount.value, makeQuoteValue(10n, 1_234_567n)); updater2.updateState(makeRatio(987_654n, brandOut, 500_000n, brandIn)); await eventLoopIteration(); // pretend this is a new kernel delivery await E(oracleTimer).tick(); - const { value: value6, updateCount: _uc6 } = await E(notifier).getUpdateSince( - uc5, - ); + const { value: value6, updateCount: _uc6 } = + await E(notifier).getUpdateSince(uc5); t.deepEqual(value6.quoteAmount.value, makeQuoteValue(11n, 987_654n * 2n)); await E(E.get(oracleAdmin2).admin).delete(); diff --git a/packages/zoe/test/unitTests/contracts/test-sellTickets.js b/packages/zoe/test/unitTests/contracts/test-sellTickets.js index 7dbe368ca50..32fe86deb9b 100644 --- a/packages/zoe/test/unitTests/contracts/test-sellTickets.js +++ b/packages/zoe/test/unitTests/contracts/test-sellTickets.js @@ -262,9 +262,8 @@ test(`mint and sell opera tickets`, async t => { ); const aliceTickets = seat.getPayout('Items'); - const aliceBoughtTicketAmount = await E(ticketIssuer).getAmountOf( - aliceTickets, - ); + const aliceBoughtTicketAmount = + await E(ticketIssuer).getAmountOf(aliceTickets); t.is( aliceBoughtTicketAmount.value[0].show, @@ -290,9 +289,8 @@ test(`mint and sell opera tickets`, async t => { const { value: [{ instance: ticketSalesInstance }], } = await E(invitationIssuer).getAmountOf(invitation); - const ticketSalesPublicFacet = await E(zoe).getPublicFacet( - ticketSalesInstance, - ); + const ticketSalesPublicFacet = + await E(zoe).getPublicFacet(ticketSalesInstance); const ticketIssuer = await E(ticketSalesPublicFacet).getItemsIssuer(); const ticketBrand = await E(ticketIssuer).getBrand(); @@ -366,9 +364,8 @@ test(`mint and sell opera tickets`, async t => { const { value: [{ instance: ticketSalesInstance }], } = await E(invitationIssuer).getAmountOf(invitation); - const ticketSalesPublicFacet = await E(zoe).getPublicFacet( - ticketSalesInstance, - ); + const ticketSalesPublicFacet = + await E(zoe).getPublicFacet(ticketSalesInstance); const ticketIssuer = await E(ticketSalesPublicFacet).getItemsIssuer(); const ticketBrand = await E(ticketIssuer).getBrand(); @@ -436,9 +433,8 @@ test(`mint and sell opera tickets`, async t => { const { value: [{ instance: ticketSalesInstance }], } = await E(invitationIssuer).getAmountOf(invitation); - const ticketSalesPublicFacet = await E(zoe).getPublicFacet( - ticketSalesInstance, - ); + const ticketSalesPublicFacet = + await E(zoe).getPublicFacet(ticketSalesInstance); const terms = await E(zoe).getTerms(ticketSalesInstance); const ticketIssuer = await E(ticketSalesPublicFacet).getItemsIssuer(); const ticketBrand = await E(ticketIssuer).getBrand(); diff --git a/packages/zoe/test/unitTests/test-issuerStorage.js b/packages/zoe/test/unitTests/test-issuerStorage.js index 2696e1c0620..9e97ca69d03 100644 --- a/packages/zoe/test/unitTests/test-issuerStorage.js +++ b/packages/zoe/test/unitTests/test-issuerStorage.js @@ -99,16 +99,14 @@ test(`storeIssuerKeywordRecord, twice`, async t => { Ticket: ticketKit.issuer, }); - const { issuers, brands } = await storeIssuerKeywordRecord( - issuerKeywordRecord, - ); + const { issuers, brands } = + await storeIssuerKeywordRecord(issuerKeywordRecord); t.deepEqual(issuers, issuerKeywordRecord); t.deepEqual(brands, { Stable: stableKit.brand, Ticket: ticketKit.brand }); - const { issuers: issuers2, brands: brands2 } = await storeIssuerKeywordRecord( - issuerKeywordRecord, - ); + const { issuers: issuers2, brands: brands2 } = + await storeIssuerKeywordRecord(issuerKeywordRecord); t.deepEqual(issuers2, issuerKeywordRecord); t.deepEqual(brands2, { diff --git a/packages/zoe/test/unitTests/test-zoe.js b/packages/zoe/test/unitTests/test-zoe.js index 931075830a4..6d98ddec86c 100644 --- a/packages/zoe/test/unitTests/test-zoe.js +++ b/packages/zoe/test/unitTests/test-zoe.js @@ -272,9 +272,8 @@ test(`zoe.getInstallationForInstance`, async t => { }, ); - const installationReturned = await E(zoe).getInstallationForInstance( - instance, - ); + const installationReturned = + await E(zoe).getInstallationForInstance(instance); t.is(installation, installationReturned); }); diff --git a/packages/zoe/test/unitTests/zoe/test-installationStorage.js b/packages/zoe/test/unitTests/zoe/test-installationStorage.js index ad0085f19f7..860a6b47177 100644 --- a/packages/zoe/test/unitTests/zoe/test-installationStorage.js +++ b/packages/zoe/test/unitTests/zoe/test-installationStorage.js @@ -85,16 +85,14 @@ test('install several', async t => { const fakeBundle2 = {}; const installation1 = await installationStorage.installBundle(fakeBundle1); - const unwrapped1 = await installationStorage.unwrapInstallation( - installation1, - ); + const unwrapped1 = + await installationStorage.unwrapInstallation(installation1); t.is(unwrapped1.installation, installation1); t.deepEqual(unwrapped1.bundle, fakeBundle1); const installation2 = await installationStorage.installBundle(fakeBundle2); - const unwrapped2 = await installationStorage.unwrapInstallation( - installation2, - ); + const unwrapped2 = + await installationStorage.unwrapInstallation(installation2); t.is(unwrapped2.installation, installation2); t.deepEqual(unwrapped2.bundle, fakeBundle2); }); @@ -109,9 +107,8 @@ test('install same twice', async t => { const fakeBundle1 = {}; const installation1 = await installationStorage.installBundle(fakeBundle1); - const unwrapped1 = await installationStorage.unwrapInstallation( - installation1, - ); + const unwrapped1 = + await installationStorage.unwrapInstallation(installation1); t.is(unwrapped1.installation, installation1); t.deepEqual(unwrapped1.bundle, fakeBundle1); @@ -119,9 +116,8 @@ test('install same twice', async t => { // but the installation is different. Zoe does not currently care about // duplicate bundles. const installation2 = await installationStorage.installBundle(fakeBundle1); - const unwrapped2 = await installationStorage.unwrapInstallation( - installation2, - ); + const unwrapped2 = + await installationStorage.unwrapInstallation(installation2); t.is(unwrapped2.installation, installation2); t.not(installation2, installation1); t.deepEqual(unwrapped2.bundle, fakeBundle1); @@ -130,15 +126,13 @@ test('install same twice', async t => { const installation3 = await installationStorage.installBundleID('id'); const installation4 = await installationStorage.installBundleID('id'); t.not(installation3, installation4); - const unwrapped3 = await installationStorage.unwrapInstallation( - installation3, - ); + const unwrapped3 = + await installationStorage.unwrapInstallation(installation3); t.is(unwrapped3.installation, installation3); t.is(unwrapped3.bundleID, 'id'); t.is(unwrapped3.bundleCap, bundleCaps.id); - const unwrapped4 = await installationStorage.unwrapInstallation( - installation4, - ); + const unwrapped4 = + await installationStorage.unwrapInstallation(installation4); t.is(unwrapped4.installation, installation4); t.is(unwrapped4.bundleID, 'id'); t.is(unwrapped4.bundleCap, bundleCaps.id); diff --git a/yarn.lock b/yarn.lock index e9ac9cedc9f..8c292fcbd98 100644 --- a/yarn.lock +++ b/yarn.lock @@ -421,11 +421,6 @@ "@endo/zip" "^0.2.35" ses "^0.18.8" -"@endo/env-options@^0.1.1": - version "0.1.1" - resolved "https://registry.yarnpkg.com/@endo/env-options/-/env-options-0.1.1.tgz#568e37d9be2cbbcb39de3c0bc717a9d8e2d55e6d" - integrity sha512-QlY6Z2r/izom+wZI0vQtU6yQf5V/EGRMwcqacmZv6j3e9bcYGZbG0ikoa8E155XETKr551BALlJhculBvlBLpg== - "@endo/env-options@^0.1.4": version "0.1.4" resolved "https://registry.yarnpkg.com/@endo/env-options/-/env-options-0.1.4.tgz#e516bc3864f00b154944e444fb8996a9a0c23a45" @@ -441,13 +436,6 @@ tsutils "~3.21.0" typescript "~5.2.2" -"@endo/eventual-send@^0.17.3": - version "0.17.3" - resolved "https://registry.yarnpkg.com/@endo/eventual-send/-/eventual-send-0.17.3.tgz#f9892186a7fb7a094cb2fd0c5edc9152dd63286f" - integrity sha512-lr1IMxXQXtJ95t1HI02gF+oStZwhF+rb+AxGqMWS+F+xjrEWSficlRTtEq/yIr9NE3a50XLlv0rdiBCQgs+MfA== - dependencies: - "@endo/env-options" "^0.1.1" - "@endo/eventual-send@^0.17.5", "@endo/eventual-send@^0.17.6": version "0.17.6" resolved "https://registry.yarnpkg.com/@endo/eventual-send/-/eventual-send-0.17.6.tgz#86719e4e3ff76991c49f6680309dc77dff65fe55" @@ -465,7 +453,7 @@ "@endo/pass-style" "^0.1.7" "@endo/patterns" "^0.2.6" -"@endo/far@^0.2.21", "@endo/far@^0.2.22": +"@endo/far@^0.2.21", "@endo/far@^0.2.22", "@endo/far@^0.2.3": version "0.2.22" resolved "https://registry.yarnpkg.com/@endo/far/-/far-0.2.22.tgz#fda187289a903ee3f9d6dcc5664ee7fef1994b1f" integrity sha512-LFOicqyHslKOSk/H5EfGOcw347ftDSwYHARPasnrG4UJOEkcU1ZG5bN/BmfONtcidB776gWZKrV/tNl4WLIlyw== @@ -473,14 +461,6 @@ "@endo/eventual-send" "^0.17.6" "@endo/pass-style" "^0.1.7" -"@endo/far@^0.2.3": - version "0.2.19" - resolved "https://registry.yarnpkg.com/@endo/far/-/far-0.2.19.tgz#ae2d4e4426990174e0c9397a4b92aa7543d27e89" - integrity sha512-vX1kL+oskiyKSpRwW3HOwtpGFto3svj35jtx5AheVXmk34i+Uehpt8uS90HHX+OtrL0+yUMLKRWHCMMzDpJafg== - dependencies: - "@endo/eventual-send" "^0.17.3" - "@endo/pass-style" "^0.1.4" - "@endo/import-bundle@^0.4.1": version "0.4.2" resolved "https://registry.yarnpkg.com/@endo/import-bundle/-/import-bundle-0.4.2.tgz#de047f83aa22a7a3d94b0bbef4bcc5dff8b369cf" @@ -532,14 +512,6 @@ "@endo/stream" "^0.3.29" ses "^0.18.8" -"@endo/pass-style@^0.1.4": - version "0.1.4" - resolved "https://registry.yarnpkg.com/@endo/pass-style/-/pass-style-0.1.4.tgz#e46cf77bfd5310fcbdd90553bdefad17a53c2fe0" - integrity sha512-WPhPzfrmpw5goLQz1MUQJuml2FkjhrjeSvgQe9Ml7vZb8Z3Ia0o395nctJllth3IJ9VNYT4iBMGe9UcXFwT3pg== - dependencies: - "@endo/promise-kit" "^0.2.57" - "@fast-check/ava" "^1.1.5" - "@endo/pass-style@^0.1.6", "@endo/pass-style@^0.1.7": version "0.1.7" resolved "https://registry.yarnpkg.com/@endo/pass-style/-/pass-style-0.1.7.tgz#ea22568e8b86fb2d1a14a5fc042374cc0d8e310b" @@ -557,13 +529,6 @@ "@endo/marshal" "^0.8.9" "@endo/promise-kit" "^0.2.60" -"@endo/promise-kit@^0.2.57": - version "0.2.57" - resolved "https://registry.yarnpkg.com/@endo/promise-kit/-/promise-kit-0.2.57.tgz#cbd81c399fd7d0a83628dd17fa7baf9185b5e4cf" - integrity sha512-sl0VD7OtY6stfGShyMRC99LxdLqftgCPjD1Bq6PsBkpXxCD+JMnYzm57g7XDzj5n32RlBJi8YsD37396qLjPnw== - dependencies: - ses "^0.18.5" - "@endo/promise-kit@^0.2.59", "@endo/promise-kit@^0.2.60": version "0.2.60" resolved "https://registry.yarnpkg.com/@endo/promise-kit/-/promise-kit-0.2.60.tgz#8012ada06970c7eaf965cd856563b34a1790e163" @@ -633,7 +598,7 @@ dependencies: eslint-visitor-keys "^3.3.0" -"@eslint-community/regexpp@^4.4.0", "@eslint-community/regexpp@^4.5.1", "@eslint-community/regexpp@^4.6.1": +"@eslint-community/regexpp@^4.5.1", "@eslint-community/regexpp@^4.6.1": version "4.6.2" resolved "https://registry.yarnpkg.com/@eslint-community/regexpp/-/regexpp-4.6.2.tgz#1816b5f6948029c5eaacb0703b850ee0cb37d8f8" integrity sha512-pPTNuaAG3QMH+buKyBIGJs3g/S5y0caxw0ygM3YyE6yJFySwiGGSzA+mM3KJ8QQvzeLh3blwgSonkFjgQdxzMw== @@ -2113,7 +2078,7 @@ resolved "https://registry.yarnpkg.com/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.4.tgz#8467d4b3c087805d63580480890791277ce35c44" integrity sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g== -"@types/json-schema@*", "@types/json-schema@^7.0.12", "@types/json-schema@^7.0.9": +"@types/json-schema@*", "@types/json-schema@^7.0.12": version "7.0.12" resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.12.tgz#d70faba7039d5fca54c83c7dbab41051d2b6f6cb" integrity sha512-Hr5Jfhc9eYOQNPYO5WLDq/n4jqijdHNlDXjuAQkkt+mWdQR+XJToOHrsD4cPaMXpn6KO7y2+wM8AZEs8VpBLVA== @@ -2234,7 +2199,7 @@ resolved "https://registry.yarnpkg.com/@types/retry/-/retry-0.12.2.tgz#ed279a64fa438bb69f2480eda44937912bb7480a" integrity sha512-XISRgDJ2Tc5q4TRqvgJtzsRkFYNJzZrhTdtMoGVBttwzzQJkPnS3WWTFc7kuDRoPtPakl+T+OfdEUjYJj7Jbow== -"@types/semver@^7.3.12", "@types/semver@^7.5.0": +"@types/semver@^7.5.0": version "7.5.0" resolved "https://registry.yarnpkg.com/@types/semver/-/semver-7.5.0.tgz#591c1ce3a702c45ee15f47a42ade72c2fd78978a" integrity sha512-G8hZ6XJiHnuhQKR7ZmysCeJWE08o8T0AXtk5darsCaTVsYZhhgUrq53jizaR2FvsoeCwJhlmwTjkXBY5Pn/ZHw== @@ -2275,32 +2240,16 @@ resolved "https://registry.yarnpkg.com/@types/yargs-parser/-/yargs-parser-21.0.0.tgz#0c60e537fa790f5f9472ed2776c2b71ec117351b" integrity sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA== -"@typescript-eslint/eslint-plugin@^5.1.0": - version "5.61.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.61.0.tgz#a1a5290cf33863b4db3fb79350b3c5275a7b1223" - integrity sha512-A5l/eUAug103qtkwccSCxn8ZRwT+7RXWkFECdA4Cvl1dOlDUgTpAOfSEElZn2uSUxhdDpnCdetrf0jvU4qrL+g== - dependencies: - "@eslint-community/regexpp" "^4.4.0" - "@typescript-eslint/scope-manager" "5.61.0" - "@typescript-eslint/type-utils" "5.61.0" - "@typescript-eslint/utils" "5.61.0" - debug "^4.3.4" - graphemer "^1.4.0" - ignore "^5.2.0" - natural-compare-lite "^1.4.0" - semver "^7.3.7" - tsutils "^3.21.0" - -"@typescript-eslint/eslint-plugin@^6.5.0": - version "6.5.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.5.0.tgz#5cee33edf0d45d5ec773e3b3111206b098ac8599" - integrity sha512-2pktILyjvMaScU6iK3925uvGU87E+N9rh372uGZgiMYwafaw9SXq86U04XPq3UH6tzRvNgBsub6x2DacHc33lw== +"@typescript-eslint/eslint-plugin@^6.0.0", "@typescript-eslint/eslint-plugin@^6.7.0": + version "6.7.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.7.0.tgz#ed2a38867190f8a688af85ad7c8a74670b8b3675" + integrity sha512-gUqtknHm0TDs1LhY12K2NA3Rmlmp88jK9Tx8vGZMfHeNMLE3GH2e9TRub+y+SOjuYgtOmok+wt1AyDPZqxbNag== dependencies: "@eslint-community/regexpp" "^4.5.1" - "@typescript-eslint/scope-manager" "6.5.0" - "@typescript-eslint/type-utils" "6.5.0" - "@typescript-eslint/utils" "6.5.0" - "@typescript-eslint/visitor-keys" "6.5.0" + "@typescript-eslint/scope-manager" "6.7.0" + "@typescript-eslint/type-utils" "6.7.0" + "@typescript-eslint/utils" "6.7.0" + "@typescript-eslint/visitor-keys" "6.7.0" debug "^4.3.4" graphemer "^1.4.0" ignore "^5.2.4" @@ -2308,43 +2257,17 @@ semver "^7.5.4" ts-api-utils "^1.0.1" -"@typescript-eslint/parser@^5.1.0": - version "5.61.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.61.0.tgz#7fbe3e2951904bb843f8932ebedd6e0635bffb70" - integrity sha512-yGr4Sgyh8uO6fSi9hw3jAFXNBHbCtKKFMdX2IkT3ZqpKmtAq3lHS4ixB/COFuAIJpwl9/AqF7j72ZDWYKmIfvg== - dependencies: - "@typescript-eslint/scope-manager" "5.61.0" - "@typescript-eslint/types" "5.61.0" - "@typescript-eslint/typescript-estree" "5.61.0" - debug "^4.3.4" - -"@typescript-eslint/parser@^6.5.0": - version "6.5.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-6.5.0.tgz#3d6ed231c5e307c5f5f4a0d86893ec01e92b8c77" - integrity sha512-LMAVtR5GN8nY0G0BadkG0XIe4AcNMeyEy3DyhKGAh9k4pLSMBO7rF29JvDBpZGCmp5Pgz5RLHP6eCpSYZJQDuQ== +"@typescript-eslint/parser@^6.0.0", "@typescript-eslint/parser@^6.7.0": + version "6.7.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-6.7.0.tgz#332fe9c7ecf6783d3250b4c8a960bd4af0995807" + integrity sha512-jZKYwqNpNm5kzPVP5z1JXAuxjtl2uG+5NpaMocFPTNC2EdYIgbXIPImObOkhbONxtFTTdoZstLZefbaK+wXZng== dependencies: - "@typescript-eslint/scope-manager" "6.5.0" - "@typescript-eslint/types" "6.5.0" - "@typescript-eslint/typescript-estree" "6.5.0" - "@typescript-eslint/visitor-keys" "6.5.0" + "@typescript-eslint/scope-manager" "6.7.0" + "@typescript-eslint/types" "6.7.0" + "@typescript-eslint/typescript-estree" "6.7.0" + "@typescript-eslint/visitor-keys" "6.7.0" debug "^4.3.4" -"@typescript-eslint/scope-manager@5.61.0": - version "5.61.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.61.0.tgz#b670006d069c9abe6415c41f754b1b5d949ef2b2" - integrity sha512-W8VoMjoSg7f7nqAROEmTt6LoBpn81AegP7uKhhW5KzYlehs8VV0ZW0fIDVbcZRcaP3aPSW+JZFua+ysQN+m/Nw== - dependencies: - "@typescript-eslint/types" "5.61.0" - "@typescript-eslint/visitor-keys" "5.61.0" - -"@typescript-eslint/scope-manager@6.5.0": - version "6.5.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-6.5.0.tgz#f2cb20895aaad41b3ad27cc3a338ce8598f261c5" - integrity sha512-A8hZ7OlxURricpycp5kdPTH3XnjG85UpJS6Fn4VzeoH4T388gQJ/PGP4ole5NfKt4WDVhmLaQ/dBLNDC4Xl/Kw== - dependencies: - "@typescript-eslint/types" "6.5.0" - "@typescript-eslint/visitor-keys" "6.5.0" - "@typescript-eslint/scope-manager@6.7.0": version "6.7.0" resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-6.7.0.tgz#6b3c22187976e2bf5ed0dc0d9095f1f2cbd1d106" @@ -2353,67 +2276,21 @@ "@typescript-eslint/types" "6.7.0" "@typescript-eslint/visitor-keys" "6.7.0" -"@typescript-eslint/type-utils@5.61.0": - version "5.61.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-5.61.0.tgz#e90799eb2045c4435ea8378cb31cd8a9fddca47a" - integrity sha512-kk8u//r+oVK2Aj3ph/26XdH0pbAkC2RiSjUYhKD+PExemG4XSjpGFeyZ/QM8lBOa7O8aGOU+/yEbMJgQv/DnCg== - dependencies: - "@typescript-eslint/typescript-estree" "5.61.0" - "@typescript-eslint/utils" "5.61.0" - debug "^4.3.4" - tsutils "^3.21.0" - -"@typescript-eslint/type-utils@6.5.0": - version "6.5.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-6.5.0.tgz#6d246c93739282bc0d2e623f28d0dec6cfcc38d7" - integrity sha512-f7OcZOkRivtujIBQ4yrJNIuwyCQO1OjocVqntl9dgSIZAdKqicj3xFDqDOzHDlGCZX990LqhLQXWRnQvsapq8A== +"@typescript-eslint/type-utils@6.7.0": + version "6.7.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-6.7.0.tgz#21a013d4c7f96255f5e64ac59fb41301d1e052ba" + integrity sha512-f/QabJgDAlpSz3qduCyQT0Fw7hHpmhOzY/Rv6zO3yO+HVIdPfIWhrQoAyG+uZVtWAIS85zAyzgAFfyEr+MgBpg== dependencies: - "@typescript-eslint/typescript-estree" "6.5.0" - "@typescript-eslint/utils" "6.5.0" + "@typescript-eslint/typescript-estree" "6.7.0" + "@typescript-eslint/utils" "6.7.0" debug "^4.3.4" ts-api-utils "^1.0.1" -"@typescript-eslint/types@5.61.0": - version "5.61.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.61.0.tgz#e99ff11b5792d791554abab0f0370936d8ca50c0" - integrity sha512-ldyueo58KjngXpzloHUog/h9REmHl59G1b3a5Sng1GfBo14BkS3ZbMEb3693gnP1k//97lh7bKsp6/V/0v1veQ== - -"@typescript-eslint/types@6.5.0": - version "6.5.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-6.5.0.tgz#f4e55cfd99ac5346ea772770bf212a3e689a8f04" - integrity sha512-eqLLOEF5/lU8jW3Bw+8auf4lZSbbljHR2saKnYqON12G/WsJrGeeDHWuQePoEf9ro22+JkbPfWQwKEC5WwLQ3w== - "@typescript-eslint/types@6.7.0": version "6.7.0" resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-6.7.0.tgz#8de8ba9cafadc38e89003fe303e219c9250089ae" integrity sha512-ihPfvOp7pOcN/ysoj0RpBPOx3HQTJTrIN8UZK+WFd3/iDeFHHqeyYxa4hQk4rMhsz9H9mXpR61IzwlBVGXtl9Q== -"@typescript-eslint/typescript-estree@5.61.0": - version "5.61.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.61.0.tgz#4c7caca84ce95bb41aa585d46a764bcc050b92f3" - integrity sha512-Fud90PxONnnLZ36oR5ClJBLTLfU4pIWBmnvGwTbEa2cXIqj70AEDEmOmpkFComjBZ/037ueKrOdHuYmSFVD7Rw== - dependencies: - "@typescript-eslint/types" "5.61.0" - "@typescript-eslint/visitor-keys" "5.61.0" - debug "^4.3.4" - globby "^11.1.0" - is-glob "^4.0.3" - semver "^7.3.7" - tsutils "^3.21.0" - -"@typescript-eslint/typescript-estree@6.5.0": - version "6.5.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-6.5.0.tgz#1cef6bc822585e9ef89d88834bc902d911d747ed" - integrity sha512-q0rGwSe9e5Kk/XzliB9h2LBc9tmXX25G0833r7kffbl5437FPWb2tbpIV9wAATebC/018pGa9fwPDuvGN+LxWQ== - dependencies: - "@typescript-eslint/types" "6.5.0" - "@typescript-eslint/visitor-keys" "6.5.0" - debug "^4.3.4" - globby "^11.1.0" - is-glob "^4.0.3" - semver "^7.5.4" - ts-api-utils "^1.0.1" - "@typescript-eslint/typescript-estree@6.7.0": version "6.7.0" resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-6.7.0.tgz#20ce2801733bd46f02cc0f141f5b63fbbf2afb63" @@ -2427,34 +2304,7 @@ semver "^7.5.4" ts-api-utils "^1.0.1" -"@typescript-eslint/utils@5.61.0": - version "5.61.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.61.0.tgz#5064838a53e91c754fffbddd306adcca3fe0af36" - integrity sha512-mV6O+6VgQmVE6+xzlA91xifndPW9ElFW8vbSF0xCT/czPXVhwDewKila1jOyRwa9AE19zKnrr7Cg5S3pJVrTWQ== - dependencies: - "@eslint-community/eslint-utils" "^4.2.0" - "@types/json-schema" "^7.0.9" - "@types/semver" "^7.3.12" - "@typescript-eslint/scope-manager" "5.61.0" - "@typescript-eslint/types" "5.61.0" - "@typescript-eslint/typescript-estree" "5.61.0" - eslint-scope "^5.1.1" - semver "^7.3.7" - -"@typescript-eslint/utils@6.5.0": - version "6.5.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-6.5.0.tgz#6668bee4f7f24978b11df8a2ea42d56eebc4662c" - integrity sha512-9nqtjkNykFzeVtt9Pj6lyR9WEdd8npPhhIPM992FWVkZuS6tmxHfGVnlUcjpUP2hv8r4w35nT33mlxd+Be1ACQ== - dependencies: - "@eslint-community/eslint-utils" "^4.4.0" - "@types/json-schema" "^7.0.12" - "@types/semver" "^7.5.0" - "@typescript-eslint/scope-manager" "6.5.0" - "@typescript-eslint/types" "6.5.0" - "@typescript-eslint/typescript-estree" "6.5.0" - semver "^7.5.4" - -"@typescript-eslint/utils@^6.6.0": +"@typescript-eslint/utils@6.7.0", "@typescript-eslint/utils@^6.6.0": version "6.7.0" resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-6.7.0.tgz#61b6f1f1b82ad529abfcee074d21764e880886fb" integrity sha512-MfCq3cM0vh2slSikQYqK2Gq52gvOhe57vD2RM3V4gQRZYX4rDPnKLu5p6cm89+LJiGlwEXU8hkYxhqqEC/V3qA== @@ -2467,22 +2317,6 @@ "@typescript-eslint/typescript-estree" "6.7.0" semver "^7.5.4" -"@typescript-eslint/visitor-keys@5.61.0": - version "5.61.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.61.0.tgz#c79414fa42158fd23bd2bb70952dc5cdbb298140" - integrity sha512-50XQ5VdbWrX06mQXhy93WywSFZZGsv3EOjq+lqp6WC2t+j3mb6A9xYVdrRxafvK88vg9k9u+CT4l6D8PEatjKg== - dependencies: - "@typescript-eslint/types" "5.61.0" - eslint-visitor-keys "^3.3.0" - -"@typescript-eslint/visitor-keys@6.5.0": - version "6.5.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-6.5.0.tgz#1a6f474a0170a447b76f0699ce6700110fd11436" - integrity sha512-yCB/2wkbv3hPsh02ZS8dFQnij9VVQXJMN/gbQsaaY+zxALkZnxa/wagvLEFsAWMPv7d7lxQmNsIzGU1w/T/WyA== - dependencies: - "@typescript-eslint/types" "6.5.0" - eslint-visitor-keys "^3.4.1" - "@typescript-eslint/visitor-keys@6.7.0": version "6.7.0" resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-6.7.0.tgz#34140ac76dfb6316d17012e4469acf3366ad3f44" @@ -2711,10 +2545,10 @@ argparse@^2.0.1: resolved "https://registry.yarnpkg.com/argparse/-/argparse-2.0.1.tgz#246f50f3ca78a3240f6c997e8a9bd1eac49e4b38" integrity sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q== -aria-query@^5.1.3: - version "5.2.1" - resolved "https://registry.yarnpkg.com/aria-query/-/aria-query-5.2.1.tgz#bc285d9d654d1df121bcd0c134880d415ca67c15" - integrity sha512-7uFg4b+lETFgdaJyETnILsXgnnzVnkHcgRbwbPwevm5x/LmUlt3MjczMRe1zg824iBgXZNRPTBftNYyRSKLp2g== +aria-query@^5.1.3, aria-query@^5.3.0: + version "5.3.0" + resolved "https://registry.yarnpkg.com/aria-query/-/aria-query-5.3.0.tgz#650c569e41ad90b51b3d7df5e5eed1c7549c103e" + integrity sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A== dependencies: dequal "^2.0.3" @@ -4283,10 +4117,10 @@ eslint-config-jessie@^0.0.6: resolved "https://registry.yarnpkg.com/eslint-config-jessie/-/eslint-config-jessie-0.0.6.tgz#429de65983cdfcb161c62a5169605ded6130487b" integrity sha512-L19U3+qWJdhdUjxW7NkkB9X+343MwUB81dplbxwcbBCvrWA8WwmiWYww0g23j4Oz/Vy8KmdW1cyW5Ii6s5IJzQ== -eslint-config-prettier@>=8.0.0, eslint-config-prettier@^8.8.0: - version "8.8.0" - resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-8.8.0.tgz#bfda738d412adc917fd7b038857110efe98c9348" - integrity sha512-wLbQiFre3tdGgpDv67NQKnJuTlcUVYHas3k+DZCc2U2BadthoEY4B7hLPvAxaqdyOGCzuLfii2fqGph10va7oA== +eslint-config-prettier@>=8.0.0, eslint-config-prettier@^9.0.0: + version "9.0.0" + resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-9.0.0.tgz#eb25485946dd0c66cd216a46232dc05451518d1f" + integrity sha512-IcJsTkJae2S35pRsRAwoCE+925rJJStOdkKnLVgtE+tEpqU0EVVM7OqrwxqgptKdX29NUwC82I5pXsGFIgSevw== eslint-formatter-pretty@^4.1.0: version "4.1.0" @@ -4357,15 +4191,15 @@ eslint-plugin-filenames@^1.3.2: lodash.snakecase "4.1.1" lodash.upperfirst "4.3.1" -eslint-plugin-github@^4.8.0: - version "4.8.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-github/-/eslint-plugin-github-4.8.0.tgz#ab959ab2e97000e8f7c74b0847eaf12350ce4ac8" - integrity sha512-1qu1qcyac4FfZmT9KNPr5250DwWzwp6uy6xAqHD2boE4OquUpeTni05yPn1b6y6vUYm/q8+npTdyYiRSqvg+BQ== +eslint-plugin-github@^4.10.0: + version "4.10.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-github/-/eslint-plugin-github-4.10.0.tgz#6fee1e6f8445f0fff1849f84dbdadeb1e4f8c3c0" + integrity sha512-YKtqBtFbjih1wZNTwZjtLPEG6B/4ySMa38fgOo/rbMJpNKO3+OaKzwwOYkeKx/FapM/4MsTP9ExqUcDV+dkixA== dependencies: "@github/browserslist-config" "^1.0.0" - "@typescript-eslint/eslint-plugin" "^5.1.0" - "@typescript-eslint/parser" "^5.1.0" - aria-query "^5.1.3" + "@typescript-eslint/eslint-plugin" "^6.0.0" + "@typescript-eslint/parser" "^6.0.0" + aria-query "^5.3.0" eslint-config-prettier ">=8.0.0" eslint-plugin-escompat "^3.3.3" eslint-plugin-eslint-comments "^3.2.0" @@ -4374,10 +4208,10 @@ eslint-plugin-github@^4.8.0: eslint-plugin-import "^2.25.2" eslint-plugin-jsx-a11y "^6.7.1" eslint-plugin-no-only-tests "^3.0.0" - eslint-plugin-prettier "^4.0.0" + eslint-plugin-prettier "^5.0.0" eslint-rule-documentation ">=1.0.0" jsx-ast-utils "^3.3.2" - prettier "^2.2.1" + prettier "^3.0.0" svg-element-attributes "^1.3.1" eslint-plugin-i18n-text@^1.0.1: @@ -4448,13 +4282,6 @@ eslint-plugin-no-only-tests@^3.0.0: resolved "https://registry.yarnpkg.com/eslint-plugin-no-only-tests/-/eslint-plugin-no-only-tests-3.1.0.tgz#f38e4935c6c6c4842bf158b64aaa20c366fe171b" integrity sha512-Lf4YW/bL6Un1R6A76pRZyE1dl1vr31G/ev8UzIc/geCgFWyrKil8hVjYqWVKGB/UIGmb6Slzs9T0wNezdSVegw== -eslint-plugin-prettier@^4.0.0: - version "4.2.1" - resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-4.2.1.tgz#651cbb88b1dab98bfd42f017a12fa6b2d993f94b" - integrity sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ== - dependencies: - prettier-linter-helpers "^1.0.0" - eslint-plugin-prettier@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-5.0.0.tgz#6887780ed95f7708340ec79acfdf60c35b9be57a" @@ -4473,14 +4300,6 @@ eslint-rule-documentation@>=1.0.0: resolved "https://registry.yarnpkg.com/eslint-rule-documentation/-/eslint-rule-documentation-1.0.23.tgz#4e0886145597a78d24524ec7e0cf18c6fedc23a8" integrity sha512-pWReu3fkohwyvztx/oQWWgld2iad25TfUdi6wvhhaDPIQjHU/pyvlKgXFw1kX31SQK2Nq9MH+vRDWB0ZLy8fYw== -eslint-scope@^5.1.1: - version "5.1.1" - resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.1.1.tgz#e786e59a66cb92b3f6c1fb0d508aab174848f48c" - integrity sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw== - dependencies: - esrecurse "^4.3.0" - estraverse "^4.1.1" - eslint-scope@^7.2.2: version "7.2.2" resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-7.2.2.tgz#deb4f92563390f32006894af62a22dba1c46423f" @@ -4591,11 +4410,6 @@ esrecurse@^4.3.0: dependencies: estraverse "^5.2.0" -estraverse@^4.1.1: - version "4.3.0" - resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.3.0.tgz#398ad3f3c5a24948be7725e83d11a7de28cdbd1d" - integrity sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw== - estraverse@^5.1.0, estraverse@^5.2.0: version "5.3.0" resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-5.3.0.tgz#2eea5290702f26ab8fe5370370ff86c965d21123" @@ -7102,11 +6916,6 @@ napi-thread-safe-callback@0.0.6: resolved "https://registry.yarnpkg.com/napi-thread-safe-callback/-/napi-thread-safe-callback-0.0.6.tgz#ef86a149b5312e480f74e89a614e6d9e3b17b456" integrity sha512-X7uHCOCdY4u0yamDxDrv3jF2NtYc8A1nvPzBQgvpoSX+WB3jAe2cVNsY448V1ucq7Whf9Wdy02HEUoLW5rJKWg== -natural-compare-lite@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz#17b09581988979fddafe0201e931ba933c96cbb4" - integrity sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g== - natural-compare@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" @@ -8022,15 +7831,10 @@ prettier-plugin-jsdoc@^1.0.0: comment-parser "^1.3.1" mdast-util-from-markdown "^1.2.0" -prettier@^2.2.1: - version "2.8.8" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.8.8.tgz#e8c5d7e98a4305ffe3de2e1fc4aca1a71c28b1da" - integrity sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q== - -prettier@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.0.0.tgz#e7b19f691245a21d618c68bc54dc06122f6105ae" - integrity sha512-zBf5eHpwHOGPC47h0zrPyNn+eAEIdEzfywMoYn2XPi0P44Zp0tSq64rq0xAREh4auw2cJZHo9QUob+NqCQky4g== +prettier@^3.0.0, prettier@^3.0.3: + version "3.0.3" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.0.3.tgz#432a51f7ba422d1469096c0fdc28e235db8f9643" + integrity sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg== pretty-format@^29.5.0: version "29.5.0" @@ -8469,14 +8273,7 @@ rollup-pluginutils@^2.4.1: dependencies: estree-walker "^0.6.1" -rollup@^2.58.0: - version "2.77.0" - resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.77.0.tgz#749eaa5ac09b6baa52acc076bc46613eddfd53f4" - integrity sha512-vL8xjY4yOQEw79DvyXLijhnhh+R/O9zpF/LEgkCebZFtb6ELeN9H3/2T0r8+mp+fFTBHZ5qGpOpW2ela2zRt3g== - optionalDependencies: - fsevents "~2.3.2" - -rollup@^2.79.1: +rollup@^2.58.0, rollup@^2.79.1: version "2.79.1" resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.79.1.tgz#bedee8faef7c9f93a2647ac0108748f497f081c7" integrity sha512-uKxbd0IhMZOhjAiD5oAFp7BqvkA4Dv47qpOCtaNvng4HBwdbWtdOh8f5nZNuk2rp51PMGk3bzfWu5oayNEuYnw== @@ -8605,13 +8402,6 @@ serve-static@1.15.0: parseurl "~1.3.3" send "0.18.0" -ses@^0.18.5: - version "0.18.5" - resolved "https://registry.yarnpkg.com/ses/-/ses-0.18.5.tgz#fc7a88c48dd292dd7253ce060104df5f1a36470d" - integrity sha512-paLV2JHUqGGpbLn+V4LM9g20WVzAn9jLU22Bx5/18fo6h6nF8SwhC+3cAMYxzmHmkAzplY5lkg1ms3xSkmSzdw== - dependencies: - "@endo/env-options" "^0.1.1" - ses@^0.18.8: version "0.18.8" resolved "https://registry.yarnpkg.com/ses/-/ses-0.18.8.tgz#88036511ac3b3c07e4d82dd8cfc6e5f3788205b6" @@ -9292,7 +9082,7 @@ tslib@^2.1.0, tslib@^2.3.0, tslib@^2.4.0, tslib@^2.5.0, tslib@^2.6.0: resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.6.1.tgz#fd8c9a0ff42590b25703c0acb3de3d3f4ede0410" integrity sha512-t0hLfiEKfMUoqhG+U1oid7Pva4bbDPHYfJNiB7BiIjRkj1pyC++4N3huJfqY6aRH6VTB0rvtzQwjM4K6qpfOig== -tsutils@^3.21.0, tsutils@~3.21.0: +tsutils@~3.21.0: version "3.21.0" resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-3.21.0.tgz#b48717d394cea6c1e096983eed58e9d61715b623" integrity sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==