#DRAFT #WIP feels like if wasmd module does not have access to ibc capability
Closed this issue · 0 comments
dzmitry-lahoda commented
-
than i run cli transfer of ppica from centauri to osmosis on channel 0
- osmosis channel
bash-5.1$ nix run .#osmosisd -- query ibc channel channels --home /tmp/composable-devnet/
channels:
- channel_id: channel-0
connection_hops:
- connection-0
counterparty:
channel_id: channel-0
port_id: transfer
ordering: ORDER_UNORDERED
port_id: transfer
state: STATE_OPEN
version: ics20-1
height:
revision_height: "44"
revision_number: "0"
pagination:
next_key: null
total: "0"
and cenauri
bash-5.1$ ^C
bash-5.1$ nix run .#centaurid -- query ibc channel channels --home /tmp/composable-devnet/
channels:
- channel_id: channel-0
connection_hops:
- connection-0
counterparty:
channel_id: channel-0
port_id: transfer
ordering: ORDER_UNORDERED
port_id: transfer
state: STATE_OPEN
version: ics20-1
height:
revision_height: "50"
revision_number: "0"
pagination:
next_key: null
total: "0"
so both are open, and relayed well.
- as per logs of osmosis (sorry for some weird chars, see pica and channel and other ibc symbols)
[0mtransfer"}
{"level":"error","process":"osmosis","replica":1,"message":"\u001b[90m6:40PM\u001b[0m \u001b[33mDBG\u001b[0m packetForwardMiddleware OnRecvPacket \u001b[36mamount=\u001b[0m10000000000 \u001b[36mdenom=\u001b[0mppica \u001b[36mdst-channel=\u001b[0mchannel-0 \u001b[36mdst-port=\u001b[0mtransfer \u001b[36mmodule=\u001b[0mx/ibc-packetfowardmiddleware \u001b[36msequence=\u001b[0m1 \u001b[36msrc-channel=\u001b[0mchannel-0 \u001b[36msrc-port=\u001b[0mtransfer"}
{"level":"error","process":"osmosis","replica":1,"message":"\u001b[90m6:40PM\u001b[0m \u001b[33mDBG\u001b[0m packetForwardMiddleware OnRecvPacket forward metadata does not exist \u001b[36mmodule=\u001b[0mx/ibc-packetfowardmiddleware"}
{"level":"error","process":"osmosis","replica":1,"message":"\u001b[90m6:40PM\u001b[0m \u001b[32mINF\u001b[0m acknowledgement written \u001b[36mdst_channel=\u001b[0mchannel-0 \u001b[36mdst_port=\u001b[0mtransfer \u001b[36mmodule=\u001b[0mx/ibc/channel \u001b[36msequence=\u001b[0m1 \u001b[36msrc_channel=\u001b[0mchannel-0 \u001b[36msrc_port=\u001b[0mtransfer"}
{"level":"error","process":"osmosis","replica":1,"message":"\u001b[90m6:40PM\u001b[0m \u001b[33mDBG\u001b[0m (msg service router) Finished executing msg"}
{"level":"error","process":"osmosis","replica":1,"message":"\u001b[90m6:40PM\u001b[0m \u001b[33mDBG\u001b[0m finished executing tx"}
{"level":"error","process":"osmosis","replica":1,"message":"\u001b[90m6:40PM\u001b[0m \u001b[33mDBG\u001b[0m beginning to execute tx"}
{"level":"error","process":"osmosis","replica":1,"message":"\u001b[90m6:40PM\u001b[0m \u001b[32mINF\u001b[0m client state updated \u001b[36mclient-id=\u001b[0m07-tendermint-0 \u001b[36mheight=\u001b[0m0-34 \u001b[36mmodule=\u001b[0mx/ibc/client"}
{"level":"info","process":"osmosis","replica":1,"message":"Dragonberry Active"}
{"level":"error","process":"osmosis","replica":1,"message":"\u001b[90m6:40PM\u001b[0m \u001b[32mINF\u001b[0m packet received \u001b[36mdst_channel=\u001b[0mchannel-0 \u001b[36mdst_port=\u001b[0mtransfer \u001b[36mmodule=\u001b[0mx/ibc/channel \u001b[36msequence=\u001b[0m1 \u001b[36msrc_channel=\u001b[0mchannel-0 \u001b[36msrc_port=\u001b[0mtransfer"}
{"level":"error","process":"osmosis","replica":1,"message":"\u001b[90m6:40PM\u001b[0m \u001b[33mDBG\u001b[0m packetForwardMiddleware OnRecvPacket \u001b[36mamount=\u001b[0m10000000000 \u001b[36mdenom=\u001b[0mppica \u001b[36mdst-channel=\u001b[0mchannel-0 \u001b[36mdst-port=\u001b[0mtransfer \u001b[36mmodule=\u001b[0mx/ibc-packetfowardmiddleware \u001b[36msequence=\u001b[0m1 \u001b[36msrc-channel=\u001b[0mchannel-0 \u001b[36msrc-port=\u001b[0mtransfer"}
{"level":"error","process":"osmosis","replica":1,"message":"\u001b[90m6:40PM\u001b[0m \u001b[33mDBG\u001b[0m packetForwardMiddleware OnRecvPacket forward metadata does not exist \u001b[36mmodule=\u001b[0mx/ibc-packetfowardmiddleware"}
{"level":"error","process":"osmosis","replica":1,"message":"\u001b[90m6:40PM\u001b[0m \u001b[32mINF\u001b[0m acknowledgement written \u001b[36mdst_channel=\u001b[0mchannel-0 \u001b[36mdst_port=\u001b[0mtransfer \u001b[36mmodule=\u001b[0mx/ibc/channel \u001b[36msequence=\u001b[0m1 \u001b[36msrc_channel=\u001b[0mchannel-0 \u001b[36msrc_port=\u001b[0mtransfer"}
{"level":"error","process":"osmosis","replica":1,"message":"\u001b[90m6:40PM\u001b[0m \u001b[33mDBG\u001b[0m finished executing tx"}
token received on channel-0, denom ppica.
on centaurr, sender, logs are
{"level":"info","process":"centauri","replica":1,"message":"\u001b[90m6:40PM\u001b[0m \u001b[32mINF\u001b[0m packet acknowledged \u001b[36mdst_channel=\u001b[0mchannel-0 \u001b[36mdst_port=\u001b[0mtransfer \u001b[36mmodule=\u001b[0mx/ibc/channel \u001b[36msequence=\u001b[0m1 \u001b[36msrc_channel=\u001b[0mchannel-0 \u001b[36msrc_port=\u001b[0mtransfer"}
{"level":"info","process":"centauri","replica":1,"message":"\u001b[90m6:40PM\u001b[0m \u001b[33mDBG\u001b[0m packetForwardMiddleware OnAcknowledgementPacket \u001b[36mamount=\u001b[0m10000000000 \u001b[36mdenom=\u001b[0mppica \u001b[36mdst-channel=\u001b[0mchannel-0 \u001b[36mdst-port=\u001b[0mtransfer \u001b[36mmodule=\u001b[0mx/ibc-packetfowardmiddleware \u001b[36msequence=\u001b[0m1 \u001b[36msrc-channel=\u001b[0mchannel-0 \u001b[36msrc-port=\u001b[0mtransfer"}
{"level":"info","process":"centauri","replica":1,"message":"\u001b[90m6:40PM\u001b[0m \u001b[32mINF\u001b[0m acknowledgement succeeded \u001b[36mchannel-id=\u001b[0mchannel-0 \u001b[36mmodule=\u001b[0mserver \u001b[36mport-id=\u001b[0mtransfer \u001b[36mresult=\u001b[0mRESPONSE_RESULT_TYPE_SUCCESS"}
{"level":"info","process":"centauri","replica":1,"message":"\u001b[90m6:40PM\u001b[0m \u001b[32mINF\u001b[0m client state updated \u001b[36mclient-id=\u001b[0m07-tendermint-0 \u001b[36mheights=\u001b[0m[{\"revision_height\":36}] \u001b[36mmodule=\u001b[0mx/ibc/client"}
{"level":"info","process":"centauri","replica":1,"message":"\u001b[90m6:40PM\u001b[0m \u001b[32mINF\u001b[0m packet acknowledged \u001b[36mdst_channel=\u001b[0mchannel-0 \u001b[36mdst_port=\u001b[0mtransfer \u001b[36mmodule=\u001b[0mx/ibc/channel \u001b[36msequence=\u001b[0m1 \u001b[36msrc_channel=\u001b[0mchannel-0 \u001b[36msrc_port=\u001b[0mtransfer"}
{"level":"info","process":"centauri","replica":1,"message":"\u001b[90m6:40PM\u001b[0m \u001b[33mDBG\u001b[0m packetForwardMiddleware OnAcknowledgementPacket \u001b[36mamount=\u001b[0m10000000000 \u001b[36mdenom=\u001b[0mppica \u001b[36mdst-channel=\u001b[0mchannel-0 \u001b[36mdst-port=\u001b[0mtransfer \u001b[36mmodule=\u001b[0mx/ibc-packetfowardmiddleware \u001b[36msequence=\u001b[0m1 \u001b[36msrc-channel=\u001b[0mchannel-0 \u001b[36msrc-port=\u001b[0mtransfer"}
{"level":"info","process":"centauri","replica":1,"message":"\u001b[90m6:40PM\u001b[0m \u001b[32mINF\u001b[0m acknowledgement succeeded \u001b[36mchannel-id=\u001b[0mchannel-0 \u001b[36mmodule=\u001b[0mserver \u001b[36mport-id=\u001b[0mtransfer \u001b[36mresult=\u001b[0mRESPONSE_RESULT_TYPE_SUCCESS"}
so packet acked for transfer
{"level":"info","process":"centauri","replica":1,"message":"\u001b[90m6:40PM\u001b[0m \u001b[32mINF\u001b[0m packet sent \u001b[36mdst_channel=\u001b[0mchannel-0 \u001b[36mdst_port=\u001b[0mtransfer \u001b[36mmodule=\u001b[0mx/ibc/channel \u001b[36msequence=\u001b[0m1 \u001b[36msrc_channel=\u001b[0mchannel-0 \u001b[36msrc_port=\u001b[0mtransfer"}
{"level":"info","process":"centauri","replica":1,"message":"\u001b[90m6:40PM\u001b[0m \u001b[32mINF\u001b[0m IBC fungible token transfer \u001b[36mamount=\u001b[0m10000000000 \u001b[36mmodule=\u001b[0mx/ibc-transfer \u001b[36mreceiver=\u001b[0mosmo12smx2wdlyttvyzvzg54y2vnqwq2qjatescq89n \u001b[36msender=\u001b[0mcentauri1qq0k7d56juu7h49arelzgw09jccdk8sujrcrjd \u001b[36mtoken=\u001b[0mppica"}
and hermes log
{\"height\":\"33\",\"tx\":\"CskBCsYBCikvaWJjLmFwcGxpY2F0aW9ucy50cmFuc2Zlci52MS5Nc2dUcmFuc2ZlchKYAQoIdHJhbnNmZXISCWNoYW5uZWwtMBoUCgVwcGljYRILMTAwMDAwMDAwMDAiL2NlbnRhdXJpMXFxMGs3ZDU2anV1N2g0OWFyZWx6Z3cwOWpjY2RrOHN1anJjcmpkKitvc21vMTJzbXgyd2RseXR0dnl6dnpnNTR5MnZucXdxMnFqYXRlc2NxODluMgMQhAg4sNT8m+mwmb0XEm0KUApGCh8vY29zbW9zLmNyeXB0by5zZWNwMjU2azEuUHViS2V5EiMKIQNN5kSY8yimvPuCDYkg0nSM2jLgNZ4WzbPwdHzlS5WDSBIECgIIARgMEhkKEgoFcHBpY2ESCTkyMDAwMDE2NhDA8PULGkDB/UN2pks/sAz6XsvYHNn+A13yxpAZnyt/iRdDdAr34DyA3CCLwTEFuNwWvau+QjRmL1EXaFc4SkxnFYsIhbjb\",\"result\":{\"data\":\"EjcKMS9pYmMuYXBwbGljYXRpb25zLnRyYW5zZmVyLnYxLk1zZ1RyYW5zZmVyUmVzcG9uc2USAggB\",\"log\":\"[{\\\"msg_index\\\":0,\\\"events\\\":[{\\\"type\\\":\\\"message\\\",\\\"attributes\\\":[{\\\"key\\\":\\\"action\\\",\\\"value\\\":\\\"/ibc.applications.transfer.v1.MsgTransfer\\\"},{\\\"key\\\":\\\"sender\\\",\\\"value\\\":\\\"centauri1qq0k7d56juu7h49arelzgw09jccdk8sujrcrjd\\\"}]},{\\\"type\\\":\\\"coin_spent\\\",\\\"attributes\\\":[{\\\"key\\\":\\\"spender\\\",\\\"value\\\":\\\"centauri1qq0k7d56juu7h49arelzgw09jccdk8sujrcrjd\\\"},{\\\"key\\\":\\\"amount\\\",\\\"value\\\":\\\"10000000000ppica\\\"}]},{\\\"type\\\":\\\"coin_received\\\",\\\"attributes\\\":[{\\\"key\\\":\\\"receiver\\\",\\\"value\\\":\\\"centauri1a53udazy8ayufvy0s434pfwjcedzqv34jx0e0a\\\"},{\\\"key\\\":\\\"amount\\\",\\\"value\\\":\\\"10000000000ppica\\\"}]},{\\\"type\\\":\\\"transfer\\\",\\\"attributes\\\":[{\\\"key\\\":\\\"recipient\\\",\\\"value\\\":\\\"centauri1a53udazy8ayufvy0s434pfwjcedzqv34jx0e0a\\\"},{\\\"key\\\":\\\"sender\\\",\\\"value\\\":\\\"centauri1qq0k7d56juu7h49arelzgw09jccdk8sujrcrjd\\\"},{\\\"key\\\":\\\"amount\\\",\\\"value\\\":\\\"10000000000ppica\\\"}]},{\\\"type\\\":\\\"message\\\",\\\"attributes\\\":[{\\\"key\\\":\\\"sender\\\",\\\"value\\\":\\\"centauri1qq0k7d56juu7h49arelzgw09jccdk8sujrcrjd\\\"}]},{\\\"type\\\":\\\"send_packet\\\",\\\"attributes\\\":[{\\\"key\\\":\\\"packet_data\\\",\\\"value\\\":\\\"{\\\\\\\"amount\\\\\\\":\\\\\\\"10000000000\\\\\\\",\\\\\\\"denom\\\\\\\":\\\\\\\"ppica\\\\\\\",\\\\\\\"receiver\\\\\\\":\\\\\\\"osmo12smx2wdlyttvyzvzg54y2vnqwq2qjatescq89n\\\\\\\",\\\\\\\"sender\\\\\\\":\\\\\\\"centauri1qq0k7d56juu7h49arelzgw09jccdk8sujrcrjd\\\\\\\"}\\\"},{\\\"key\\\":\\\"packet_data_hex\\\",\\\"value\\\":\\\"7b22616d6f756e74223a223130303030303030303030222c2264656e6f6d223a227070696361222c227265636569766572223a226f736d6f3132736d783277646c79747476797a767a6735347932766e71777132716a61746573637138396e222c2273656e646572223a2263656e7461757269317171306b376435366a7575376834396172656c7a677730396a6363646b3873756a7263726a64227d\\\"},{\\\"key\\\":\\\"packet_timeout_height\\\",\\\"value\\\":\\\"0-1028\\\"},{\\\"key\\\":\\\"packet_timeout_timestamp\\\",\\\"value\\\":\\\"1691776238705650224\\\"},{\\\"key\\\":\\\"packet_sequence\\\",\\\"value\\\":\\\"1\\\"},{\\\"key\\\":\\\"packet_src_port\\\",\\\"value\\\":\\\"transfer\\\"},{\\\"key\\\":\\\"packet_src_channel\\\",\\\"value\\\":\\\"channel-0\\\"},{\\\"key\\\":\\\"packet_dst_port\\\",\\\"value\\\":\\\"transfer\\\"},{\\\"key\\\":\\\"packet_dst_channel\\\",\\\"value\\\":\\\"channel-0\\\"},{\\\"key\\\":\\\"packet_channel_ordering\\\",\\\"value\\\":\\\"ORDER_UNORDERED\\\"},{\\\"key\\\":\\\"packet_connection\\\",\\\"value\\\":\\\"connection-0\\\"},{\\\"key\\\":\\\"connection_id\\\",\\\"value\\\":\\\"connection-0\\\"}]},{\\\"type\\\":\\\"message\\\",\\\"attributes\\\":[{\\\"key\\\":\\\"module\\\",\\\"value\\\":\\\"ibc_channel\\\"}]},{\\\"type\\\":\\\"ibc_transfer\\\",\\\"attributes\\\":[{\\\"key\\\":\\\"sender\\\",\\\"value\\\":\\\"centauri1qq0k7d56juu7h49arelzgw09jccdk8sujrcrjd\\\"},{\\\"key\\\":\\\"receiver\\\",\\\"value\\\":\\\"osmo12smx2wdlyttvyzvzg54y2vnqwq2qjatescq89n\\\"},{\\\"key\\\":\\\"amount\\\",\\\"value\\\":\\\"10000000000\\\"},{\\\"key\\\":\\\"denom\\\",\\\"value\\\":\\\"ppica\\\"},{\\\"key\\\":\\\"memo\\\"}]},{\\\"type\\\":\\\"message\\\",\\\"attributes\\\":[{\\\"key\\\":\\\"module\\\",\\\"value\\\":\\\"transfer\\\"}]}]}]\",\"gas_wanted\":\"25000000\",\"gas_used\":\"81849\",\"events\":[{\"type\":\"tx\",\"attributes\":[{\"key\":\"acc_seq\",\"value\":\"centauri1qq0k7d56juu7h49arelzgw09jccdk8sujrcrjd/12\",\"index\":true}]},{\"type\":\"tx\",\"attributes\":[{\"key\":\"signature\",\"value\":\"wf1DdqZLP7AM+l7L2BzZ/gNd8saQGZ8rf4kXQ3QK9+A8gNwgi8ExBbjcFr2rvkI0Zi9RF2hXOEpMZxWLCIW42w==\",\"index\":true}]},{\"type\":\"message\",\"attributes\":[{\"key\":\"action\",\"value\":\"/ibc.applications.transfer.v1.MsgTransfer\",\"index\":true},{\"key\":\"sender\",\"value\":\"centauri1qq0k7d56juu7h49arelzgw09jccdk8sujrcrjd\",\"index\":true}]},{\"type\":\"coin_spent\",\"attributes\":[{\"key\":\"spender\",\"value\":\"centauri1qq0k7d56juu7h49arelzgw09jccdk8sujrcrjd\",\"index\":true},{\"key\":\"amount\",\"value\":\"10000000000ppica\",\"index\":true}]},{\"type\":\"coin_received\",\"attributes\":[{\"key\":\"receiver\",\"value\":\"centauri1a53udazy8ayufvy0s434pfwjcedzqv34jx0e0a\",\"index\":true},{\"key\":\"amount\",\"value\":\"10000000000ppica\",\"index\":true}]},{\"type\":\"transfer\",\"attributes\":[{\"key\":\"recipient\",\"value\":\"centauri1a53udazy8ayufvy0s434pfwjcedzqv34jx0e0a\",\"index\":true},{\"key\":\"sender\",\"value\":\"centauri1qq0k7d56juu7h49arelzgw09jccdk8sujrcrjd\",\"index\":true},{\"key\":\"amount\",\"value\":\"10000000000ppica\",\"index\":true}]},{\"type\":\"message\",\"attributes\":[{\"key\":\"sender\",\"value\":\"centauri1qq0k7d56juu7h49arelzgw09jccdk8sujrcrjd\",\"index\":true}]},{\"type\":\"send_packet\",\"attributes\":[{\"key\":\"packet_data\",\"value\":\"{\\\"amount\\\":\\\"10000000000\\\",\\\"denom\\\":\\\"ppica\\\",\\\"receiver\\\":\\\"osmo12smx2wdlyttvyzvzg54y2vnqwq2qjatescq89n\\\",\\\"sender\\\":\\\"centauri1qq0k7d56juu7h49arelzgw09jccdk8sujrcrjd\\\"}\",\"index\":true},{\"key\":\"packet_data_hex\",
transfer/channel-0 everywhere
please not i disabled ppica ibc mapping because with it i cannot use ppica in CW #219
- so let do send IBC packet from CW