20 lines
853 B
TypeScript
20 lines
853 B
TypeScript
import { mixedBidMinimum, type BidActionClaim } from './mixed-bid-question';
|
|
import type { CompiledMixedAction, MixedActionExpression } from './mixed-action-question';
|
|
import { parseRicheseBidClaim, type RicheseBidClaim } from './richese-bid-promises';
|
|
|
|
/** Every future bid leaf addresses one declaration in this exact public lot. */
|
|
export type MixedRicheseBidClaim = {
|
|
turn: number;
|
|
event: string;
|
|
mixed: MixedActionExpression<BidActionClaim>;
|
|
};
|
|
|
|
/** After facts are frozen and constants folded, use the native Richese
|
|
* commitment rather than creating another bidding or funding mechanism. */
|
|
export function mixedRicheseBidResidual(
|
|
claim: MixedRicheseBidClaim,
|
|
compiled: CompiledMixedAction<BidActionClaim>,
|
|
): RicheseBidClaim {
|
|
return parseRicheseBidClaim({turn:claim.turn, event:claim.event, minimum:mixedBidMinimum(compiled)});
|
|
}
|