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

feat: add eisen fee tracking on defillama #2296

Merged
merged 3 commits into from
Jan 10, 2025

Conversation

climberNeedEquipment
Copy link
Contributor

No description provided.

@llamabutler
Copy link

The eisen.ts adapter exports:

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

🦙 Running EISEN.TS adapter 🦙
---------------------------------------------------
Start Date:	Wed, 08 Jan 2025 00:00:00 GMT
End Date:	Thu, 09 Jan 2025 00:00:00 GMT
---------------------------------------------------

[Warning] Invalid Fragment "event EisenSwapCompleted(address sender, address fromAssetId, address toAssetId, address receiver, uint256 fromAmount, uint256 toAmount, uint256 expectedToAmount, uint256 fee);": unexpected token ";" at position 175
TypeError: invalid event fragment (argument="obj", value="event EisenSwapCompleted(address sender, address fromAssetId, address toAssetId, address receiver, uint256 fromAmount, uint256 toAmount, uint256 expectedToAmount, uint256 fee);", code=INVALID_ARGUMENT, version=6.13.2)
    at makeError (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/ethers/src.ts/utils/errors.ts:687:21)
    at assert (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/ethers/src.ts/utils/errors.ts:715:25)
    at assertArgument (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/ethers/src.ts/utils/errors.ts:727:5)
    at Function.from (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/ethers/src.ts/abi/fragments.ts:1185:31)
    at toFilterTopic (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/@defillama/sdk/build/util/logs.js:186:45)
    at getLogs (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/@defillama/sdk/build/util/logs.js:61:21)
    at /home/runner/work/dimension-adapters/dimension-adapters/node_modules/@defillama/sdk/build/util/logs.js:47:56
    at Array.map (<anonymous>)
    at getLogs (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/@defillama/sdk/build/util/logs.js:47:47)
    at getLogs (/home/runner/work/dimension-adapters/dimension-adapters/adapters/utils/runAdapter.ts:107:26) {
  code: 'INVALID_ARGUMENT',
  argument: 'obj',
  value: 'event EisenSwapCompleted(address sender, address fromAssetId, address toAssetId, address receiver, uint256 fromAmount, uint256 toAmount, uint256 expectedToAmount, uint256 fee);',
  shortMessage: 'invalid event fragment',
  chain: 'mode'
}
[Warning] Invalid Fragment "event EisenSwapCompleted(address sender, address fromAssetId, address toAssetId, address receiver, uint256 fromAmount, uint256 toAmount, uint256 expectedToAmount, uint256 fee);": unexpected token ";" at position 175
[Warning] Invalid Fragment "event EisenSwapCompleted(address sender, address fromAssetId, address toAssetId, address receiver, uint256 fromAmount, uint256 toAmount, uint256 expectedToAmount, uint256 fee);": unexpected token ";" at position 175
[Warning] Invalid Fragment "event EisenSwapCompleted(address sender, address fromAssetId, address toAssetId, address receiver, uint256 fromAmount, uint256 toAmount, uint256 expectedToAmount, uint256 fee);": unexpected token ";" at position 175
[Warning] Invalid Fragment "event EisenSwapCompleted(address sender, address fromAssetId, address toAssetId, address receiver, uint256 fromAmount, uint256 toAmount, uint256 expectedToAmount, uint256 fee);": unexpected token ";" at position 175
[Warning] Invalid Fragment "event EisenSwapCompleted(address sender, address fromAssetId, address toAssetId, address receiver, uint256 fromAmount, uint256 toAmount, uint256 expectedToAmount, uint256 fee);": unexpected token ";" at position 175
[Warning] Invalid Fragment "event EisenSwapCompleted(address sender, address fromAssetId, address toAssetId, address receiver, uint256 fromAmount, uint256 toAmount, uint256 expectedToAmount, uint256 fee);": unexpected token ";" at position 175
[Warning] Invalid Fragment "event EisenSwapCompleted(address sender, address fromAssetId, address toAssetId, address receiver, uint256 fromAmount, uint256 toAmount, uint256 expectedToAmount, uint256 fee);": unexpected token ";" at position 175
[Warning] Invalid Fragment "event EisenSwapCompleted(address sender, address fromAssetId, address toAssetId, address receiver, uint256 fromAmount, uint256 toAmount, uint256 expectedToAmount, uint256 fee);": unexpected token ";" at position 175

@llamabutler
Copy link

The eisen.ts adapter exports:

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

🦙 Running EISEN.TS adapter 🦙
---------------------------------------------------
Start Date:	Wed, 08 Jan 2025 00:00:00 GMT
End Date:	Thu, 09 Jan 2025 00:00:00 GMT
---------------------------------------------------

