Skip to content

Test Suite for TapiocaZ Contracts #239

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

Open
wants to merge 49 commits into
base: master
Choose a base branch
from

Conversation

0xRaz-b
Copy link

@0xRaz-b 0xRaz-b commented Aug 2, 2024

This PR introduces an extensive test suite for the TapiocaZ contracts, significantly enhancing the code quality and reliability. The new tests cover components of the cross-chain token system, including BaseTOFT, mTOFT, ModuleManager, and TOFTGenericReceiverModule.

Key additions:

  1. BaseTOFT Tests:

    • Administrative functions (pause/unpause)
    • Wrapping and unwrapping operations
    • Error handling for edge cases
  2. mTOFT Tests:

    • Cross-chain token transfers
    • Fee handling mechanisms
    • Integration with StargateRouter and LayerZero endpoints
    • Access control and administrative functions
  3. ModuleManager Tests:

    • Module setting, extraction, and execution
    • Access control for module operations
  4. TOFTGenericReceiverModule Tests:

    • Token receiving and unwrapping
    • Balance updates and transfer verifications

These tests ensure proper functionality across various scenarios, including success cases and expected failure conditions. Helper functions were added to streamline the testing process and improve test readability.

0xRaz-b added 30 commits August 2, 2024 11:47
@graphite-app graphite-app bot requested review from 0xRektora and maarcweiss August 2, 2024 19:47
Copy link

graphite-app bot commented Aug 2, 2024

Graphite Automations

"Add reviewers" took an action on this PR • (08/02/24)

2 reviewers were added to this PR based on 0xRektora's automation.

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.

1 participant