Skip to content

Commit

Permalink
fix: move EmptyProposalShape back here
Browse files Browse the repository at this point in the history
  • Loading branch information
erights committed Aug 29, 2023
1 parent 2df9334 commit 113fc49
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/zoe/src/typeGuards.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,12 @@ export const FullProposalShape = harden({
/** @see {Proposal} type */
export const ProposalShape = M.splitRecord({}, FullProposalShape, {});

export const EmptyProposalShape = M.splitRecord({
give: {},
want: {},
exit: { onDemand: null },
});

export const isOnDemandExitRule = exit => {
const [exitKey] = Object.keys(exit);
return exitKey === 'onDemand';
Expand Down

0 comments on commit 113fc49

Please sign in to comment.