Function: curateOffer()
function curateOffer(
offer,
registry,
utils,
closure?,
now?): CuratedOffer;
Defined in: packages/overcast-core/src/curation/curate.ts:71
Curate an Offer, folding in the lifecycle its OfferClosure and
expiry imply. closure defaults to "nothing closed it" for callers curating
an offer they just built (an RFQ payload, a signing preview) and have no event
history for; now (unix seconds) is accepted so a caller curating a whole page
evaluates every offer against one clock reading.
Parameters
| Parameter | Type |
|---|---|
offer | Offer |
registry | AssetRegistry |
utils | OvercastUtils |
closure | OfferClosure |
now? | number |