Skip to content

Conversation

Ulydev
Copy link
Contributor

@Ulydev Ulydev commented Oct 1, 2025

This PR adds tracking configuration for Spectra on Katana.

@llamabutler
Copy link

The spectra-v2.ts adapter exports:

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

🦙 Running SPECTRA-V2.TS adapter 🦙
---------------------------------------------------
Start Date:	Tue, 30 Sep 2025 11:10:35 GMT
End Date:	Wed, 01 Oct 2025 11:10:35 GMT
---------------------------------------------------

chain       | Daily volume | Daily fees | Daily revenue | Daily supply side revenue | Daily protocol revenue | Daily holders revenue | Daily bribes revenue | Start Time
---         | ---          | ---        | ---           | ---                       | ---                    | ---                   | ---                  | ---       
ethereum    | 42.98 k      | 23         | 19            | 5                         | 0                      | 0                     | 2.50 k               | 1/7/2024  
arbitrum    | 0            | 0          | 0             | 0                         | 0                      | 0                     | 0                    | 1/7/2024  
optimism    | 0            | 0          | 0             | 0                         | 0                      | 0                     | 0                    | 1/7/2024  
base        | 53.53 k      | 1          | 1             | 0                         | 0                      | 0                     | 999                  | 1/7/2024  
sonic       | 82           | 0          | 0             | 0                         | 0                      | 0                     | 100                  | 27/12/2024
hemi        | 599          | 1          | 0             | 0                         | 0                      | 0                     | 0                    | 6/3/2025  
avax        | 0            | 0          | 0             | 0                         | 0                      | 0                     | 0                    | 26/5/2025 
bsc         | 0            | 0          | 0             | 0                         | 0                      | 0                     | 0                    | 26/5/2025 
hyperliquid | 95.33 k      | 80         | 64            | 16                        | 0                      | 0                     | 0                    | 1/6/2025  
Aggregate   | 192.52 k     | 105        | 84            | 21                        | 0                      | 0                     | 3.60 k               |           

@noateden
Copy link
Contributor

noateden commented Oct 1, 2025

hi @Ulydev, getting rate limit error on katana subgraph

@noateden noateden self-assigned this Oct 1, 2025
@Ulydev
Copy link
Contributor Author

Ulydev commented Oct 1, 2025

gm @noateden, how do you recommend passing API keys while querying subgraphs from The Graph? Does DefiLlama have a default The Graph API key?

@noateden
Copy link
Contributor

noateden commented Oct 1, 2025

@Ulydev we pass a the graph API key by default if you use our sdk, like this:
https://github.com/DefiLlama/dimension-adapters/blob/master/dexs/uniswap-v3.ts#L12

@Ulydev
Copy link
Contributor Author

Ulydev commented Oct 1, 2025

@Ulydev we pass a the graph API key by default if you use our sdk, like this: https://github.com/DefiLlama/dimension-adapters/blob/master/dexs/uniswap-v3.ts#L12

awesome thank you! modified :)

@llamabutler
Copy link

The spectra-v2.ts adapter exports:

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

🦙 Running SPECTRA-V2.TS adapter 🦙
---------------------------------------------------
GRAPH_API_KEY env variable is not set, using the default api key
Start Date:	Tue, 30 Sep 2025 14:21:40 GMT
End Date:	Wed, 01 Oct 2025 14:21:40 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      transactions(\n        where: {\n          createdAtTimestamp_gte: 1759242099\n          createdAtTimestamp_lt: 1759328500\n          feeUnderlying_not: \"0\"\n        }\n        first: 1000\n      ) {\n        poolInTransaction {\n          id\n          futureVault {\n            underlyingAsset {\n              address\n            }\n          }\n        }\n        feeUnderlying\n        valueUnderlying\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' +
      '      transactions(\n' +
      '        where: {\n' +
      '          createdAtTimestamp_gte: 1759242099\n' +
      '          createdAtTimestamp_lt: 1759328500\n' +
      '          feeUnderlying_not: "0"\n' +
      '        }\n' +
      '        first: 1000\n' +
      '      ) {\n' +
      '        poolInTransaction {\n' +
      '          id\n' +
      '          futureVault {\n' +
      '            underlyingAsset {\n' +
      '              address\n' +
      '            }\n' +
      '          }\n' +
      '        }\n' +
      '        feeUnderlying\n' +
      '        valueUnderlying\n' +
      '      }\n' +
      '    }\n' +
      '  ',
    variables: undefined
  },
  chain: 'katana'
}

@noateden
Copy link
Contributor

noateden commented Oct 1, 2025

@Ulydev, I think you config wrong subgraph, this is katana block subgraph, can you check again?

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