Skip to content

Commit

Permalink
Merge pull request #19 from beefyfinance/revert-18-use-lighter-graphq…
Browse files Browse the repository at this point in the history
…l-client

Revert "Use a lighter graphql client"
  • Loading branch information
prevostc authored Jun 16, 2024
2 parents d6366a2 + 3e78ea4 commit c9dea2d
Show file tree
Hide file tree
Showing 20 changed files with 2,753 additions and 2,438 deletions.
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

0 comments on commit c9dea2d

Please sign in to comment.