arkprotocol / templates

0 stars 0 forks source link

contract: ibc-example #2

Open taitruong opened 2 years ago

taitruong commented 2 years ago

Objectives:

  1. send IBC message from chain A to chain B
  2. process outbound/incoming message in chain B
  3. send response back from chain B to chain A
  4. process inbound/outgoing messag in chain A
taitruong commented 2 years ago

Ethan talk on IBC during HackAtom Seoul. YouTube videos with bookmark where he starts talking:

taitruong commented 2 years ago

Above demo is based on ezekiiel's cw-ibc-example repo. Ethan setup an cw-ibc-demo repo - which he shows in HackAtom.

taitruong commented 2 years ago

The cw-ibc-demo also uses ts-relayer for integration tests. It is explain in the HackAtom demo part. Have a look at these files and folders on the repo:

Art3miX commented 2 years ago

a vue example using ts-relayer:

https://github.com/clockworkgr/ts-relayer-example

Art3miX commented 2 years ago

9 PR is a basic ibc.

It is missing the integration tests to make sure its 100% working, but the unit tests passing so we get what we expect.

Art3miX commented 2 years ago

Should we export the ibc-example to its own repo?

This way we could get feedback about it, and let others use it (as well as bring attention to ark protocol in the dev community)

Art3miX commented 2 years ago

PR #10 should cover this issue, as far as i can see, this handles everything IBC related, and the template is complete.

We might adjust he template in the future, but this is a working template.

Art3miX commented 2 years ago

I think this example should just cover all the end points and stuff we can do with ibc, with explained comments on each step, including tests.