cosmosver

package
v0.14.1-0...-8b31b97 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MajorVersions = majorVersions{
		Launchpad,
		Stargate,
	}

	Versions = versions{
		LaunchpadAny,
		StargateBelowZeroFourty,
		StargateZeroFourtyAndAbove,
	}
)

MajorVersions are the list of supported Cosmos-SDK major versions.

Functions

This section is empty.

Types

type MajorVersion

type MajorVersion string

MajorVersion represents major, named versions of Cosmos-SDK.

const (
	// Launchpad points to Launchpad version of Cosmos-SDK.
	Launchpad MajorVersion = "launchpad"

	// Stargate points to Stargate version of Cosmos-SDK.
	Stargate MajorVersion = "stargate"
)

func (MajorVersion) Is

func (v MajorVersion) Is(comparedTo MajorVersion) bool

type Version

type Version int

Version represents a range of Cosmos-SDK versions.

const (
	LaunchpadAny Version = iota

	StargateBelowZeroFourty

	StargateZeroFourtyAndAbove
)

func Detect

func Detect(appPath string) (Version, error)

Detect dedects major version of Cosmos.

func (Version) Is

func (v Version) Is(comparedTo Version) bool

func (Version) Major

func (v Version) Major() MajorVersion

Major returns the MajorVersion of the version.

func (Version) String

func (v Version) String() string

Jump to

Keyboard shortcuts

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