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

Added handling class data and token data #43

Merged
merged 9 commits into from
Jan 3, 2023

Conversation

Art3miX
Copy link
Collaborator

@Art3miX Art3miX commented Dec 30, 2022

No description provided.

Copy link
Contributor

@0xekez 0xekez left a comment

Choose a reason for hiding this comment

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

this is really great. i can tell you thought about this! some small comments and then lg2m

contracts/cw-ics721-bridge/src/contract.rs Outdated Show resolved Hide resolved
contracts/cw-ics721-bridge/src/contract.rs Outdated Show resolved Hide resolved
contracts/cw-ics721-bridge/src/contract.rs Outdated Show resolved Hide resolved
contracts/cw-ics721-bridge/src/contract.rs Outdated Show resolved Hide resolved
contracts/cw-ics721-bridge/src/contract.rs Outdated Show resolved Hide resolved
contracts/cw-ics721-bridge/src/state.rs Outdated Show resolved Hide resolved
Art3miX and others added 3 commits December 31, 2022 01:54
Co-authored-by: ekez <30676292+0xekez@users.noreply.github.com>
Copy link
Contributor

@0xekez 0xekez left a comment

Choose a reason for hiding this comment

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

looking good! would you mind adding some tests for these?

i think the big things that need to be covered are:

  1. does the validation logic for NonFungibleTokenPacketData work (unit tests + 1 integration test).
  2. does the memo get added to response attributes (unit test or heavily mocked integration test b/c multi-test can't do IBC stuff)
  3. does class data get forwarded? this should be testable using the adversarial tests framework by crafting a packet on the adversary chain with data and then sending it across the other two and making sure that the data is queryable.

contracts/cw-ics721-bridge/src/contract.rs Outdated Show resolved Hide resolved
contracts/cw-ics721-bridge/src/ibc_packet_receive.rs Outdated Show resolved Hide resolved
contracts/cw-ics721-bridge/src/state.rs Outdated Show resolved Hide resolved
Art3miX and others added 2 commits January 2, 2023 10:37
Co-authored-by: ekez <30676292+0xekez@users.noreply.github.com>
@Art3miX Art3miX marked this pull request as ready for review January 2, 2023 16:12
@0xekez
Copy link
Contributor

0xekez commented Jan 3, 2023

@Art3miX, here are fixes for the comments i added today: Art3miX#2

merge at your leisure.

@0xekez
Copy link
Contributor

0xekez commented Jan 3, 2023

merging this. i will write more tests on top. thanks @Art3miX! you have significantly increased the speed at which we'll be able to ship this.

@0xekez 0xekez merged commit 73702e6 into public-awesome:zeke/spec-updates Jan 3, 2023
0xekez added a commit that referenced this pull request Jan 3, 2023
* Added handling class data nad token data

* fmt/clippy

* Apply suggestions from code review

Co-authored-by: ekez <30676292+0xekez@users.noreply.github.com>

* zeke review changes

* added memo

* Update contracts/cw-ics721-bridge/src/contract.rs

Co-authored-by: ekez <30676292+0xekez@users.noreply.github.com>

* zeke comments fixes

* moved tests to testing folder

* Add test for metadata forwarding.

Co-authored-by: ekez <30676292+0xekez@users.noreply.github.com>
Co-authored-by: ekez <zekemedley@gmail.com>
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.

2 participants