Skip to content

feat: add support for Abstract chain - #97

Merged
hzhu merged 3 commits into
0xProject:mainfrom
cgero-eth:cgero/feat/add-abstract-support
Jan 27, 2026
Merged

hzhu merged 3 commits into
0xProject:mainfrom
cgero-eth:cgero/feat/add-abstract-support

Conversation

@cgero-eth

@cgero-eth cgero-eth commented Jan 26, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Update code and README.md file for Abstract chain support
  • Update tests to validate parsing logic on Abstract
  • Update transferLogs function to exclude transfer-like logs from non-ERC20 contracts

Screens

Screenshot 2026-01-26 at 15 26 29

@cgero-eth
cgero-eth requested a review from hzhu January 26, 2026 14:40
@cgero-eth cgero-eth self-assigned this Jan 26, 2026
Comment thread src/utils/index.ts Outdated

const amount =
log.data === "0x" ? "0" : formatUnits(BigInt(log.data), decimals);
log.data === "0x" ? "0" : formatUnits(BigInt(log.data), decimals as number);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Let鈥檚 remove the type assertion and use idiomatic TypeScript checks so the type is actually guaranteed.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@hzhu Good point, I updated the check and removed the type assertion

@cgero-eth
cgero-eth requested a review from hzhu January 27, 2026 16:01
@hzhu
hzhu merged commit c51a61c into 0xProject:main Jan 27, 2026
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