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

IBC Callbacks #1817

Draft
wants to merge 15 commits into
base: main
Choose a base branch
from
Draft

IBC Callbacks #1817

wants to merge 15 commits into from

Conversation

chipshort
Copy link
Contributor

@chipshort chipshort commented Feb 29, 2024

No description provided.

@chipshort chipshort force-pushed the ibc-callbacks branch 3 times, most recently from bd3eab3 to 692b398 Compare March 6, 2024 09:37
Base automatically changed from update-to-wasmvm-2.0 to main March 6, 2024 11:40
Copy link
Member

@webmaster128 webmaster128 left a comment

Choose a reason for hiding this comment

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

🐎

tests/e2e/ibc_callbacks_test.go Outdated Show resolved Hide resolved
app/app.go Show resolved Hide resolved
Copy link

@srdtrk srdtrk left a comment

Choose a reason for hiding this comment

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

Thank you for this amazing work.

go.mod Show resolved Hide resolved
x/wasm/ibc.go Outdated Show resolved Hide resolved
x/wasm/ibc.go Show resolved Hide resolved
ack ibcexported.Acknowledgement,
contractAddress string,
) error {
// sender validation makes no sense here, as the receiver is never the sender
Copy link

Choose a reason for hiding this comment

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

Yes, it might be good to document that probably the contract itself should be doing some validation based on the channel-id and packet data possibly.

It might even make sense to have the contract whitelist certain channel-ids to be able to receive callbacks only on those channels (but this is a nice to have and can make the UX more complicated).

app/app.go Outdated Show resolved Hide resolved
app/app.go Show resolved Hide resolved
tests/e2e/ibc_callbacks_test.go Show resolved Hide resolved
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.

None yet

3 participants