Commit Graph

9824 Commits

Author SHA1 Message Date
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
Marko
1ad3b29560
chore: proto image migrate to ghcr (#13168) 2022-09-07 12:03:00 +00:00
Austin Chandra
4a07259ff4
feat: add customized Ledger support (#12935) 2022-09-07 03:01:19 +00:00
Roman
518003ec29
fix(build): proto generation (#13166)
* fix(build): proto generation

* restore proto ver

* Update proto/buf.lock

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

* bimp proto ver

* fix internal client

Co-authored-by: Roman Akhtariev <roman@akhtariev.localdomain>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2022-09-06 23:43:57 +00:00
Julien Robert
f9e8a04b5a
docs: add module documentation testing (#12762) 2022-09-07 01:34:38 +02:00
dependabot[bot]
9e0e9518d4
build(deps): Bump github.com/spf13/viper from 1.12.0 to 1.13.0 (#13162)
Bumps [github.com/spf13/viper](https://github.com/spf13/viper) from 1.12.0 to 1.13.0.
- [Release notes](https://github.com/spf13/viper/releases)
- [Commits](https://github.com/spf13/viper/compare/v1.12.0...v1.13.0)

---
updated-dependencies:
- dependency-name: github.com/spf13/viper
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-06 18:28:15 +02:00
Marko
adf6bf5747
chore: remove custom marshaling of proposal status (#13160)
* remove custom marshaling

* remove custom marshaling inother places

* add changelog entry
2022-09-06 14:21:59 +00:00
Ezequiel Raynaudo
d47970d673
fix: printf for Record protobuf (#13145)
* Disable gogoproto_import for record pb

* Update changelog

Co-authored-by: Marko <marbar3778@yahoo.com>
2022-09-06 13:35:01 +00:00
Julien Robert
0fbcb0b183
ci: fix deploying action (#13157) 2022-09-06 03:33:31 +02:00
Julien Robert
99f5d671ef
ci: use ghcr.io cosmos website-deployment image (#13156) 2022-09-05 17:42:51 +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
Sai Kumar
65fff07a34
feat(cli/api): add validator distribution info grpc gateway get endpoint (#13144) 2022-09-05 15:01:01 +00:00
likhita-809
2efee04e4f
refactor(group): CLI tests using Tendermint Mock (#13067) 2022-09-05 14:31:30 +00:00
Rano | Ranadeep
8579bdd17e
feat: List HRP prefixes in Bech32 addresses (#13064) 2022-09-05 14:02:43 +00:00
Julien Robert
de436c231d
ci: add csplit for documetation building (#13154) 2022-09-05 09:46:30 -04:00
Aleksandr Bezobchuk
a0682b14f4
chore: collapse module spec and readme (#13143)
* updates

* add auth and separate vesting

* authz

* capability

* crisis

* epoching

* nft

* mint

* params

* upgrade

* fix website build

* finish other modules

* fix `pre.sh` and update modules title

* add docs

* display vesting in docs

* add page splitting for missing modules

* updates

* improve `pre.sh`

Co-authored-by: marbar3778 <marbar3778@yahoo.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2022-09-05 12:26:40 +00:00
Elias Naur
ca86ec5e93
fix(fuzz): fix OSS-Fuzz build (#13152)
CC @odeke-em
2022-09-05 11:23:48 +00:00
Marko
e09516f479
chore: bump tendermint version (#13148) 2022-09-05 07:39:12 +00:00
Aaron Craelius
3ffa1d19df
feat(depinject): allow module keys to manually be created for codegen/manual wiring (#13124) 2022-09-02 22:17:08 +00:00
Marko
ccdc355eea
chore: remove query router (#13142) 2022-09-02 15:52:35 -04:00
likhita-809
6a4d2a16a5
refactor(evidence): CLI tests using Tendermint Mock (#13056)
* wip

* fix something

* remove test case from tx test

* fix test

* add build tags to cli test

* use require instead of assert

* add cli tests
2022-09-02 18:17:11 +02:00
Julien Robert
7a3ff0dd4a
docs: update contributing (#13137)
Co-authored-by: Marko <marbar3778@yahoo.com>
2022-09-02 14:09:15 +00:00
Robert Zaremba
f5f84ad12a
chore: replace deprecated dgrijalva/jwt-go dep (#13093)
* chore: replace deprecated dgrijalva/jwt-go dep

* Update go.mod
2022-09-02 13:53:24 +02:00
Sam Hart
6d6b804a73
docs: adds gov groups metadata spec (#13118) 2022-09-02 09:04:08 +00:00
likhita-809
26326bbf55
use require instead of assert in cli test (#13132) 2022-09-02 02:18:02 -04:00
cool-developer
dd556936b2
refactor: use mocks for x/auth/vesting module unit tests (#13127)
* add msg_server test for x/auth/vesting

* Update msg_server_test.go

* Update x/auth/vesting/msg_server_test.go

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

* Update x/auth/vesting/msg_server_test.go

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

Co-authored-by: Marko <marbar3778@yahoo.com>
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
2022-09-02 05:10:52 +00:00
Aleksandr Bezobchuk
9948fb6c7c
feat: emit cached context events (#13063) 2022-09-01 21:29:28 +00:00
Facundo Medica
db8714da9e
refactor: remove use of tmos "github.com/tendermint/tendermint/libs/os" (#13113) 2022-09-01 21:00:50 +00:00
Aaron Craelius
bf8f015797
refactor: update core module to depinject changes (#13115) 2022-09-01 19:33:54 +00:00
likhita-809
3e3b225a5e
refactor(mint): CLI tests using Tendermint Mock (#13059)
* wip: mint CLI tests using Tendermint Mock

* try fix test

* remove query test

* add cli tests

Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
2022-09-01 18:23:43 +00:00
Aleksandr Bezobchuk
0eacc88096
fix: fix Group-TotalWeight invariant (#13116) 2022-09-01 17:19:09 +00:00
adu-crypto
d874acee4c
feat: Add a cli cmd to prune old states according to current settings (#12742)
* add PruningCmd and change PruneStores signature

* the mimimum default pruning interval is 10

Co-authored-by: Marko <marbar3778@yahoo.com>
2022-09-01 08:42:23 +00:00
Matt Kocubinski
d638ca3c2b
refactor(store): move rollback_test.go to tests/integration (#13117) 2022-09-01 07:32:29 +00:00
Aaron Craelius
7728516abf
refactor(depinject)!: require exported functions & types (#12797)
* refactor(depinject)!: require exported functions

* unexport ProviderDescriptor

* WIP on tests

* fix tests and check for bound instance methods

* address merge issues

* WIP on checking valid types

* WIP on checking valid types

* WIP

* tests passing

* revert changes outside module

* docs

* docs

* docs

* add comment

* revert

* update depinject go.mod versions

* remove go.work

* add go.work back

* go mod tidy

* fix docs

Co-authored-by: Julien Robert <julien@rbrt.fr>
2022-08-31 17:37:01 +00:00
cool-developer
372a8f194e
refactor: remove simapp from x/staking module (#13101)
## Description

Closes: #13099 



---

### 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-08-31 14:50:22 +00:00
yihuang
ab3334242a
fix: call SetIAVLCacheSize with the configured value in simapp (#13107)
* Call `SetIAVLCacheSize` with the configured value in simapp.

* Update CHANGELOG.md
2022-08-31 11:45:45 +02:00
Facundo Medica
797bd12af5
refactor!: Remove sdk.Router and refactor baseapp tests (#13005)
* test

* progress-ish

* progress

* progress

* make mocks

* progress

* test

* progress

* progress

* progress

* progress

* progress

* progress

* fix mock tests

* progress

* pretty much done, might need some tidying up

* lint

* re-enable blockgas test

* remove router

* gofumpt

* remove more references of Router

* fix

* remove unused code

* remove unused code

Co-authored-by: Marko <marbar3778@yahoo.com>
2022-08-30 23:50:47 +02:00
Julien Robert
2c527d0650
build: add go.work in gitignore (#13100)
* build: add `go.work` in gitignore

* markdownlint
2022-08-30 21:08:04 +00:00
Marko
783f597866
add short exerpt on adding custom signmodes (#13104)
Co-authored-by: Julien Robert <julien@rbrt.fr>
2022-08-30 16:57:11 -04:00
Matt Kocubinski
2add522585
fix: make rosetta-data now works again (#13103) 2022-08-30 20:46:10 +00:00
dependabot[bot]
084e129fcf
build(deps): Bump pgregory.net/rapid from 0.4.8 to 0.5.2 (#13096)
* build(deps): Bump pgregory.net/rapid from 0.4.8 to 0.5.2

Bumps [pgregory.net/rapid](https://github.com/flyingmutant/rapid) from 0.4.8 to 0.5.2.
- [Release notes](https://github.com/flyingmutant/rapid/releases)
- [Commits](https://github.com/flyingmutant/rapid/compare/v0.4.8...v0.5.2)

---
updated-dependencies:
- dependency-name: pgregory.net/rapid
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix group tests

* update orm to 0.5.2

* Fix some tests

* finish upgrading orm

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Amaury M <1293565+amaurym@users.noreply.github.com>
Co-authored-by: Aaron Craelius <aaronc@users.noreply.github.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2022-08-30 20:17:15 +00:00
Daniel Wedul
d07b28d2bf
docs(x/authz): Fix the GrantQueue key documentation. (#13078) 2022-08-30 19:10:41 +00:00
Amaury
7808e55471
fix: Fix Tx module go_import (#13090) 2022-08-30 12:12:07 +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
yihuang
51d2de582d
fix: rollback command don't actually delete multistore versions (#11361)
* rollback command don't actually delete multistore versions

Closes: #11333

- add unit tests
- use LoadVersionForOverwriting
- update tendermint dependency to 0.35.x release branch

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

flushMetadata after rollback

Update server/rollback.go

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

fix build

gofumpt

* fix unit test
2022-08-30 05:50:00 +00:00
Austin Chandra
f8b55ff8ee
feat: add capability to reformat Transactions before broadcasting (#12936)
## Description
Increase customized signing capabilities by:
- Adding a hook to preprocess transactions before broadcasting

This PR introduces the ability to preprocess transactions before broadcasting, a feature that provides the ability to add extensions, or otherwise customize the payload to satisfy a chain's requirements. For adaptability, the parameters include the keytype to allow differentiation between formatting transactions for Ledger vs. software keys.

## PR
This PR introduces a hook to preprocess transactions, chiefly to add extensions, from a higher-level chain. Key changes and relevant files:

- Add `PreprocessTxFn` type and fields to both `Context` and `Factory`
- Instantiate the `Factory` with the `PreprocessTxFn` provided by the `Context`
- Call `PreprocessTx` with the appropriate parameters after signing

Closes: #XXXX



---

### 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-08-30 01:16:12 +00:00
Facundo Medica
0024a0bf44
refactor: use mocks for x/distribution (#12889)
* initial commit

* add mocks

* TestAllocateTokensToManyValidators

* one file more in, like a hundred left

* progress

* progress

* move tests to integration

* finally got TestCalculateRewardsMultiDelegator right lol

* small fixes

* progress

* progress

* progress

* progress

* revert test panic

* progress

* progress

* more progress

* fix go.mod

* merge

* merge

* cache issue?

* fix go.sum

* fix tests

* make mocks

* move back simulations

Co-authored-by: Marko <marbar3778@yahoo.com>
2022-08-29 20:15:51 -03:00
dependabot[bot]
8436dc1741
build(deps): Bump github.com/rs/zerolog in /cosmovisor (#13081) 2022-08-29 17:08:43 +00:00
dependabot[bot]
338ef7bb3c
build(deps): Bump pgregory.net/rapid from 0.4.8 to 0.5.1 in /orm (#13080) 2022-08-29 17:00:29 +00:00
dependabot[bot]
48017b75a0
build(deps): Bump github.com/rs/zerolog from 1.27.0 to 1.28.0 (#13075) 2022-08-29 18:37:43 +02:00