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
| Parameter | Type |
|---|---|
config? | OvercastConfig |
Returns
HttpOvercastView
Methods
getOffer()
getOffer(id): Promise<
| WithId<CuratedOffer>
| null>;
Defined in: packages/overcast-core/src/storage/http.ts:109
Parameters
| Parameter | Type | Description |
|---|---|---|
id | Bytes32 | the offer's content-address (see getId). |
Returns
Promise<
| WithId<CuratedOffer>
| null>
Implementation of
getOption()
getOption(id): Promise<CuratedMarketOption | null>;
Defined in: packages/overcast-core/src/storage/http.ts:99
Parameters
| Parameter | Type | Description |
|---|---|---|
id | Bytes32 | the option's content-address (see getId). |
Returns
Promise<CuratedMarketOption | null>
Implementation of
getRfq()
getRfq(id): Promise<StoredRfq | null>;
Defined in: packages/overcast-core/src/storage/http.ts:127
Parameters
| Parameter | Type |
|---|---|
id | Bytes32 |
Returns
Promise<StoredRfq | null>
Implementation of
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
| Parameter | Type |
|---|---|
query? | AssetQuery |
Returns
Promise<object[]>
Implementation of
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
| Parameter | Type |
|---|---|
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
| Parameter | Type |
|---|---|
query? | OfferQuery |
Returns
Promise<Page<WithId<CuratedOffer>>>
Implementation of
listOptions()
listOptions(query?): Promise<Page<CuratedMarketOption>>;
Defined in: packages/overcast-core/src/storage/http.ts:95
Curated market options, paginated and filterable.
Parameters
| Parameter | Type |
|---|---|
query? | OptionQuery |
Returns
Promise<Page<CuratedMarketOption>>
Implementation of
listQuotes()
listQuotes(rfqId, page?): Promise<Page<StoredQuote>>;
Defined in: packages/overcast-core/src/storage/http.ts:131
Quotes submitted against a given RFQ.
Parameters
| Parameter | Type |
|---|---|
rfqId | Bytes32 |
page? | Pagination |
Returns
Promise<Page<StoredQuote>>
Implementation of
listRfqs()
listRfqs(query?): Promise<Page<StoredRfq>>;
Defined in: packages/overcast-core/src/storage/http.ts:123
Persisted RFQs — both still-open and historical.
Parameters
| Parameter | Type |
|---|---|
query? | RfqQuery |
Returns
Implementation of
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
| Parameter | Type |
|---|---|
query? | UserDepositQuery |
Returns
Promise<Page<UserDepositWire>>