Commit Graph

10748 Commits

Author SHA1 Message Date
dependabot[bot]
82151e2946
build(deps): Bump cosmossdk.io/log from 0.0.0-20230313123454-0fe816b71a62 to 0.1.0 (#15371)
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>
2023-03-13 15:07:47 +00:00
dependabot[bot]
2e5f6f3b4e
build(deps): Bump cosmossdk.io/math from 1.0.0-beta.6.0.20230216172121-959ce49135e4 to 1.0.0-rc.0 (#15370)
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>
2023-03-13 15:38:47 +01:00
Julien Robert
ea8c76eb65
feat: add filtering to logger (#15212) 2023-03-13 13:16:20 +00:00
Julien Robert
abd4ac0790
feat: make logger easily replaceable (#15358) 2023-03-13 09:01:58 +00:00
Marko
1ac260cb1c
refactor: add address codec to core (#15364) 2023-03-13 07:32:29 +01:00
Julien Robert
4c1e6a576e
feat(cosmovisor): add install disclaimer and config command (#15361) 2023-03-12 21:57:13 +01:00
Sergey
8f8afd1704
feat: allow disabling cosmovisor logs (#15362) 2023-03-12 14:48:30 +01:00
Facundo Medica
90c9c9a9eb
fix: delete VotingPeriodProposalKey when deleting proposal (#15356) 2023-03-10 22:55:34 +00:00
Julien Robert
00154fec38
docs: display rfc in docs (#15355) 2023-03-10 22:54:33 +01:00
Marko
16a5404f8e
docs: add rfc section (#15354) 2023-03-10 18:46:57 +01:00
Julien Robert
ee013c7b2b
chore: clarify some part in UPGRADING.md (#15345) 2023-03-10 17:25:03 +01:00
Marko
ccdd07ff7d
refactor: remove capability module (#15344) 2023-03-10 12:59:10 +00:00
Julien Robert
7002565ec3
docs: update replace mention in UPGRADING.md (#15340) 2023-03-10 11:53:08 +01:00
dependabot[bot]
7e56d5e06b
build(deps): Bump deps and remove replaces (#15335)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-03-09 18:46:15 +01:00
dependabot[bot]
87da587416
build(deps): Bump bufbuild/buf-setup-action from 1.15.0 to 1.15.1 (#15333)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-03-09 16:37:09 +00:00
Aaron Craelius
5cea984ec8
feat(x/auth): add ProvideAddressCodec provider (#15330) 2023-03-09 16:30:34 +01:00
Julien Robert
ddd18ff2eb
feat(orm): add sequence getter for auto increment tables (#15320)
Co-authored-by: Aaron Craelius <aaron@regen.network>
2023-03-09 14:56:09 +00:00
Marko
112d071598
refactor: make address codec public (#15326) 2023-03-09 13:55:46 +00:00
Amaury
6252e5d2c0
refactor: Use anyutil instead of any (#15322) 2023-03-09 14:24:57 +01:00
testinginprod
2b7a1102ed
refactor(bank): use collections for state management (#15293)
Co-authored-by: testinginprod <testinginprod@somewhere.idk>
2023-03-09 11:36:39 +00:00
Facundo Medica
138e0e1d3c
refactor(textual): Remove msg header screen (#15208)
Co-authored-by: Amaury <1293565+amaurym@users.noreply.github.com>
2023-03-09 11:01:41 +00:00
mmsqe
b75d56985c
feat: add extend cb to avoid unmarshal appState twice for sim test (#15305) 2023-03-08 23:51:26 +00:00
Marko
fafe04bef5
chore: remove requirement on user ips (#15316) 2023-03-08 22:44:01 +00:00
dependabot[bot]
b2188e9326
build(deps): Bump github.com/golang/protobuf from 1.5.2 to 1.5.3 (#15310)
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>
2023-03-08 21:16:24 +00:00
dependabot[bot]
1e73883f66
build(deps): Bump google.golang.org/protobuf from 1.28.2-0.20230222093303-bc1253ad3743 to 1.29.0 (#15307)
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: Julien Robert <julien@rbrt.fr>
2023-03-08 20:33:15 +00:00
Aleksandr Bezobchuk
4932f115d4
feat: Create ABCI++ Verfication Methods (#15298) 2023-03-08 19:19:51 +00:00
dependabot[bot]
3c89493cd2
build(deps): Bump github.com/prometheus/common from 0.41.0 to 0.42.0 (#15308) 2023-03-08 19:24:24 +01:00
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
Mark Rushakoff
1bb632a567
chore: prefer to panic instead of os.Exit (#15285) 2023-03-07 15:12:39 +00:00
_ksco
a148bc8953
chore: fix comment for RandIntBetween function (#15294) 2023-03-07 15:17:03 +01:00
dependabot[bot]
c33cb83cc8
build(deps): Bump golang.org/x/crypto from 0.6.0 to 0.7.0 (#15275) 2023-03-06 23:08:05 +00:00
dependabot[bot]
5e55f56d39
build(deps): Bump github.com/cometbft/cometbft from 0.37.0-rc4 to 0.37.0 (#15283) 2023-03-06 22:07:16 +00:00
Julien Robert
fd76793378
chore: remove unnecessary condition (#15277) 2023-03-06 20:06:52 +00:00
Mark Rushakoff
e7097b1468
test: add cmdtest package (#15251)
## Description

This PR introduces the `cmdtest` package, offering a lightweight wrapper around cobra commands to simplify testing CLI utilities.

I backfilled tests for the `version` command, which was an example of a very simple test setup; and for the `export` command, which was more involved due to the server and client context requirements.

I did notice that there are some existing tests for some utilities, but the `cmdtest` package follows a simple pattern that has been easy to use successfully in [the relayer](https://github.com/cosmos/relayer/blob/main/internal/relayertest/system.go) and in other projects outside the Cosmos ecosystem.

While filling in these tests, I started removing uses of `cmd.Print`, as that is the root cause of issues like #8498, #7964, #15167, and possibly others. Internal to cobra, the print family of methods write to `cmd.OutOrStderr()` -- meaning that if the authors call `cmd.SetOutput()` before executing the command, the output will be written to stdout as expected; otherwise it will go to stderr. I don't understand why that would be the default behavior, but it is probably too late to change from cobra's side.

Instead of `cmd.Print`, we prefer to `fmt.Fprint(cmd.OutOrStdout())` or `fmt.Fprint(cmd.ErrOrStderr())` as appropriate, giving an unambiguous destination for output. And the new tests collect those outputs in plain `bytes.Buffer` values so that we can assert their content appropriately.

In the longer term, I would like to deprecate and eventually remove the `testutil` package's `ApplyMockIO` method and its `BufferWriter` and `BufferReader` types, as they are unnecessary indirection when a simpler solution exists. But that can wait until `cmdtest` has propagated through the codebase more.

---

### 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] 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~~
- [x] 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 all author checklist items have been addressed
- [ ] confirmed that this PR does not change production code
2023-03-06 19:40:24 +00:00
Mark Rushakoff
f151bf627a
refactor(log): require destination in calls to NewLogger (#15262) 2023-03-06 19:05:49 +00:00
Amaury
e9478df161
refactor(x/tx): Move textual,aminojson to signing (#15278) 2023-03-06 18:17:24 +00:00
dependabot[bot]
6f9af26966
build(deps): Bump github.com/jhump/protoreflect from 1.15.0 to 1.15.1 (#15274)
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>
2023-03-06 17:45:59 +00:00
testinginprod
3b40a62276
feat(collections): add NewSchemaBuilderFromAccessor function (#15271)
Co-authored-by: testinginprod <testinginprod@somewhere.idk>
2023-03-06 17:07:17 +00:00
Chill Validation
183dde8d00
fix: snapshot recover from exporter error (#13935)
Co-authored-by: Marko <marbar3778@yahoo.com>
Co-authored-by: Emmanuel T Odeke <emmanuel@orijtech.com>
Co-authored-by: Marko <marko@baricevic.me>
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
2023-03-06 16:44:26 +00:00
Aaron Craelius
1f40d9d47d
feat(x/tx): extract signers using cosmos.msg.v1.signer (#15205)
Co-authored-by: Amaury <1293565+amaurym@users.noreply.github.com>
2023-03-06 11:12:54 -05:00
Julien Robert
5f47935747
chore: make proto-gen due to dep update (#15268) 2023-03-06 10:54:50 +01:00
Nikhil Suri
89c956f8ed
feat(x/bank): update keeper interface to include GetAllDenomMetaData (#15265)
## Description

Adds `GetAllDenomMetaData` to the bank keeper interface. This enables other modules to refer to it in their `expected_keepers`, for example in `x/wasm`. This PR is therefore a prerequisite for adding denom metadata querying to cosmwasm.



---

### 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/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)
2023-03-05 20:22:24 +00:00
Devon Bear
672b052f32
perf(x/bank): 👉🥺👈 (reduce logging verbosity) (#15266) 2023-03-05 13:53:17 +01:00
Marko
570bcd2b18
chore: update roadmap with completed items (#15263) 2023-03-05 00:29:47 +01:00
Jeancarlo Barrios
34192a089b
feat(autocli): add text|json output for flag output (#15252) 2023-03-03 17:00:06 -05:00
Mark Rushakoff
fab029bff5
refactor(log): associate test logger with testing.T instance (#15261) 2023-03-03 20:26:45 +00:00
dependabot[bot]
dcd92eedd3
build(deps): Bump github.com/cometbft/cometbft from 0.37.0-rc3 to 0.37.0-rc4 (#15260)
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>
2023-03-03 17:22:49 +00:00
Mark Rushakoff
ac74e23769
fix(crypto/keyring): disallow non-owner reads of keyhash (#15258) 2023-03-03 16:25:22 +00:00
Mark Rushakoff
08be7ab2f5
refactor(log): restore customized nop logger (#15257) 2023-03-03 14:33:25 +00:00
Julien Robert
8fb95f06ed
chore: clean-up changelog (#15253) 2023-03-03 08:28:40 +01:00