RangeError: data out-of-bounds (buffer=0x00000000000000000000000063ca0543b2937a5daa8594bf596b076f2f1ee7ac00000000000000000000000000000000000000000000000000005af3107a400000000000000000000000000000000000000000000000000000005841bf332f730000000000000000000000000000000000000000000000000000584734b8ff750000000000000000000000000000000000000000000000000000000000000000, length=160, offset=192, code=BUFFER_OVERRUN, version=6.13.2)
    at makeError (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/ethers/src.ts/utils/errors.ts:691:21)
    at assert (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/ethers/src.ts/utils/errors.ts:715:25)
    at Reader.#peekBytes (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/ethers/src.ts/abi/coders/abstract-coder.ts:507:23)
    at Reader.readBytes (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/ethers/src.ts/abi/coders/abstract-coder.ts:526:36)
    at Reader.readValue (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/ethers/src.ts/abi/coders/abstract-coder.ts:535:30)
    at NumberCoder.decode (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/ethers/src.ts/abi/coders/number.ts:54:33)
    at /home/runner/work/dimension-adapters/dimension-adapters/node_modules/ethers/src.ts/abi/coders/array.ts:108:31
    at Array.forEach (<anonymous>)
    at unpack (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/ethers/src.ts/abi/coders/array.ts:86:12)
    at TupleCoder.decode (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/ethers/src.ts/abi/coders/tuple.ts:66:22) {
  code: 'BUFFER_OVERRUN',
  buffer: Uint8Array(160) [
     0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
    99, 202,  5,  67, 178, 147, 122,  93, 170, 133, 148, 191,
    89, 107,  7, 111,  47,  30, 231, 172,   0,   0,   0,   0,
     0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
     0,   0,  0,   0,   0,   0,   0,   0,   0,   0,  90, 243,
    16, 122, 64,   0,   0,   0,   0,   0,   0,   0,   0,   0,
     0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
     0,   0,  0,   0,   0,   0,  88,  65, 191,  51,  47, 115,
     0,   0,  0,   0,
    ... 60 more items
  ],
  length: 160,
  offset: 192,
  shortMessage: 'data out-of-bounds',
  chain: 'mode'
}

@llamabutler
Copy link

The eisen.ts adapter exports:

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

🦙 Running EISEN.TS adapter 🦙
---------------------------------------------------
Start Date:	Thu, 09 Jan 2025 04:21:42 GMT
End Date:	Fri, 10 Jan 2025 04:21:42 GMT
---------------------------------------------------

BASE 👇
Backfill start time: 23/11/2024
NO METHODOLOGY SPECIFIED
Daily fees: 0
Daily revenue: 0
End timestamp: 1736482901 (2025-01-10T04:21:41.000Z)


BLAST 👇
Backfill start time: 10/5/2024
NO METHODOLOGY SPECIFIED
Daily fees: 0
Daily revenue: 0
End timestamp: 1736482901 (2025-01-10T04:21:41.000Z)


CORE 👇
Backfill start time: 1/10/2024
NO METHODOLOGY SPECIFIED
Daily fees: 0
Daily revenue: 0
End timestamp: 1736482901 (2025-01-10T04:21:41.000Z)


MODE 👇
Backfill start time: 17/3/2024
NO METHODOLOGY SPECIFIED
Daily fees: 0
Daily revenue: 0
End timestamp: 1736482901 (2025-01-10T04:21:41.000Z)


LINEA 👇
Backfill start time: 18/6/2024
NO METHODOLOGY SPECIFIED
Daily fees: 0
Daily revenue: 0
End timestamp: 1736482901 (2025-01-10T04:21:41.000Z)


MANTLE 👇
Backfill start time: 24/5/2024
NO METHODOLOGY SPECIFIED
Daily fees: 0
Daily revenue: 0
End timestamp: 1736482901 (2025-01-10T04:21:41.000Z)


SCROLL 👇
Backfill start time: 16/10/2023
NO METHODOLOGY SPECIFIED
Daily fees: 0
Daily revenue: 0
End timestamp: 1736482901 (2025-01-10T04:21:41.000Z)


TAIKO 👇
Backfill start time: 1/10/2024
NO METHODOLOGY SPECIFIED
Daily fees: 0
Daily revenue: 0
End timestamp: 1736482901 (2025-01-10T04:21:41.000Z)


ZIRCUIT 👇
Backfill start time: 6/12/2024
NO METHODOLOGY SPECIFIED
Daily fees: 0
Daily revenue: 0
End timestamp: 1736482901 (2025-01-10T04:21:41.000Z)

@g1nt0ki
Copy link
Member

g1nt0ki commented Jan 10, 2025

thanks for the PR

@g1nt0ki g1nt0ki merged commit 6c8d2c7 into DefiLlama:master Jan 10, 2025
2 checks passed
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