accounts.subgraph
@bosonprotocol/core-sdk / Exports / accounts / subgraph
Namespace: subgraph
accounts.subgraph
Table of contents
Type Aliases
Functions
- getBuyerById
- getBuyers
- getDisputeResolverById
- getDisputeResolvers
- getSellerByAddress
- getSellerByAdmin
- getSellerByAuthToken
- getSellerByClerk
- getSellerById
- getSellerByOperator
- getSellerByTreasury
- getSellers
Type Aliases
SingleBuyerQueryVariables
Ƭ SingleBuyerQueryVariables: Omit
<GetBuyerByIdQueryQueryVariables
, "buyerId"
>
Defined in
SingleDisputeResolverQueryVariables
Ƭ SingleDisputeResolverQueryVariables: Omit
<GetDisputeResolverByIdQueryQueryVariables
, "disputeResolverId"
>
Defined in
SingleSellerQueryVariables
Ƭ SingleSellerQueryVariables: Omit
<GetSellerByIdQueryQueryVariables
, "sellerId"
>
Defined in
Functions
getBuyerById
▸ getBuyerById(subgraphUrl
, buyerId
, queryVars?
): Promise
<BuyerFieldsFragment
>
Parameters
Name | Type |
---|---|
subgraphUrl | string |
buyerId | BigNumberish |
queryVars | SingleBuyerQueryVariables |
Returns
Promise
<BuyerFieldsFragment
>
Defined in
getBuyers
▸ getBuyers(subgraphUrl
, queryVars?
): Promise
<BuyerFieldsFragment
[]>
Parameters
Name | Type |
---|---|
subgraphUrl | string |
queryVars | Exact <{ 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
getDisputeResolverById
▸ getDisputeResolverById(subgraphUrl
, disputeResolverId
, queryVars?
): Promise
<DisputeResolverFieldsFragment
>
Parameters
Name | Type |
---|---|
subgraphUrl | string |
disputeResolverId | BigNumberish |
queryVars | SingleDisputeResolverQueryVariables |
Returns
Promise
<DisputeResolverFieldsFragment
>
Defined in
getDisputeResolvers
▸ getDisputeResolvers(subgraphUrl
, queryVars?
): Promise
<DisputeResolverFieldsFragment
[]>
Parameters
Name | Type |
---|---|
subgraphUrl | string |
queryVars | Exact <{ 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
getSellerByAddress
▸ getSellerByAddress(subgraphUrl
, address
, queryVars?
): Promise
<SellerFieldsFragment
>
Parameters
Name | Type |
---|---|
subgraphUrl | string |
address | string |
queryVars | Exact <{ 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
getSellerByAdmin
▸ getSellerByAdmin(subgraphUrl
, adminAddress
, queryVars?
): Promise
<SellerFieldsFragment
>
Parameters
Name | Type |
---|---|
subgraphUrl | string |
adminAddress | string |
queryVars | Exact <{ 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
getSellerByAuthToken
▸ getSellerByAuthToken(subgraphUrl
, tokenId
, tokenType
, queryVars?
): Promise
<SellerFieldsFragment
>
Parameters
Name | Type |
---|---|
subgraphUrl | string |
tokenId | string |
tokenType | number |
queryVars | Exact <{ 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
getSellerByClerk
▸ getSellerByClerk(subgraphUrl
, clerkAddress
, queryVars?
): Promise
<SellerFieldsFragment
>
Parameters
Name | Type |
---|---|
subgraphUrl | string |
clerkAddress | string |
queryVars | Exact <{ 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
getSellerById
▸ getSellerById(subgraphUrl
, sellerId
, queryVars?
): Promise
<SellerFieldsFragment
>
Parameters
Name | Type |
---|---|
subgraphUrl | string |
sellerId | BigNumberish |
queryVars | SingleSellerQueryVariables |
Returns
Promise
<SellerFieldsFragment
>
Defined in
getSellerByOperator
▸ getSellerByOperator(subgraphUrl
, operatorAddress
, queryVars?
): Promise
<SellerFieldsFragment
| undefined
>
Parameters
Name | Type |
---|---|
subgraphUrl | string |
operatorAddress | string |
queryVars | Exact <{ 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
getSellerByTreasury
▸ getSellerByTreasury(subgraphUrl
, treasuryAddress
, queryVars?
): Promise
<SellerFieldsFragment
>
Parameters
Name | Type |
---|---|
subgraphUrl | string |
treasuryAddress | string |
queryVars | Exact <{ 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
getSellers
▸ getSellers(subgraphUrl
, queryVars?
): Promise
<SellerFieldsFragment
[]>
Parameters
Name | Type |
---|---|
subgraphUrl | string |
queryVars | Exact <{ 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
[]>