Commit Graph
9960 Commits
Author SHA1 Message Date
Julien RobertandMarko f9945db461 build(deps): Bump github.com/cosmos/iavl from 0.19.2-{commit} to 0.19.3 (#13489)
Co-authored-by: Marko <marbar3778@yahoo.com>
2022-10-10 16:25:13 +00:00
Julien Robert ac4fb8b8df ci: fix build docs (#13490) 2022-10-10 15:05:01 +00:00
Julien Robert a74989ddf4 feat: migrate to docusaurus (#13471) 2022-10-10 14:01:53 +00:00
Marko 7167371f87 chore: project automation (#13481)
* test pr automation

* github token

* test++

* test++

* if pr is reopened add it

* test++

* test++

* test++

* test++
2022-10-10 10:49:31 +00:00
Ivan Gavran 12b2aa9bee docs: fix broken link in simulator.md (#13486) 2022-10-10 11:59:17 +02:00
Jacob Gadikian 74efb1350a fix: Update tendermint rpc client support for ibc-go compatibility (#13482) 2022-10-09 22:38:52 -04:00
Marko 0b6f01ddd3 chore: fix linting (#13483) 2022-10-09 22:09:42 +02:00
MarkoandJulien Robert 84675a6bf1 feat!: IS rebase (#13122)
* feat: IS rebase (squash da53124..b45dd5f)

* clean up docs

* fix: fix IS tests (#13420)

* revert key update

* add hook error handling

* impl feedback

* add changelog

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

* more nits

* fix tests
Co-authored-by: Simon <sainoe@users.noreply.github.com>

* add godoc

* add godoc

Co-authored-by: Julien Robert <julien@rbrt.fr>
2022-10-09 12:21:20 +02:00
Julien Robert 6efbedb1c7 feat: let sign-batch read multiple files (#13454)
* feat: let `sign-batch` read multiple files

* add changelog

* fix gosec issue

* simplify
2022-10-07 15:12:28 +00:00
Aaron Craelius 2151427b5e feat(orm): add query proto codegen (#13438)
## Description

This starts the implementation of approach (C) in #11774 by generating `_query.proto` files for `.proto` files which have ORM definitions. It does this using a new protoc plugin called `protoc-gen-go-cosmos-orm-proto`.

Please review `bank_query.proto` and `test_schema_query.proto` as these are the outputs of the codegen.

The approach taken does not attempt to do any sort of logical queries as discussed in #11774 and instead provides direct index access in the most simple and complete way that we can easily implement now. More advanced things in #11774 could be implemented later, but this should be possible to deliver relatively quickly and should allow developers to completely skip writing gRPC queries manually if they use ORM.

Note that the implementation of these queries can provide merkle proofs because the mapping to state is well known.

I did need to disable pulsar codegen in this PR because it doesn't support proto3 optionals which are needed here (depends on https://github.com/cosmos/cosmos-proto/issues/12). Fortunately, pulsar is 100% compatible with the official google codegen and there is no problem running ORM tests against the official codegen.



---

### 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-10-07 14:37:04 +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
Emmanuel T Odeke 6d03ddede4 fix: cosmovisor: isolate and return masked errors that are not non-existence errors (#13470)
Enumerates and improves on the error checking for non-existance errors
to clearly return unhandled errors such as access restrictions,
unaccessible volumes etc, when trying to download binaries.
The prior code assumed that either the file existed or the only error
to be returned would be about the file not existing, yet this isn't
always true.

Fixes #13469
2022-10-07 01:48:38 +02:00
Emmanuel T Odeke 481569ce4f fix: all: fix resource leaks found by staticmajor (#13394)
Fixes resource leaks in which a .Close, .Stop method
wasn't invoked in return routes such as with errors.

Found by https://github.com/cosmos/cosmos-sdk/pull/13392
2022-10-06 20:11:40 +00:00
fbd81ba0b7 build(deps): Bump google.golang.org/grpc from 1.49.0 to 1.50.0 (#13467)
* build(deps): Bump google.golang.org/grpc from 1.49.0 to 1.50.0

Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.49.0 to 1.50.0.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.49.0...v1.50.0)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

* build(deps): Bump google.golang.org/grpc from 1.49.0 to 1.50.0 for all modules

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Marko <marbar3778@yahoo.com>
2022-10-06 19:41:52 +02:00
Julien Robert 5878976741 fix: fix redirections links (#13465) 2022-10-06 19:04:08 +02:00
Julien Robert 74ce07eb26 docs: improve documentation navigation and redirection (#13455) 2022-10-06 15:51:10 +02:00
AmauryandAleksandr Bezobchuk ff39d243d4 refactor: Improve x/bank deterministic tests (#13450)
* refactor: Improve x/bank deterministic tests

* typo

* Less changes

* Rename var

* Fix SpendableBalances

* Fix pagination tests

* Fix TestGRPCQueryTotalSupply

* Remove explicit SetupTest()

* Fix TestGRPCSendEnabled

Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
2022-10-06 12:05:56 +00:00
yihuangandMarko bb54c597de fix: state listener could observe discarded writes (#13459)
* fix: state listener could observe uncommitted writes

Closes: #13457

don't pass listeners to nested cached store,
only the most inner layer's cache writes should be observed.

* Update CHANGELOG.md

* add unit test

* rename

Co-authored-by: Marko <marbar3778@yahoo.com>
2022-10-06 11:41:56 +00:00
AmauryandJulien Robert 90bd3161a1 refactor: Improve and clarify API around AccountAddressById (#13460)
* Revert "chore: change id to use uint64 in `AccountAddressByID` (#13411)"

This reverts commit 3d0e214446.

* Add since

* Update CLI command

* make proto-gen

* id->accNum

* No API breaking changes

* improve err msg

* Update CHANGELOG.md

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

* Update CHANGELOG.md

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

Co-authored-by: Julien Robert <julien@rbrt.fr>
2022-10-06 11:05:25 +00:00
Marko 306a9a7170 feat!: consensus module (#12905) 2022-10-05 18:06:24 +00:00
Facundo Medica 87e46b2f51 refactor: remove dead code in cacheMergeIterator Domain() (#13433) 2022-10-05 08:46:41 +02:00
Julien RobertandNicolas Lara facac1c5f8 refactor: split ExportGenesis into two functions to maintain backwards compatibility (#13448)
* split ExportGenesis into two functions to maintain backwards compatibility (#339)

* fix tests

Co-authored-by: Nicolas Lara <nicolaslara@gmail.com>
2022-10-04 22:42:58 +00:00
Julien Robert c3887986ff chore(deps): bump github.com/cosmos/cosmos-sdk from 0.46.1 to 0.46.2 (#13447) 2022-10-04 16:18:37 +02:00
Julien Robert 92394f2917 feat!: specify module to export (#13437) 2022-10-04 10:06:30 +00:00
emidev98 c2f0c0f785 feat: context on simulate error (#13435) 2022-10-03 22:36:56 +00:00
Julien Robert a975f67b24 chore: add v0.46.2 in main changelog (#13442) 2022-10-03 22:13:36 +02:00
Leo Pang 529e953e04 fix: remove extra ; in service.proto 2022-10-03 18:38:11 +02:00
Emmanuel T Odeke 67a403311f ci: .github/workflows: add staticmajor to catch leaking resources (#13392)
Brings in a static analyzer that catches leaking resources like
unclosed file handles, networking handles etc that can't easily
be caught except in very critical code reviews as well as a bunch
of other static analyzers that Orijtech Inc produces.
2022-10-03 06:02:47 +00:00
Julien Robert 80ce491734 refactor: move x/{moduleName}/test{ModuleName} to x/{moduleName}/testutil (#13427)
* refactor: move `x/{moduleName}/test{ModuleName}` to `x/{moduleName}/testutil`

* updates

* updates
2022-10-02 10:42:52 -04:00
Marko c221d7f1de chore: minor cleanup of types (#13430) 2022-10-02 15:03:03 +02:00
Robert Zaremba 87e0017776 Update UPGRADING.md (#13428) 2022-09-30 19:24:07 +02:00
Aleksandr Bezobchuk eb32125f8e chore: improve ABCI 1.0 godocs (#13425) 2022-09-30 10:30:15 +00:00
Ricardo M e5dca07318 docs: fix spelling mistakes (#13421) 2022-09-30 11:33:46 +02:00
mmsqe bed4ba3ac8 fix: add close for grpcOnly mode (#13418) 2022-09-29 11:33:28 -04:00
atheeshp 60ab6086d2 feat: x/bank deterministic tests (#13362)
* feat: `x/bank` deterministic tests

* fix tests

* add all balances regressions

* refactor

* `spendable coins` tests

* total supply regressions

* `SupplyOf` regressions

* params regressions

* add few more tests

* `denomOwners` tests

* refactor

* review changes
2022-09-29 09:24:37 +00:00
yihuang a9f02d9cb7 fix: add gRPC nil/zero check in query (#13352) 2022-09-29 01:20:03 +00:00
atheeshp 3d0e214446 chore: change id to use uint64 in AccountAddressByID (#13411) 2022-09-28 12:42:53 -04:00
Julien Robert 9b48c68a1f docs: improve changelog and upgrading.md sections (#13412)
* chore: improve changelog and upgrading.md sections

* updates
2022-09-28 09:05:53 -05:00
Julien Robert 91d66f30e1 refactor!: extract simulation helpers out of simapp (#13402) 2022-09-27 21:19:44 +02:00
Julien Robert 9bae8a817f build(deps): bump go minimum version to go 1.19 (#13397) 2022-09-27 21:02:02 +02:00
Julien Robert 53519ea5b3 refactor: simplify hooks implementation (#13396) 2022-09-27 20:37:26 +02:00
mmsqe dcb0c9c04c fix: double close (#13400) 2022-09-27 18:16:13 +00:00
Julien Robert 684ee627d1 fix: attempt at fixing flaky e2e tests (#13401)
* fix: attempt at fixing flaky e2e tests

* `make format`

* add links
2022-09-27 13:39:04 -04:00
omahs 6f337b4d74 docs: fix typos (#13399) 2022-09-27 09:30:41 +00:00
adu-crypto b60910535a add notice for possible iavl fast node migration (#13390) 2022-09-26 23:26:35 +00:00
Sai KumarandAleksandr Bezobchuk 445a99f710 feat(cli): add --append flag to sign-batch cli cmd (#13147)
* feat(cli): add `multi-msg-sign`

* chore: update the changelog

* chore: fix the lint issue

* chore: address the pr comments

* chore: address the pr comments

* refactor: refactored `sign-batch` to generate single signed tx

* chore: updated the changelog

* fix: fix the lint

* test: fix the tests on auth

Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
2022-09-27 00:31:58 +02:00
dependabot[bot] ace03e6dd5 build(deps): Bump amannn/action-semantic-pull-request (#13391) 2022-09-26 20:35:08 +02:00
Facundo Medica 35e5a3dc2d chore: add cachekv tests (#13385) 2022-09-26 08:26:43 +00:00
Facundo Medica ceef20ede1 docs: add iavl concurrent use warning (#13386) 2022-09-25 17:05:00 -05:00
Julien Robert 3de5aa8741 refactor!: remove deprecated sdk.NewLevelDB (#13380)
* refactor!: remove deprecated `sdk.NewLevelDB`

* updates
2022-09-25 10:16:31 +00:00