Go to file
mergify[bot] 863a7c7786
feat: `ScheduleUpgradeNoHeightValidation` for automated upgrades w/o gov proposal (backport #11551) (#11574)
* feat: `ScheduleUpgradeNoHeightValidation` for automated upgrades w/o gov proposal (#11551)

## Description

Implements a `ScheduleUpgradeNoHeightValidation` function for chains to schedule an automated upgrade (using the `x/upgrade` module) without having to go through a governance proposal.

This is beneficial to coordinate upgrades without having to manually download the new version, do the migration and restart the chain.

This is the procedure Evmos used for its automated upgrade.

---

### Author Checklist

*All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.*

I have...

- [ ] included the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title
- [ ] added `!` to the type prefix if API or client breaking change
- [ ] targeted the correct branch (see [PR Targeting](https://github.com/cosmos/cosmos-sdk/blob/master/CONTRIBUTING.md#pr-targeting))
- [ ] provided a link to the relevant issue or specification
- [ ] followed the guidelines for [building modules](https://github.com/cosmos/cosmos-sdk/blob/master/docs/building-modules)
- [ ] included the necessary unit and integration [tests](https://github.com/cosmos/cosmos-sdk/blob/master/CONTRIBUTING.md#testing)
- [ ] added a changelog entry to `CHANGELOG.md`
- [ ] included comments for [documenting Go code](https://blog.golang.org/godoc)
- [ ] updated the relevant documentation or specification
- [ ] reviewed "Files changed" and left comments if necessary
- [ ] confirmed all CI checks have passed

### Reviewers Checklist

*All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.*

I have...

- [ ] confirmed the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title
- [ ] confirmed `!` in the type prefix if API or client breaking change
- [ ] confirmed all author checklist items have been addressed
- [ ] reviewed state machine logic
- [ ] reviewed API design and naming
- [ ] reviewed documentation is accurate
- [ ] reviewed tests and test coverage
- [ ] manually tested (if applicable)

(cherry picked from commit 5b02bf459f)

# Conflicts:
#	CHANGELOG.md
#	x/upgrade/abci_test.go
#	x/upgrade/keeper/keeper.go

* fix conflicts

* changelog

* fix test

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Federico Kunze Küllmer <federico.kunze94@gmail.com>
2022-04-08 15:04:53 +02:00
.github build: fix build environment for the liveness test (backport #10551) (#10552) 2021-11-15 23:45:29 +01:00
baseapp feat!: Add hooks to allow app modules to add things to state-sync (backport #10961) (#11267) 2022-03-02 12:18:23 +01:00
client feat: EIP191 sign mode (backport #11533) (#11545) 2022-04-05 13:56:54 +02:00
codec fix: remove legacy REST endpoints for broadcast & encode (v0.44.x) (#10041) 2021-09-01 15:50:20 +02:00
contrib build: fix build environment for the liveness test (backport #10551) (#10552) 2021-11-15 23:45:29 +01:00
cosmovisor build(deps): Use self-maintained btcutil (#10082) (backport #10201) (#10623) 2021-11-29 17:08:32 +01:00
crypto feat: add grants by grantee authz query (backport #10944) (#11523) 2022-04-01 18:11:35 +02:00
docs feat: add grants by grantee authz query (backport #10944) (#11523) 2022-04-01 18:11:35 +02:00
internal/conv internal/conv: fix wrong string to bytes implementation (#9141) 2021-04-19 14:51:05 +01:00
proto/cosmos feat: EIP191 sign mode (backport #11533) (#11545) 2022-04-05 13:56:54 +02:00
scripts disable url parameter in swagger-ui page (backport #11202) (#11207) 2022-02-21 11:53:38 +01:00
server feat: grpc-only mode (backport #11430) (#11460) 2022-03-26 21:04:52 -04:00
simapp chore: move server.GenerateCoinKey and server.GenerateSaveCoinKey to testutil (#10956) 2022-01-18 15:37:05 +01:00
snapshots feat: add grants by grantee authz query (backport #10944) (#11523) 2022-04-01 18:11:35 +02:00
std fix: register evidence regression (backport #10595) (#10775) 2022-01-03 15:23:51 +01:00
store Implement rollback command (#11179) (#11314) 2022-03-07 11:46:00 +01:00
telemetry v043 audit changes for telemetry/ (#9297) 2021-05-11 12:28:47 +00:00
tests test: fix mockgen version (#9127) 2021-05-25 09:18:59 +00:00
testutil chore: move server.GenerateCoinKey and server.GenerateSaveCoinKey to testutil (#10956) 2022-01-18 15:37:05 +01:00
third_party/proto Any: update and test String method (#8854) 2021-03-12 12:24:07 +00:00
types feat: EIP191 sign mode (backport #11533) (#11545) 2022-04-05 13:56:54 +02:00
version feat: add cosmos-sdk Version (#9429) 2021-06-18 12:56:55 +00:00
x feat: `ScheduleUpgradeNoHeightValidation` for automated upgrades w/o gov proposal (backport #11551) (#11574) 2022-04-08 15:04:53 +02:00
.build.sh fix library file path (#8301) 2021-01-12 10:08:42 +00:00
.clang-format Fix clang-format to specific version (#7350) 2020-10-27 10:04:34 +00:00
.codecov.yml CI: Fix codecov flag project config (#7994) 2020-11-20 09:13:25 -05:00
.deepsource.toml chore: refactor code quality issues (#8932) 2021-03-22 09:30:27 +00:00
.dockerignore Add basic Dockerfile to build all binaries and export gaiad 2018-04-10 12:39:47 +02:00
.gitattributes Merge PR #6426: Migrate API Server 2020-06-15 13:39:09 -04:00
.gitignore docs: fix cosmovisor quickstart (backport #9730) (#9789) 2021-07-28 11:27:49 +02:00
.golangci.yml fix(CI): add golangci-lint to dependencies (#10112) (#10172) 2021-09-17 00:34:36 +02:00
.goreleaser.yml ci: automate release post tag push (#6230) 2020-05-25 20:02:08 +02:00
.markdownlint.json chore: add markdownlint to lint commands (#9353) 2021-05-27 15:31:04 +00:00
.markdownlintignore chore: add markdownlint to lint commands (#9353) 2021-05-27 15:31:04 +00:00
.mergify.yml ci: use title+body for commit message (#9496) 2021-06-11 11:56:00 -07:00
CHANGELOG.md feat: `ScheduleUpgradeNoHeightValidation` for automated upgrades w/o gov proposal (backport #11551) (#11574) 2022-04-08 15:04:53 +02:00
CODE_OF_CONDUCT.md Update CODE_OF_CONDUCT.md (#7381) 2020-09-28 11:28:30 +02:00
CODING_GUIDELINES.md style: lint go and markdown (backport #10060) (#10473) 2021-11-11 21:29:29 +01:00
CONTRIBUTING.md style: lint go and markdown (backport #10060) (#10473) 2021-11-11 21:29:29 +01:00
Dockerfile remove plantuml install in docker (#9059) 2021-04-06 19:04:00 +00:00
LICENSE Add README.md to Basecoin; Update licenses 2018-01-28 18:17:19 -08:00
Makefile fix: cgosecp256k1 verification (backport #11298) (#11360) 2022-03-11 12:09:50 +01:00
README.md chore: add markdownlint to lint commands (#9353) 2021-05-27 15:31:04 +00:00
RELEASE_NOTES.md chore: v0.45.2 Release Notes (#11546) 2022-04-05 14:19:09 +02:00
RELEASE_PROCESS.md chore: update 0.45 migration and support notes (backport #10973) (#10979) 2022-01-26 17:21:46 +01:00
SECURITY.md chore: add markdownlint to lint commands (#9353) 2021-05-27 15:31:04 +00:00
buf.yaml refactor: Bring back deprecated proto fields to `v1beta1` (#9534) 2021-06-23 13:03:33 +00:00
docker-compose.yml build: fix build environment for the liveness test (backport #10551) (#10552) 2021-11-15 23:45:29 +01:00
go.mod Implement rollback command (#11179) (#11314) 2022-03-07 11:46:00 +01:00
go.sum Implement rollback command (#11179) (#11314) 2022-03-07 11:46:00 +01:00

README.md

Cosmos SDK

banner

The Cosmos-SDK is a framework for building blockchain applications in Golang. It is being used to build Gaia, the first implementation of the Cosmos Hub.

WARNING: The SDK has mostly stabilized, but we are still making some breaking changes.

Note: Requires Go 1.15+

Quick Start

To learn how the SDK works from a high-level perspective, go to the SDK Intro.

If you want to get started quickly and learn how to build on top of the SDK, please follow the SDK Application Tutorial. You can also fork the tutorial's repository to get started building your own Cosmos SDK application.

For more, please go to the Cosmos SDK Docs.

Cosmos Hub Mainnet

The Cosmos Hub application, gaia, has moved to its own repository. Go there to join the Cosmos Hub mainnet and more.

Interblockchain Communication (IBC)

The IBC module for the SDK has moved to its own repository. Go there to build and integrate with the IBC module.

Starport

If you are starting a new app or a new module you can use Starport to help you get started and speed up development. If you have any questions or find a bug, feel free to open an issue in the repo.

Disambiguation

This Cosmos-SDK project is not related to the React-Cosmos project (yet). Many thanks to Evan Coury and Ovidiu (@skidding) for this Github organization name. As per our agreement, this disambiguation notice will stay here.