Go to file
Amaury b3e922d08b
refactor: Move TxDecoder into its own middleware (#10612)
* WIP: middleware refactor

* refactor `tx.Request`

* Add MsgResponses any in sdk.Result

* add helper functions in abci

* refactor tips

* review changes

* Fix mock tests

* Update baseapp/abci.go

* Update baseapp/abci.go

* Update types/tx/middleware.go

* Update types/tx/middleware.go

* tx.Response to abci conversion

* refactor makeABCIData

* Add comments

* Fix build

* fix build error

* fix tests

* fix test

* fix tests

* Fix TestSimulateTx

* fix tests

* fix test

* Fix build

* Simplify code

* fix test build

* Use repeated bytes in txMsgData

* Fix grpc-gateway test

* Make proto-gen

* Automagically register MsgResponse

* review changes

* Use froydi's trick

* Use Any in TxMsgData

* Finally remove API breaking change

* Revert unnecessary stuff

* refactor: Move TxDecoder into its own middleware

* Add test for txDecoderMiddleware

* Fix some baseapp tests

* Fix some more tests

* Fix mock tests

* Fix middleware tests

* Add cl

* Fix tests

* Update types/tx/middleware.go

Co-authored-by: atheeshp <59333759+atheeshp@users.noreply.github.com>

Co-authored-by: atheesh <atheesh@vitwit.com>
Co-authored-by: atheeshp <59333759+atheeshp@users.noreply.github.com>
2021-12-06 10:26:15 +01:00
.github build(deps): Bump actions/cache from 2.1.6 to 2.1.7 (#10597) 2021-11-24 11:25:28 +01:00
api feat(orm): add ormfield.Codec (#10601) 2021-11-24 13:10:26 -05:00
baseapp refactor: Move TxDecoder into its own middleware (#10612) 2021-12-06 10:26:15 +01:00
client fix!: Add --fee-payer CLI flag, rename --fee-account to --fee-granter (#10625) 2021-12-01 11:47:40 +00:00
codec refactor: move from io/ioutil to io and os package (#10341) 2021-10-13 07:38:22 +00:00
container refactor(container)!: move logging and visualization options to DebugOption (#10302) 2021-10-14 16:49:50 +00:00
contrib build: add remote debugging with delve (#10587) 2021-12-01 12:44:54 +00:00
cosmovisor doc: Update cosmosvisor README (#10584) 2021-11-20 10:21:37 +01:00
crypto fix: move new gov messages to v1beta2 (#10632) 2021-11-30 11:09:16 +00:00
db chore: bump db dependencies (#10542) 2021-11-15 14:13:18 +00:00
docs refactor: middleware refactor to change tx.Handler interface (#10527) 2021-12-02 06:54:38 +00:00
internal feat: ADR-040: Implement KV Store with decoupled storage and SMT (#9892) 2021-10-19 11:58:06 +00:00
orm feat(orm): add ormkv.EntryCodec and ormkv.IndexCodec's (#10647) 2021-12-02 22:21:57 -05:00
proto refactor: middleware refactor to change tx.Handler interface (#10527) 2021-12-02 06:54:38 +00:00
scripts feat(orm): add ormfield.Codec (#10601) 2021-11-24 13:10:26 -05:00
server refactor: Move TxDecoder into its own middleware (#10612) 2021-12-06 10:26:15 +01:00
simapp refactor: Move TxDecoder into its own middleware (#10612) 2021-12-06 10:26:15 +01:00
snapshots style: lint go and markdown (#10060) 2021-10-30 13:43:04 +00:00
std Add ADR 031 BaseApp and codec infrastructure (#7519) 2020-10-15 13:07:59 +00:00
store feat: add configurable iavl cache size (#10561) 2021-11-20 09:32:30 +00:00
telemetry refactor!: Keyring migration (#9695) 2021-09-20 12:02:15 +00:00
tests test: fix mockgen version (#9127) 2021-05-25 09:18:59 +00:00
testutil chore: bump TM to v0.35.0 release candidate (#10210) 2021-11-16 11:24:38 -08:00
third_party/proto build: upgrade buf and contrib/devtools/dockerfile protoc-gen-go version (#10599) 2021-11-23 12:47:45 -05:00
types refactor: Move TxDecoder into its own middleware (#10612) 2021-12-06 10:26:15 +01:00
version refactor: Implementing sigs.k8s.io YAML to remove .proto yaml annotations (#9780) 2021-09-24 14:37:34 +00:00
x refactor: Move TxDecoder into its own middleware (#10612) 2021-12-06 10:26:15 +01: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 (#9730) 2021-07-26 07:51:36 +00:00
.golangci.yml chore: bump TM to v0.35.0 release candidate (#10210) 2021-11-16 11:24:38 -08: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 chore: Mergify update (#10525) 2021-11-11 15:21:56 +01:00
buf.work.yaml feat(orm): add ormfield.Codec (#10601) 2021-11-24 13:10:26 -05:00
CHANGELOG.md refactor: Move TxDecoder into its own middleware (#10612) 2021-12-06 10:26:15 +01: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 (#10060) 2021-10-30 13:43:04 +00:00
CONTRIBUTING.md style: lint go and markdown (#10060) 2021-10-30 13:43:04 +00:00
docker-compose.yml build: add remote debugging with delve (#10587) 2021-12-01 12:44:54 +00:00
Dockerfile build: Update Dockerfile (#9839) 2021-08-03 09:46:16 -04:00
go.mod build(deps): Bump github.com/cosmos/iavl from 0.17.2 to 0.17.3 (#10654) 2021-12-02 00:11:51 +01:00
go.sum build(deps): Bump github.com/cosmos/iavl from 0.17.2 to 0.17.3 (#10654) 2021-12-02 00:11:51 +01:00
LICENSE docs: 10180 Fix SDK (#10237) 2021-09-28 19:33:58 +02:00
Makefile build: add remote debugging with delve (#10587) 2021-12-01 12:44:54 +00:00
README.md chore: add meeting list and working groups to contributing doc (#10315) 2021-10-13 13:01:29 +00:00
RELEASE_PROCESS.md style: lint go and markdown (#10060) 2021-10-30 13:43:04 +00:00
SECURITY.md Update SECURITY.md (#10638) 2021-12-01 16:12:42 +01:00

Cosmos SDK

banner

The Cosmos SDK is a framework for building blockchain applications. Tendermint Core (BFT Consensus) and the Cosmos SDK are written in the Golang programming language. Cosmos SDK is used to build Gaia, the first implementation of the Cosmos Hub.

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

Note: Requires Go 1.17+

Quick Start

To learn how the Cosmos SDK works from a high-level perspective, see the Cosmos SDK High-Level Intro.

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

For more information, see the Cosmos SDK Documentation.

Contributing

See CONTRIBUTING.md for details how to contribute and participate in our dev calls. If you want to follow the updates or learn more about the latest design then join our Discord.

Tools and Frameworks

The Cosmos ecosystem is vast. We will only make a few notable mentions here.

  • Tools: notable frameworks and modules.
  • CosmJS: the Swiss Army knife to power JavaScript based client solutions.

Cosmos Hub Mainnet

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

Inter-Blockchain Communication (IBC)

The IBC module for the Cosmos SDK has moved to its own cosmos/ibc-go repository. Go there to build and integrate with the IBC module.

Starport

Starport is the all-in-one platform to build, launch, and maintain any crypto application on a sovereign and secured blockchain. If you are building a new app or a new module, use Starport to get started and speed up development.

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.