Skip to content

Add comprehensive test suite#8

Open
eil-docbot wants to merge 5 commits intoeth-infinitism:masterfrom
eil-docbot:test-suite
Open

Add comprehensive test suite#8
eil-docbot wants to merge 5 commits intoeth-infinitism:masterfrom
eil-docbot:test-suite

Conversation

@eil-docbot
Copy link

Summary

  • Add unit tests for CrossChainPaymaster, DestinationSwapManager, OriginSwapManager, and TokenDepositManager
  • Add gas benchmarking test suite
  • Add test helpers for accounts, deployments, setup, and signatures
  • Add MockEntryPoint for testing

Adds ~3,700 lines of test code covering core contract functionality.

forshtat and others added 5 commits November 20, 2025 21:06
* Add README.md

---------

Co-authored-by: shahafn <shahaflol@gmail.com>
- Add test infrastructure with helpers for setup, accounts, deployments, and signatures
- Add MockEntryPoint with ERC165 support for paymaster testing
- Add OriginSwapManager tests (28 tests): lockUserDeposit, issueVouchers, withdrawFromUserDeposit, cancelVoucherRequest, overrideVoucher, fee calculation
- Add DestinationSwapManager tests (12 tests): getIncomingAtomicSwap, withdrawFromVoucher
- Add TokenDepositManager tests (18 tests): deposit/withdraw for native ETH and ERC20
- Add CrossChainPaymaster tests (10 tests): constructor, ephemeral signatures, delegation
- Add gas benchmark tests (13 tests) with baseline measurements for key operations
- Enable node test runner plugin in hardhat config
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.

4 participants

Comments