Skip to content

Add DirectIndexRouter fallback-based dispatcher - #679

Open
Ameer-5-5 wants to merge 1 commit into
MDTechLabs:mainfrom
Ameer-5-5:issuefix
Open

Add DirectIndexRouter fallback-based dispatcher#679
Ameer-5-5 wants to merge 1 commit into
MDTechLabs:mainfrom
Ameer-5-5:issuefix

Conversation

@Ameer-5-5

Copy link
Copy Markdown

CLOSES #665
Uses calldataload(0) single-byte index instead of 4-byte ABI selector dispatch tree to save gas on function routing.

  • contracts/router/DirectIndexRouter.sol: router with fallback dispatch
  • test/router/DirectIndexRouter.test.ts: vitest + hardhat test suite

Uses calldataload(0) single-byte index instead of 4-byte ABI selector
dispatch tree to save gas on function routing.

- contracts/router/DirectIndexRouter.sol: router with fallback dispatch
- test/router/DirectIndexRouter.test.ts: vitest + hardhat test suite
@drips-wave

drips-wave Bot commented Jul 28, 2026

Copy link
Copy Markdown

@Ameer-5-5 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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.

[CORE] Build Direct Calldata Index Dispatch Engine Bypassing Selector Checks

1 participant