cosmos-sdk/docs
Ian Norden 1326fa2a7d
feat: ADR-038 Part 2: StreamingService interface, file writing implementation, and configuration (#8664)
<!-- < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < ☺
v                               ✰  Thanks for creating a PR! ✰
v    Before smashing the submit button please review the checkboxes.
v    If a checkbox is n/a - please still include it but + a little note why
☺ > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >  -->

## Description

<!-- Add a description of the changes that this PR introduces and the files that
are the most critical to review.
-->

Hello 👋 this PR introduces the second stage of changes to support [ADR-038](https://github.com/cosmos/cosmos-sdk/pull/8012) state listening. This is rebased on top of the [first segment](https://github.com/cosmos/cosmos-sdk/pull/8551), which introduces the low level changes to the MultiStore and KVStore interfaces and implementations, the new WriteListener types, and the new listen.KVStore type.

In this segment we introduce the StreamingService interface, an implementation that writes out to files, and it's integration and configuration at the BaseApp level.

The idea was to have the first segment reviewed independently first but if people think it is easier/more time efficient to review both at the same time then we could start here.

Thanks!



This work is towards satisfying [ADR-038](https://github.com/cosmos/cosmos-sdk/blob/master/docs/architecture/adr-038-state-listening.md)

---

Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

- [x] Targeted PR against correct branch (see [CONTRIBUTING.md](https://github.com/cosmos/cosmos-sdk/blob/master/CONTRIBUTING.md#pr-targeting))
- [x] Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
- [x] Code follows the [module structure standards](https://github.com/cosmos/cosmos-sdk/blob/master/docs/building-modules/structure.md).
- [x] Wrote unit and integration [tests](https://github.com/cosmos/cosmos-sdk/blob/master/CONTRIBUTING.md#testing)
- [x] Updated relevant documentation (`docs/`) or specification (`x/<module>/spec/`)
- [x] Added relevant `godoc` [comments](https://blog.golang.org/godoc-documenting-go-code).
- [x] Added a relevant changelog entry to the `Unreleased` section in `CHANGELOG.md`
- [x] Re-reviewed `Files changed` in the Github PR explorer
- [x] Review `Codecov Report` in the comment section below once CI passes
2021-10-24 21:37:37 +00:00
..
.vuepress docs: #10221 Create 404 page (#10296) 2021-10-07 07:45:23 +00:00
architecture feat: ADR-038 Part 2: StreamingService interface, file writing implementation, and configuration (#8664) 2021-10-24 21:37:37 +00:00
basics docs: 10180 Fix SDK (#10237) 2021-09-28 19:33:58 +02:00
building-modules docs: 10180 Fix SDK (#10237) 2021-09-28 19:33:58 +02:00
core feat: ADR-038 Part 2: StreamingService interface, file writing implementation, and configuration (#8664) 2021-10-24 21:37:37 +00:00
ibc docs: 10180 Fix SDK (#10237) 2021-09-28 19:33:58 +02:00
intro docs: 10180 Fix SDK (#10237) 2021-09-28 19:33:58 +02:00
ko docs: clean up translations and readme (#9539) 2021-07-05 10:07:26 +00:00
migrations docs: update migrations doc (#10313) 2021-10-06 13:24:33 +02:00
ru docs: clean up translations and readme (#9539) 2021-07-05 10:07:26 +00:00
run-node docs: Corrext tx multisign documentation example. (#10274) 2021-10-04 11:20:19 +00:00
spec docs: 10180 Fix SDK (#10237) 2021-09-28 19:33:58 +02:00
uml docs: uml hotfix (#9124) 2021-04-16 07:59:21 +00:00
using-the-sdk docs: 10180 Fix SDK (#10237) 2021-09-28 19:33:58 +02:00
zh docs: clean up translations and readme (#9539) 2021-07-05 10:07:26 +00:00
404.md docs: #10221 Create 404 page (#10296) 2021-10-07 07:45:23 +00:00
cosmos-sdk-image.jpg Merge PR #4643: Update cosmos sdk image, remove unused images 2019-06-30 16:29:05 -04:00
DOC_WRITING_GUIDELINES.md docs: use RFC 2119 keywords (#9532) 2021-06-22 00:04:55 +00:00
DOCS_README.md docs: clean up translations and readme (#9539) 2021-07-05 10:07:26 +00:00
package-lock.json docs: client docs for upgrade module (#10320) 2021-10-12 11:56:40 +00:00
package.json bump vuepress-theme-cosmos (#9099) 2021-04-13 12:18:47 +00:00
post.sh docs: fix cosmovisor quickstart (#9730) 2021-07-26 07:51:36 +00:00
pre.sh docs: fix cosmovisor quickstart (#9730) 2021-07-26 07:51:36 +00:00
protodoc-markdown.tmpl Add script to generate proto-docs (#8238) 2020-12-31 16:10:13 +00:00
README.md docs: 10180 Fix SDK (#10237) 2021-09-28 19:33:58 +02:00
versions docs: update to v0.44 version tag (#10069) 2021-09-08 08:34:54 -07:00

Cosmos SDK Documentation

Get Started

  • Cosmos SDK Intro: High-level overview of the Cosmos SDK.
  • Starport: A developer-friendly interface to the Cosmos SDK to scaffold, launch, and maintain any crypto application on a sovereign and secured blockchain.
  • SDK Tutorials: Tutorials that showcase how to build Cosmos SDK-based blockchains from scratch and explain the basic Cosmos SDK principles in the process.

Reference Docs

  • Basics: Basic concepts of the Cosmos SDK, including the standard anatomy of an application, the transaction lifecycle, and accounts management.
  • Core: Core concepts of the Cosmos SDK, including baseapp, the store, or the server.
  • Building Modules: Important concepts for module developers like message, keeper, and querier.
  • IBC: IBC protocol integration and concepts.
  • Running a Node, API, CLI: How to run a node and interact with the node using the CLI and the API.
  • Migrations: Migration guides for updating to newer versions of Cosmos SDK.

Other Resources

Cosmos Hub

The Cosmos Hub (gaia) docs have moved to github.com/cosmos/gaia.

Languages

The Cosmos SDK is written in Golang, though the framework could be implemented similarly in other languages. Contact us for information about funding an implementation in another language.

Contribute

See the DOCS_README.md for details of the build process and considerations when making changes.