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

Fix for Solana historic data #2282

Closed

Conversation

jacksmithinsulander
Copy link
Contributor

when I first made this adapter we only got Solana data from the time the adapter was deployed, not since nov 23rd, and I think this was due to the usage of runAtCurrTime ?

start: '2024-11-23',
},
},
isExpensiveAdapter: true,
Copy link
Contributor

Choose a reason for hiding this comment

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

if you use dune query it require set isExpensiveAdapter true it can't remove

Copy link
Contributor Author

Choose a reason for hiding this comment

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

But besides this the runAtCurrTime removal will get us the historic data we want?

@llamabutler
Copy link

The blazingbot.ts adapter exports:

> adapters@1.0.0 test
> ts-node --transpile-only cli/testAdapter.ts fees blazingbot.ts

🦙 Running BLAZINGBOT.TS adapter 🦙
---------------------------------------------------
Start Date:	Sun, 05 Jan 2025 07:20:10 GMT
End Date:	Mon, 06 Jan 2025 07:20:10 GMT
---------------------------------------------------

error fetching block TypeError: Cannot read properties of null (reading 'getBlock')
    at _getCurrentChainBlock (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/@defillama/sdk/build/util/blocks.js:84:59)
    at getCurrentChainBlock (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/@defillama/sdk/build/util/blocks.js:76:22)
    at _lookupBlock (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/@defillama/sdk/build/util/blocks.js:204:44)
    at /home/runner/work/dimension-adapters/dimension-adapters/node_modules/@defillama/sdk/build/util/blocks.js:155:26
    at /home/runner/work/dimension-adapters/dimension-adapters/node_modules/p-limit/index.js:23:31
    at run (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/p-limit/index.js:23:43)
    at /home/runner/work/dimension-adapters/dimension-adapters/node_modules/p-limit/index.js:45:20
    at runNextTicks (node:internal/process/task_queues:60:5)
    at listOnTimeout (node:internal/timers:545:9)
    at processTimers (node:internal/timers:519:7)
query run-async [Error: Request failed with status code 403] {
  url: 'https://api.allium.so/api/v1/explorer/queries/phBjLzIZ8uUIDlp0dD3N/run-async',
  method: 'POST',
  axiosError: 'Forbidden'
}
error fetching block TypeError: Cannot read properties of null (reading 'getBlock')
    at _getCurrentChainBlock (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/@defillama/sdk/build/util/blocks.js:84:59)
    at getCurrentChainBlock (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/@defillama/sdk/build/util/blocks.js:76:22)
    at _lookupBlock (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/@defillama/sdk/build/util/blocks.js:204:44)
    at /home/runner/work/dimension-adapters/dimension-adapters/node_modules/@defillama/sdk/build/util/blocks.js:155:26
    at /home/runner/work/dimension-adapters/dimension-adapters/node_modules/p-limit/index.js:23:31
    at run (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/p-limit/index.js:23:43)
    at /home/runner/work/dimension-adapters/dimension-adapters/node_modules/p-limit/index.js:45:20
    at runNextTicks (node:internal/process/task_queues:60:5)
    at listOnTimeout (node:internal/timers:545:9)
    at processTimers (node:internal/timers:519:7)
query run-async [Error: Request failed with status code 403] {
  url: 'https://api.allium.so/api/v1/explorer/queries/phBjLzIZ8uUIDlp0dD3N/run-async',
  method: 'POST',
  axiosError: 'Forbidden'
}
TypeError: Cannot read properties of null (reading 'getLogs')
    at _getLogs (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/@defillama/sdk/build/util/index.js:84:45)
    at /home/runner/work/dimension-adapters/dimension-adapters/node_modules/@defillama/sdk/build/util/index.js:54:39
    at /home/runner/work/dimension-adapters/dimension-adapters/node_modules/p-limit/index.js:23:31
    at run (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/p-limit/index.js:23:43)
    at /home/runner/work/dimension-adapters/dimension-adapters/node_modules/p-limit/index.js:45:20
    at processTicksAndRejections (node:internal/process/task_queues:95:5) {
  chain: 'sonic'
}
query run-async [Error: Request failed with status code 403] {
  url: 'https://api.allium.so/api/v1/explorer/queries/phBjLzIZ8uUIDlp0dD3N/run-async',
  method: 'POST',
  axiosError: 'Forbidden'
}
query run-async [Error: Request failed with status code 403] {
  url: 'https://api.allium.so/api/v1/explorer/queries/phBjLzIZ8uUIDlp0dD3N/run-async',
  method: 'POST',
  axiosError: 'Forbidden'
}
query run-async [Error: Request failed with status code 403] {
  url: 'https://api.allium.so/api/v1/explorer/queries/phBjLzIZ8uUIDlp0dD3N/run-async',
  method: 'POST',
  axiosError: 'Forbidden'
}
Daily fees:  Balances {
  chain: 'ethereum',
  timestamp: undefined,
  _balances: {
    'ethereum:0x0000000000000000000000000000000000000000': 156443486911523780
  }
}
Daily revenue:  Balances {
  chain: 'ethereum',
  timestamp: undefined,
  _balances: {
    'ethereum:0x0000000000000000000000000000000000000000': 156443486911523780
  }
}
query run-async [Error: Request failed with status code 403] {
  url: 'https://api.allium.so/api/v1/explorer/queries/phBjLzIZ8uUIDlp0dD3N/run-async',
  method: 'POST',
  axiosError: 'Forbidden'
}
Daily fees:  Balances { chain: 'bsc', timestamp: undefined, _balances: {} }
Daily revenue:  Balances { chain: 'bsc', timestamp: undefined, _balances: {} }
Daily fees:  Balances {
  chain: 'base',
  timestamp: undefined,
  _balances: {
    'base:0x0000000000000000000000000000000000000000': 1334755715216097300
  }
}
Daily revenue:  Balances {
  chain: 'base',
  timestamp: undefined,
  _balances: {
    'base:0x0000000000000000000000000000000000000000': 1334755715216097300
  }
}
query run-async [Error: Request failed with status code 403] {
  url: 'https://api.allium.so/api/v1/explorer/queries/phBjLzIZ8uUIDlp0dD3N/run-async',
  method: 'POST',
  axiosError: 'Forbidden'
}
query run-async [Error: Request failed with status code 403] {
  url: 'https://api.allium.so/api/v1/explorer/queries/phBjLzIZ8uUIDlp0dD3N/run-async',
  method: 'POST',
  axiosError: 'Forbidden'
}
query run-async [Error: Request failed with status code 403] {
  url: 'https://api.allium.so/api/v1/explorer/queries/phBjLzIZ8uUIDlp0dD3N/run-async',
  method: 'POST',
  axiosError: 'Forbidden'
}
query run-async [Error: Request failed with status code 403] {
  url: 'https://api.allium.so/api/v1/explorer/queries/phBjLzIZ8uUIDlp0dD3N/run-async',
  method: 'POST',
  axiosError: 'Forbidden'
}
query run-async [Error: Request failed with status code 403] {
  url: 'https://api.allium.so/api/v1/explorer/queries/phBjLzIZ8uUIDlp0dD3N/run-async',
  method: 'POST',
  axiosError: 'Forbidden'
}
query run-async [Error: Request failed with status code 403] {
  url: 'https://api.allium.so/api/v1/explorer/queries/phBjLzIZ8uUIDlp0dD3N/run-async',
  method: 'POST',
  axiosError: 'Forbidden'
}
query run-async [Error: Request failed with status code 403] {
  url: 'https://api.allium.so/api/v1/explorer/queries/phBjLzIZ8uUIDlp0dD3N/run-async',
  method: 'POST',
  axiosError: 'Forbidden'
}
query run-async [Error: Request failed with status code 403] {
  url: 'https://api.allium.so/api/v1/explorer/queries/phBjLzIZ8uUIDlp0dD3N/run-async',
  method: 'POST',
  axiosError: 'Forbidden'
}
query run-async [Error: Request failed with status code 403] {
  url: 'https://api.allium.so/api/v1/explorer/queries/phBjLzIZ8uUIDlp0dD3N/run-async',
  method: 'POST',
  axiosError: 'Forbidden'
}
query run-async [Error: Request failed with status code 403] {
  url: 'https://api.allium.so/api/v1/explorer/queries/phBjLzIZ8uUIDlp0dD3N/run-async',
  method: 'POST',
  axiosError: 'Forbidden'
}
query run-async [Error: Request failed with status code 403] {
  url: 'https://api.allium.so/api/v1/explorer/queries/phBjLzIZ8uUIDlp0dD3N/run-async',
  method: 'POST',
  axiosError: 'Forbidden'
}
query run-async [Error: Request failed with status code 403] {
  url: 'https://api.allium.so/api/v1/explorer/queries/phBjLzIZ8uUIDlp0dD3N/run-async',
  method: 'POST',
  axiosError: 'Forbidden'
}
query run-async [Error: Request failed with status code 403] {
  url: 'https://api.allium.so/api/v1/explorer/queries/phBjLzIZ8uUIDlp0dD3N/run-async',
  method: 'POST',
  axiosError: 'Forbidden'
}
query run-async [Error: Request failed with status code 403] {
  url: 'https://api.allium.so/api/v1/explorer/queries/phBjLzIZ8uUIDlp0dD3N/run-async',
  method: 'POST',
  axiosError: 'Forbidden'
}
query run-async [Error: Request failed with status code 403] {
  url: 'https://api.allium.so/api/v1/explorer/queries/phBjLzIZ8uUIDlp0dD3N/run-async',
  method: 'POST',
  axiosError: 'Forbidden'
}

