Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( StargateFortyVersion = newVersion("0.40.0") StargateFortyFourVersion = newVersion("0.44.0-alpha") StargateFortyFiveThreeVersion = newVersion("0.45.3") StargateFortySevenTwoVersion = newVersion("0.47.2") StargateFiftyVersion = newVersion("0.50.1") // 0.50.0 has been retracted and should not be used )
View Source
var ( // Versions is a list of known, sorted Cosmos-SDK versions. Versions = []Version{ StargateFortyVersion, StargateFortyFourVersion, StargateFortyFiveThreeVersion, StargateFortySevenTwoVersion, } // Latest is the latest known version of the Cosmos-SDK. Latest = Versions[len(Versions)-1] )
View Source
var ( // CosmosSDKRepoName defines the name of the Cosmos SDK repository. CosmosSDKRepoName = "cosmos-sdk" // CosmosModulePath defines Cosmos SDK import path. CosmosModulePath = "github.com/cosmos/cosmos-sdk" // CosmosSDKModulePathPattern defines a regexp pattern for Cosmos SDK import path. CosmosSDKModulePathPattern = regexp.MustCompile(CosmosSDKRepoName + "$") )
Functions ¶
This section is empty.
Types ¶
type Version ¶
type Version struct { // Version is the exact sdk version string. Version string // Semantic is the parsed version. Semantic semver.Version }
Version represents a range of Cosmos SDK versions.
func Detect ¶
Detect detects major version of Cosmos SDK. If the Cosmos SDK is replaced with a fork, it returns the version of the fork. If the Cosmos SDK is replaced with a local fork, it returns its non resolved version.
Click to show internal directories.
Click to hide internal directories.