pub trait PortsOverride<const SIZE: usize> {
    fn channel_ports(&self) -> [[PortId; SIZE]; SIZE] { ... }
}
Expand description

An internal trait that can be implemented by test cases to override the port IDs used when creating N-ary channels.

When called, the implementer returns a SIZExSIZE matrix of PortIds to indicate which port ID for the chain at the first position when connected to the chain at the second position.

This is called by RunNaryChannelTest before creating the IBC channels.

Note that this trait is not automatically implemented for test cases via TestOverrides, except for the binary case PortsOverride<2>. So each N-ary channel test must also implement this trait manually.

It is possible to implement this with an empty body, in which case the port ID matrix will all be populated with "transfer" ports.

Provided Methods

Implementors