@jacksmithinsulander
Copy link
Contributor Author

Readied isExpensiveAdapter

@dtmkeng dtmkeng closed this Jan 6, 2025
@dtmkeng
Copy link
Contributor

dtmkeng commented Jan 6, 2025

will refill

@llamabutler
Copy link

The blazingbot.ts adapter exports:

> adapters@1.0.0 test
> ts-node --transpile-only cli/testAdapter.ts fees blazingbot.ts

🦙 Running BLAZINGBOT.TS adapter 🦙
---------------------------------------------------
Start Date:	Sun, 05 Jan 2025 10:38:58 GMT
End Date:	Mon, 06 Jan 2025 10:38:58 GMT
---------------------------------------------------

error fetching block TypeError: Cannot read properties of null (reading 'getBlock')
    at _getCurrentChainBlock (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/@defillama/sdk/build/util/blocks.js:84:59)
    at getCurrentChainBlock (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/@defillama/sdk/build/util/blocks.js:76:22)
    at _lookupBlock (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/@defillama/sdk/build/util/blocks.js:204:44)
    at /home/runner/work/dimension-adapters/dimension-adapters/node_modules/@defillama/sdk/build/util/blocks.js:155:26
    at /home/runner/work/dimension-adapters/dimension-adapters/node_modules/p-limit/index.js:23:31
    at run (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/p-limit/index.js:23:43)
    at /home/runner/work/dimension-adapters/dimension-adapters/node_modules/p-limit/index.js:45:20
    at runNextTicks (node:internal/process/task_queues:60:5)
    at listOnTimeout (node:internal/timers:545:9)
    at processTimers (node:internal/timers:519:7)
error fetching block TypeError: Cannot read properties of null (reading 'getBlock')
    at _getCurrentChainBlock (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/@defillama/sdk/build/util/blocks.js:84:59)
    at getCurrentChainBlock (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/@defillama/sdk/build/util/blocks.js:76:22)
    at _lookupBlock (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/@defillama/sdk/build/util/blocks.js:204:44)
    at /home/runner/work/dimension-adapters/dimension-adapters/node_modules/@defillama/sdk/build/util/blocks.js:155:26
    at /home/runner/work/dimension-adapters/dimension-adapters/node_modules/p-limit/index.js:23:31
    at run (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/p-limit/index.js:23:43)
    at /home/runner/work/dimension-adapters/dimension-adapters/node_modules/p-limit/index.js:45:20
    at runNextTicks (node:internal/process/task_queues:60:5)
    at listOnTimeout (node:internal/timers:545:9)
    at processTimers (node:internal/timers:519:7)
