Documentation
¶
Index ¶
- func FromAnyPubKeyToConsensusAddress(protoAny *codectypes.Any, codec codec.Codec) (consAddr sdk.ConsAddress, success bool)
- func GetValconsHrpFromValoperHrp(valoper string) (valconsHrp string, success bool)
- func IsValoperAddressFormat(address string) bool
- func RatioOfInt64(num, den int64) float64
- func ReplaceAnySchemeWithHttp(endpoint string) string
- func Retry[T any](f func() (T, error), retryOption ...RetryOption) (res T, err error)
- type RetryOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromAnyPubKeyToConsensusAddress ¶
func FromAnyPubKeyToConsensusAddress(protoAny *codectypes.Any, codec codec.Codec) (consAddr sdk.ConsAddress, success bool)
func GetValconsHrpFromValoperHrp ¶
GetValconsHrpFromValoperHrp predicts valcons hrp from valoper hrp
func IsValoperAddressFormat ¶
func RatioOfInt64 ¶
Types ¶
type RetryOption ¶
func DefaultRetryOption ¶
func DefaultRetryOption() RetryOption
func (RetryOption) MaxDuration ¶
func (m RetryOption) MaxDuration(maximumRetryDuration time.Duration) RetryOption
func (RetryOption) MinCount ¶
func (m RetryOption) MinCount(minRetryCount int) RetryOption
Click to show internal directories.
Click to hide internal directories.