Skip to main content

Type Alias: AcceptQuoteInput

type AcceptQuoteInput =
| {
details: | OptionDetails
| CuratedOptionDetails;
expiry?: number;
operationParams?: OperationParams;
quoteId: UUID;
salt?: Bytes32;
side: OptionSide;
}
| {
chainOfferId: Bytes32;
quoteId: UUID;
};

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

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;
operationParams?: OperationParams;
quoteId: UUID;
salt?: Bytes32;
side: OptionSide;
}

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.

operationParams?

optional operationParams?: OperationParams;

Optional operation params, otherwise default will be used

quoteId

quoteId: UUID;

salt?

optional salt?: Bytes32;

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

side

side: OptionSide;

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


Type Literal

{
chainOfferId: Bytes32;
quoteId: UUID;
}

chainOfferId

chainOfferId: Bytes32;

Accept against an already on-chain offer, by its content-address.

quoteId

quoteId: UUID;