query run-async [Error: Request failed with status code 403] {
  url: 'https://api.allium.so/api/v1/explorer/queries/phBjLzIZ8uUIDlp0dD3N/run-async',
  method: 'POST',
  axiosError: 'Forbidden'
}
TypeError: Cannot read properties of null (reading 'getLogs')
    at _getLogs (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/@defillama/sdk/build/util/index.js:84:45)
    at /home/runner/work/dimension-adapters/dimension-adapters/node_modules/@defillama/sdk/build/util/index.js:54:39
    at /home/runner/work/dimension-adapters/dimension-adapters/node_modules/p-limit/index.js:23:31
    at run (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/p-limit/index.js:23:43)
    at /home/runner/work/dimension-adapters/dimension-adapters/node_modules/p-limit/index.js:45:20
    at processTicksAndRejections (node:internal/process/task_queues:95:5) {
  chain: 'sonic'
}
Daily fees:  Balances {
  chain: 'ethereum',
  timestamp: undefined,
  _balances: {
    'ethereum:0x0000000000000000000000000000000000000000': 162016816640289400
  }
}
Daily revenue:  Balances {
  chain: 'ethereum',
  timestamp: undefined,
  _balances: {
    'ethereum:0x0000000000000000000000000000000000000000': 162016816640289400
  }
}
query run-async [Error: Request failed with status code 403] {
  url: 'https://api.allium.so/api/v1/explorer/queries/phBjLzIZ8uUIDlp0dD3N/run-async',
  method: 'POST',
  axiosError: 'Forbidden'
}
query run-async [Error: Request failed with status code 403] {
  url: 'https://api.allium.so/api/v1/explorer/queries/phBjLzIZ8uUIDlp0dD3N/run-async',
  method: 'POST',
  axiosError: 'Forbidden'
}
query run-async [Error: Request failed with status code 403] {
  url: 'https://api.allium.so/api/v1/explorer/queries/phBjLzIZ8uUIDlp0dD3N/run-async',
  method: 'POST',
  axiosError: 'Forbidden'
}
query run-async [Error: Request failed with status code 403] {
  url: 'https://api.allium.so/api/v1/explorer/queries/phBjLzIZ8uUIDlp0dD3N/run-async',
  method: 'POST',
  axiosError: 'Forbidden'
}
query run-async [Error: Request failed with status code 403] {
  url: 'https://api.allium.so/api/v1/explorer/queries/phBjLzIZ8uUIDlp0dD3N/run-async',
  method: 'POST',
  axiosError: 'Forbidden'
}
Daily fees:  Balances { chain: 'bsc', timestamp: undefined, _balances: {} }
Daily revenue:  Balances { chain: 'bsc', timestamp: undefined, _balances: {} }
Daily fees:  Balances {
  chain: 'base',
  timestamp: undefined,
  _balances: {
    'base:0x0000000000000000000000000000000000000000': 1310245583556343600
  }
}
Daily revenue:  Balances {
  chain: 'base',
  timestamp: undefined,
  _balances: {
    'base:0x0000000000000000000000000000000000000000': 1310245583556343600
  }
}
query run-async [Error: Request failed with status code 403] {
  url: 'https://api.allium.so/api/v1/explorer/queries/phBjLzIZ8uUIDlp0dD3N/run-async',
  method: 'POST',
  axiosError: 'Forbidden'
}
query run-async [Error: Request failed with status code 403] {
  url: 'https://api.allium.so/api/v1/explorer/queries/phBjLzIZ8uUIDlp0dD3N/run-async',
  method: 'POST',
  axiosError: 'Forbidden'
}
query run-async [Error: Request failed with status code 403] {
  url: 'https://api.allium.so/api/v1/explorer/queries/phBjLzIZ8uUIDlp0dD3N/run-async',
  method: 'POST',
  axiosError: 'Forbidden'
}
query run-async [Error: Request failed with status code 403] {
  url: 'https://api.allium.so/api/v1/explorer/queries/phBjLzIZ8uUIDlp0dD3N/run-async',
  method: 'POST',
  axiosError: 'Forbidden'
}
query run-async [Error: Request failed with status code 403] {
  url: 'https://api.allium.so/api/v1/explorer/queries/phBjLzIZ8uUIDlp0dD3N/run-async',
  method: 'POST',
  axiosError: 'Forbidden'
}
query run-async [Error: Request failed with status code 403] {
  url: 'https://api.allium.so/api/v1/explorer/queries/phBjLzIZ8uUIDlp0dD3N/run-async',
  method: 'POST',
  axiosError: 'Forbidden'
}
query run-async [Error: Request failed with status code 403] {
  url: 'https://api.allium.so/api/v1/explorer/queries/phBjLzIZ8uUIDlp0dD3N/run-async',
  method: 'POST',
  axiosError: 'Forbidden'
}
query run-async [Error: Request failed with status code 403] {
  url: 'https://api.allium.so/api/v1/explorer/queries/phBjLzIZ8uUIDlp0dD3N/run-async',
  method: 'POST',
  axiosError: 'Forbidden'
}
query run-async [Error: Request failed with status code 403] {
  url: 'https://api.allium.so/api/v1/explorer/queries/phBjLzIZ8uUIDlp0dD3N/run-async',
  method: 'POST',
  axiosError: 'Forbidden'
}
query run-async [Error: Request failed with status code 403] {
  url: 'https://api.allium.so/api/v1/explorer/queries/phBjLzIZ8uUIDlp0dD3N/run-async',
  method: 'POST',
  axiosError: 'Forbidden'
}
query run-async [Error: Request failed with status code 403] {
  url: 'https://api.allium.so/api/v1/explorer/queries/phBjLzIZ8uUIDlp0dD3N/run-async',
  method: 'POST',
  axiosError: 'Forbidden'
}
query run-async [Error: Request failed with status code 403] {
  url: 'https://api.allium.so/api/v1/explorer/queries/phBjLzIZ8uUIDlp0dD3N/run-async',
  method: 'POST',
  axiosError: 'Forbidden'
}
query run-async [Error: Request failed with status code 403] {
  url: 'https://api.allium.so/api/v1/explorer/queries/phBjLzIZ8uUIDlp0dD3N/run-async',
  method: 'POST',
  axiosError: 'Forbidden'
}
query run-async [Error: Request failed with status code 403] {
  url: 'https://api.allium.so/api/v1/explorer/queries/phBjLzIZ8uUIDlp0dD3N/run-async',
  method: 'POST',
  axiosError: 'Forbidden'
}
query run-async [Error: Request failed with status code 403] {
  url: 'https://api.allium.so/api/v1/explorer/queries/phBjLzIZ8uUIDlp0dD3N/run-async',
  method: 'POST',
  axiosError: 'Forbidden'
}

@dtmkeng
Copy link
Contributor

dtmkeng commented Jan 6, 2025

refilled since solana start time

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