From 5fffe4ffd66a6a89186c5627fdce8608ca2e46fd Mon Sep 17 00:00:00 2001 From: Nabarun Date: Fri, 17 May 2024 17:24:48 +0530 Subject: [PATCH] Support fragments in GQL queries --- package.json | 12 +- src/indexer.ts | 10 +- src/resolvers.ts | 402 ++++++++++++++++------------------------------- yarn.lock | 94 +++++------ 4 files changed, 192 insertions(+), 326 deletions(-) diff --git a/package.json b/package.json index c2fecd5..dd52b78 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@cerc-io/ajna-watcher-ts", - "version": "0.1.7", + "version": "0.1.8", "description": "ajna-watcher-ts", "private": true, "main": "dist/index.js", @@ -39,11 +39,11 @@ "homepage": "https://github.com/cerc-io/watcher-ts#readme", "dependencies": { "@apollo/client": "^3.3.19", - "@cerc-io/cli": "^0.2.88", - "@cerc-io/ipld-eth-client": "^0.2.88", - "@cerc-io/solidity-mapper": "^0.2.88", - "@cerc-io/util": "^0.2.88", - "@cerc-io/graph-node": "^0.2.88", + "@cerc-io/cli": "^0.2.89", + "@cerc-io/ipld-eth-client": "^0.2.89", + "@cerc-io/solidity-mapper": "^0.2.89", + "@cerc-io/util": "^0.2.89", + "@cerc-io/graph-node": "^0.2.89", "@ethersproject/providers": "^5.4.4", "debug": "^4.3.1", "decimal.js": "^10.3.1", diff --git a/src/indexer.ts b/src/indexer.ts index 060f8fe..8914836 100644 --- a/src/indexer.ts +++ b/src/indexer.ts @@ -6,7 +6,7 @@ import assert from 'assert'; import { DeepPartial, FindConditions, FindManyOptions, ObjectLiteral } from 'typeorm'; import debug from 'debug'; import { ethers, constants } from 'ethers'; -import { SelectionNode } from 'graphql'; +import { GraphQLResolveInfo } from 'graphql'; import { JsonFragment } from '@ethersproject/abi'; import { BaseProvider } from '@ethersproject/providers'; @@ -464,9 +464,9 @@ export class Indexer implements IndexerInterface { entity: new () => Entity, id: string, block: BlockHeight, - selections: ReadonlyArray = [] + queryInfo: GraphQLResolveInfo ): Promise { - const data = await this._graphWatcher.getEntity(entity, id, this._relationsMap, block, selections); + const data = await this._graphWatcher.getEntity(entity, id, this._relationsMap, block, queryInfo); return data; } @@ -476,9 +476,9 @@ export class Indexer implements IndexerInterface { block: BlockHeight, where: { [key: string]: any } = {}, queryOptions: QueryOptions = {}, - selections: ReadonlyArray = [] + queryInfo: GraphQLResolveInfo ): Promise { - return this._graphWatcher.getEntities(entity, this._relationsMap, block, where, queryOptions, selections); + return this._graphWatcher.getEntities(entity, this._relationsMap, block, where, queryOptions, queryInfo); } // eslint-disable-next-line @typescript-eslint/no-unused-vars diff --git a/src/resolvers.ts b/src/resolvers.ts index 2d8c00f..d7abb1d 100644 --- a/src/resolvers.ts +++ b/src/resolvers.ts @@ -137,12 +137,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('token', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('token').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(Token, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(Token, id, block, info); }, tokens: async ( @@ -154,7 +153,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('tokens', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('tokens').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -164,7 +162,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, @@ -177,12 +175,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('poolFactory', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('poolFactory').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(PoolFactory, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(PoolFactory, id, block, info); }, poolFactories: async ( @@ -194,7 +191,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('poolFactories', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('poolFactories').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -204,7 +200,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, @@ -217,12 +213,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('pool', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('pool').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(Pool, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(Pool, id, block, info); }, pools: async ( @@ -234,7 +229,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('pools', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('pools').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -244,7 +238,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, @@ -257,12 +251,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('bucket', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('bucket').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(Bucket, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(Bucket, id, block, info); }, buckets: async ( @@ -274,7 +267,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('buckets', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('buckets').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -284,7 +276,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, @@ -297,12 +289,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('lend', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('lend').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(Lend, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(Lend, id, block, info); }, lends: async ( @@ -314,7 +305,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('lends', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('lends').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -324,7 +314,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, @@ -337,12 +327,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('loan', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('loan').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(Loan, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(Loan, id, block, info); }, loans: async ( @@ -354,7 +343,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('loans', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('loans').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -364,7 +352,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, @@ -377,12 +365,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('account', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('account').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(Account, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(Account, id, block, info); }, accounts: async ( @@ -394,7 +381,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('accounts', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('accounts').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -404,7 +390,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, @@ -417,12 +403,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('liquidationAuction', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('liquidationAuction').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(LiquidationAuction, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(LiquidationAuction, id, block, info); }, liquidationAuctions: async ( @@ -434,7 +419,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('liquidationAuctions', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('liquidationAuctions').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -444,7 +428,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, @@ -457,12 +441,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('reserveAuction', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('reserveAuction').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(ReserveAuction, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(ReserveAuction, id, block, info); }, reserveAuctions: async ( @@ -474,7 +457,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('reserveAuctions', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('reserveAuctions').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -484,7 +466,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, @@ -497,12 +479,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('lptransferorList', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('lptransferorList').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(LPTransferorList, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(LPTransferorList, id, block, info); }, lptransferorLists: async ( @@ -514,7 +495,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('lptransferorLists', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('lptransferorLists').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -524,7 +504,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, @@ -537,12 +517,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('lpallowance', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('lpallowance').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(LPAllowance, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(LPAllowance, id, block, info); }, lpallowances: async ( @@ -554,7 +533,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('lpallowances', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('lpallowances').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -564,7 +542,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, @@ -577,12 +555,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('lpallowanceList', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('lpallowanceList').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(LPAllowanceList, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(LPAllowanceList, id, block, info); }, lpallowanceLists: async ( @@ -594,7 +571,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('lpallowanceLists', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('lpallowanceLists').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -604,7 +580,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, @@ -617,12 +593,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('addCollateral', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('addCollateral').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(AddCollateral, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(AddCollateral, id, block, info); }, addCollaterals: async ( @@ -634,7 +609,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('addCollaterals', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('addCollaterals').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -644,7 +618,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, @@ -657,12 +631,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('addQuoteToken', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('addQuoteToken').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(AddQuoteToken, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(AddQuoteToken, id, block, info); }, addQuoteTokens: async ( @@ -674,7 +647,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('addQuoteTokens', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('addQuoteTokens').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -684,7 +656,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, @@ -697,12 +669,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('auctionSettle', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('auctionSettle').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(AuctionSettle, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(AuctionSettle, id, block, info); }, auctionSettles: async ( @@ -714,7 +685,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('auctionSettles', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('auctionSettles').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -724,7 +694,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, @@ -737,12 +707,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('bondWithdrawn', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('bondWithdrawn').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(BondWithdrawn, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(BondWithdrawn, id, block, info); }, bondWithdrawns: async ( @@ -754,7 +723,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('bondWithdrawns', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('bondWithdrawns').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -764,7 +732,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, @@ -777,12 +745,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('bucketBankruptcy', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('bucketBankruptcy').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(BucketBankruptcy, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(BucketBankruptcy, id, block, info); }, bucketBankruptcies: async ( @@ -794,7 +761,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('bucketBankruptcies', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('bucketBankruptcies').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -804,7 +770,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, @@ -817,12 +783,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('bucketTake', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('bucketTake').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(BucketTake, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(BucketTake, id, block, info); }, bucketTakes: async ( @@ -834,7 +799,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('bucketTakes', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('bucketTakes').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -844,7 +808,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, @@ -857,12 +821,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('bucketTakeLPAwarded', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('bucketTakeLPAwarded').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(BucketTakeLPAwarded, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(BucketTakeLPAwarded, id, block, info); }, bucketTakeLPAwardeds: async ( @@ -874,7 +837,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('bucketTakeLPAwardeds', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('bucketTakeLPAwardeds').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -884,7 +846,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, @@ -897,12 +859,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('drawDebt', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('drawDebt').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(DrawDebt, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(DrawDebt, id, block, info); }, drawDebts: async ( @@ -914,7 +875,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('drawDebts', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('drawDebts').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -924,7 +884,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, @@ -937,12 +897,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('flashloan', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('flashloan').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(Flashloan, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(Flashloan, id, block, info); }, flashloans: async ( @@ -954,7 +913,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('flashloans', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('flashloans').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -964,7 +922,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, @@ -977,12 +935,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('kick', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('kick').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(Kick, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(Kick, id, block, info); }, kicks: async ( @@ -994,7 +951,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('kicks', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('kicks').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -1004,7 +960,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, @@ -1017,12 +973,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('loanStamped', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('loanStamped').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(LoanStamped, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(LoanStamped, id, block, info); }, loanStampeds: async ( @@ -1034,7 +989,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('loanStampeds', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('loanStampeds').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -1044,7 +998,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, @@ -1057,12 +1011,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('moveQuoteToken', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('moveQuoteToken').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(MoveQuoteToken, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(MoveQuoteToken, id, block, info); }, moveQuoteTokens: async ( @@ -1074,7 +1027,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('moveQuoteTokens', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('moveQuoteTokens').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -1084,7 +1036,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, @@ -1097,12 +1049,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('removeCollateral', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('removeCollateral').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(RemoveCollateral, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(RemoveCollateral, id, block, info); }, removeCollaterals: async ( @@ -1114,7 +1065,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('removeCollaterals', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('removeCollaterals').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -1124,7 +1074,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, @@ -1137,12 +1087,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('removeQuoteToken', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('removeQuoteToken').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(RemoveQuoteToken, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(RemoveQuoteToken, id, block, info); }, removeQuoteTokens: async ( @@ -1154,7 +1103,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('removeQuoteTokens', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('removeQuoteTokens').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -1164,7 +1112,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, @@ -1177,12 +1125,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('repayDebt', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('repayDebt').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(RepayDebt, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(RepayDebt, id, block, info); }, repayDebts: async ( @@ -1194,7 +1141,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('repayDebts', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('repayDebts').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -1204,7 +1150,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, @@ -1217,12 +1163,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('reserveAuctionKick', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('reserveAuctionKick').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(ReserveAuctionKick, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(ReserveAuctionKick, id, block, info); }, reserveAuctionKicks: async ( @@ -1234,7 +1179,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('reserveAuctionKicks', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('reserveAuctionKicks').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -1244,7 +1188,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, @@ -1257,12 +1201,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('reserveAuctionTake', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('reserveAuctionTake').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(ReserveAuctionTake, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(ReserveAuctionTake, id, block, info); }, reserveAuctionTakes: async ( @@ -1274,7 +1217,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('reserveAuctionTakes', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('reserveAuctionTakes').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -1284,7 +1226,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, @@ -1297,12 +1239,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('resetInterestRate', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('resetInterestRate').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(ResetInterestRate, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(ResetInterestRate, id, block, info); }, resetInterestRates: async ( @@ -1314,7 +1255,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('resetInterestRates', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('resetInterestRates').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -1324,7 +1264,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, @@ -1337,12 +1277,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('settle', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('settle').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(Settle, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(Settle, id, block, info); }, settles: async ( @@ -1354,7 +1293,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('settles', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('settles').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -1364,7 +1302,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, @@ -1377,12 +1315,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('take', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('take').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(Take, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(Take, id, block, info); }, takes: async ( @@ -1394,7 +1331,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('takes', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('takes').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -1404,7 +1340,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, @@ -1417,12 +1353,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('transferLP', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('transferLP').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(TransferLP, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(TransferLP, id, block, info); }, transferLPS: async ( @@ -1434,7 +1369,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('transferLPS', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('transferLPS').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -1444,7 +1378,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, @@ -1457,12 +1391,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('updateInterestRate', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('updateInterestRate').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(UpdateInterestRate, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(UpdateInterestRate, id, block, info); }, updateInterestRates: async ( @@ -1474,7 +1407,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('updateInterestRates', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('updateInterestRates').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -1484,7 +1416,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, @@ -1497,12 +1429,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('approval', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('approval').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(Approval, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(Approval, id, block, info); }, approvals: async ( @@ -1514,7 +1445,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('approvals', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('approvals').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -1524,7 +1454,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, @@ -1537,12 +1467,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('approvalForAll', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('approvalForAll').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(ApprovalForAll, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(ApprovalForAll, id, block, info); }, approvalForAlls: async ( @@ -1554,7 +1483,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('approvalForAlls', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('approvalForAlls').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -1564,7 +1492,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, @@ -1577,12 +1505,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('moveLiquidity', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('moveLiquidity').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(MoveLiquidity, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(MoveLiquidity, id, block, info); }, moveLiquidities: async ( @@ -1594,7 +1521,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('moveLiquidities', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('moveLiquidities').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -1604,7 +1530,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, @@ -1617,12 +1543,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('transfer', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('transfer').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(Transfer, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(Transfer, id, block, info); }, transfers: async ( @@ -1634,7 +1559,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('transfers', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('transfers').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -1644,7 +1568,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, @@ -1657,12 +1581,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('poolCreated', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('poolCreated').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(PoolCreated, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(PoolCreated, id, block, info); }, poolCreateds: async ( @@ -1674,7 +1597,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('poolCreateds', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('poolCreateds').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -1684,7 +1606,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, @@ -1697,12 +1619,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('addCollateralNFT', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('addCollateralNFT').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(AddCollateralNFT, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(AddCollateralNFT, id, block, info); }, addCollateralNFTS: async ( @@ -1714,7 +1635,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('addCollateralNFTS', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('addCollateralNFTS').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -1724,7 +1644,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, @@ -1737,12 +1657,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('auctionNFTSettle', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('auctionNFTSettle').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(AuctionNFTSettle, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(AuctionNFTSettle, id, block, info); }, auctionNFTSettles: async ( @@ -1754,7 +1673,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('auctionNFTSettles', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('auctionNFTSettles').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -1764,7 +1682,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, @@ -1777,12 +1695,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('drawDebtNFT', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('drawDebtNFT').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(DrawDebtNFT, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(DrawDebtNFT, id, block, info); }, drawDebtNFTS: async ( @@ -1794,7 +1711,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('drawDebtNFTS', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('drawDebtNFTS').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -1804,7 +1720,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, @@ -1817,12 +1733,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('mergeOrRemoveCollateralNFT', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('mergeOrRemoveCollateralNFT').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(MergeOrRemoveCollateralNFT, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(MergeOrRemoveCollateralNFT, id, block, info); }, mergeOrRemoveCollateralNFTS: async ( @@ -1834,7 +1749,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('mergeOrRemoveCollateralNFTS', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('mergeOrRemoveCollateralNFTS').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -1844,7 +1758,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, @@ -1857,12 +1771,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('position', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('position').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(Position, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(Position, id, block, info); }, positions: async ( @@ -1874,7 +1787,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('positions', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('positions').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -1884,7 +1796,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, @@ -1897,12 +1809,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('positionLend', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('positionLend').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(PositionLend, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(PositionLend, id, block, info); }, positionLends: async ( @@ -1914,7 +1825,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('positionLends', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('positionLends').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -1924,7 +1834,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, @@ -1937,12 +1847,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('burn', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('burn').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(Burn, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(Burn, id, block, info); }, burns: async ( @@ -1954,7 +1863,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('burns', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('burns').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -1964,7 +1872,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, @@ -1977,12 +1885,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('memorializePosition', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('memorializePosition').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(MemorializePosition, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(MemorializePosition, id, block, info); }, memorializePositions: async ( @@ -1994,7 +1901,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('memorializePositions', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('memorializePositions').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -2004,7 +1910,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, @@ -2017,12 +1923,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('mint', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('mint').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(Mint, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(Mint, id, block, info); }, mints: async ( @@ -2034,7 +1939,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('mints', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('mints').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -2044,7 +1948,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, @@ -2057,12 +1961,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('redeemPosition', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('redeemPosition').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(RedeemPosition, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(RedeemPosition, id, block, info); }, redeemPositions: async ( @@ -2074,7 +1977,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('redeemPositions', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('redeemPositions').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -2084,7 +1986,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, @@ -2097,12 +1999,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('grantFund', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('grantFund').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(GrantFund, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(GrantFund, id, block, info); }, grantFunds: async ( @@ -2114,7 +2015,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('grantFunds', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('grantFunds').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -2124,7 +2024,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, @@ -2137,12 +2037,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('distributionPeriod', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('distributionPeriod').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(DistributionPeriod, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(DistributionPeriod, id, block, info); }, distributionPeriods: async ( @@ -2154,7 +2053,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('distributionPeriods', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('distributionPeriods').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -2164,7 +2062,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, @@ -2177,12 +2075,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('proposal', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('proposal').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(Proposal, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(Proposal, id, block, info); }, proposals: async ( @@ -2194,7 +2091,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('proposals', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('proposals').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -2204,7 +2100,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, @@ -2217,12 +2113,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('proposalParams', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('proposalParams').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(ProposalParams, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(ProposalParams, id, block, info); }, proposalParamss: async ( @@ -2234,7 +2129,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('proposalParamss', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('proposalParamss').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -2244,7 +2138,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, @@ -2257,12 +2151,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('distributionPeriodVote', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('distributionPeriodVote').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(DistributionPeriodVote, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(DistributionPeriodVote, id, block, info); }, distributionPeriodVotes: async ( @@ -2274,7 +2167,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('distributionPeriodVotes', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('distributionPeriodVotes').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -2284,7 +2176,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, @@ -2297,12 +2189,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('screeningVote', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('screeningVote').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(ScreeningVote, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(ScreeningVote, id, block, info); }, screeningVotes: async ( @@ -2314,7 +2205,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('screeningVotes', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('screeningVotes').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -2324,7 +2214,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, @@ -2337,12 +2227,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('fundingVote', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('fundingVote').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(FundingVote, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(FundingVote, id, block, info); }, fundingVotes: async ( @@ -2354,7 +2243,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('fundingVotes', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('fundingVotes').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -2364,7 +2252,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, @@ -2377,12 +2265,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('fundedSlate', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('fundedSlate').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(FundedSlate, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(FundedSlate, id, block, info); }, fundedSlates: async ( @@ -2394,7 +2281,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('fundedSlates', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('fundedSlates').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -2404,7 +2290,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, @@ -2417,12 +2303,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('delegateRewardClaimed', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('delegateRewardClaimed').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(DelegateRewardClaimed, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(DelegateRewardClaimed, id, block, info); }, delegateRewardClaimeds: async ( @@ -2434,7 +2319,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('delegateRewardClaimeds', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('delegateRewardClaimeds').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -2444,7 +2328,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, @@ -2457,12 +2341,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('fundTreasury', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('fundTreasury').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(FundTreasury, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(FundTreasury, id, block, info); }, fundTreasuries: async ( @@ -2474,7 +2357,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('fundTreasuries', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('fundTreasuries').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -2484,7 +2366,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, @@ -2497,12 +2379,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('fundedSlateUpdated', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('fundedSlateUpdated').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(FundedSlateUpdated, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(FundedSlateUpdated, id, block, info); }, fundedSlateUpdateds: async ( @@ -2514,7 +2395,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('fundedSlateUpdateds', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('fundedSlateUpdateds').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -2524,7 +2404,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, @@ -2537,12 +2417,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('proposalCreated', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('proposalCreated').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(ProposalCreated, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(ProposalCreated, id, block, info); }, proposalCreateds: async ( @@ -2554,7 +2433,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('proposalCreateds', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('proposalCreateds').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -2564,7 +2442,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, @@ -2577,12 +2455,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('proposalExecuted', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('proposalExecuted').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(ProposalExecuted, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(ProposalExecuted, id, block, info); }, proposalExecuteds: async ( @@ -2594,7 +2471,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('proposalExecuteds', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('proposalExecuteds').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -2604,7 +2480,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, @@ -2617,12 +2493,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('distributionPeriodStarted', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('distributionPeriodStarted').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(DistributionPeriodStarted, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(DistributionPeriodStarted, id, block, info); }, distributionPeriodStarteds: async ( @@ -2634,7 +2509,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('distributionPeriodStarteds', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('distributionPeriodStarteds').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -2644,7 +2518,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, @@ -2657,12 +2531,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('voteCast', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('voteCast').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(VoteCast, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(VoteCast, id, block, info); }, voteCasts: async ( @@ -2674,7 +2547,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('voteCasts', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('voteCasts').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -2684,7 +2556,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, @@ -2697,12 +2569,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('delegateChanged', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('delegateChanged').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(DelegateChanged, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(DelegateChanged, id, block, info); }, delegateChangeds: async ( @@ -2714,7 +2585,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('delegateChangeds', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('delegateChangeds').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -2724,7 +2594,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, @@ -2737,12 +2607,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('delegateVotesChanged', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('delegateVotesChanged').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(DelegateVotesChanged, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(DelegateVotesChanged, id, block, info); }, delegateVotesChangeds: async ( @@ -2754,7 +2623,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('delegateVotesChangeds', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('delegateVotesChangeds').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -2764,7 +2632,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, @@ -2777,12 +2645,11 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('burnWrap', id, JSON.stringify(block, jsonBigIntStringReplacer)); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('burnWrap').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); - return indexer.getSubgraphEntity(BurnWrap, id, block, info.fieldNodes[0].selectionSet.selections); + return indexer.getSubgraphEntity(BurnWrap, id, block, info); }, burnWraps: async ( @@ -2794,7 +2661,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher log('burnWraps', JSON.stringify(block, jsonBigIntStringReplacer), JSON.stringify(where, jsonBigIntStringReplacer), first, skip, orderBy, orderDirection); gqlTotalQueryCount.inc(1); gqlQueryCount.labels('burnWraps').inc(1); - assert(info.fieldNodes[0].selectionSet); // Set cache-control hints // setGQLCacheHints(info, block, gqlCacheConfig); @@ -2804,7 +2670,7 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher block, where, { limit: first, skip, orderBy, orderDirection }, - info.fieldNodes[0].selectionSet.selections + info ); }, diff --git a/yarn.lock b/yarn.lock index f5b5e29..30b737f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -176,10 +176,10 @@ binaryen "101.0.0-nightly.20210723" long "^4.0.0" -"@cerc-io/cache@^0.2.88": - version "0.2.88" - resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Fcache/-/0.2.88/cache-0.2.88.tgz#93a2b201541d5912d550739a9e4a295e491edc6d" - integrity sha512-OiEXcegdUlXSXHF+iWWAQFXwRQq1CJ9RJ4xn9a0oNTKcJH2PHt9DsCwSp4VE7PwFzOr7Luzw3RnloGOpjqxhng== +"@cerc-io/cache@^0.2.89": + version "0.2.89" + resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Fcache/-/0.2.89/cache-0.2.89.tgz#89bddf8e1e9ae40939315cd8aec5dd9138feb85a" + integrity sha512-cF565BA7vltlecC7AG+Ih0hzEyAS89MLxLMFnCdYzObGqM0vyBP7RruC6RNu304Jg1zV/T2ablb6qh4VBPgCvQ== dependencies: canonical-json "^0.0.4" debug "^4.3.1" @@ -187,19 +187,19 @@ fs-extra "^10.0.0" level "^7.0.0" -"@cerc-io/cli@^0.2.88": - version "0.2.88" - resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Fcli/-/0.2.88/cli-0.2.88.tgz#6a4e58499730db5f96431ac6825791dce1f418ce" - integrity sha512-/ctrqTNX8nV1FZEivjbUqFfnifWOUffn7XdfSPs3HHSF2vaflsn8pnRk9nK3P2g0xc5dpxP5ZrhvHuHLcQE6tw== +"@cerc-io/cli@^0.2.89": + version "0.2.89" + resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Fcli/-/0.2.89/cli-0.2.89.tgz#9b67bd9add6f1f6ca67e947b38cc544ad6108c4c" + integrity sha512-Jduv4PCa8+Lru1VRYM+EudWXT9UE7uy+hRaHfWi4wGhWLKGd6S8A7WymbJtjA9NC0sNinBbfZmOLQ8xeiIypZA== dependencies: "@apollo/client" "^3.7.1" - "@cerc-io/cache" "^0.2.88" - "@cerc-io/ipld-eth-client" "^0.2.88" + "@cerc-io/cache" "^0.2.89" + "@cerc-io/ipld-eth-client" "^0.2.89" "@cerc-io/libp2p" "^0.42.2-laconic-0.1.4" "@cerc-io/nitro-node" "^0.1.15" - "@cerc-io/peer" "^0.2.88" - "@cerc-io/rpc-eth-client" "^0.2.88" - "@cerc-io/util" "^0.2.88" + "@cerc-io/peer" "^0.2.89" + "@cerc-io/rpc-eth-client" "^0.2.89" + "@cerc-io/util" "^0.2.89" "@ethersproject/providers" "^5.4.4" "@graphql-tools/utils" "^9.1.1" "@ipld/dag-cbor" "^8.0.0" @@ -220,16 +220,16 @@ typeorm "0.2.37" yargs "^17.0.1" -"@cerc-io/graph-node@^0.2.88": - version "0.2.88" - resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Fgraph-node/-/0.2.88/graph-node-0.2.88.tgz#82c3bde2e9b5f8416e39adae4c4dc680ee7c4140" - integrity sha512-jpYrjY1/QR+505VGhXwI0nF+gNDRy3yqQYDOLsXls9TMgI4Q5f+l42J/+Il4zgRh1V+fK4faoi1vm+5M7gwM4Q== +"@cerc-io/graph-node@^0.2.89": + version "0.2.89" + resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Fgraph-node/-/0.2.89/graph-node-0.2.89.tgz#ee536a33a109cb470551190505ed16616fdb279f" + integrity sha512-Jolu16pGpx9L9I/GBP1vY08Gvcv+imDKvttIeH4AHbWeMvPAAFYSh57PJGYwVO3T1/Sbg5o9xU6po+rYRDhqTw== dependencies: "@apollo/client" "^3.3.19" "@cerc-io/assemblyscript" "0.19.10-watcher-ts-0.1.2" - "@cerc-io/cache" "^0.2.88" - "@cerc-io/ipld-eth-client" "^0.2.88" - "@cerc-io/util" "^0.2.88" + "@cerc-io/cache" "^0.2.89" + "@cerc-io/ipld-eth-client" "^0.2.89" + "@cerc-io/util" "^0.2.89" "@types/json-diff" "^0.5.2" "@types/yargs" "^17.0.0" bn.js "^4.11.9" @@ -246,14 +246,14 @@ typeorm-naming-strategies "^2.0.0" yargs "^17.0.1" -"@cerc-io/ipld-eth-client@^0.2.88": - version "0.2.88" - resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Fipld-eth-client/-/0.2.88/ipld-eth-client-0.2.88.tgz#274b144dabe3a65651cd5b4126e8d176ea7e3171" - integrity sha512-fe1wtx4GBDSyF/zgqJLWuBEkj8S8aD2c64YxABlhK+zqxRZRIQ+KOqKnAwlMNcTKKIzy7AR4i6zp/N4z1yU9rA== +"@cerc-io/ipld-eth-client@^0.2.89": + version "0.2.89" + resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Fipld-eth-client/-/0.2.89/ipld-eth-client-0.2.89.tgz#c0e969207cafb853d82989fe354ef86c54790e40" + integrity sha512-NVW8ro5Is6YlBLZUw2LRxB3r1Wig23XO49iKYSPKl3NHD9vb8DuhSn2ZKTEnH5PQ23LmjeaOPUOe6iD83OC/qg== dependencies: "@apollo/client" "^3.7.1" - "@cerc-io/cache" "^0.2.88" - "@cerc-io/util" "^0.2.88" + "@cerc-io/cache" "^0.2.89" + "@cerc-io/util" "^0.2.89" cross-fetch "^3.1.4" debug "^4.3.1" ethers "^5.4.4" @@ -406,10 +406,10 @@ unique-names-generator "^4.7.1" yargs "^17.0.1" -"@cerc-io/peer@^0.2.88": - version "0.2.88" - resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Fpeer/-/0.2.88/peer-0.2.88.tgz#3a7efb9d3db9b7b91542a1319f80c2f23ed5ad30" - integrity sha512-MycvZSIu81SGPn1Z/8ZQd+rxshcl403MRjq8rgEnGyzVPhQw5X05lm4ZHJqRVOwr7h7fEpgutUHI7BVXtkkxyA== +"@cerc-io/peer@^0.2.89": + version "0.2.89" + resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Fpeer/-/0.2.89/peer-0.2.89.tgz#0e91ff1d84bdc30011c25caebafe0a509d4a6676" + integrity sha512-N0bi5HowDxWJ8H1klIJrqLsZSpcmvP1g4lpfM4lEcnmTmc3j0IchKO4Z4OelPLlWZWqHCSXsTzD2p1KnxkIKDw== dependencies: "@cerc-io/libp2p" "^0.42.2-laconic-0.1.4" "@cerc-io/prometheus-metrics" "1.1.4" @@ -448,23 +448,23 @@ it-stream-types "^1.0.4" promjs "^0.4.2" -"@cerc-io/rpc-eth-client@^0.2.88": - version "0.2.88" - resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Frpc-eth-client/-/0.2.88/rpc-eth-client-0.2.88.tgz#de1a342c5e1061f138356e597891ff0aee3f169d" - integrity sha512-KbSGTnG4bIPC01P8YK7F/M/yEMw6KcF4DDhA4vOTC/KYoXQ/UN7PjiOCq4GVNxbWGnyqhQjNc4n83dMfGG1r+A== +"@cerc-io/rpc-eth-client@^0.2.89": + version "0.2.89" + resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Frpc-eth-client/-/0.2.89/rpc-eth-client-0.2.89.tgz#8f0750677598395d15b70e55d3730ee40e143ab5" + integrity sha512-N/s2OMIszD+7NQwCbC4m8R+AjnIG4W4/V9q/4//H6EIgfNYno+mnjYi3qU+nFlZe2gbWR4JiOU6JT7R4hm16kw== dependencies: - "@cerc-io/cache" "^0.2.88" - "@cerc-io/ipld-eth-client" "^0.2.88" - "@cerc-io/util" "^0.2.88" + "@cerc-io/cache" "^0.2.89" + "@cerc-io/ipld-eth-client" "^0.2.89" + "@cerc-io/util" "^0.2.89" chai "^4.3.4" ethers "^5.4.4" left-pad "^1.3.0" mocha "^8.4.0" -"@cerc-io/solidity-mapper@^0.2.88": - version "0.2.88" - resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Fsolidity-mapper/-/0.2.88/solidity-mapper-0.2.88.tgz#34bdef4ba47f364434b7330cb908d83b387cf11b" - integrity sha512-Qvez8TKs+xmeox9zqoj3nHOe2SCDsJQGbFfclptAyT3ofRMTEj362+6Yqia8tU8UoGnfFM9EEWbz3lt1x/OQbA== +"@cerc-io/solidity-mapper@^0.2.89": + version "0.2.89" + resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Fsolidity-mapper/-/0.2.89/solidity-mapper-0.2.89.tgz#9cf1cfb125d9f275fd6c3d8a09571e65ac80475f" + integrity sha512-gBecAbjpnvi+i/EEhgkJc5BXHV+U9ZsvEWESdO7Hse+GW4EVb0nwEAVHcWAUp+MfcBFz5XcH/6oEHnCselk4Ew== dependencies: dotenv "^10.0.0" @@ -473,15 +473,15 @@ resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Fts-channel/-/1.0.3-ts-nitro-0.1.1/ts-channel-1.0.3-ts-nitro-0.1.1.tgz#0768781313a167295c0bf21307f47e02dc17e936" integrity sha512-2jFICUSyffuZ+8+qRhXuLSJq4GJ6Y02wxiXoubH0Kzv2lIKkJtWICY1ZQQhtXAvP0ncAQB85WJHqtqwH8l7J3Q== -"@cerc-io/util@^0.2.88": - version "0.2.88" - resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Futil/-/0.2.88/util-0.2.88.tgz#d053e53db6bf58f165e8b134a2ecab4d07c040f3" - integrity sha512-g9gylT3Igg+hA6OpprXI+niPMGUDCmpBtygim9svXj+iwZCtDZQoLuzlPetcm6wiQMhK0Ai5ReTDAnd0IrrZWw== +"@cerc-io/util@^0.2.89": + version "0.2.89" + resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Futil/-/0.2.89/util-0.2.89.tgz#ab12302e503723bdb86c80979abd5ba7640ba5ff" + integrity sha512-NdiyNKOMXVUEchVQ7cjwfGg57v664NXAML6RXakxnkk1KoD1WIO9EeZHilvCCnEK9aDDyu3Wz3hVW3y/6TCEwQ== dependencies: "@apollo/utils.keyvaluecache" "^1.0.1" "@cerc-io/nitro-node" "^0.1.15" - "@cerc-io/peer" "^0.2.88" - "@cerc-io/solidity-mapper" "^0.2.88" + "@cerc-io/peer" "^0.2.89" + "@cerc-io/solidity-mapper" "^0.2.89" "@cerc-io/ts-channel" "1.0.3-ts-nitro-0.1.1" "@ethersproject/properties" "^5.7.0" "@ethersproject/providers" "^5.4.4" -- 2.45.2