Skip to content

Commit bc8b038

Browse files
committed
refactor(zoe): zoe types gardening
1 parent 9825f6d commit bc8b038

File tree

13 files changed

+16
-15
lines changed

13 files changed

+16
-15
lines changed

packages/zoe/src/contractFacet/zcfMint.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { addToAllocation, subtractFromAllocation } from './allocationMath.js';
99
import { ZcfMintI } from './typeGuards.js';
1010

1111
/**
12-
* @import {ContractMeta, ContractStartFn, Invitation, OfferHandler, TransferPart, ZCF, ZCFMint, ZCFSeat} from '@agoric/zoe';
12+
* @import {ZCFMint, ZCFSeat} from '@agoric/zoe';
1313
*/
1414

1515
/**

packages/zoe/src/contractFacet/zcfSeat.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,8 @@ import { makeAllocationMap } from './reallocate.js';
2121
import { TransferPartShape } from '../contractSupport/atomicTransfer.js';
2222

2323
/**
24-
* @import {LegacyWeakMap, WeakMapStore} from '@agoric/store';
25-
* @import {MapStore} from '@agoric/swingset-liveslots';
26-
* @import {ContractMeta, Invitation, OfferHandler, TransferPart, ZCF, ZCFSeat} from '@agoric/zoe';
24+
* @import {WeakMapStore} from '@agoric/store';
25+
* @import {TransferPart, ZCFSeat} from '@agoric/zoe';
2726
*/
2827

2928
/**

packages/zoe/src/contractFacet/zcfZygote.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import { ZcfI } from './typeGuards.js';
3333

3434
/**
3535
* @import {IssuerOptionsRecord} from '@agoric/ertp';
36-
* @import {ContractMeta, ContractStartFn, Invitation, OfferHandler, SetTestJig, TransferPart, ZCF, ZCFMint, ZCFRegisterFeeMint, ZoeService} from '@agoric/zoe';
36+
* @import {ContractMeta, ContractStartFn, SetTestJig, ZCF, ZCFMint, ZCFRegisterFeeMint, ZoeService} from '@agoric/zoe';
3737
*/
3838

3939
/**

packages/zoe/src/contractSupport/atomicTransfer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { M } from '@agoric/store';
22
import { AmountKeywordRecordShape, SeatShape } from '../typeGuards.js';
33

44
/**
5-
* @import {ContractMeta, Invitation, OfferHandler, TransferPart, ZCF, ZCFSeat} from '@agoric/zoe';
5+
* @import {TransferPart, ZCF, ZCFSeat} from '@agoric/zoe';
66
*/
77

88
export const TransferPartShape = M.splitArray(

packages/zoe/src/contracts/autoswap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
} from '../contractSupport/index.js';
1515

1616
/**
17-
* @import {ContractMeta, ContractStartFn, Invitation, OfferHandler, TransferPart, ZCF, ZCFSeat} from '@agoric/zoe';
17+
* @import {OfferHandler, ZCF} from '@agoric/zoe';
1818
*/
1919

2020
/**

packages/zoe/src/contracts/priceAggregator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import {
3434
* @import {LegacyMap} from '@agoric/store'
3535
* @import {ContractOf} from '../zoeService/utils.js';
3636
* @import {PriceDescription, PriceQuote, PriceQuoteValue, PriceQuery,} from '@agoric/zoe/tools/types.js';
37-
* @import {ContractMeta, ContractStartFn, Invitation, OfferHandler, TransferPart, ZCF, ZCFSeat} from '@agoric/zoe';
37+
* @import {Invitation, ZCF, ZCFSeat} from '@agoric/zoe';
3838
*/
3939

4040
/** @typedef {bigint | number | string} ParsableNumber */

packages/zoe/src/contracts/valueVow.contract.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { prepareVowTools } from '@agoric/vow';
22
import { makeDurableZone } from '@agoric/zone/durable.js';
33

44
/**
5-
* @import {ContractMeta, ContractStartFn, HandleOffer, Invitation, OfferHandler, TransferPart, ZCF, ZCFSeat} from '@agoric/zoe';
5+
* @import {ContractMeta, HandleOffer, ZCF} from '@agoric/zoe';
66
* @import { Baggage } from '@agoric/vat-data';
77
*/
88

packages/zoe/src/zoeService/types.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ import type {
1919
} from '../types.js';
2020
import type { Allocation } from '../types-index.js';
2121

22-
/** @see {@link https://github.com/sindresorhus/type-fest/blob/main/source/is-any.d.ts} */
22+
/**
23+
* @see {@link https://github.com/sindresorhus/type-fest/blob/main/source/is-any.d.ts}
24+
*/
2325
type IsAny<T> = 0 extends 1 & NoInfer<T> ? true : false;
2426

2527
/**

packages/zoe/src/zoeService/zoeStorageManager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import {
2929

3030
/**
3131
* @import {Baggage} from '@agoric/vat-data';
32-
* @import {ContractMeta, ContractStartFn, InvitationAmount, OfferHandler, TransferPart, ZCF, ZCFSeat} from '@agoric/zoe';
32+
* @import {InvitationAmount} from '@agoric/zoe';
3333
*/
3434

3535
const { ownKeys } = Reflect;

packages/zoe/test/offerArgsUsageContract.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @import {ContractMeta, ContractStartFn, Invitation, OfferHandler, TransferPart, ZCF, ZCFSeat} from '@agoric/zoe';
2+
* @import {OfferHandler, ZCF} from '@agoric/zoe';
33
*/
44

55
/** @param {ZCF} zcf */

0 commit comments

Comments
 (0)