Go to file
Emmanuel T Odeke 21716644d4
types: unconditionally divide by 2 because of integer truncation ⌊x/2⌋ (#8202)
Simplify the code in Dec.Power to unconditionally divide by 2, since:
    x /= 2
is the same result for both even and odd integers, and produces the
floor of the result of x/2 -> ⌊x/2⌋:
    99/2 ~> 49.5 ⌊49.5⌋ = 49
    98/2 ~> 49.0 ⌊49.0⌋ = 49
aka "integer truncation".

Fixes #7924
2020-12-20 10:41:59 -08:00
.circleci fix docs build failure (#6633) 2020-07-07 19:56:01 +02:00
.github build(deps): bump gaurav-nelson/github-action-markdown-link-check (#8158) 2020-12-15 16:11:20 +01:00
baseapp update error message and add tests (#8166) 2020-12-14 15:56:10 +01:00
client Clean Any interface (#8167) 2020-12-18 14:55:25 +00:00
codec Clean Any interface (#8167) 2020-12-18 14:55:25 +00:00
contrib Refactor Logging using Zerolog (#8072) 2020-12-03 23:17:21 +00:00
cosmovisor cosmovisor: pass quit signals to subprocess (#7776) 2020-11-13 14:54:30 +00:00
crypto Fix CryptoCdc inconsistent (#7987) 2020-12-02 14:50:50 +01:00
docs change gentx cmd amount field to arg from flag (#8183) 2020-12-17 17:27:30 +01:00
proto x/upgrade: fix software upgrade proposals from automatically failing, add unpackinterfaces function (#8169) 2020-12-15 19:06:09 +01:00
scripts All Makefile proto commands use Docker (#7931) 2020-11-13 16:36:58 +00:00
server Combine client.ReadTxCommandFlags with GetClientContextFromCmd (#8155) 2020-12-14 22:09:51 +00:00
simapp Clean Any interface (#8167) 2020-12-18 14:55:25 +00:00
snapshots Snapshot sync: use hasher for chunk hashes (#7215) (#7259) 2020-12-10 19:02:17 +00:00
std Add ADR 031 BaseApp and codec infrastructure (#7519) 2020-10-15 13:07:59 +00:00
store Snapshot sync: use hasher for chunk hashes (#7215) (#7259) 2020-12-10 19:02:17 +00:00
telemetry Minor Code Cleanup - gRPC queries (#6862) 2020-07-28 12:53:35 +00:00
tests Replace tmcrypto.PubKey by our own cryptotypes.PubKey (#7419) 2020-11-09 16:01:43 +00:00
testutil fix: Signature only flag bug on tx sign command 7632 (#8106) 2020-12-14 21:44:15 +00:00
third_party/proto gRPC-gateway routes as alternative to legacy tendermint REST endpoints (#7965) 2020-11-25 15:58:11 +00:00
types types: unconditionally divide by 2 because of integer truncation ⌊x/2⌋ (#8202) 2020-12-20 10:41:59 -08:00
version version --long displays replaced build dependencies (#7941) 2020-11-16 10:00:34 +00:00
x fix timeout bug (#8200) 2020-12-18 19:01:01 +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
.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 All Makefile proto commands use Docker (#7931) 2020-11-13 16:36:58 +00:00
.golangci.yml linter: enable nolintlint (#6162) 2020-05-08 08:46:12 +00:00
.goreleaser.yml ci: automate release post tag push (#6230) 2020-05-25 20:02:08 +02:00
.mergify.yml Tweak mergify config 2020-03-01 16:18:22 +00:00
CHANGELOG.md update changelog for v0.40.0-rc5 (#8156) 2020-12-14 18:51:11 -08:00
CODE_OF_CONDUCT.md Update CODE_OF_CONDUCT.md (#7381) 2020-09-28 11:28:30 +02:00
CONTRIBUTING.md Update CONTRIBUTING.md Point Release Procedure (#7999) 2020-12-11 01:50:07 +00:00
Dockerfile Makefile: simplify and clean-up (#7453) 2020-10-05 10:22:18 +02:00
LICENSE Add README.md to Basecoin; Update licenses 2018-01-28 18:17:19 -08:00
Makefile Add tx broadcast gRPC endpoint (#7852) 2020-12-02 17:50:40 +00:00
README.md update readme to link starport instead of scaffold (#7613) 2020-10-21 08:08:20 +00:00
SECURITY.md update SECURITY.md (#6263) 2020-05-21 11:12:51 +02:00
STABLE_RELEASES.md Stable Releases: Definition and Process (#6394) 2020-07-14 10:28:53 +02:00
buf.yaml Refactor x/bank according to ADR 031 (#7520) 2020-10-13 09:05:46 +00:00
build.sh Remove reproducible builder image (#7484) 2020-10-08 15:00:34 +01:00
docker-compose.yml buildsystem: simplify Makefile and ci automation (#7189) 2020-08-31 15:39:05 +02:00
go.mod build(deps): bump gopkg.in/yaml.v2 from 2.3.0 to 2.4.0 (#8159) 2020-12-16 16:06:53 +01:00
go.sum build(deps): bump gopkg.in/yaml.v2 from 2.3.0 to 2.4.0 (#8159) 2020-12-16 16:06:53 +01:00
package-lock.json Proportional slashing ADR Update (#6368) 2020-10-05 09:30:50 +02: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.

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.