Open jtieri opened 2 years ago
A lot of the pieces for this are there but there is some uncertainty around whether or not the relayer should be responsible for submitting the on-chain governance proposals via implementing an UpgradeChain
function.
We could add a function to the Provider
interface that looks like:
UpgradeChain(ctx context.Context, dst ChainProvider, srcClientID string, upgradePlan []byte, deposit sdk.Coin, unbondingPeriod time.Duration) error
where upgradePlan
is the byte representation of some upgrade file that would be read off disk and then marshaled into an appropriate data type to submit on chain e.g. https://github.com/cosmos/ibc-go/blob/5e5e2cd2b904738266b06b3fc63a744fe6c7eeab/modules/core/02-client/types/proposal.go#L21-L23
This code used to be present before refactoring to account for the
Provider
abstraction.We should get this added back asap and start building out testing coverage in
ibctest