Commit Graph
9926 Commits
Author SHA1 Message Date
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
Julien Robert 55373cb614 feat: add uint IsNil method (#13381) 2022-09-25 09:19:50 +00:00
Emmanuel T Odeke abdf61e292 fix: all: remove map iteration non-determinism with keys + sorting (#13377) 2022-09-24 16:20:54 +00:00
Julien Robert b76f338511 refactor: move simapp.App to runtime.AppI (#13378)
* refactor: move `simapp.App` to `runtime.AppI`

* add changelog

* `go mod tidy`

* fix app legacy build
2022-09-24 11:49:11 +00:00
Jacob Gadikian af816057f2 chore: run make format (#13375) 2022-09-24 00:22:03 +02:00
Jacob Gadikian b10097fdcf refactor: remove storev2alpha1 (#13371) 2022-09-23 21:53:58 +00:00
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
likhita-809 09b0f58932 feat: make helper function for adding accounts to genesis state (#13298) 2022-09-23 19:25:36 +00:00
Aleksandr BezobchukandMarko b853d3fe8f chore: store package specification (#13209)
* updates

* updates

* updates

* updates

* updates

* updates

* updates

* updates

* updates

* updates

* updates

* updates

* updates

* updates

* updates

* updates

* updates

Co-authored-by: Marko <marbar3778@yahoo.com>
2022-09-23 16:46:28 +00:00
Julien Robert 555d774c73 ci: further improve gh actions (#13361) 2022-09-23 11:33:38 -05:00
Julien Robert df40c0a9d1 refactor!: remove broadcast mode block (#12659) 2022-09-23 15:16:31 +00:00
Jacob Gadikian 6cbb587e18 refactor: remove db (#13370)
* remove db

* Update CHANGELOG.md
2022-09-23 08:08:26 -05:00
likhita-809 8dd708d9cc docs: guidelines for proto message's String() method (#13364) 2022-09-22 18:48:07 +00:00
dependabot[bot] 89aa914bed build(deps): Bump actions/stale from 5 to 6 (#13365)
Bumps [actions/stale](https://github.com/actions/stale) from 5 to 6.
- [Release notes](https://github.com/actions/stale/releases)
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/stale/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/stale
  dependency-type: direct:production
  update-type: version-update:semver-major
...

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-22 14:22:12 -04:00
Julien RobertandMarko c297caa697 ci: improve github actions (#13358)
* ci: improve github actions

* updates

* revert title change

* updates

* implement feedback

* Update go.mod

Co-authored-by: Marko <marbar3778@yahoo.com>
2022-09-22 00:57:19 +02:00
Julien Robert 7eb259fd86 feat: add draft-proposal for x/group (#13353)
* feat: add `draft-proposal` for x/group

* add changelog

* extract useful function

* add `GetMsgFromTypeURL` tests
2022-09-22 00:53:02 +02:00
dependabot[bot]andgithub-actions fc32ef1c9c build(deps): Bump github.com/coinbase/rosetta-sdk-go from 0.8.0 to 0.8.1 (#13357)
* build(deps): Bump github.com/coinbase/rosetta-sdk-go from 0.8.0 to 0.8.1

Bumps [github.com/coinbase/rosetta-sdk-go](https://github.com/coinbase/rosetta-sdk-go) from 0.8.0 to 0.8.1.
- [Release notes](https://github.com/coinbase/rosetta-sdk-go/releases)
- [Commits](https://github.com/coinbase/rosetta-sdk-go/compare/v0.8.0...v0.8.1)

---
updated-dependencies:
- dependency-name: github.com/coinbase/rosetta-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

* build(deps): Bump github.com/coinbase/rosetta-sdk-go from 0.8.0 to 0.8.1 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>
2022-09-21 15:32:33 -03:00
Marko 107ffee28e chore: upstream error on empty version (#13355)
* upstream error on empty version

* fix tests

* revert change
2022-09-21 18:31:19 +02:00
Emmanuel T Odeke a2118afc21 fix: x/gov/client/cli: update & tighten Prompt.Parse tests (#13350)
Adds more rigorous checks to ensure that the output
is as expected with range failures. While here also
added control tests to ensure that we can parse integers
within range of int.

Updates #13346
2022-09-21 05:59:11 +00:00
Emmanuel T Odeke 9c2aef342d chore: all: use golang.org/x/exp/maps.(Keys, Values) where necessary (#13349)
Uses golang.org/x/exp/maps.(Keys, Values) to sort out flagged
potential non-determinism issues due to map iteration which is
randomized in maps.

These were flagged by cosmos/gosec in

* https://github.com/cosmos/cosmos-sdk/security/code-scanning/724
* https://github.com/cosmos/cosmos-sdk/security/code-scanning/725
* https://github.com/cosmos/cosmos-sdk/security/code-scanning/726
* https://github.com/cosmos/cosmos-sdk/security/code-scanning/727
* https://github.com/cosmos/cosmos-sdk/security/code-scanning/728
* https://github.com/cosmos/cosmos-sdk/security/code-scanning/729
* https://github.com/cosmos/cosmos-sdk/security/code-scanning/782
* https://github.com/cosmos/cosmos-sdk/security/code-scanning/813
* https://github.com/cosmos/cosmos-sdk/security/code-scanning/814
* https://github.com/cosmos/cosmos-sdk/security/code-scanning/816

which complained about potential non-determinism in
map iteration in which we only want appends in map iteration loops,
this change instead uses golang.org/x/exp/maps.Keys to retrieve
the keys then sort.Strings which simplifies the helper code.

This change fixes issues in:
* orm/model/ormdb: non-determinism in ExportJSON
* store/internal/proofs
* types/module
* x/auth/keeper
* x/bank
* x/genutil/client/cli

Fixes #13348
2022-09-21 02:08:13 +00:00
Emmanuel T Odeke 56a49aba46 fix: x/gov/client/cli: fix integer overflow in parsing int prompted values (#13347)
Reported by cosmos/gosec in https://github.com/cosmos/cosmos-sdk/security/code-scanning/5730.
This change checks for errors from strconv.Atoi in which case we were
susceptible to out of range errors, this change also adds tests to
prevent regressions.

Fixes #13346
2022-09-21 01:26:50 +02:00
Julien Robert 79f277c111 fix: fix buf commit link (#13345) 2022-09-20 21:21:45 +02:00
pratikbin 14c0233ab8 ci: use native paths instead of get-diff-action (#13342)
* ci: use native paths instead of get-diff-action

* ci: add paths for pr
2022-09-20 16:06:19 +00:00
Aleksandr Bezobchuk c1c23a75d9 fix: ensure withdraw_rewards events are always emitted on reward withdrawal (#13323) 2022-09-20 10:23:21 +00:00
Marko 412e2fc86e feat: configurable fastnode (#13321) 2022-09-20 08:49:18 +00:00
yihuang 822900b69f fix: streaming listeners are not called for deliver tx event (#13334)
* Problem: streaming listeners are not called for deliver tx event

it was removed accidentally, add back.

* Update CHANGELOG.md

* try to fix e2e test by wait for one more block
2022-09-20 10:02:59 +02:00
dependabot[bot] 373f5ba50d build(deps): Bump pgregory.net/rapid from 0.5.2 to 0.5.3 (#13332) 2022-09-19 19:38:32 +02:00
7ebbfa0b30 refactor(nft): CLI tests using Tendermint Mock (#13256)
* wip: move nft cli tests to e2e tests

* wip: add cli tests using Tendermint Mock

* cleanup genutil test file

* remove unncessary test cases

* address review comments

Co-authored-by: Julien Robert <julien@rbrt.fr>
Co-authored-by: Marko <marbar3778@yahoo.com>
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
2022-09-19 13:01:49 +00:00
Julien Robert 7252f4a758 feat: CLI tooling to generate proposal JSONs (#13304) 2022-09-19 14:22:04 +02: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
Marko d04392c5e2 chore: cleanup changelog (#13320) 2022-09-16 10:48:43 -04:00
Nathan Dias 254c8f1288 ci: add workflow for cosmos/gosec (#13311) 2022-09-16 10:30:51 +00:00
Aaron Craelius d9ef976412 feat(x/auth): define simplified account query service (#13210) 2022-09-16 09:12:41 +00:00
Marko b37ddcafb3 add changelog entries for previous changes (#13319) 2022-09-16 10:47:29 +02:00
6c4f94b671 fix: keep the balance query endpoint compatible with legacy blocks (#13301)
* keep the balance query endpoint compatible with legacy blocks

Closes: #13296

A temporary solution before the proxy tool developed, since the balance endpoint is too important.

* Update CHANGELOG.md

* Apply suggestions from code review

Co-authored-by: Julien Robert <julien@rbrt.fr>
Co-authored-by: Marko <marbar3778@yahoo.com>
2022-09-16 09:57:42 +02:00