celestiaorg / celestia-app

Celestia consensus node
https://celestiaorg.github.io/celestia-app/
Apache License 2.0
336 stars 275 forks source link

Test PFM and ICA on Arabica #3792

Closed rootulp closed 2 weeks ago

rootulp commented 3 weeks ago

Context

Arabica upgraded to v2 🙌

Proposal

v2 contains two IBC features: ICA and PFM that would be valuable to test on a real testnet.

  1. Explore if Arabica has IBC connections already. If not, create some.
  2. Test PFM. Discuss with Skip
  3. Test ICA. Discuss with Stride
rootulp commented 3 weeks ago

Seems like no IBC connections: https://api.celestia-arabica-11.com/ibc/core/connection/v1/connections

{
  "connections": [
  ],
  "pagination": {
    "next_key": null,
    "total": "0"
  },
  "height": {
    "revision_number": "11",
    "revision_height": "1769174"
  }
}
rootulp commented 2 weeks ago

Status update:

gaiad tx interchain-accounts controller register connection-3783 --from key-cosmos --chain-id theta-testnet-001 --fees 100000uatom --gas 2000000 --node tcp://localhost:27000 --version '{"version":"ics27-1","controller_connection_id":"connection-3783","host_connection_id":"connection-0","address":"cosmos1epqzuh6myrwrp4zr8zjamcye4nvkkg9xd8ywak","encoding":"proto3","tx_type":"sdk_multi_msg"}'
gaiad query tx --type hash 0F35C1A9ECBE68DDC3A22D263CC07BFC7B476B927455B5654461743D13EFD29E --node tcp://localhost:27000
rootulp commented 2 weeks ago

I was only able to create an ICA account on Cosmos Hub testnet. Wasn't able to test PFM on Arabica prior to the v2 upgrade height was hit on Mocha. Now that it's on Mocha, I informed Stride + Skip that they can test.

rootulp commented 2 weeks ago

Closing this b/c it is no longer necessary to test on Arabica. Stride + Skip will test on Mocha. Arabica testing led to discovery of a bug in ICA params.

rootulp commented 1 week ago

I came back to this because I need to see what the type of transaction / message is when it lands on the host chain.

root@rootulp-arabica:~# gaiad tx interchain-accounts controller register connection-3785 --from key-cosmos --chain-id theta-testnet-001 --fees 100000uatom --gas 2000000 --node tcp://localhost:27000 --version '{"version":"ics27-1","controller_connection_id":"connection-3785","host_connection_id":"connection-1","address":"cosmos1epqzuh6myrwrp4zr8zjamcye4nvkkg9xd8ywak","encoding":"proto3","tx_type":"sdk_multi_msg"}' --ordering ORDER_ORDERED

https://www.mintscan.io/cosmos-testnet/tx/C07A507FC432B82E15F48140ADB7B27173A7CFF663D1DC8DF63068FA9BE71FBD?height=23337040

root@rootulp-arabica:~# gaiad tx interchain-accounts controller send-tx connection-3785 msg.json --from key-cosmos --chain-id theta-testnet-001 --fees 100000uatom --gas 2000000 --node tcp://localhost:27000

where msg.json looks like this

{"type":"TYPE_EXECUTE_TX","data":"eyJtZXNzYWdlcyI6W3siQHR5cGUiOiIvY29zbW9zLmJhbmsudjFiZXRhMS5Nc2dTZW5kIiwiZnJvbV9hZGRyZXNzIjoiY29zbW9zMTVjY3NoaG1wMGdzeDI5cXBxcTZnNHptbHRubnZnbXl1OXVldWFkaDl5Mm5jNXpqMHN6bHM1Z3RkZHoiLCJ0b19hZGRyZXNzIjoiY29zbW9zMTBoOXN0YzV2Nm50Z2V5Z2Y1eGY5NDVuanFxNWgzMnI1M3VxdXZ3IiwiYW1vdW50IjpbeyJkZW5vbSI6InN0YWtlIiwiYW1vdW50IjoiMTAwMCJ9XX1dfQ==","memo":"memo"}

https://www.mintscan.io/cosmos-testnet/tx/0ACAD97A7C86FAAF621F7F78AFC8A729C67C59F6F83E3A44D89131BBF017BA18/?height=23337069

https://arabica.celenium.io/tx/b567c2e11b1c63706efef1f7448c199b7184e4923587000fe57daf4a07ff3f12?tab=messages

which manifests on the host chain as MsgUpdateClient and MsgRecvPacket

rootulp commented 1 week ago

I sent another ICA tx this time with a message that should be deny listed (msg multi send):

cat msg-multi-send.json
{"type":"TYPE_EXECUTE_TX","data":"eyJtZXNzYWdlcyI6W3siQHR5cGUiOiIvY29zbW9zLmJhbmsudjFiZXRhMS5Nc2dNdWx0aVNlbmQiLCJpbnB1dHMiOltdLCJvdXRwdXRzIjpbXX1dfQ==","memo":""}

gaiad tx interchain-accounts controller send-tx connection-3785 msg-multi-send.json --from key-cosmos --chain-id theta-testnet-001 --fees 100000uatom --gas 2000000 --node tcp://localhost:27000
rootulp commented 1 week ago

Couldn't figure out why my PFB failed to execute on Arabica: https://gist.github.com/rootulp/2544c9a7b76fb66694e330f845611d3d