Documentation
¶
Index ¶
- func AvgInflationRate(ctx context.Context, cprov cchain.Provider, waitBlocks uint64) (math.LegacyDec, bool, error)
- func CurrentUpgrade(ctx context.Context, cprov cchain.Provider) (string, error)
- func DelegatorInflationRates(ctx context.Context, cprov cchain.Provider, delegator sdk.AccAddress, ...) ([]math.LegacyDec, bool, error)
- func NextUpgrade(ctx context.Context, cprov cchain.Provider) (string, bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AvgInflationRate ¶
func AvgInflationRate(ctx context.Context, cprov cchain.Provider, waitBlocks uint64) (math.LegacyDec, bool, error)
AvgInflationRate returns the average inflation for all delegations over the given number of blocks or true if all delegations changed (couldn't calculate inflation).
func CurrentUpgrade ¶
CurrentUpgrade returns the current applied upgrade.
Note it will return genesis upgrade if unknown upgrades are applied. This is due to CosmosSDK not providing an API to actually fetch applied upgrades :(.
func DelegatorInflationRates ¶
func DelegatorInflationRates(ctx context.Context, cprov cchain.Provider, delegator sdk.AccAddress, waitBlocks uint64) ([]math.LegacyDec, bool, error)
DelegatorInflationRates returns the inflation rate per delegation for the given delegator over the given number of blocks, or true if the delegation changed (couldn't calculate inflation).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.