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

update ktx subgraph endpoints #1753

Closed
wants to merge 1 commit into from
Closed

Conversation

laizhouxia
Copy link
Contributor

No description provided.

@llamatester
Copy link

The ktx adapter exports:

> [email protected] test
> ts-node --transpile-only cli/testAdapter.ts dexs ktx

🦙 Running KTX adapter 🦙
---------------------------------------------------
Start Date:	Wed, 07 Aug 2024 00:00:00 GMT
End Date:	Thu, 08 Aug 2024 00:00:00 GMT
---------------------------------------------------

ClientError: Type `Query` has no field `volumeStats`: {"response":{"errors":[{"locations":[{"line":3,"column":5}],"message":"Type `Query` has no field `volumeStats`"}],"status":200,"headers":{}},"request":{"query":"\n  query get_volume($period: String!, $id: String!) {\n    volumeStats(where: { period: $period, id: $id }) {\n      liquidation\n      margin\n    }\n  }\n","variables":{"id":"1722988800","period":"daily"}}}
    at /home/runner/work/dimension-adapters/dimension-adapters/node_modules/graphql-request/src/index.ts:498:11
    at step (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/graphql-request/dist/index.js:67:23)
    at Object.next (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/graphql-request/dist/index.js:48:53)
    at fulfilled (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/graphql-request/dist/index.js:39:58)
    at processTicksAndRejections (node:internal/process/task_queues:95:5) {
  response: {
    errors: [ [Object] ],
    status: 200,
    headers: Headers { [Symbol(map)]: [Object: null prototype] }
  },
  request: {
    query: '\n' +
      '  query get_volume($period: String!, $id: String!) {\n' +
      '    volumeStats(where: { period: $period, id: $id }) {\n' +
      '      liquidation\n' +
      '      margin\n' +
      '    }\n' +
      '  }\n',
    variables: { id: '1722988800', period: 'daily' }
  },
  chain: 'mantle'
}

@laizhouxia laizhouxia closed this Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants