Documentation ¶
Index ¶
- Constants
- func AccumulateChanges(currentChanges, newChanges []abci.ValidatorUpdate) []abci.ValidatorUpdate
- func ComputeConsumerUnbondingPeriod(providerUnbondingPeriod time.Duration) time.Duration
- func GetChangePubKeyAddress(change abci.ValidatorUpdate) (addr []byte)
- func OnRecvPacketOnUnknownChannel(ctx sdk.Context, scopedKeeper capabilitykeeper.ScopedKeeper, ...) exported.Acknowledgement
- func SendIBCPacket(ctx sdk.Context, scopedKeeper capabilitykeeper.ScopedKeeper, ...) error
Constants ¶
const TrustingPeriodFraction = 2
TrustingPeriodFraction is used to compute the IBC clients TrustingPeriod as UnbondingPeriod / TrustingPeriodFraction
Variables ¶
This section is empty.
Functions ¶
func AccumulateChanges ¶
func AccumulateChanges(currentChanges, newChanges []abci.ValidatorUpdate) []abci.ValidatorUpdate
func ComputeConsumerUnbondingPeriod ¶
ComputeConsumerUnbondingPeriod computes the unbonding period on the consumer from the unbonding period on the provider (providerUnbondingPeriod). In general, the consumer unbonding period should be a bit smaller (e.g., one day) than the provider unbonding period so that it covers the delays of relaying IBC packets. As a result, delegators on the provider would not have to wait longer to unbond their tokens.
func GetChangePubKeyAddress ¶
func GetChangePubKeyAddress(change abci.ValidatorUpdate) (addr []byte)
func OnRecvPacketOnUnknownChannel ¶
func OnRecvPacketOnUnknownChannel( ctx sdk.Context, scopedKeeper capabilitykeeper.ScopedKeeper, channelKeeper ccv.ChannelKeeper, packet channeltypes.Packet, ) exported.Acknowledgement
OnRecvPacketOnUnknownChannel handles a received packet that was sent not on an established CCV channel
func SendIBCPacket ¶
func SendIBCPacket( ctx sdk.Context, scopedKeeper capabilitykeeper.ScopedKeeper, channelKeeper ccv.ChannelKeeper, channelID string, portID string, packetData []byte, ) error
SendIBCPacket sends an IBC packet with packetData over the source channelID and portID
Types ¶
This section is empty.