A base class to handle common Subgraph query logic.

Hierarchy (view full)

Constructors

Properties

getAddressFieldKeysFromFilter: (() => {
    accountKeys: (keyof Pool_Filter)[];
    tokenKeys: (keyof Pool_Filter)[];
})

Type declaration

getRelevantAddressesFromResultCore: ((result) => RelevantAddressesIntermediate)

Type declaration

mapFromSubgraphResponse: ((response) => Pool[])

Type declaration

    • (response): Pool[]
    • Parameters

      • response: PoolsQuery

      Returns Pool[]

requestDocument: TypedDocumentNode<PoolsQuery, Exact<{
    block?: InputMaybe<Block_Height>;
    first?: InputMaybe<number>;
    orderBy?: InputMaybe<Pool_OrderBy>;
    orderDirection?: InputMaybe<OrderDirection>;
    skip?: InputMaybe<number>;
    where?: InputMaybe<Pool_Filter>;
}>>

Methods

  • Parameters

    Returns Promise<null | Pool>

Generated using TypeDoc