-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added suport new datasource subquery
- Loading branch information
Showing
36 changed files
with
3,501 additions
and
255 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import type { CodegenConfig } from '@graphql-codegen/cli'; | ||
import * as dotenv from 'dotenv'; | ||
dotenv.config({ path: `${__dirname}/../.env.local` }); | ||
|
||
const queryUrl = process.env.DATA_SOURCE_SUBQUERY_NOVA_POLKADOT; | ||
if (!queryUrl) throw new Error('Codegen error: Datahub Mutation URL not set'); | ||
|
||
const config: CodegenConfig = { | ||
overwrite: true, | ||
schema: queryUrl, | ||
documents: 'src/utils/graphQl/subQueryNova/query.ts', | ||
generates: { | ||
'src/utils/graphQl/subQueryNova/subquery-nova-query.ts': { | ||
plugins: [ | ||
'typescript', | ||
'typescript-operations', | ||
'typescript-document-nodes', | ||
], | ||
}, | ||
}, | ||
}; | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/modules/dataAggregator/dto/collectTransfersChunkHandlerResponse.response.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { GetTransfersByAccountQuery } from '../../../utils/graphQl/gsquidMain/gsquid-main-query'; | ||
import { TransferDecoratedDto } from './transfersByAccountDecorated.dto'; | ||
|
||
export class CollectTransfersChunkHandlerResponseResponse { | ||
fetchedChunkData: GetTransfersByAccountQuery['transfers']; | ||
fetchedChunkData: TransferDecoratedDto[]; | ||
} |
3 changes: 3 additions & 0 deletions
3
src/modules/dataAggregator/dto/getIndexerLastProcessedHeight.args.dto.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export class GetIndexerLastProcessedHeightArgs { | ||
queryUrl: string; | ||
} |
3 changes: 0 additions & 3 deletions
3
src/modules/dataAggregator/dto/getMainGiantSquidStatus.args.dto.ts
This file was deleted.
Oops, something went wrong.
6 changes: 5 additions & 1 deletion
6
src/modules/dataAggregator/dto/getTransfersByAccount.args.dto.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
import { BlockchainTag } from '../../../constants/blockchain'; | ||
|
||
export class GetTransfersByAccountArgs { | ||
blockchainTag: BlockchainTag; | ||
limit: number; | ||
offset: number; | ||
blockNumber_gt: number; | ||
blockNumber_lt: number | null; | ||
publicKey: string; | ||
publicKey?: string; | ||
address?: string; | ||
queryUrl: string; | ||
} |
Oops, something went wrong.