-
Notifications
You must be signed in to change notification settings - Fork 207
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
Support IBC for comm #259
Comments
in the old repo. this was cosmic-swingset issue 101 |
While running the above steps against actual IBC, I get the following error message from chain A:
The decoded packet is @warner can you PTAL? |
This message came from ibc1's lookup of ibc0's
And this one came from ibc1's lookup of ibc0's
|
[UPDATED: for current behaviour on master.] Local repro using just
nchainz = false;
ibcAddr = '/ibc-port/portbvmnfb/ordered/vattp';
ibcAddr = nchainz ? '/ibc-hop/ibczerolink' + ibcAddr : ibcAddr;
E(agoric.vattp).makeNetworkHost('some-outbound', console).then(
({ handler, host }) => {
hostA = host;
E(agoric.ibcport[1]).connect(ibcAddr, handler).catch(console.error);
}); obj = E(hostA).lookup(helloAddress); I then get (note that this is in the lookup agoric.vattp's SwingSet):
With: E(localHost).publish(agoric.zoe).then(addr => zoeAddress = addr); and: obj2 = E(hostA).lookup(zoeAddress) I get (note that this is in the publishing local.vattp's SwingSet):
|
@warner, I updated the above comment to indicate which SwingSet the error messages came from. I hope this will be illuminating. |
With the above two PRs, the demo described at the top of this issue now works correctly over IBC. |
Closing, as POC is done and future development has moved to #1670. |
Use IBC instead of VatTP for chain/chain communication. See #1670 for chain/solo communication.
Demo Script
Convey an ocap across a Network API "Connection".
relayer/scripts/nchainz init agoric
to start two Agoric chains connected by IBC. In this case, the first ag-solo web interface islocalhost:8000
. We'll call the user drivinglocalhost:8000
"Alice" andlocalhost:8001
is "Bob'. (If you want to test locally instead of over IBC, you don't neednchainz
, justagoric start
and you can uselocalhost:8000
for both "Alice" and "Bob".)nchainz = true
if running withoutnchainz
):To create a VatTP-over-IBC connection between an ag-solo and a chain, we will need the solo client implementation cosmos/cosmos-sdk#6267
Low-level vattp interface
The text was updated successfully, but these errors were encountered: