Skip to main content

Type Alias: AcceptQuoteInput

type AcceptQuoteInput =
| {
details: | OptionDetails
| CuratedOptionDetails;
expiry?: number;
quoteId: Id;
salt?: Id;
side: ClientRole;
}
| {
chainOfferId: Id;
quoteId: Id;
};

Defined in: packages/overcast-core/src/rfq/client.ts:310

Input to RfqClient.acceptQuote. Either sign a fresh offer for the acceptor's side over the quote's details, or accept against an existing on-chain offer by chainOfferId — the two are mutually exclusive.

Union Members

Type Literal

{
details: | OptionDetails
| CuratedOptionDetails;
expiry?: number;
quoteId: Id;
salt?: Id;
side: ClientRole;
}

details

details:
| OptionDetails
| CuratedOptionDetails;

The option terms being accepted, in either the raw signable OptionDetails or the curated broadcast shape (as carried on a QuoteNewPayload); the latter is uncurated before hashing.

expiry?

optional expiry?: number;

Unix seconds; defaults to now + DEFAULT_EXPIRY_DURATION_MS.

quoteId

quoteId: Id;

salt?

optional salt?: Id;

Optional salt to be used to generate the offer object. Otherwise randomSalt will be used

side

side: ClientRole;

The acceptor's side — decides collateral vs settlement offer.


Type Literal

{
chainOfferId: Id;
quoteId: Id;
}

chainOfferId

chainOfferId: Id;

Accept against an already on-chain offer; nothing is signed.

quoteId

quoteId: Id;