This PR adds the simple semantic-version Python package for parsing semantic versions.
This package is used in the following way:
Use the codebase URL from the chain registry to pull down the current repo tags. These are cached per-repo url for 600 seconds to prevent external API throttling.
Get the possible version strings from the endpoints
Pass these to a semantic version checker that:
Finds possible semver matches between the parsed data and the network repo tags
Use the highest semver found in the matches
This fixes a known issue in the secret network where they are including other repo version tags in the plan description that was making the version be incorrect.
Plan Info in Response
This PR adds the plan info object into the response.
When the "source" is
current_upgrade_plan
, we include the parsed upgrade plan pulled from the plan endpoint:Network Repo Tags Checking for Version
This PR adds the simple semantic-version Python package for parsing semantic versions.
This package is used in the following way:
This fixes a known issue in the
secret
network where they are including other repo version tags in the plan description that was making the version be incorrect.Secret now looks like this:
Closes #18