dymensionxyz / dymension-rdk

Framework for building highly scalable RollApps
Apache License 2.0
96 stars 53 forks source link

rdk ibc: Figure out chain upgrade how to set canonical port/channel #467

Open danwt opened 2 months ago

danwt commented 2 months ago

After the upgrade, there is a notion of canonical port/channel Need to make sure existing chains are not broken by this upgrade

danwt commented 3 weeks ago

IIRC there was some canonical channel concept introduced on the rollapp when Alex and I did the genesis transfers and the denom metadata work, These are old issues, but need to be done/double checked I'm just looking now https://github.com/dymensionxyz/dymension-rdk/blob/74f21279f16d3a5608ee442406b439024b18f474/x/hub-genesis/types/state.go#L28-L30 Yeah I think we need to write an upgrade on the rollapp to set canonical channel for existing rollapps

state.go func (s *State) IsCanonicalHubTransferChannel(port, channel string) bool { return s.CanonicalHubTransferChannelHasBeenSet() && s.HubPortAndChannel.Port == port && s.HubPortAndChannel.Channel == channel }