Skip to content

Commit

Permalink
feat(types): generic makeDurablePublishKit
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Feb 12, 2025
1 parent 75f04ce commit b232f79
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion packages/inter-protocol/src/price/fluxAggregatorKit.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ export const prepareFluxAggregatorKit = async (
const makeOracleAdminKit = prepareOracleAdminKit(baggage);

const makeRecorderKit = defineRecorderKit({
// @ts-expect-error XXX
makeDurablePublishKit,
makeRecorder,
});
Expand Down
4 changes: 1 addition & 3 deletions packages/notifier/src/publish-kit.js
Original file line number Diff line number Diff line change
Expand Up @@ -402,15 +402,13 @@ const advanceDurablePublishKit = (context, value, targetStatus = 'live') => {
/**
* @param {import('@agoric/swingset-liveslots').Baggage} baggage
* @param {string} kindName
* @returns {<T>(options?: Parameters<typeof initDurablePublishKitState>[0]) => PublishKit<T>}
*/
export const prepareDurablePublishKit = (baggage, kindName) => {
// TODO: Once we unify with makePublishKit, we will use a Zone-compatible weak
// map for memoization.
const makeMemoizedUpdateRecord = makeUpdateRecordFromPublicationRecord;

/**
* @returns {() => PublishKit<*>}
*/
return prepareExoClassKit(
baggage,
kindName,
Expand Down

0 comments on commit b232f79

Please sign in to comment.