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

Feature/12 ibc dispatcher #17

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Conversation

taitruong
Copy link
Member

The objective of this (not yet finished) contract is the following:

  • a source contract on chain A wants to execute
  • a target contract on chain B, where in return
  • source contract gets a response back from target contract.

This can already be done by using IBC - hence this requires a lot of boiler plate code. Basically all IBC calls looks the same.

IBC dispatcher to the rescue:

  • a source chain can pass target message along with target contract address and IBC channel (telling on which chain it is) and
  • pass this message to the dispatcher, where
  • dispatcher pass it to target contract on the other channel, where in return
  • source target gets a response back from the dispatcher

@taitruong
Copy link
Member Author

@Javierjmc, @Japarjam

dispatcher_address: wasmIbcDispatcherContractAddress,
channel: channelId,
target_address: osmoEchoContractAddress,
echo: "testecho",

Choose a reason for hiding this comment

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

Is this a valid dispatch message?

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