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 SendIBCPacket(ctx sdk.Context, scopedKeeper ccv.ScopedKeeper, ...) error
Constants ¶
View Source
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 SendIBCPacket ¶
func SendIBCPacket( ctx sdk.Context, scopedKeeper ccv.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.
Click to show internal directories.
Click to hide internal directories.