Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Use a lighter graphql client" #19

Merged
merged 1 commit into from
Jun 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions .graphclientrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# .graphclientrc.yml
# https://github.com/graphprotocol/graph-client/blob/main/examples/composition/.graphclientrc.yml

sources:
- name: beefy-clm-beta
handler:
graphql:
endpoint: https://api.goldsky.com/api/public/project_clu2walwem1qm01w40v3yhw1f/subgraphs/beefy-clm-{context.chainName:arbitrum}-beta/latest/gn
transforms:
- autoTypeMerging: true
- autoPagination:
validateSchema: true
limitOfRecords: 1000
- rename:
mode: wrap
renames:
- from:
type: Query
field: clmPositions
to:
type: Query
field: beta_clmPositions
- from:
type: Query
field: clm
to:
type: Query
field: beta_clm
- from:
type: Query
field: clms
to:
type: Query
field: beta_clms

- name: beefy-clm-prod
handler:
graphql:
endpoint: https://api.goldsky.com/api/public/project_clu2walwem1qm01w40v3yhw1f/subgraphs/beefy-clm-{context.chainName:arbitrum}/latest/gn
transforms:
- autoTypeMerging: true
- autoPagination:
validateSchema: true
limitOfRecords: 1000

plugins:
- httpCache:
matches:
- 'https://api.goldsky.com'

documents:
- ./src/queries/*.graphql

additionalTypeDefs: |
extend type CLM {
chain: String
}

additionalResolvers:
- './src/queries/extensions/chain-resolvers'
1 change: 0 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/.husky
/build
/node_modules
src/queries/codegen/sdk.ts
Loading
Loading