Skip to content

Add DirectIndexRouter fallback-based dispatcher - #679

Merged
mijinummi merged 1 commit into
MDTechLabs:mainfrom
Ameer-5-5:issuefix
Jul 29, 2026
Merged

Add DirectIndexRouter fallback-based dispatcher#679
mijinummi merged 1 commit into
MDTechLabs:mainfrom
Ameer-5-5:issuefix

Conversation

@Ameer-5-5

Copy link
Copy Markdown
Contributor

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

@mijinummi
mijinummi merged commit 8bd769a into MDTechLabs:main Jul 29, 2026
3 of 7 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.

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

2 participants