-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
common: setting up GraphQL using Yoga and Codegen preset
- Loading branch information
Showing
67 changed files
with
9,322 additions
and
58 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,14 @@ | ||
import type { CodegenConfig } from '@graphql-codegen/cli' | ||
import { defineConfig } from '@eddeee888/gcg-typescript-resolver-files' | ||
|
||
const config: CodegenConfig = { | ||
schema: 'src/indexer-management/schema.graphql', | ||
generates: { | ||
'src/schema': defineConfig({ | ||
typesPluginsConfig: { | ||
contextType: '@graphprotocol/indexer-common#IndexerManagementResolverContext', | ||
}, | ||
}), | ||
}, | ||
} | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { Logger, WritableEventual } from '@graphprotocol/common-ts' | ||
import { IndexerManagementModels } from './models' | ||
import { GraphNode } from '../graph-node' | ||
import { ActionManager, MultiNetworks, Network } from '@graphprotocol/indexer-common' | ||
import { IndexerManagementDefaults } from './client' | ||
|
||
export interface IndexerManagementResolverContext { | ||
models: IndexerManagementModels | ||
graphNode: GraphNode | ||
logger: Logger | ||
defaults: IndexerManagementDefaults | ||
actionManager: ActionManager | undefined | ||
multiNetworks: MultiNetworks<Network> | undefined | ||
dai: WritableEventual<string> | ||
} |
2 changes: 1 addition & 1 deletion
2
packages/indexer-common/src/indexer-management/resolvers/actions.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
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
2 changes: 1 addition & 1 deletion
2
packages/indexer-common/src/indexer-management/resolvers/poi-disputes.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
Oops, something went wrong.