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 base sonic and Soneium #2316

Merged
merged 2 commits into from
Jan 14, 2025
Merged

add base sonic and Soneium #2316

merged 2 commits into from
Jan 14, 2025

Conversation

dtmkeng
Copy link
Contributor

@dtmkeng dtmkeng commented Jan 14, 2025

@llamabutler
Copy link

The zns adapter exports:

> [email protected] test
> ts-node --transpile-only cli/testAdapter.ts fees zns

🦙 Running ZNS adapter 🦙
---------------------------------------------------
Start Date:	Mon, 13 Jan 2025 15:43:04 GMT
End Date:	Tue, 14 Jan 2025 15:43:04 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
error fetching blocksoneium Error getting block: soneium 1736782983 Request failed with status code 400
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
error fetching blocksoneium Error getting block: soneium 1736869383 Request failed with status code 400
Error: fromBlock or fromTimestamp is required
    at getLogs (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/@defillama/sdk/build/util/logs.js:35:15)
    at Object.getLogs (/home/runner/work/dimension-adapters/dimension-adapters/adapters/utils/runAdapter.ts:107:26)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async fetchLogsAndCalculateFees (/home/runner/work/dimension-adapters/dimension-adapters/fees/zns/index.ts:68:22)
    at async getChainResult (/home/runner/work/dimension-adapters/dimension-adapters/adapters/utils/runAdapter.ts:51:18)
    at async Promise.all (index 9)
    at async runAdapter (/home/runner/work/dimension-adapters/dimension-adapters/adapters/utils/runAdapter.ts:27:20)
    at async /home/runner/work/dimension-adapters/dimension-adapters/cli/testAdapter.ts:84:21 {
  chain: 'soneium'
}

@llamabutler
Copy link

The zns adapter exports:

> [email protected] test
> ts-node --transpile-only cli/testAdapter.ts fees zns

🦙 Running ZNS adapter 🦙
---------------------------------------------------
Start Date:	Mon, 13 Jan 2025 15:47:26 GMT
End Date:	Tue, 14 Jan 2025 15:47:26 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
error fetching blocksoneium Error getting block: soneium 1736783245 Request failed with status code 400
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
error fetching blocksoneium Error getting block: soneium 1736869645 Request failed with status code 400
Error: fromBlock or fromTimestamp is required
    at getLogs (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/@defillama/sdk/build/util/logs.js:35:15)
    at Object.getLogs (/home/runner/work/dimension-adapters/dimension-adapters/adapters/utils/runAdapter.ts:107:26)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async fetchLogsAndCalculateFees (/home/runner/work/dimension-adapters/dimension-adapters/fees/zns/index.ts:69:22)
    at async getChainResult (/home/runner/work/dimension-adapters/dimension-adapters/adapters/utils/runAdapter.ts:51:18)
    at async Promise.all (index 9)
    at async runAdapter (/home/runner/work/dimension-adapters/dimension-adapters/adapters/utils/runAdapter.ts:27:20)
    at async /home/runner/work/dimension-adapters/dimension-adapters/cli/testAdapter.ts:84:21 {
  chain: 'soneium'
}

@dtmkeng dtmkeng merged commit da13869 into master Jan 14, 2025
2 checks passed
@dtmkeng dtmkeng deleted the refs-2314 branch January 14, 2025 18:19
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