source

package
v1.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatKeys

func FormatKeys(blockStartKey, latestBlockKey, stateStartKey, latestStateKey *string) (string, string, string)

func FormatNumberWithCommas

func FormatNumberWithCommas(number int64) string

func FormatOutput

func FormatOutput(entry *types.Entry, chainId string) (string, string, string)

func GetSourceRegistry

func GetSourceRegistry(url string) (*types.SourceRegistry, error)

func LoadLatestPoolData

func LoadLatestPoolData(sourceRegistry types.SourceRegistry) (*types.SourceRegistry, error)

Types

type Source

type Source struct {
	// contains filtered or unexported fields
}

func NewSource

func NewSource(sourceId string) (*Source, error)

func (*Source) GetRecommendedVersionForHeight

func (source *Source) GetRecommendedVersionForHeight(height int64) (string, error)

func (*Source) GetSourceBlockPoolId

func (source *Source) GetSourceBlockPoolId() (int64, error)

func (*Source) GetSourceSnapshotPoolId

func (source *Source) GetSourceSnapshotPoolId() (int64, error)

func (*Source) GetUpgradeNameForHeight

func (source *Source) GetUpgradeNameForHeight(height int64) (string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL