Skip to main content

Class: HttpOvercastView

Defined in: packages/overcast-core/src/storage/http.ts:64

An OvercastView backed by the Overcast backend's REST API.

Implements

Constructors

Constructor

new HttpOvercastView(config?): HttpOvercastView;

Defined in: packages/overcast-core/src/storage/http.ts:68

Parameters

ParameterType
config?OvercastConfig

Returns

HttpOvercastView

Methods

getOffer()

getOffer(id): Promise<
| WithId<CuratedOffer>
| null>;

Defined in: packages/overcast-core/src/storage/http.ts:109

Parameters

ParameterTypeDescription
idBytes32the offer's content-address (see getId).

Returns

Promise< | WithId<CuratedOffer> | null>

Implementation of

OvercastView.getOffer


getOption()

getOption(id): Promise<CuratedMarketOption | null>;

Defined in: packages/overcast-core/src/storage/http.ts:99

Parameters

ParameterTypeDescription
idBytes32the option's content-address (see getId).

Returns

Promise<CuratedMarketOption | null>

Implementation of

OvercastView.getOption


getRfq()

getRfq(id): Promise<StoredRfq | null>;

Defined in: packages/overcast-core/src/storage/http.ts:127

Parameters

ParameterType
idBytes32

Returns

Promise<StoredRfq | null>

Implementation of

OvercastView.getRfq


listAssets()

listAssets(query?): Promise<object[]>;

Defined in: packages/overcast-core/src/storage/http.ts:140

The assets the deployment holds curated metadata for (GET /assets) — what raw OptionDetails asset addresses are resolved against. Drives a client's pick-from-list UX, symbol display and decimal scaling. Returned as a bare list (not paged) — it is small, curated reference data, not indexed data.

Not a permission list. An asset that is absent is uncurated, not unsupported: the protocol trades whatever an offer's terms name, so options are written over it all the same — its amounts simply render in native units against a bare address until someone describes it.

Filter by domain for one chain's assets; unfiltered returns every domain the deployment serves, each asset tagged with its own Asset.domain. A consumer pinned to one chain wants the filtered form — which is what OvercastApp.assets() asks for.

Parameters

ParameterType
query?AssetQuery

Returns

Promise<object[]>

Implementation of

OvercastView.listAssets


listAuthorizedKeys()

listAuthorizedKeys(query?): Promise<Page<AuthorizedKey>>;

Defined in: packages/overcast-core/src/storage/http.ts:115

Delegated signing keys, paginated and filterable — the projection of the AuthorizedKeySet / AuthorizedKeyRemoved history. Revoked keys are included by default; filter on active to get only the live delegations.

This is a read of on-chain authorization state, not an authorization check: it says who an account has delegated to, and the protocol still verifies every SignedOperation against the chain itself.

Parameters

ParameterType
query?AuthorizedKeyQuery

Returns

Promise<Page<AuthorizedKey>>

Implementation of

OvercastView.listAuthorizedKeys


listOffers()

listOffers(query?): Promise<Page<WithId<CuratedOffer>>>;

Defined in: packages/overcast-core/src/storage/http.ts:105

Offers, each tagged with its content-address id and its lifecycle OfferStatus. Matched and cancelled offers are included by default; filter on status for just the open book (open) or just the history (closed).

Parameters

ParameterType
query?OfferQuery

Returns

Promise<Page<WithId<CuratedOffer>>>

Implementation of

OvercastView.listOffers


listOptions()

listOptions(query?): Promise<Page<CuratedMarketOption>>;

Defined in: packages/overcast-core/src/storage/http.ts:95

Curated market options, paginated and filterable.

Parameters

ParameterType
query?OptionQuery

Returns

Promise<Page<CuratedMarketOption>>

Implementation of

OvercastView.listOptions


listQuotes()

listQuotes(rfqId, page?): Promise<Page<StoredQuote>>;

Defined in: packages/overcast-core/src/storage/http.ts:131

Quotes submitted against a given RFQ.

Parameters

ParameterType
rfqIdBytes32
page?Pagination

Returns

Promise<Page<StoredQuote>>

Implementation of

OvercastView.listQuotes


listRfqs()

listRfqs(query?): Promise<Page<StoredRfq>>;

Defined in: packages/overcast-core/src/storage/http.ts:123

Persisted RFQs — both still-open and historical.

Parameters

ParameterType
query?RfqQuery

Returns

Promise<Page<StoredRfq>>

Implementation of

OvercastView.listRfqs


listUserDeposits()

listUserDeposits(query?): Promise<Page<UserDepositWire>>;

Defined in: packages/overcast-core/src/storage/http.ts:84

Live vault balances, paginated and filterable. Still uncurated — canonical slots and a decimal-string amount (UserDepositWire).

Parameters

ParameterType
query?UserDepositQuery

Returns

Promise<Page<UserDepositWire>>

Implementation of

OvercastView.listUserDeposits