Skip to content
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

Unit tests of IBC functionality with new algorithm #90

Closed
arhag opened this issue Dec 11, 2023 · 1 comment · Fixed by AntelopeIO/leap#2314 or #37
Closed

Unit tests of IBC functionality with new algorithm #90

arhag opened this issue Dec 11, 2023 · 1 comment · Fixed by AntelopeIO/leap#2314 or #37
Assignees

Comments

@arhag
Copy link
Member

arhag commented Dec 11, 2023

Use the Boost unit tests framework and libtester. Look at existing tests like the fork tests to discover how to create two independent instances of a blockchain (the two that will be communicating with each other via IBC) and how chain information can be extracted (though access to controller via libtester) to construct heavy proofs and light proofs.

New contract code to act as IBC verified would need to be committed as a test contract to the Leap code in the appropriate place. Follow the same pattern of committing the WASM/ABI but allowing the source code to build that with the proper CMake variable passed in.

The contract code should NOT focus on:

  • transition from old IBC;
  • replay protection.

The contract code should be as minimal as possible while satisfying the goal of verifying the new heavy proofs and light proofs of IBC.

@arhag
Copy link
Member Author

arhag commented Mar 18, 2024

We want to also update the tests to use libtester to generate the proofs dynamically.

@arhag arhag linked a pull request Apr 18, 2024 that will close this issue
@arhag arhag transferred this issue from AntelopeIO/leap Apr 29, 2024
@arhag arhag added this to the Savanna: Production-Ready milestone Apr 29, 2024
@arhag arhag changed the title IF: Start building unit tests of IBC functionality with new algorithm Unit tests of IBC functionality with new algorithm Apr 29, 2024
@github-project-automation github-project-automation bot moved this from Awaiting Review to Done in Team Backlog May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants