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

Basic ICS23 Transfer Test #4850

Merged
merged 2 commits into from
Sep 11, 2024
Merged

Basic ICS23 Transfer Test #4850

merged 2 commits into from
Sep 11, 2024

Conversation

zbuc
Copy link
Member

@zbuc zbuc commented Sep 10, 2024

Describe your changes

Replaces the existing IBC handshake test with a full ICS23 transfer test. Only the "happy path" (no timeouts or any other error cases) is tested in this initial spike.

Also introduces some improvements to the underlying MockClient to support spent note tracking.

The transfer implementation in the MockRelayer is currently hardcoded to transfer 50% of the first chain's client's first note to the second chain; this can be fleshed out further in response to future test requirements.

Issue ticket number and link

Closes #4846

Checklist before requesting a review

  • If this code contains consensus-breaking changes, I have added the "consensus-breaking" label. Otherwise, I declare my belief that there are not consensus-breaking changes, for the following reason:

    tests only

Copy link
Contributor

@conorsch conorsch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super readable code, thanks for all the comments along the way. Big step forward for testing IBC!

@conorsch conorsch merged commit 9ff993c into main Sep 11, 2024
13 checks passed
@conorsch conorsch deleted the 4846_ics23_test branch September 11, 2024 18:12
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.

tests: ics23 transfer
2 participants