Commit Graph

328 Commits

Author SHA1 Message Date
Aaron Craelius
2928fa4e1c
docs: add ADR 054 semver compatible SDK modules (#11802)
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Robert Zaremba <robert@zaremba.ch>
2023-03-08 11:25:45 -05:00
Facundo Medica
4a6a1e3cb8
refactor: fix lint issues + gofumpt (#15062) 2023-02-19 10:31:49 +00:00
Amaury
833ca9f0f1
chore: Clean-ups after Textual Title/Content PR (#14973) 2023-02-09 13:18:44 +00:00
Julien Robert
c17c3caab8
refactor: rename commands to match consensus engine name (#14956) 2023-02-08 20:09:28 +00:00
Julien Robert
80dd55f79b
refactor: rename to CometBFT (#14914) 2023-02-06 18:11:14 +00:00
Amaury
45624191ee
refactor(textual): Use Title/Content instead of Text (#14730) 2023-02-02 14:22:51 +00:00
Aaron Craelius
ba5e8cb3ad
docs: add ADR 063: core API ADR + update app wiring ADR (#12972) 2023-01-27 07:52:53 +00:00
Robert Zaremba
fd3bac0bda
chore: simplify ADR-028 and address.Module (#14017)
Co-authored-by: Julien Robert <julien@rbrt.fr>
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Amaury <1293565+amaurym@users.noreply.github.com>
Co-authored-by: Aaron Craelius <aaron@regen.network>
Co-authored-by: Marko <marbar3778@yahoo.com>
2023-01-16 13:49:04 +00:00
Amaury
66fa90292c
refactor(textual): Hash bytes when len >35 (#14598) 2023-01-12 18:30:43 +01:00
Amaury
305053136a
refactor: Improve textual's API (#14595) 2023-01-12 16:00:55 +00:00
Marko
5e7b744592
chore: add alternative adr section (#14594) 2023-01-12 15:26:55 +01:00
Julien Robert
e4c0788bf2
docs: update docs links to v0.47 (#14572) 2023-01-12 11:57:53 +00:00
Amaury
d5bcfb3f3e
feat(textual): Add Tx envelope Value Renderer (#13600) 2023-01-11 12:25:13 +00:00
Amaury
958b4ad663
feat(textual): Render long bytes hash (#14275)
Co-authored-by: Facundo Medica <14063057+facundomedica@users.noreply.github.com>
2023-01-05 16:01:05 +00:00
Amaury
b244ffb4dd
chore: Clean up {accept,implement}_interface (#14476) 2023-01-04 14:23:24 +00:00
Thomas Bruyelle
572af96fa6
docs: add missing field in denom metadata example (#14461) 2023-01-02 10:06:01 +00:00
Ergels Gaxhaj
2eb5144749
docs: update ADR 038 proposal (#13473) 2022-12-17 02:30:31 +00:00
Ruslan Akhtariev
ecb4ca2a82
feat(simapp): move genesis related commands under one genesis command (#14149) 2022-12-07 12:17:19 +00:00
testinginprod
424e6e60ce
feat(ADR): ADR 062: Collections -- a new storage layer for cosmos-sdk modules. (#14107) 2022-12-06 09:45:23 -05:00
Amaury
4a7e3f0522
refactor(textual): Update Spec to have shorter Any header screen (#14117)
* Remove object prefix

* update test case

* Update example
2022-12-06 10:45:42 +00:00
yihuang
1f91ee2ee9
fix: state listener observe writes at wrong time (#13516)
* fix: state listener observe writes at wrong time

Closes: #13457

Currently state listener is notified when the cache store write, which happens in commit event only, which breaks the current design.
The solution (as discussed in the issue) is to listen state writes on rootmulti store only.

It also changes the file streamer to output single data file for the writes in the whole block, since we can't distinguish writes from different stage of abci events.

It adds new config items for file streamer:
- streamers.file.output-metadata
- streamers.file.stop-node-on-error
- streamers.file.fsync

* synchronous abci call, and format doc

* fix comment

* update file streamer readme and fix typos

* typo

* fix: state listener observe writes at wrong time

Closes: #13457

Currently state listener is notified when the cache store write, which happens in commit event only, which breaks the current design.
The solution (as discussed in the issue) is to listen state writes on rootmulti store only.

It also changes the file streamer to output single data file for the writes in the whole block, since we can't distinguish writes from different stage of abci events.

It adds new config items for file streamer:
- streamers.file.output-metadata
- streamers.file.stop-node-on-error
- streamers.file.fsync

synchronous abci call, and format doc

fix comment

update file streamer readme and fix typos

typo

* improve UX of file streamer, make it immediately usable after enabled

- set default value to write_dir.
- make write_dir based on home directory by default.
- auto-create the directory if not exists.

* get homePage from opts

Co-authored-by: Marko <marbar3778@yahoo.com>
2022-12-02 15:43:21 +01:00
atheeshp
9d12a5fce3
feat: implement parse method for Int,Dec,Coin (#13696)
* wip: parse coins

* review changes

* update tests

* update tests

* Use ValueOfString

* fix tests

* fix coin tests

* FIXES

* Add empty coins test case

* fix tests

* fix tests

* review changes

* fix tests

* fix tests

* revert format.go

* revert `format.go`

* review changes

* fix tests & review changes

* review changes

* review changes

* review changes

* review changes

* review changes

* review changes

* proposal shorter code

* review changes

* conflicts

* review changes

* wip

* ParseRepeated for coins

* Revert listpb

* remove duplicate case

* revert some more

Co-authored-by: Amaury M <1293565+amaurym@users.noreply.github.com>
Co-authored-by: Marko <marbar3778@yahoo.com>
2022-12-02 14:26:25 +01:00
Jacob Gadikian
679c5d6086
chore: run markdownlint on the whole repository (#14106) 2022-11-30 19:51:26 +00:00
Joe Abbey
2cf92caf45
Support for repeated (#13604) 2022-11-29 16:37:29 +00:00
Jim Larson
4fe7403f83
feat: deterministic CBOR encoding of textual rendering (#13697)
* feat: deterministic CBOR encoding of textual rendering

* refactor: cbor package to internal, test cases as json

* chore: silence spurious gosec warnings

* docs: review feedback
2022-11-28 17:34:46 +00:00
Jim Larson
077abae250
feat: value renderer for google.protobuf.Any (#13671)
* chore: skeleton files for any renderer

* feat: first cut at Any renderer and tests

* test: Any fields, more tests, rename lookup by field

* docs: make Any example match the stated spec, and the implementation.

* refactor: use protojson for better test case legibility

* test: use protocmp for proto equality

See https://developers.google.com/protocol-buffers/docs/reference/go/faq#deepequal

* refactor: use json.RawMessage instead of remarshalling

* refactor: consistent pointer receiver for Textual
2022-11-24 08:04:55 +00:00
Amaury
fe5b0ff4a5
feat(textual): Add Enum value renderer (#13853)
* feat(textual): Add Enum value renderer

* parse

* Update ADR

* Fix test

* Update tx/textual/internal/testpb/1.proto

Co-authored-by: Likhita Polavarapu <78951027+likhita-809@users.noreply.github.com>

Co-authored-by: Likhita Polavarapu <78951027+likhita-809@users.noreply.github.com>
2022-11-23 11:01:33 +00:00
Julien Robert
d6da7037b6
fix(group): migrate group policy account to base accounts with credentials (#13742) 2022-11-21 22:46:48 +00:00
Dreamer
5f4350d418
refactor(x/nft): remove class&nft id validation (#13836) 2022-11-15 13:47:38 +01:00
Aleksandr Bezobchuk
78886bc8de
chore: ADR-060 Updates (#13844) 2022-11-14 07:05:56 +00:00
Julien Robert
c85447cdb9
docs: add documentation about depinject and app wiring (#13683) 2022-11-07 19:19:07 +00:00
Aaron Craelius
1c3e74104a
docs: update ADR 057 app wiring (#13736)
* docs: update ADR 057 app wiring

* remove ADR 061 ref
2022-11-02 21:19:53 +01:00
Julien Robert
dd78ce9ca4
docs: add auth tx commands documentation (#13682) 2022-10-28 13:01:34 +00:00
Julien Robert
c303d7f341
chore: small improvements (#13672)
* ci: update buf

* add recommended vscode extension

* update gh username

* follow-up #13613

* add more sugestions

* remove atlas github action
2022-10-26 22:47:28 +00:00
Jim Larson
c484a0dc0f
docs: Textual ADR minor fixes (#13608)
## Description

Refs: #11970

Minor fixups to architecture docs. No major semantic changes are intended.

---

### Author Checklist

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/main/CONTRIBUTING.md#pr-targeting))
- [x] provided a link to the relevant issue or specification
- [x] followed the guidelines for [building modules](https://github.com/cosmos/cosmos-sdk/blob/main/docs/building-modules)
- [x] included the necessary unit and integration [tests](https://github.com/cosmos/cosmos-sdk/blob/main/CONTRIBUTING.md#testing)
- [x] added a changelog entry to `CHANGELOG.md`
- [x] included comments for [documenting Go code](https://blog.golang.org/godoc)
- [x] updated the relevant documentation or specification
- [x] reviewed "Files changed" and left comments if necessary
- [x] 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)
2022-10-23 00:52:06 +00:00
Julien Robert
0dbae701f0
docs: minor documentation improvements (#13594)
* updates

* rename `sh` to `shell` for syntax coloring

* keep navbar the same on mobile
2022-10-19 14:56:29 +02:00
Marko
a3b8b7fcc9
docs: fix tooling (#13593)
* fix docs

* some more fixes

* some more fixes

* some more fixes

* move spec to 12

* fix

* fix

* Update docs/docs/tooling/00-protobuf.md

Co-authored-by: Julien Robert <julien@rbrt.fr>

Co-authored-by: Julien Robert <julien@rbrt.fr>
2022-10-19 12:38:36 +00:00
Jim Larson
d9f3eb027d
feat: structured screens for SIGN_MODE_TEXTUAL (#13434)
## Description

Refs: #11970

Changes target of `SIGN_MODE_TEXTUAL` rendering to be a structured datatype
instead of lines of ASCII text. This avoids the complexities of in-band, signaling and
allows more capable signing devices not to be hindered by the limitations of those less
capable.

---

### 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/main/CONTRIBUTING.md#pr-targeting))
- [X] provided a link to the relevant issue or specification
- [X] followed the guidelines for [building modules](https://github.com/cosmos/cosmos-sdk/blob/main/docs/building-modules)
- [X] included the necessary unit and integration [tests](https://github.com/cosmos/cosmos-sdk/blob/main/CONTRIBUTING.md#testing)
- [ ] added a changelog entry to `CHANGELOG.md`
- [X] included comments for [documenting Go code](https://blog.golang.org/godoc)
- [X] updated the relevant documentation or specification
- [X] reviewed "Files changed" and left comments if necessary
- [x] confirmed all CI checks have passed
NOTE: changelog intentionally omitted - we'll add an entry when
#11970 is complete.

### 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)
2022-10-15 08:04:36 +00:00
Julien Robert
214b11dcba
feat: add github links in docs (#13491)
* feat: add github links in docs

* apply proto theme

* fix toc
2022-10-10 20:02:32 +02:00
Julien Robert
a74989ddf4
feat: migrate to docusaurus (#13471) 2022-10-10 14:01:53 +00:00
Jim Larson
5f01f6f5e5
feat: duration renderer for SIGN_MODE_TEXTUAL (#13312)
* feat: value renderer for durations

* feat: dispatch for duration ValueRenderer

* docs: update duration rendering spec

* feat: error on malformed proto, review feedback, more tests

* fix: silence spurious int overflow warnings

* fix: supress spurious gosec warning on safe operation
2022-10-07 02:26:47 +02:00
Julien Robert
74ce07eb26
docs: improve documentation navigation and redirection (#13455) 2022-10-06 15:51:10 +02:00
Zaki Manian
ddf1dd4915
docs: Liquid staking ADR (#13239)
* Initial commit of liquid staking adr

* Update adr in response to reviews:w

* Update docs/architecture/adr-061-liquid-staking.md

Co-authored-by: Sam Hart <sam@hxrts.com>

* Update docs/architecture/adr-061-liquid-staking.md

Co-authored-by: Sam Hart <sam@hxrts.com>

* Update docs/architecture/adr-061-liquid-staking.md

Co-authored-by: Sam Hart <sam@hxrts.com>

* Update docs/architecture/adr-061-liquid-staking.md

Co-authored-by: Sam Hart <sam@hxrts.com>

* Update docs/architecture/adr-061-liquid-staking.md

Co-authored-by: Sam Hart <sam@hxrts.com>

* Update docs/architecture/adr-061-liquid-staking.md

Co-authored-by: Sam Hart <sam@hxrts.com>

* Update docs/architecture/adr-061-liquid-staking.md

Co-authored-by: Sam Hart <sam@hxrts.com>

* Update docs/architecture/adr-061-liquid-staking.md

Co-authored-by: Sam Hart <sam@hxrts.com>

* Update docs/architecture/adr-061-liquid-staking.md

Co-authored-by: Sam Hart <sam@hxrts.com>

* Update docs/architecture/adr-061-liquid-staking.md

Co-authored-by: Sam Hart <sam@hxrts.com>

* Update docs/architecture/adr-061-liquid-staking.md

Co-authored-by: Sam Hart <sam@hxrts.com>

* Update adr-061-liquid-staking.md

* Update docs/architecture/adr-061-liquid-staking.md

Co-authored-by: likhita-809 <78951027+likhita-809@users.noreply.github.com>

* Update docs/architecture/adr-061-liquid-staking.md

Co-authored-by: likhita-809 <78951027+likhita-809@users.noreply.github.com>

* Update docs/architecture/adr-061-liquid-staking.md

Co-authored-by: likhita-809 <78951027+likhita-809@users.noreply.github.com>

* Update docs/architecture/adr-061-liquid-staking.md

Co-authored-by: likhita-809 <78951027+likhita-809@users.noreply.github.com>

Co-authored-by: Sam Hart <sam@hxrts.com>
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Marko <marbar3778@yahoo.com>
Co-authored-by: likhita-809 <78951027+likhita-809@users.noreply.github.com>
2022-09-23 19:35:37 +00:00
Marko
73debf46d9
docs: change abci++ -> abci 1.0 (#13322)
* change abci++ -> abci 1.0

* file change
2022-09-16 17:35:23 +02:00
Julien Robert
6d0ef15b0a
refactor: migrate to cosmos/gogoproto (#13070) 2022-09-08 17:27:48 +00:00
Aaron Craelius
0ba3a8ed70
docs: add ADR 058 Auto-Generated CLI (#11877)
* docs: add ADR 058 Auto-Generated CLI

* Update docs/architecture/adr-058-auto-generated-cli.md

Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>

* updates based on code review

* Update docs/architecture/adr-058-auto-generated-cli.md

Co-authored-by: Ryan Christoffersen <12519942+ryanchristo@users.noreply.github.com>

* updates based on code review

Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Ryan Christoffersen <12519942+ryanchristo@users.noreply.github.com>
Co-authored-by: Marko <marbar3778@yahoo.com>
2022-09-07 16:50:23 -04:00
Amaury
aa1b6d1450
docs(textual): custom Msg renderers (#12785)
* Use RFC3339 for time

* chore(textual): custom `Msg` renderers

* Tweak

* wording

* wording

* changelog

* Update docs/architecture/adr-050-sign-mode-textual.md

Co-authored-by: Robert Zaremba <robert@zaremba.ch>

* Update docs/architecture/adr-050-sign-mode-textual.md

Co-authored-by: Robert Zaremba <robert@zaremba.ch>

* Update docs/architecture/adr-050-sign-mode-textual.md

Co-authored-by: Robert Zaremba <robert@zaremba.ch>

* Update docs/architecture/adr-050-sign-mode-textual.md

Co-authored-by: Robert Zaremba <robert@zaremba.ch>

* Update docs/architecture/adr-050-sign-mode-textual.md

Co-authored-by: Robert Zaremba <robert@zaremba.ch>

* Clearer bij check

* Wording

* Address reviews

* Remove weeks from duration

* Remove timestamp examples

* Clear up about multiple * and > s

* SPEC for >

* tweak

* tweak

* Require signing over canonical bytes

* Move example to correct subsection

* wording

* clarify tx hash malleability

* Add ref to direct

* revert all changes not related to Msg renderers

* revert annex1

* revert

* spacing

* revert go.work.sum

* remove regex mention

* small tweaks

* Fix headings

* remove extra new line

Co-authored-by: Robert Zaremba <robert@zaremba.ch>
2022-09-07 14:21:10 +00:00
Julien Robert
f9e8a04b5a
docs: add module documentation testing (#12762) 2022-09-07 01:34:38 +02:00
Amaury
fe90139a21
docs(textual): Require signing over raw bytes (#12910)
## Description

Security concerns around what's signed, pulled out from https://github.com/cosmos/cosmos-sdk/pull/12785#discussion_r935040037.

cc @peterbourgon

---

### 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/main/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/main/docs/building-modules)
- [ ] included the necessary unit and integration [tests](https://github.com/cosmos/cosmos-sdk/blob/main/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)
2022-09-05 15:24:51 +00:00
Marko
6aaf83c894
docs: ADR-60 Prepare & Process Proposal (#12838)
* add layout for abci++ inclusion

* prepare proposal

* fix doc

* updates
Co-authored-by: Aleksandr Bezobchuk <aleks.bezobchuk@gmail.com>
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Matt Kocubinski <mkocubinski@gmail.com>
Co-authored-by: Sergio Mena <sergio@informal.systems>
2022-08-30 06:52:19 +00:00