Skip to main content

erc20.subgraph

@bosonprotocol/core-sdk / Exports / erc20 / subgraph

Namespace: subgraph

erc20.subgraph

Table of contents

Type Aliases

Functions

Type Aliases

SingleExchangeTokenQueryVariables

Ƭ SingleExchangeTokenQueryVariables: Omit<GetExchangeTokenByIdQueryQueryVariables, "exchangeTokenId">

Defined in

src/erc20/subgraph.ts:8

Functions

getExchangeTokenById

getExchangeTokenById(subgraphUrl, exchangeTokenId, queryVars?): Promise<ExchangeTokenFieldsFragment>

Parameters

NameType
subgraphUrlstring
exchangeTokenIdstring
queryVarsSingleExchangeTokenQueryVariables

Returns

Promise<ExchangeTokenFieldsFragment>

Defined in

src/erc20/subgraph.ts:13


getExchangeTokens

getExchangeTokens(subgraphUrl, queryVars?): Promise<ExchangeTokenFieldsFragment[]>

Parameters

NameType
subgraphUrlstring
queryVarsExact<{ exchangeTokensFilter?: ExchangeToken_Filter ; exchangeTokensFirst?: number ; exchangeTokensOrderBy?: ExchangeToken_OrderBy ; exchangeTokensOrderDirection?: OrderDirection ; exchangeTokensSkip?: number ; fundsFilter?: FundsEntity_Filter ; fundsFirst?: number ; fundsOrderBy?: FundsEntity_OrderBy ; fundsOrderDirection?: OrderDirection ; fundsSkip?: number ; includeFunds?: boolean ; includeOffers?: boolean ; offersFilter?: Offer_Filter ; offersFirst?: number ; offersOrderBy?: Offer_OrderBy ; offersOrderDirection?: OrderDirection ; offersSkip?: number }>

Returns

Promise<ExchangeTokenFieldsFragment[]>

Defined in

src/erc20/subgraph.ts:26