Skip to main content
Version: Next

staking_redelegations/2

Module​

This predicate is provided by staking.pl.

Load this module before using the predicate:

:- consult('/v1/lib/staking.pl').

Description​

Unifies Redelegations with the in-flight redelegations of Delegator. Delegator must be an AXONE account address atom in Bech32 format.

Each item has the shape:

redelegation{
source_validator: SourceValidator,
destination_validator: DestinationValidator,
entries: [redelegation_entry{balance: coin(Denom, Amount), completion_time: Time}, ...]
}

Time is a Unix timestamp in seconds.

Signature​

staking_redelegations(+Delegator, -Redelegations) is det