Skip to main content

accounts.subgraph

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

Namespace: subgraph

accounts.subgraph

Table of contents

Type Aliases

Functions

Type Aliases

SingleBuyerQueryVariables

Ƭ SingleBuyerQueryVariables: Omit<GetBuyerByIdQueryQueryVariables, "buyerId">

Defined in

src/accounts/subgraph.ts:20


SingleDisputeResolverQueryVariables

Ƭ SingleDisputeResolverQueryVariables: Omit<GetDisputeResolverByIdQueryQueryVariables, "disputeResolverId">

Defined in

src/accounts/subgraph.ts:25


SingleSellerQueryVariables

Ƭ SingleSellerQueryVariables: Omit<GetSellerByIdQueryQueryVariables, "sellerId">

Defined in

src/accounts/subgraph.ts:15

Functions

getBuyerById

getBuyerById(subgraphUrl, buyerId, queryVars?): Promise<BuyerFieldsFragment>

Parameters

NameType
subgraphUrlstring
buyerIdBigNumberish
queryVarsSingleBuyerQueryVariables

Returns

Promise<BuyerFieldsFragment>

Defined in

src/accounts/subgraph.ts:30


getBuyers

getBuyers(subgraphUrl, queryVars?): Promise<BuyerFieldsFragment[]>

Parameters

NameType
subgraphUrlstring
queryVarsExact<{ buyersFilter?: Buyer_Filter ; buyersFirst?: number ; buyersOrderBy?: Buyer_OrderBy ; buyersOrderDirection?: OrderDirection ; buyersSkip?: number ; exchangesFilter?: Exchange_Filter ; exchangesFirst?: number ; exchangesOrderBy?: Exchange_OrderBy ; exchangesOrderDirection?: OrderDirection ; exchangesSkip?: number ; fundsFilter?: FundsEntity_Filter ; fundsFirst?: number ; fundsOrderBy?: FundsEntity_OrderBy ; fundsOrderDirection?: OrderDirection ; fundsSkip?: number ; includeExchanges?: boolean ; includeFunds?: boolean ; includeLogs?: boolean ; includeOffers?: boolean ; logsFilter?: EventLog_Filter ; logsFirst?: number ; logsOrderBy?: EventLog_OrderBy ; logsOrderDirection?: OrderDirection ; logsSkip?: number ; offersFilter?: Offer_Filter ; offersFirst?: number ; offersOrderBy?: Offer_OrderBy ; offersOrderDirection?: OrderDirection ; offersSkip?: number }>

Returns

Promise<BuyerFieldsFragment[]>

Defined in

src/accounts/subgraph.ts:43


getDisputeResolverById

getDisputeResolverById(subgraphUrl, disputeResolverId, queryVars?): Promise<DisputeResolverFieldsFragment>

Parameters

NameType
subgraphUrlstring
disputeResolverIdBigNumberish
queryVarsSingleDisputeResolverQueryVariables

Returns

Promise<DisputeResolverFieldsFragment>

Defined in

src/accounts/subgraph.ts:165


getDisputeResolvers

getDisputeResolvers(subgraphUrl, queryVars?): Promise<DisputeResolverFieldsFragment[]>

Parameters

NameType
subgraphUrlstring
queryVarsExact<{ disputeResolversFilter?: DisputeResolver_Filter ; disputeResolversFirst?: number ; disputeResolversOrderBy?: DisputeResolver_OrderBy ; disputeResolversOrderDirection?: OrderDirection ; disputeResolversSkip?: number ; includeLogs?: boolean ; includeOffers?: boolean ; logsFilter?: EventLog_Filter ; logsFirst?: number ; logsOrderBy?: EventLog_OrderBy ; logsOrderDirection?: OrderDirection ; logsSkip?: number ; offersFilter?: Offer_Filter ; offersFirst?: number ; offersOrderBy?: Offer_OrderBy ; offersOrderDirection?: OrderDirection ; offersSkip?: number }>

Returns

Promise<DisputeResolverFieldsFragment[]>

Defined in

src/accounts/subgraph.ts:178


getSellerByAddress

getSellerByAddress(subgraphUrl, address, queryVars?): Promise<SellerFieldsFragment>

Parameters

NameType
subgraphUrlstring
addressstring
queryVarsExact<{ exchangesFilter?: Exchange_Filter ; exchangesFirst?: number ; exchangesOrderBy?: Exchange_OrderBy ; exchangesOrderDirection?: OrderDirection ; exchangesSkip?: number ; fundsFilter?: FundsEntity_Filter ; fundsFirst?: number ; fundsOrderBy?: FundsEntity_OrderBy ; fundsOrderDirection?: OrderDirection ; fundsSkip?: number ; includeExchanges?: boolean ; includeFunds?: boolean ; includeLogs?: boolean ; includeOffers?: boolean ; logsFilter?: EventLog_Filter ; logsFirst?: number ; logsOrderBy?: EventLog_OrderBy ; logsOrderDirection?: OrderDirection ; logsSkip?: number ; offersFilter?: Offer_Filter ; offersFirst?: number ; offersOrderBy?: Offer_OrderBy ; offersOrderDirection?: OrderDirection ; offersSkip?: number ; sellersFilter?: Seller_Filter ; sellersFirst?: number ; sellersOrderBy?: Seller_OrderBy ; sellersOrderDirection?: OrderDirection ; sellersSkip?: number }>

