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

Add legacy fees and bribes to Shadow Fees #2360

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

morazzela
Copy link

No description provided.

@llamabutler
Copy link

The shadow-exchange.ts adapter exports:

> [email protected] test
> ts-node --transpile-only cli/testAdapter.ts protocols shadow-exchange.ts

🦙 Running SHADOW-EXCHANGE.TS adapter 🦙
---------------------------------------------------
GRAPH_API_KEY env variable is not set, using the default api key
Start Date:	Mon, 27 Jan 2025 11:34:21 GMT
End Date:	Tue, 28 Jan 2025 11:34:21 GMT
---------------------------------------------------

ClientError: auth error: payment required for subsequent requests for this API key: {"response":{"errors":[{"message":"auth error: payment required for subsequent requests for this API key"}],"status":200,"headers":{}},"request":{"query":"\n    {\n      tokenDayDatas (\n        where: { token_in: [\"0x3333b97138d4b086720b5ae8a7844b1345a33333\"] },\n        startOfDay_lte: 1738022400,\n        orderBy: startOfDay\n        orderDirection: desc\n      ) {\n        token { id, decimals }\n        priceUSD\n      }\n    }\n  "}}
    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' +
      '    {\n' +
      '      tokenDayDatas (\n' +
      '        where: { token_in: ["0x3333b97138d4b086720b5ae8a7844b1345a33333"] },\n' +
      '        startOfDay_lte: 1738022400,\n' +
      '        orderBy: startOfDay\n' +
      '        orderDirection: desc\n' +
      '      ) {\n' +
      '        token { id, decimals }\n' +
      '        priceUSD\n' +
      '      }\n' +
      '    }\n' +
      '  ',
    variables: undefined
  },
  chain: 'sonic'
}


const query = `
{
tokenDayDatas (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seem the graph not found tokenDayDatas field

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.

3 participants