cosmos-sdk/docs/architecture
mergify[bot] 8a9589a8de
style: lint go and markdown (backport #10060) (#10473)
* style: lint go and markdown (#10060)

## Description

+ fixing `x/bank/migrations/v44.migrateDenomMetadata` - we could potentially put a wrong data in a new key if the old keys have variable length.
+ linting the code

Putting in the same PR because i found the issue when running a linter.

Depends on: #10112

---

### 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...

- [x] included the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title
- [x] added `!` to the type prefix if API or client breaking change
- [x] 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
- [x] 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 479485f95d)

# Conflicts:
#	CODING_GUIDELINES.md
#	CONTRIBUTING.md
#	STABLE_RELEASES.md
#	contrib/rosetta/README.md
#	cosmovisor/README.md
#	crypto/keyring/keyring.go
#	db/README.md
#	docs/404.md
#	docs/DOCS_README.md
#	docs/architecture/adr-038-state-listening.md
#	docs/architecture/adr-040-storage-and-smt-state-commitments.md
#	docs/architecture/adr-043-nft-module.md
#	docs/architecture/adr-044-protobuf-updates-guidelines.md
#	docs/architecture/adr-046-module-params.md
#	docs/migrations/pre-upgrade.md
#	docs/migrations/rest.md
#	docs/ru/README.md
#	docs/run-node/rosetta.md
#	docs/run-node/run-node.md
#	docs/run-node/run-testnet.md
#	go.mod
#	scripts/module-tests.sh
#	snapshots/README.md
#	store/streaming/README.md
#	store/streaming/file/README.md
#	store/v2/flat/store.go
#	store/v2/smt/store.go
#	x/auth/ante/sigverify.go
#	x/auth/middleware/basic.go
#	x/auth/spec/01_concepts.md
#	x/auth/spec/05_vesting.md
#	x/auth/spec/07_client.md
#	x/authz/spec/05_client.md
#	x/bank/spec/README.md
#	x/crisis/spec/05_client.md
#	x/distribution/spec/README.md
#	x/epoching/keeper/keeper.go
#	x/epoching/spec/03_to_improve.md
#	x/evidence/spec/07_client.md
#	x/feegrant/spec/README.md
#	x/gov/spec/01_concepts.md
#	x/gov/spec/07_client.md
#	x/group/internal/orm/spec/01_table.md
#	x/mint/spec/06_client.md
#	x/slashing/spec/09_client.md
#	x/slashing/spec/README.md
#	x/staking/spec/09_client.md
#	x/upgrade/spec/04_client.md

* fix conflicts

* remove unnecessary files

Co-authored-by: Robert Zaremba <robert@zaremba.ch>
2021-11-11 21:29:29 +01:00
..
PROCESS.md chore: add markdownlint to lint commands (#9353) 2021-05-27 15:31:04 +00:00
README.md docs: use RFC 2119 keywords (#9532) 2021-06-22 00:04:55 +00:00
adr-002-docs-structure.md Fix typo (#5523) 2020-01-15 08:14:25 +01:00
adr-003-dynamic-capability-store.md chore: add markdownlint to lint commands (#9353) 2021-05-27 15:31:04 +00:00
adr-004-split-denomination-keys.md chore: add markdownlint to lint commands (#9353) 2021-05-27 15:31:04 +00:00
adr-006-secret-store-replacement.md chore: add markdownlint to lint commands (#9353) 2021-05-27 15:31:04 +00:00
adr-007-specialization-groups.md chore: add markdownlint to lint commands (#9353) 2021-05-27 15:31:04 +00:00
adr-008-dCERT-group.md chore: add markdownlint to lint commands (#9353) 2021-05-27 15:31:04 +00:00
adr-009-evidence-module.md docs: link checker (#5860) 2020-03-24 11:21:30 +01:00
adr-010-modular-antehandler.md style: lint go and markdown (backport #10060) (#10473) 2021-11-11 21:29:29 +01:00
adr-011-generalize-genesis-accounts.md rename RegisterCodec to RegisterLegacyAminoCodec (#7243) 2020-09-07 14:47:12 +00:00
adr-012-state-accessors.md Rename *codec.Codec to *codec.LegacyAmino (#6991) 2020-08-10 19:41:21 +00:00
adr-013-metrics.md Merge PR #6761: telemetry: use UTC() in wrappers 2020-07-17 15:33:50 -04:00
adr-014-proportional-slashing.md chore: add markdownlint to lint commands (#9353) 2021-05-27 15:31:04 +00:00
adr-016-validator-consensus-key-rotation.md chore: add markdownlint to lint commands (#9353) 2021-05-27 15:31:04 +00:00
adr-017-historical-header-module.md Fix link to ICS2 on ADR017 (#8975) 2021-03-24 08:30:00 +00:00
adr-018-extendable-voting-period.md chore: add markdownlint to lint commands (#9353) 2021-05-27 15:31:04 +00:00
adr-019-protobuf-state-encoding.md chore: add markdownlint to lint commands (#9353) 2021-05-27 15:31:04 +00:00
adr-020-protobuf-transaction-encoding.md refactor(client): add client/Context.Codec and deprecate JSONCodec (#9498) 2021-06-11 11:49:39 +00:00
adr-021-protobuf-query-encoding.md chore: add markdownlint to lint commands (#9353) 2021-05-27 15:31:04 +00:00
adr-022-custom-panic-handling.md style: lint go and markdown (backport #10060) (#10473) 2021-11-11 21:29:29 +01:00
adr-023-protobuf-naming.md chore: add markdownlint to lint commands (#9353) 2021-05-27 15:31:04 +00:00
adr-024-coin-metadata.md x/bank: client denom metadata gRPC (#8317) 2021-01-19 17:08:09 -05:00
adr-027-deterministic-protobuf-serialization.md chore: add markdownlint to lint commands (#9353) 2021-05-27 15:31:04 +00:00
adr-028-public-key-addresses.md chore: add markdownlint to lint commands (#9353) 2021-05-27 15:31:04 +00:00
adr-029-fee-grant-module.md chore: add markdownlint to lint commands (#9353) 2021-05-27 15:31:04 +00:00
adr-030-authz-module.md chore: add markdownlint to lint commands (#9353) 2021-05-27 15:31:04 +00:00
adr-031-msg-service.md chore: add markdownlint to lint commands (#9353) 2021-05-27 15:31:04 +00:00
adr-032-typed-events.md chore: add markdownlint to lint commands (#9353) 2021-05-27 15:31:04 +00:00
adr-033-protobuf-inter-module-comm.md chore: add markdownlint to lint commands (#9353) 2021-05-27 15:31:04 +00:00
adr-034-account-rekeying.md chore: add markdownlint to lint commands (#9353) 2021-05-27 15:31:04 +00:00
adr-035-rosetta-api-support.md chore: add markdownlint to lint commands (#9353) 2021-05-27 15:31:04 +00:00
adr-036-arbitrary-signature.md chore: add markdownlint to lint commands (#9353) 2021-05-27 15:31:04 +00:00
adr-037-gov-split-vote.md chore: add markdownlint to lint commands (#9353) 2021-05-27 15:31:04 +00:00
adr-038-state-listening.md chore: add markdownlint to lint commands (#9353) 2021-05-27 15:31:04 +00:00
adr-039-epoched-staking.md chore: add markdownlint to lint commands (#9353) 2021-05-27 15:31:04 +00:00
adr-040-storage-and-smt-state-commitments.md chore: add markdownlint to lint commands (#9353) 2021-05-27 15:31:04 +00:00
adr-041-in-place-store-migrations.md chore: add markdownlint to lint commands (#9353) 2021-05-27 15:31:04 +00:00
adr-042-group-module.md chore: add markdownlint to lint commands (#9353) 2021-05-27 15:31:04 +00:00
adr-template.md chore: add markdownlint to lint commands (#9353) 2021-05-27 15:31:04 +00:00

README.md

order parent
false
order
false

Architecture Decision Records (ADR)

This is a location to record all high-level architecture decisions in the Cosmos-SDK.

An Architectural Decision (AD) is a software design choice that addresses a functional or non-functional requirement that is architecturally significant. An Architecturally Significant Requirement (ASR) is a requirement that has a measurable effect on a software systems architecture and quality. An Architectural Decision Record (ADR) captures a single AD, such as often done when writing personal notes or meeting minutes; the collection of ADRs created and maintained in a project constitute its decision log. All these are within the topic of Architectural Knowledge Management (AKM).

You can read more about the ADR concept in this blog post.

Rationale

ADRs are intended to be the primary mechanism for proposing new feature designs and new processes, for collecting community input on an issue, and for documenting the design decisions. An ADR should provide:

  • Context on the relevant goals and the current state
  • Proposed changes to achieve the goals
  • Summary of pros and cons
  • References
  • Changelog

Note the distinction between an ADR and a spec. The ADR provides the context, intuition, reasoning, and justification for a change in architecture, or for the architecture of something new. The spec is much more compressed and streamlined summary of everything as it stands today.

If recorded decisions turned out to be lacking, convene a discussion, record the new decisions here, and then modify the code to match.

Creating new ADR

Read about the PROCESS.

Use RFC 2119 Keywords

When writing ADRs, follow the same best practices for writing RFCs. When writing RFCs, key words are used to signify the requirements in the specification. These words are often capitalized: "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL. They are to be interpreted as described in RFC 2119.

ADR Table of Contents

Accepted

Proposed