Returns

Promise<SellerFieldsFragment>

Defined in

src/accounts/subgraph.ts:151


getSellerByAdmin

getSellerByAdmin(subgraphUrl, adminAddress, queryVars?): Promise<SellerFieldsFragment>

Parameters

NameType
subgraphUrlstring
adminAddressstring
queryVarsExact<{ exchangesFilter?: Exchange_Filter ; exchangesFirst?: number ; exchangesOrderBy?: Exchange_OrderBy ; exchangesOrderDirection?: OrderDirection ; exchangesSkip?: number ; fundsFilter?: FundsEntity_Filter ; fundsFirst?: number ; fundsOrderBy?: FundsEntity_OrderBy ; fundsOrderDirection?: OrderDirection ; fundsSkip?: number ; includeExchanges?: boolean ; includeFunds?: boolean ; includeLogs?: boolean ; includeOffers?: boolean ; logsFilter?: EventLog_Filter ; logsFirst?: number ; logsOrderBy?: EventLog_OrderBy ; logsOrderDirection?: OrderDirection ; logsSkip?: number ; offersFilter?: Offer_Filter ; offersFirst?: number ; offersOrderBy?: Offer_OrderBy ; offersOrderDirection?: OrderDirection ; offersSkip?: number ; sellersFilter?: Seller_Filter ; sellersFirst?: number ; sellersOrderBy?: Seller_OrderBy ; sellersOrderDirection?: OrderDirection ; sellersSkip?: number }>

Returns

Promise<SellerFieldsFragment>

Defined in

src/accounts/subgraph.ts:89


getSellerByAuthToken

getSellerByAuthToken(subgraphUrl, tokenId, tokenType, queryVars?): Promise<SellerFieldsFragment>

Parameters

NameType
subgraphUrlstring
tokenIdstring
tokenTypenumber
queryVarsExact<{ exchangesFilter?: Exchange_Filter ; exchangesFirst?: number ; exchangesOrderBy?: Exchange_OrderBy ; exchangesOrderDirection?: OrderDirection ; exchangesSkip?: number ; fundsFilter?: FundsEntity_Filter ; fundsFirst?: number ; fundsOrderBy?: FundsEntity_OrderBy ; fundsOrderDirection?: OrderDirection ; fundsSkip?: number ; includeExchanges?: boolean ; includeFunds?: boolean ; includeLogs?: boolean ; includeOffers?: boolean ; logsFilter?: EventLog_Filter ; logsFirst?: number ; logsOrderBy?: EventLog_OrderBy ; logsOrderDirection?: OrderDirection ; logsSkip?: number ; offersFilter?: Offer_Filter ; offersFirst?: number ; offersOrderBy?: Offer_OrderBy ; offersOrderDirection?: OrderDirection ; offersSkip?: number ; sellersFilter?: Seller_Filter ; sellersFirst?: number ; sellersOrderBy?: Seller_OrderBy ; sellersOrderDirection?: OrderDirection ; sellersSkip?: number }>

Returns

Promise<SellerFieldsFragment>

Defined in

src/accounts/subgraph.ts:134


getSellerByClerk

getSellerByClerk(subgraphUrl, clerkAddress, queryVars?): Promise<SellerFieldsFragment>

Parameters

NameType
subgraphUrlstring
clerkAddressstring
queryVarsExact<{ exchangesFilter?: Exchange_Filter ; exchangesFirst?: number ; exchangesOrderBy?: Exchange_OrderBy ; exchangesOrderDirection?: OrderDirection ; exchangesSkip?: number ; fundsFilter?: FundsEntity_Filter ; fundsFirst?: number ; fundsOrderBy?: FundsEntity_OrderBy ; fundsOrderDirection?: OrderDirection ; fundsSkip?: number ; includeExchanges?: boolean ; includeFunds?: boolean ; includeLogs?: boolean ; includeOffers?: boolean ; logsFilter?: EventLog_Filter ; logsFirst?: number ; logsOrderBy?: EventLog_OrderBy ; logsOrderDirection?: OrderDirection ; logsSkip?: number ; offersFilter?: Offer_Filter ; offersFirst?: number ; offersOrderBy?: Offer_OrderBy ; offersOrderDirection?: OrderDirection ; offersSkip?: number ; sellersFilter?: Seller_Filter ; sellersFirst?: number ; sellersOrderBy?: Seller_OrderBy ; sellersOrderDirection?: OrderDirection ; sellersSkip?: number }>

Returns

Promise<SellerFieldsFragment>

Defined in

src/accounts/subgraph.ts:104


getSellerById

getSellerById(subgraphUrl, sellerId, queryVars?): Promise<SellerFieldsFragment>

Parameters

NameType
subgraphUrlstring
sellerIdBigNumberish
queryVarsSingleSellerQueryVariables

Returns

Promise<SellerFieldsFragment>

Defined in

src/accounts/subgraph.ts:52


getSellerByOperator

getSellerByOperator(subgraphUrl, operatorAddress, queryVars?): Promise<SellerFieldsFragment | undefined>

Parameters

NameType
subgraphUrlstring
operatorAddressstring
queryVarsExact<{ exchangesFilter?: Exchange_Filter ; exchangesFirst?: number ; exchangesOrderBy?: Exchange_OrderBy ; exchangesOrderDirection?: OrderDirection ; exchangesSkip?: number ; fundsFilter?: FundsEntity_Filter ; fundsFirst?: number ; fundsOrderBy?: FundsEntity_OrderBy ; fundsOrderDirection?: OrderDirection ; fundsSkip?: number ; includeExchanges?: boolean ; includeFunds?: boolean ; includeLogs?: boolean ; includeOffers?: boolean ; logsFilter?: EventLog_Filter ; logsFirst?: number ; logsOrderBy?: EventLog_OrderBy ; logsOrderDirection?: OrderDirection ; logsSkip?: number ; offersFilter?: Offer_Filter ; offersFirst?: number ; offersOrderBy?: Offer_OrderBy ; offersOrderDirection?: OrderDirection ; offersSkip?: number ; sellersFilter?: Seller_Filter ; sellersFirst?: number ; sellersOrderBy?: Seller_OrderBy ; sellersOrderDirection?: OrderDirection ; sellersSkip?: number }>

Returns

Promise<SellerFieldsFragment | undefined>

Defined in

src/accounts/subgraph.ts:74


getSellerByTreasury

getSellerByTreasury(subgraphUrl, treasuryAddress, queryVars?): Promise<SellerFieldsFragment>

Parameters

NameType
subgraphUrlstring
treasuryAddressstring
queryVarsExact<{ exchangesFilter?: Exchange_Filter ; exchangesFirst?: number ; exchangesOrderBy?: Exchange_OrderBy ; exchangesOrderDirection?: OrderDirection ; exchangesSkip?: number ; fundsFilter?: FundsEntity_Filter ; fundsFirst?: number ; fundsOrderBy?: FundsEntity_OrderBy ; fundsOrderDirection?: OrderDirection ; fundsSkip?: number ; includeExchanges?: boolean ; includeFunds?: boolean ; includeLogs?: boolean ; includeOffers?: boolean ; logsFilter?: EventLog_Filter ; logsFirst?: number ; logsOrderBy?: EventLog_OrderBy ; logsOrderDirection?: OrderDirection ; logsSkip?: number ; offersFilter?: Offer_Filter ; offersFirst?: number ; offersOrderBy?: Offer_OrderBy ; offersOrderDirection?: OrderDirection ; offersSkip?: number ; sellersFilter?: Seller_Filter ; sellersFirst?: number ; sellersOrderBy?: Seller_OrderBy ; sellersOrderDirection?: OrderDirection ; sellersSkip?: number }>

Returns

Promise<SellerFieldsFragment>

Defined in

src/accounts/subgraph.ts:119


getSellers

getSellers(subgraphUrl, queryVars?): Promise<SellerFieldsFragment[]>

Parameters

NameType
subgraphUrlstring
queryVarsExact<{ exchangesFilter?: Exchange_Filter ; exchangesFirst?: number ; exchangesOrderBy?: Exchange_OrderBy ; exchangesOrderDirection?: OrderDirection ; exchangesSkip?: number ; fundsFilter?: FundsEntity_Filter ; fundsFirst?: number ; fundsOrderBy?: FundsEntity_OrderBy ; fundsOrderDirection?: OrderDirection ; fundsSkip?: number ; includeExchanges?: boolean ; includeFunds?: boolean ; includeLogs?: boolean ; includeOffers?: boolean ; logsFilter?: EventLog_Filter ; logsFirst?: number ; logsOrderBy?: EventLog_OrderBy ; logsOrderDirection?: OrderDirection ; logsSkip?: number ; offersFilter?: Offer_Filter ; offersFirst?: number ; offersOrderBy?: Offer_OrderBy ; offersOrderDirection?: OrderDirection ; offersSkip?: number ; sellersFilter?: Seller_Filter ; sellersFirst?: number ; sellersOrderBy?: Seller_OrderBy ; sellersOrderDirection?: OrderDirection ; sellersSkip?: number }>

Returns

Promise<SellerFieldsFragment[]>

Defined in

src/accounts/subgraph.ts:65